"Fossies" - the Fresh Open Source Software Archive

Member "fltk-1.3.3/documentation/html/Fl__Dial_8H_source.html" (3 Nov 2014, 14695 Bytes) of package /linux/misc/fltk-1.3.3-docs-html.tar.gz:


Caution: In this restricted "Fossies" environment the current HTML page may not be correctly presentated and may have some non-functional links. Alternatively you can here view or download the uninterpreted raw source code. A member file download can also be achieved by clicking within a package contents listing on the according byte size field.

FLTK 1.3.3
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 //
short angle1() const
Sets Or gets the angles used for the minimum and maximum values.
Definition: Fl_Dial.H:72
The Fl_Dial widget provides a circular dial to control a single floating point value.
Definition: Fl_Dial.H:47
void angles(short a, short b)
See short angle1() const.
Definition: Fl_Dial.H:80
void angle1(short a)
See short angle1() const.
Definition: Fl_Dial.H:74
short angle2() const
See short angle1() const.
Definition: Fl_Dial.H:76
void angle2(short a)
See short angle1() const.
Definition: Fl_Dial.H:78