fltk::Dial Class Reference

Inherits fltk::Valuator.

Inherited by fltk::FillDial, and fltk::LineDial.

List of all members.


Detailed Description

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

Fl_Dial.gif
Use type() to change how it draws:

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().


Public Types

enum  { NORMAL, LINE, FILL }

Public Member Functions

void angle1 (short a)
short angle1 () const
void angle2 (short a)
short angle2 () const
void angles (short a, short b)
 Dial (int x, int y, int w, int h, const char *l=0)
int handle (int)

Static Public Attributes

static NamedStyledefault_style

Protected Member Functions

void draw ()


Member Function Documentation

void Dial::angle1 short  a  )  [inline]
 

See angles()

void Dial::angle2 short  a  )  [inline]
 

See angles()

void Dial::angles short  a,
short  b
[inline]
 

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.


Fri Apr 2 15:19:54 2010. FLTK ©2007 Bill Spitzak and others.
Permission is granted to reproduce this manual or any portion for any purpose, provided this copyright and permission notice are preserved.