Inherited by FillDial, and LineDial.
Public Types | |
enum | { NORMAL, LINE, FILL } |
Public Member Functions | |
int | handle (int) |
Dial (int x, int y, int w, int h, const char *l=0) | |
short | angle1 () const |
void | angle1 (short a) |
short | angle2 () const |
void | angle2 (short a) |
void | angles (short a, short b) |
Static Public Attributes | |
NamedStyle * | default_style |
Protected Member Functions | |
void | draw () |
You can change the box() from the default of OVAL_BOX to draw different borders. The box() is filled with color(), the moving part is filled with selection_color(), and the border around the movint part is set by textcolor().
|
See angles() |
|
See angles() |
|
Sets the angles used for the minimum and maximum values. The default values are 45 and 315 (0 degrees is straight down and the angles progress clockwise). Normally angle1 is less than angle2, but if you reverse them the dial moves counter-clockwise. |