## class fltk::Dial

### Class Hierarchy

    fltk::Valuator
       |
       +----fltk::Dial

### Include Files

    #include <fltk/Dial.h>

### Description

The `fltk::Dial` widget provides a circular dial to control a single floating point value.

### Methods

- fltk::Dial
- ~Dial
- angle1
- angle2
- angles
- type

#### fltk::Dial::Dial(int x, int y, int w, int h, const char *label = 0)

Creates a new `fltk::Dial` widget using the given position, size, and label string. The default type is `fltk::NORMAL_DIAL`.

#### virtual fltk::Dial::~Dial()

Destroys the valuator.

#### short fltk::Dial::angle1() const;
void fltk::Dial::angle1(short);
short fltk::Dial::angle2() const;
void fltk::Dial::angle2(short);
void fltk::Dial::angles(short a, short b);

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.

#### type(uchar)

Sets the type of the dial to:

- `fltk::NORMAL_DIAL` - Draws a normal dial with a knob.
- `fltk::LINE_DIAL` - Draws a dial with a line.
- `fltk::FILL_DIAL` - Draws a dial with a filled arc.