![]() |
Main Page Class Hierarchy Alphabetical List Compound List File List Compound Members
|
#include <FXKnob.h>

Public Types | |
| enum | { ID_AUTOSLIDE = FXFrame::ID_LAST, ID_LAST } |
Public Member Functions | |
| FXKnob (FXComposite *p, FXObject *tgt=NULL, FXSelector sel=0, FXuint opts=KNOB_NORMAL, FXint x=0, FXint y=0, FXint w=0, FXint h=0, FXint pl=DEFAULT_PAD, FXint pr=DEFAULT_PAD, FXint pt=DEFAULT_PAD, FXint pb=DEFAULT_PAD) | |
| virtual bool | canFocus () const |
| virtual FXint | getDefaultWidth () |
| virtual FXint | getDefaultHeight () |
| virtual void | layout () |
| virtual void | enable () |
| virtual void | disable () |
| void | setValue (FXint value, FXbool notify=FALSE) |
| FXint | getValue () const |
| void | setRange (FXint lo, FXint hi, FXbool notify=FALSE) |
| void | getRange (FXint &lo, FXint &hi) const |
| void | setLimits (FXint start, FXint end, FXbool notify=FALSE) |
| void | getLimits (FXint &start, FXint &end) |
| FXuint | getKnobStyle () const |
| void | setKnobStyle (FXuint style) |
| FXint | getIncrement () const |
| void | setIncrement (FXint inc) |
| void | setTickDelta (FXint dist) |
| FXint | getTickDelta () const |
| void | setLineColor (FXColor clr) |
| FXColor | getLineColor () 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 | ~FXKnob () |
While being moved, the knob sends SEL_CHANGED messages to its target; at the end of the interaction, a final SEL_COMMAND message is sent. The message data represents the current knob value, of type FXint.
See also:
| FX::FXKnob::FXKnob | ( | FXComposite * | p, | |
| FXObject * | tgt = NULL, |
|||
| FXSelector | sel = 0, |
|||
| FXuint | opts = KNOB_NORMAL, |
|||
| FXint | x = 0, |
|||
| FXint | y = 0, |
|||
| FXint | w = 0, |
|||
| FXint | h = 0, |
|||
| FXint | pl = DEFAULT_PAD, |
|||
| FXint | pr = DEFAULT_PAD, |
|||
| FXint | pt = DEFAULT_PAD, |
|||
| FXint | pb = DEFAULT_PAD | |||
| ) |
Construct a knob widget.
| virtual FX::FXKnob::~FXKnob | ( | ) | [virtual] |
Destroy the knob.
| virtual bool FX::FXKnob::canFocus | ( | ) | const [virtual] |
| virtual FXint FX::FXKnob::getDefaultWidth | ( | ) | [virtual] |
| virtual FXint FX::FXKnob::getDefaultHeight | ( | ) | [virtual] |
| virtual void FX::FXKnob::layout | ( | ) | [virtual] |
| virtual void FX::FXKnob::enable | ( | ) | [virtual] |
| virtual void FX::FXKnob::disable | ( | ) | [virtual] |
| FXint FX::FXKnob::getValue | ( | ) | const [inline] |
Return knob value.
Change the knob's movement limits (start and ending angles) accept values in degrees from 0 (south) to 360.
| FXuint FX::FXKnob::getKnobStyle | ( | ) | const |
Change the knob style.
| void FX::FXKnob::setKnobStyle | ( | FXuint | style | ) |
Get the current knob style.
| FXint FX::FXKnob::getIncrement | ( | ) | const [inline] |
Get the knob's auto-increment/decrement value.
| void FX::FXKnob::setIncrement | ( | FXint | inc | ) | [inline] |
Change the knob's auto-increment/decrement value.
| void FX::FXKnob::setTickDelta | ( | FXint | dist | ) |
Change the delta between ticks.
| FXint FX::FXKnob::getTickDelta | ( | ) | const [inline] |
Get delta between ticks.
| void FX::FXKnob::setLineColor | ( | FXColor | clr | ) |
Change the indicator needle color.
| FXColor FX::FXKnob::getLineColor | ( | ) | const [inline] |
Get the current indicator needle color.
| void FX::FXKnob::setHelpText | ( | const FXString & | text | ) | [inline] |
Set the help text to be displayed on the status line.
| const FXString& FX::FXKnob::getHelpText | ( | ) | const [inline] |
Get the current help text.
| void FX::FXKnob::setTipText | ( | const FXString & | text | ) | [inline] |
Set the tip text to be displayed in the tooltip.
| const FXString& FX::FXKnob::getTipText | ( | ) | const [inline] |
Get the current tooltip text value.
| virtual void FX::FXKnob::save | ( | FXStream & | store | ) | const [virtual] |
| virtual void FX::FXKnob::load | ( | FXStream & | store | ) | [virtual] |
|
|