class Fl_Dial


Class Hierarchy

Include Files

Description

The Fl_Dial widget provides a circular dial to control a single floating point value.

Methods

Fl_Dial::Fl_Dial(int x, int y, int w, int h, const char *label = 0)

Creates a new Fl_Dial widget using the given position, size, and label string. The default type is FL_NORMAL_DIAL.

virtual Fl_Dial::~Fl_Dial()

Destroys the valuator.

void Fl_Dial::angles(short a, short b)

Sets the angles used for the minimum and maximum values. By default these are 225 and 135, respectively. (0 degrees is straight up and the angles progress clockwise.) The angles specified should be greater than or equal to 0 and less than 360. The progress of the dial always starts at the minimum angle and progresses clockwise to the maximum angle. Currently, counter-clockwise progression is not supported (but user code can always use 1/value()).

type(uchar)

Sets the type of the dial to: