![]() |
Main Page Class Hierarchy Alphabetical List Compound List File List Compound Members
![]() |
#include <FXDial.h>
Inheritance diagram for FX::FXDial:
Public Methods | |
FXDial (FXComposite *p, FXObject *tgt=NULL, FXSelector sel=0, FXuint opts=DIAL_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 dial widget. | |
virtual FXint | getDefaultWidth () |
Return default width. | |
virtual FXint | getDefaultHeight () |
Return default height. | |
void | setValue (FXint value) |
Set the dial value. | |
FXint | getValue () const |
Return the dial value. | |
void | setRange (FXint lo, FXint hi) |
Change the dial's range. | |
void | getRange (FXint &lo, FXint &hi) const |
Obtain the current range of the dial. | |
void | setRevolutionIncrement (FXint i) |
FXint | getRevolutionIncrement () const |
Get the current value of the revolution increment. | |
void | setNotchSpacing (FXint spacing) |
FXint | getNotchSpacing () const |
Get the current notch spacing. | |
void | setNotchOffset (FXint offset) |
FXint | getNotchOffset () const |
Get the current center notch offset. | |
void | setDialStyle (FXuint opts) |
Changes the dial style. | |
FXuint | getDialStyle () const |
Get the current dial style. | |
void | setNotchColor (FXColor clr) |
Change the center notch color. | |
FXColor | getNotchColor () const |
Get the current center notch color. | |
void | setHelpText (const FXString &text) |
Set the help text to be displayed on the status line. | |
const FXString & | getHelpText () const |
Get the current help text. | |
void | setTipText (const FXString &text) |
Set the tip text to be displayed in the tooltip. | |
const FXString & | getTipText () const |
Get the current tooltip text value. | |
virtual void | save (FXStream &store) const |
Save to stream. | |
virtual void | load (FXStream &store) |
Load from stream. |
See also:
|
Set the revolution increment, which is the amount of change in the position for revolution of the dial; the dial may go through multiple revolutions to go through its whole range |
|
Change the spacing for the small notches; this should be set in tenths of degrees in the range [1,3600], and the value should be a divisor of 3600, so as to make the notches come out evenly |
|
Change the notch offset, which is the position of the center notch; the value should be tenths of degrees in the range [-3600,3600] |