m_cmdOverDown( pIntf, this ), m_cmdDownOver( pIntf, this ),
m_cmdOverUp( pIntf, this ), m_cmdUpOver( pIntf, this ),
m_cmdMove( pIntf, this ), m_cmdScroll( pIntf, this ),
-
m_lastPercentage( 0 ), m_xOffset( 0 ), m_yOffset( 0 ),
m_pEvt( NULL ), m_rCurve( rCurve )
{
int m_width, m_height;
/// Position of the cursor
int m_xPosition, m_yPosition;
+ /// Callback objects
+ DEFINE_CALLBACK( CtrlSliderCursor, OverDown )
+ DEFINE_CALLBACK( CtrlSliderCursor, DownOver )
+ DEFINE_CALLBACK( CtrlSliderCursor, OverUp )
+ DEFINE_CALLBACK( CtrlSliderCursor, UpOver )
+ DEFINE_CALLBACK( CtrlSliderCursor, Move )
+ DEFINE_CALLBACK( CtrlSliderCursor, Scroll )
/// Last saved position of the cursor (stored as a percentage)
float m_lastPercentage;
/// Offset between the mouse pointer and the center of the cursor
/// Bezier curve of the slider
const Bezier &m_rCurve;
- /// Callback objects
- DEFINE_CALLBACK( CtrlSliderCursor, OverDown )
- DEFINE_CALLBACK( CtrlSliderCursor, DownOver )
- DEFINE_CALLBACK( CtrlSliderCursor, OverUp )
- DEFINE_CALLBACK( CtrlSliderCursor, UpOver )
- DEFINE_CALLBACK( CtrlSliderCursor, Move )
- DEFINE_CALLBACK( CtrlSliderCursor, Scroll )
-
/// Method called when the position variable is modified
virtual void onUpdate( Subject<VarPercent> &rVariable );
FSM m_fsm;
/// Variable associated to the control
VarText &m_rVariable;
+ /// Callback objects
+ DEFINE_CALLBACK( CtrlText, ToManual )
+ DEFINE_CALLBACK( CtrlText, ManualMoving )
+ DEFINE_CALLBACK( CtrlText, ManualStill )
+ DEFINE_CALLBACK( CtrlText, Move )
/// The last received event
EvtGeneric *m_pEvt;
/// Font used to render the text
/// Timer to move the text
OSTimer *m_pTimer;
- /// Callback objects
- DEFINE_CALLBACK( CtrlText, ToManual )
- DEFINE_CALLBACK( CtrlText, ManualMoving )
- DEFINE_CALLBACK( CtrlText, ManualStill )
- DEFINE_CALLBACK( CtrlText, Move )
-
/// Callback for the timer
static void updateText( SkinObject *pCtrl );