用于EagleEye3.0 规则集漏报和误报测试的示例项目,项目收集于github和gitee
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

75 lines
3.4 KiB

5 months ago
<EFBFBD><EFBFBD>/**
* Copyright (C) 2014-2050 SOUI<EFBFBD>V<EFBFBD>
* All rights reserved.
*
* @file SAnimImg.h
* @brief
* @version v1.0
* @author 4l(gKN
* @date 2014-07-06
*
* Describe <EFBFBD>R\O<EFBFBD>VGr
*/
#pragma once
#include <core/swnd.h>
namespace SOUI
{
class SAnimImg : public SWindow , protected ITimelineHandler
{
SOUI_CLASS_NAME(SAnimImg, L"anmimg")
public:
SAnimImg(void);
~SAnimImg(void);
protected:
virtual void OnNextFrame();
virtual CSize GetDesiredSize(LPCRECT pRcContainer);
void NextImage();
void OnDestroy();
int OnCreate(void*);
void OnPaint(IRenderTarget *pRT);
void OnMouseHover(WPARAM wParam, CPoint ptPos);
void OnMouseLeave();
SOUI_MSG_MAP_BEGIN()
MSG_WM_CREATE(OnCreate)
MSG_WM_DESTROY(OnDestroy)
MSG_WM_PAINT_EX(OnPaint)
MSG_WM_MOUSEHOVER(OnMouseHover)
MSG_WM_MOUSELEAVE(OnMouseLeave)
SOUI_MSG_MAP_END()
SOUI_ATTRS_BEGIN()
ATTR_INT(L"interval",m_iInterval,FALSE)
ATTR_INT(L"autorun",m_iAutorun,FALSE)
ATTR_SKIN(L"ani_in",m_pAniIn,TRUE)
ATTR_SKIN(L"ani_out",m_pAniOut,TRUE)
SOUI_ATTRS_END()
public:
int m_iInterval;//<EFBFBD>R;u<EFBFBD><EFBFBD><EFBFBD><EFBFBD> USMO<EFBFBD>k<EFBFBD>y
int m_iAutorun;//RЏL<EFBFBD>!j_
//-1:؞<EFBFBD><EFBFBD> <EFBFBD> NꁨRЏL<EFBFBD>
//0:ޏ<EFBFBD>~<EFBFBD>R;u<EFBFBD>O(uani_in <EFBFBD>
//'Y<EFBFBD>N0<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>R;u<EFBFBD>v<EFBFBD>f\P<EFBFBD>e<EFBFBD><EFBFBD> <EFBFBD>USMO<EFBFBD>y
int m_iAutorun1000;
bool m_bWaitrun;
int m_iHitTest;//<EFBFBD><EFBFBD>U_ <EFBFBD>hMOn<EFBFBD>'Y<EFBFBD>N0h<EFBFBD>:y <EFBFBD>h؏(W̑b<EFBFBD> <EFBFBD>
enum ANI_STATUS{
STATUS_NOR=0,
STATUS_IN,
STATUS_OUT,
} m_aniStatus;
int m_iFrame;
int m_nElapseTime;
int m_nAutoElapseTime;
ISkinObj *m_pAniIn;
ISkinObj *m_pAniOut;
};
}//namespace SOUI