27 ,
protected IAnimatorListener
28 ,
public IAnimatorUpdateListener {
55 STDMETHOD_(
void,
onAnimationEnd)(THIS_ IValueAnimator *pAnimator)
override;
78 STDMETHOD_(
void,
GetDesiredSize)(THIS_ SIZE *psz,
int nParentWid,
int nParentHei) OVERRIDE;
109 void OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags);
138 ATTR_SKIN(L
"skin",
m_pSkin, TRUE)
142 ATTR_CHAIN_PTR(m_animator, 0)
Smart pointer class for managing COM-style reference-counted objects.
A class representing an ASCII string.
BOOL NeedRedrawWhenStateChange() override
Determines whether the control needs to be redrawn when its state changes.
void onAnimationEnd(IValueAnimator *pAnimator) override
Handles the end of an animation.
void onAnimationUpdate(IValueAnimator *pAnimator) override
Handles the update of an animation.
~SSwitch()
Destructor for SSwitch.
HRESULT OnAttrAnimator(const SStringW &value, BOOL bLoading)
Handles the 'animator' attribute.
void onAnimationRepeat(IValueAnimator *pAnimator) override
Handles the repetition of an animation.
void OnPaint(IRenderTarget *pRT)
Handles the paint event.
SAutoRefPtr< ISkinObj > m_pSkin
void onAnimationStart(IValueAnimator *pAnimator) override
Handles the start of an animation.
void OnLButtonUp(UINT nFlags, CPoint point)
Handles the left mouse button up event.
void OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags)
Handles the key down event.
HRESULT OnAttrCheck(const SStringW &strValue, BOOL bLoading)
Handles the 'checked' attribute.
void GetDesiredSize(SIZE *psz, int nParentWid, int nParentHei) OVERRIDE
Calculates the desired size of the control.
SAutoRefPtr< ISkinObj > m_pSkinForce
SSwitch()
Constructor for SSwitch.
Interface for rendering target objects.
Interface for Skin Objects.