FLTK 1.3.3: Fl_Dial.H Source File

FLTK 1.3.3

- Main Page
- Related Pages
- Modules
- Classes
- Files

- File List
- File Members

Fl_Dial.H
1 //
2 // "$Id: Fl_Dial.H 8864 2011-07-19 04:49:30Z greg.ercolano $"
3 //
4 // Dial header file for the Fast Light Tool Kit (FLTK).
5 //
6 // Copyright 1998-2010 by Bill Spitzak and others.
7 //
8 // This library is free software. Distribution and use rights are outlined in
9 // the file "COPYING" which should have been included with this file. If this
10 // file is missing or damaged, see the license at:
11 //
12 // http://www.fltk.org/COPYING.php
13 //
14 // Please report all bugs and problems on the following page:
15 //
16 // http://www.fltk.org/str.php
17 //
18
19 /* \file
20 Fl_Dial widget . */
21
22 #ifndef Fl_Dial_H
23 #define Fl_Dial_H
24
25 #ifndef Fl_Valuator_H
26 #include "Fl_Valuator.H"
27 #endif
28
29 // values for type():
30 #define FL_NORMAL_DIAL 0
31 #define FL_LINE_DIAL 1
32 #define FL_FILL_DIAL 2
47 class FL_EXPORT Fl_Dial : public Fl_Valuator {
48
49 short a1,a2;
50
51 protected:
52
53 // these allow subclasses to put the dial in a smaller area:
54 void draw(int X, int Y, int W, int H);
55 int handle(int event, int X, int Y, int W, int H);
56 void draw();
57
58 public:
59
60 int handle(int);
65 Fl_Dial(int x,int y,int w,int h, const char *l = 0);
72 short angle1() const {return a1;}
74 void angle1(short a) {a1 = a;}
76 short angle2() const {return a2;}
78 void angle2(short a) {a2 = a;}
80 void angles(short a, short b) {a1 = a; a2 = b;}
81
82 };
83
84 #endif
85
86 //
87 // End of "$Id: Fl_Dial.H 8864 2011-07-19 04:49:30Z greg.ercolano $".
88 //
Fl_Dial::angle1
short angle1() const
Sets Or gets the angles used for the minimum and maximum values.
Definition: Fl_Dial.H:72
Fl_Dial
The Fl_Dial widget provides a circular dial to control a single floating point value.
Definition: Fl_Dial.H:47
Fl_Dial::angles
void angles(short a, short b)
See short angle1() const.
Definition: Fl_Dial.H:80
Fl_Dial::angle1
void angle1(short a)
See short angle1() const.
Definition: Fl_Dial.H:74
Fl_Dial::angle2
short angle2() const
See short angle1() const.
Definition: Fl_Dial.H:76
Fl_Dial::angle2
void angle2(short a)
See short angle1() const.
Definition: Fl_Dial.H:78
- © 1998-2014 by Bill Spitzak and others.