Public Types |
enum | {
TICKS_ABOVE = 0x0001,
TICKS_BELOW = 0x0002,
TICKS_LEFT = 0x0001,
TICKS_RIGHT = 0x0002
} |
enum | knob_mode {
KNOB_SQUARE,
KNOB_TRIANGLE,
KNOB_DIAMOND
} |
Public Methods |
| Slider (const Rect &cFrame, const std::string &cName, Message *pcMsg, uint32 nTickFlags=TICKS_BELOW, int nTickCount=10, knob_mode eKnobMode=KNOB_SQUARE, orientation eOrientation=HORIZONTAL, uint32 nResizeMask=0) |
| ~Slider () |
virtual void | RenderLabels (View *pcRenderView) |
virtual void | RenderSlider (View *pcRenderView) |
virtual void | RenderKnob (View *pcRenderView) |
virtual void | RenderTicks (View *pcRenderView) |
virtual float | PosToVal (const Point &cPos) const |
virtual Point | ValToPos (float vVal) const |
virtual Rect | GetKnobFrame () const |
virtual Rect | GetSliderFrame () const |
virtual void | SetSliderColors (const Color32_s &sColor1, const Color32_s &sColor2) |
| Modify the fill color of the slider bar. More...
|
virtual void | GetSliderColors (Color32_s *psColor1, Color32_s *psColor2) const |
| Get the slider-bar fill color. More...
|
virtual void | SetSliderSize (float vSize) |
| Set the thickness of the slider bar. More...
|
virtual float | GetSliderSize () const |
| Get the current slider thickness. More...
|
virtual void | SetProgStrFormat (const std::string &cFormat) |
| Set format string for the progress label. More...
|
virtual std::string | GetProgStrFormat () const |
virtual std::string | GetProgressString () const |
void | SetStepCount (int nCount) |
| Set the number of possible knob positions. More...
|
int | GetStepCount () const |
| Obtain the step-count as set by SetStepCount(). More...
|
void | SetTickCount (int nCount) |
| Set number of "ticks" rendered along the slider. More...
|
int | GetTickCount () const |
| Obtain the tick count as set with SetTickCount(). More...
|
void | SetTickFlags (uint32 nFlags) |
| Configure where the slider ticks should be rendered. More...
|
uint32 | GetTickFlags () const |
| Obtain the tick-flags as set with SetTickFlags(). More...
|
void | SetLimitLabels (const std::string &cMinLabel, const std::string &cMaxLabel) |
| Set the static labels rendere at each end of the slider. More...
|
void | GetLimitLabels (std::string *pcMinLabel, std::string *pcMaxLabel) |
| Obtain the limit-labels as set with SetLimitLabels(). More...
|
virtual void | SetSteps (float vSmall, float vBig) |
virtual void | GetSteps (float *pvSmall, float *pvBig) const |
virtual void | SetMinMax (float vMin, float vMax) |
virtual void | PostValueChange (const Variant &cNewValue) |
virtual void | EnableStatusChanged (bool bIsEnabled) |
bool | Invoked (Message *pcMessage) |
| Intercept outgoing messages. More...
|
virtual void | AttachedToWindow () |
| Sets the background color to the one of the parent view. More...
|
virtual void | MouseMove (const Point &cNewPos, int nCode, uint32 nButtons, Message *pcData) |
| Hook called by the system when the mouse is moved. More...
|
virtual void | MouseDown (const Point &cPosition, uint32 nButtons) |
| Hook called by the system when a mouse button is pressed. More...
|
virtual void | MouseUp (const Point &cPosition, uint32 nButtons, Message *pcData) |
| Hook called by the system when a mouse button is release. More...
|
virtual void | FrameSized (const Point &cDelta) |
| Virtual hook called by the system when the view is resized. More...
|
virtual void | Paint (const Rect &cUpdateRect) |
| Called by the system update "damaged" areas of the view. More...
|
virtual Point | GetPreferredSize (bool bLargest) const |