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.
35 lines
706 B
35 lines
706 B
5 months ago
|
#pragma once
|
||
|
|
||
|
#include <interface/sinterpolator-i.h>
|
||
|
namespace SOUI
|
||
|
{
|
||
|
class SInterpolatorView : public SSliderBar
|
||
|
,protected ITimelineHandler
|
||
|
{
|
||
|
SOUI_CLASS_NAME(SInterpolatorView,L"interpolatorView")
|
||
|
public:
|
||
|
SInterpolatorView(void);
|
||
|
~SInterpolatorView(void);
|
||
|
|
||
|
void SetInterpolator(IInterpolator *pInterpolator);
|
||
|
public:
|
||
|
int OnCreate(void*);
|
||
|
void OnDestroy();
|
||
|
SOUI_MSG_MAP_BEGIN()
|
||
|
MSG_WM_CREATE(OnCreate)
|
||
|
MSG_WM_DESTROY(OnDestroy)
|
||
|
SOUI_MSG_MAP_END()
|
||
|
protected:
|
||
|
virtual void OnNextFrame();
|
||
|
|
||
|
SOUI_ATTRS_BEGIN()
|
||
|
ATTR_INT(L"speed",m_nSpeed,FALSE)
|
||
|
SOUI_ATTRS_END()
|
||
|
|
||
|
SAutoRefPtr<IInterpolator> m_interpolator;
|
||
|
int m_nSpeed;
|
||
|
int m_iFrame;
|
||
|
float m_fTime;
|
||
|
};
|
||
|
}
|