![]() |
Main Page Class Hierarchy Alphabetical List Compound List File List Compound Members
![]() |
#include <FXRealSlider.h>
Public Types | |
enum | { ID_AUTOSLIDE = FXFrame::ID_LAST, ID_LAST } |
Public Member Functions | |
FXRealSlider (FXComposite *p, FXObject *tgt=NULL, FXSelector sel=0, FXuint opts=REALSLIDER_NORMAL, FXint x=0, FXint y=0, FXint w=0, FXint h=0, FXint pl=0, FXint pr=0, FXint pt=0, FXint pb=0) | |
virtual FXint | getDefaultWidth () |
virtual FXint | getDefaultHeight () |
virtual bool | canFocus () const |
virtual void | layout () |
virtual void | enable () |
virtual void | disable () |
void | setValue (FXdouble value, FXbool notify=FALSE) |
FXdouble | getValue () const |
void | setRange (FXdouble lo, FXdouble hi, FXbool notify=FALSE) |
void | getRange (FXdouble &lo, FXdouble &hi) const |
FXuint | getSliderStyle () const |
void | setSliderStyle (FXuint style) |
FXint | getHeadSize () const |
void | setHeadSize (FXint hs) |
FXint | getSlotSize () const |
void | setSlotSize (FXint bs) |
FXdouble | getIncrement () const |
void | setIncrement (FXdouble inc) |
void | setTickDelta (FXdouble dist) |
FXdouble | getTickDelta () const |
void | setSlotColor (FXColor clr) |
FXColor | getSlotColor () const |
void | setHelpText (const FXString &text) |
const FXString & | getHelpText () const |
void | setTipText (const FXString &text) |
const FXString & | getTipText () const |
virtual void | save (FXStream &store) const |
virtual void | load (FXStream &store) |
virtual | ~FXRealSlider () |
The real slider widget is a valuator widget which provides simple linear value range.
Two visual appearances are supported:- the sunken look, which is enabled with the SLIDER_INSIDE_BAR option and the regular look. The latter may have optional arrows on the slider thumb. While being moved, the real slider sends a SEL_CHANGED message to its target; at the end of the interaction, a SEL_COMMAND message is sent. The message data represents the current slider value, of type pointer to FXdouble.
See also:
FX::FXRealSlider::FXRealSlider | ( | FXComposite * | p, |
FXObject * | tgt = NULL , |
||
FXSelector | sel = 0 , |
||
FXuint | opts = REALSLIDER_NORMAL , |
||
FXint | x = 0 , |
||
FXint | y = 0 , |
||
FXint | w = 0 , |
||
FXint | h = 0 , |
||
FXint | pl = 0 , |
||
FXint | pr = 0 , |
||
FXint | pt = 0 , |
||
FXint | pb = 0 |
||
) |
Construct a slider widget.
virtual FX::FXRealSlider::~FXRealSlider | ( | ) | [virtual] |
Destroy the slider.
virtual FXint FX::FXRealSlider::getDefaultWidth | ( | ) | [virtual] |
Return default width.
Reimplemented from FX::FXFrame.
virtual FXint FX::FXRealSlider::getDefaultHeight | ( | ) | [virtual] |
Return default height.
Reimplemented from FX::FXFrame.
virtual bool FX::FXRealSlider::canFocus | ( | ) | const [virtual] |
Returns true because a slider can receive focus.
Reimplemented from FX::FXWindow.
virtual void FX::FXRealSlider::layout | ( | ) | [virtual] |
Perform layout.
Reimplemented from FX::FXWindow.
virtual void FX::FXRealSlider::enable | ( | ) | [virtual] |
Enable the slider.
Reimplemented from FX::FXWindow.
virtual void FX::FXRealSlider::disable | ( | ) | [virtual] |
Disable the slider.
Reimplemented from FX::FXWindow.
void FX::FXRealSlider::setValue | ( | FXdouble | value, |
FXbool | notify = FALSE |
||
) |
Change slider value.
FXdouble FX::FXRealSlider::getValue | ( | ) | const [inline] |
Return slider value.
void FX::FXRealSlider::setRange | ( | FXdouble | lo, |
FXdouble | hi, | ||
FXbool | notify = FALSE |
||
) |
Change the slider's range.
void FX::FXRealSlider::getRange | ( | FXdouble & | lo, |
FXdouble & | hi | ||
) | const [inline] |
Get the slider's current range.
FXuint FX::FXRealSlider::getSliderStyle | ( | ) | const |
Change the slider style.
void FX::FXRealSlider::setSliderStyle | ( | FXuint | style | ) |
Get the current slider style.
FXint FX::FXRealSlider::getHeadSize | ( | ) | const [inline] |
Get the slider's head size.
void FX::FXRealSlider::setHeadSize | ( | FXint | hs | ) |
Change the slider's head size.
FXint FX::FXRealSlider::getSlotSize | ( | ) | const [inline] |
Get the slider's current slot size.
void FX::FXRealSlider::setSlotSize | ( | FXint | bs | ) |
Change the slider's slot size.
FXdouble FX::FXRealSlider::getIncrement | ( | ) | const [inline] |
Get the slider's auto-increment/decrement value.
void FX::FXRealSlider::setIncrement | ( | FXdouble | inc | ) |
Change the slider's auto-increment/decrement value.
void FX::FXRealSlider::setTickDelta | ( | FXdouble | dist | ) |
Change the delta between ticks.
FXdouble FX::FXRealSlider::getTickDelta | ( | ) | const [inline] |
Get delta between ticks.
void FX::FXRealSlider::setSlotColor | ( | FXColor | clr | ) |
Change the color of the slot the slider head moves in.
FXColor FX::FXRealSlider::getSlotColor | ( | ) | const [inline] |
Get the current slot color.
void FX::FXRealSlider::setHelpText | ( | const FXString & | text | ) | [inline] |
Set the help text to be displayed on the status line.
const FXString& FX::FXRealSlider::getHelpText | ( | ) | const [inline] |
Get the current help text.
void FX::FXRealSlider::setTipText | ( | const FXString & | text | ) | [inline] |
Set the tip text to be displayed in the tooltip.
const FXString& FX::FXRealSlider::getTipText | ( | ) | const [inline] |
Get the current tooltip text value.
virtual void FX::FXRealSlider::save | ( | FXStream & | store | ) | const [virtual] |
Save to stream.
Reimplemented from FX::FXFrame.
virtual void FX::FXRealSlider::load | ( | FXStream & | store | ) | [virtual] |
Load from stream.
Reimplemented from FX::FXFrame.
![]() |