soui 5.0.0.1
Soui5 Doc
 
Loading...
Searching...
No Matches
SAnimateImgWnd Class Reference

动画图片窗口 More...

#include <SCmnCtrl.h>

Inheritance diagram for SAnimateImgWnd:
ITimelineHandler

Public Member Functions

 SAnimateImgWnd ()
 构造函数
 
virtual ~SAnimateImgWnd ()
 析构函数
 
void WINAPI Start ()
 启动动画
 
void WINAPI Stop ()
 停止动画
 
BOOL WINAPI IsPlaying () SCONST
 判断动画运行状态
 
- Public Member Functions inherited from ITimelineHandler
void OnNextFrame () PURE
 下一个动画帧处理接口
 

Protected Member Functions

virtual SIZE MeasureContent (int wid, int hei)
 测量内容大小
 
void OnNextFrame () OVERRIDE
 处理下一帧事件
 
virtual void OnColorize (COLORREF cr)
 处理颜色化事件
 
virtual void OnContainerChanged (ISwndContainer *pOldContainer, ISwndContainer *pNewContainer)
 容器改变处理函数
 
void OnScaleChanged (int scale) override
 处理缩放变化事件
 
void OnPaint (IRenderTarget *pRT)
 绘制控件
 
void OnShowWindow (BOOL bShow, UINT nStatus)
 处理显示窗口事件
 
void OnDestroy ()
 处理销毁事件
 
virtual HRESULT SetAttribute (const SNS::SStringW &amp;amp;amp;amp;strAttribName, const SNS::SStringW &amp;amp;amp;amp;strValue, BOOL bLoading=FALSE)
 

Protected Attributes

SAutoRefPtr< ISkinObjm_pSkin
 动画图片
 
int m_nSpeed
 速度
 
int m_iCurFrame
 当前帧
 
BOOL m_bAutoStart
 是否自动启动
 
BOOL m_bPlaying
 是否运行中
 
int m_iTimeFrame
 OnNextFrame的执行次数
 
int m_nRepeat
 播放循环次数,-1代表无限循环
 
int m_iRepeat
 当前播放循环轮次
 

Detailed Description

动画图片窗口

此窗口支持动画效果。

Definition at line 522 of file SCmnCtrl.h.

Constructor & Destructor Documentation

◆ SAnimateImgWnd()

SAnimateImgWnd::SAnimateImgWnd ( )

构造函数

Definition at line 727 of file SCmnCtrl.cpp.

◆ ~SAnimateImgWnd()

virtual SAnimateImgWnd::~SAnimateImgWnd ( )
inlinevirtual

析构函数

Definition at line 536 of file SCmnCtrl.h.

Member Function Documentation

◆ IsPlaying()

BOOL WINAPI SAnimateImgWnd::IsPlaying ( )
inline

判断动画运行状态

Returns
运行中–TRUE

Definition at line 554 of file SCmnCtrl.h.

◆ MeasureContent()

SIZE SAnimateImgWnd::MeasureContent ( int wid,
int hei )
protectedvirtual

测量内容大小

Parameters
wid父容器宽度
hei父容器高度
Returns
内容大小

Reimplemented from SWindow.

Definition at line 780 of file SCmnCtrl.cpp.

◆ OnColorize()

void SAnimateImgWnd::OnColorize ( COLORREF cr)
protectedvirtual

处理颜色化事件

Parameters
cr颜色

Reimplemented from SWindow.

Definition at line 837 of file SCmnCtrl.cpp.

◆ OnContainerChanged()

void SAnimateImgWnd::OnContainerChanged ( ISwndContainer * pOldContainer,
ISwndContainer * pNewContainer )
protectedvirtual

容器改变处理函数

Parameters
pOldContainer旧容器
pNewContainer新容器

Reimplemented from SWindow.

Definition at line 844 of file SCmnCtrl.cpp.

◆ OnDestroy()

void SAnimateImgWnd::OnDestroy ( )
protected

处理销毁事件

Definition at line 774 of file SCmnCtrl.cpp.

◆ OnNextFrame()

void SAnimateImgWnd::OnNextFrame ( )
protected

处理下一帧事件

Definition at line 805 of file SCmnCtrl.cpp.

◆ OnPaint()

void SAnimateImgWnd::OnPaint ( IRenderTarget * pRT)
protected

绘制控件

Parameters
pRT绘制设备句柄

Definition at line 743 of file SCmnCtrl.cpp.

◆ OnScaleChanged()

void SAnimateImgWnd::OnScaleChanged ( int scale)
overrideprotectedvirtual

处理缩放变化事件

Parameters
scale缩放比例

Reimplemented from SWindow.

Definition at line 856 of file SCmnCtrl.cpp.

◆ OnShowWindow()

void SAnimateImgWnd::OnShowWindow ( BOOL bShow,
UINT nStatus )
protected

处理显示窗口事件

Parameters
bShow显示状态
nStatus状态

Definition at line 788 of file SCmnCtrl.cpp.

◆ SetAttribute()

virtual HRESULT SAnimateImgWnd::SetAttribute ( const SNS::SStringW &amp;amp;amp;amp; strAttribName,
const SNS::SStringW &amp;amp;amp;amp; strValue,
BOOL bLoading = FALSE )
inlineprotectedvirtual

Reimplemented from SWindow.

Definition at line 616 of file SCmnCtrl.h.

◆ Start()

void SAnimateImgWnd::Start ( )

启动动画

Definition at line 749 of file SCmnCtrl.cpp.

◆ Stop()

void SAnimateImgWnd::Stop ( )

停止动画

Definition at line 763 of file SCmnCtrl.cpp.

Member Data Documentation

◆ m_bAutoStart

BOOL SAnimateImgWnd::m_bAutoStart
protected

是否自动启动

Definition at line 642 of file SCmnCtrl.h.

◆ m_bPlaying

BOOL SAnimateImgWnd::m_bPlaying
protected

是否运行中

Definition at line 647 of file SCmnCtrl.h.

◆ m_iCurFrame

int SAnimateImgWnd::m_iCurFrame
protected

当前帧

Definition at line 637 of file SCmnCtrl.h.

◆ m_iRepeat

int SAnimateImgWnd::m_iRepeat
protected

当前播放循环轮次

Definition at line 662 of file SCmnCtrl.h.

◆ m_iTimeFrame

int SAnimateImgWnd::m_iTimeFrame
protected

OnNextFrame的执行次数

Definition at line 652 of file SCmnCtrl.h.

◆ m_nRepeat

int SAnimateImgWnd::m_nRepeat
protected

播放循环次数,-1代表无限循环

Definition at line 657 of file SCmnCtrl.h.

◆ m_nSpeed

int SAnimateImgWnd::m_nSpeed
protected

速度

Definition at line 632 of file SCmnCtrl.h.

◆ m_pSkin

SAutoRefPtr<ISkinObj> SAnimateImgWnd::m_pSkin
protected

动画图片

Definition at line 627 of file SCmnCtrl.h.


The documentation for this class was generated from the following files: