

Public Member Functions | |
| CtrlSliderCursor (intf_thread_t *pIntf, const GenericBitmap &rBmpUp, const GenericBitmap &rBmpOver, const GenericBitmap &rBmpDown, const Bezier &rCurve, VarPercent &rVariable, VarBool *pVisible, const UString &rTooltip, const UString &rHelp) | |
| Create a cursor with 3 images (which are NOT copied, be careful) If pVisible is NULL, the control is always visible. | |
| virtual | ~CtrlSliderCursor () |
| virtual void | handleEvent (EvtGeneric &rEvent) |
| Handle an event. | |
| virtual bool | mouseOver (int x, int y) const |
| Check whether coordinates are inside the control. | |
| virtual void | draw (OSGraphics &rImage, int xDest, int yDest) |
| Draw the control on the given graphics. | |
| virtual UString | getTooltipText () const |
| Get the text of the tooltip. | |
| virtual string | getType () const |
| Get the type of control (custom RTTI). | |
Friends | |
| class | CmdOverDown |
| class | CmdDownOver |
| class | CmdOverUp |
| class | CmdUpOver |
| class | CmdMove |
| class | CmdScroll |
Data Structures | |
| class | CmdDownOver |
| class | CmdMove |
| class | CmdOverDown |
| Callback objects. | |
| class | CmdOverUp |
| class | CmdScroll |
| class | CmdUpOver |
| CtrlSliderCursor::CtrlSliderCursor | ( | intf_thread_t * | pIntf, | |
| const GenericBitmap & | rBmpUp, | |||
| const GenericBitmap & | rBmpOver, | |||
| const GenericBitmap & | rBmpDown, | |||
| const Bezier & | rCurve, | |||
| VarPercent & | rVariable, | |||
| VarBool * | pVisible, | |||
| const UString & | rTooltip, | |||
| const UString & | rHelp | |||
| ) |
Create a cursor with 3 images (which are NOT copied, be careful) If pVisible is NULL, the control is always visible.
References Subject< S, ARG >::addObserver(), FSM::addState(), FSM::addTransition(), OSFactory::createOSGraphics(), OSGraphics::drawBitmap(), VarPercent::get(), Box::getHeight(), SkinObject::getIntf(), Box::getWidth(), OSFactory::instance(), and FSM::setState().
| CtrlSliderCursor::~CtrlSliderCursor | ( | ) | [virtual] |
References Subject< S, ARG >::delObserver().
| void CtrlSliderCursor::handleEvent | ( | EvtGeneric & | rEvent | ) | [virtual] |
Handle an event.
Reimplemented from CtrlGeneric.
References EvtGeneric::getAsString(), and FSM::handleTransition().
| bool CtrlSliderCursor::mouseOver | ( | int | x, | |
| int | y | |||
| ) | const [virtual] |
Check whether coordinates are inside the control.
Reimplemented from CtrlGeneric.
References VarPercent::get(), Box::getHeight(), Bezier::getPoint(), Box::getWidth(), and OSGraphics::hit().
| void CtrlSliderCursor::draw | ( | OSGraphics & | rImage, | |
| int | xDest, | |||
| int | yDest | |||
| ) | [virtual] |
Draw the control on the given graphics.
Reimplemented from CtrlGeneric.
References OSGraphics::drawGraphics(), VarPercent::get(), Box::getHeight(), Bezier::getPoint(), and Box::getWidth().
| virtual UString CtrlSliderCursor::getTooltipText | ( | ) | const [inline, virtual] |
| virtual string CtrlSliderCursor::getType | ( | ) | const [inline, virtual] |
friend class CmdOverDown [friend] |
friend class CmdDownOver [friend] |
friend class CmdOverUp [friend] |
friend class CmdUpOver [friend] |
friend class CmdMove [friend] |
friend class CmdScroll [friend] |
1.5.6