CtrlSliderCursor Class Reference

Cursor of a slider. More...

Inheritance diagram for CtrlSliderCursor:

Inheritance graph
[legend]
Collaboration diagram for CtrlSliderCursor:

Collaboration graph
[legend]

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

Detailed Description

Cursor of a slider.

Constructor & Destructor Documentation

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]


Member Function Documentation

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]

Get the text of the tooltip.

Reimplemented from CtrlGeneric.

virtual string CtrlSliderCursor::getType (  )  const [inline, virtual]

Get the type of control (custom RTTI).

Reimplemented from CtrlGeneric.


Friends And Related Function Documentation

friend class CmdOverDown [friend]

friend class CmdDownOver [friend]

friend class CmdOverUp [friend]

friend class CmdUpOver [friend]

friend class CmdMove [friend]

friend class CmdScroll [friend]


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

Generated on Tue May 25 08:05:55 2010 for VLC by  doxygen 1.5.6