~ubuntu-branches/ubuntu/edgy/fltk1.1/edgy

« back to all changes in this revision

Viewing changes to documentation/Fl_Dial.html

  • Committer: Bazaar Package Importer
  • Author(s): Aaron M. Ucko
  • Date: 2004-04-14 21:55:19 UTC
  • Revision ID: james.westby@ubuntu.com-20040414215519-avj0ojjkjni1s4ty
Tags: upstream-1.1.4+1.1.5rc1
ImportĀ upstreamĀ versionĀ 1.1.4+1.1.5rc1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<HTML><BODY>
 
2
<!-- NEW PAGE -->
 
3
<H2><A name=Fl_Dial>class Fl_Dial</A></H2>
 
4
<HR>
 
5
<H3>Class Hierarchy</H3>
 
6
<UL>
 
7
<PRE>
 
8
<A href=Fl_Valuator.html#Fl_Valuator>Fl_Valuator</A>
 
9
   |
 
10
   +----<B>Fl_Dial</B>
 
11
</PRE>
 
12
</UL>
 
13
<H3>Include Files</H3>
 
14
<UL>
 
15
<PRE>
 
16
#include &lt;FL/Fl_Dial.H&gt;
 
17
</PRE>
 
18
</UL>
 
19
<H3>Description</H3>
 
20
 The <TT>Fl_Dial</TT> widget provides a circular dial to control a
 
21
single floating point value.
 
22
<P ALIGN=CENTER><IMG src="dial.gif" ALT="Fl_Dial widget."></P>
 
23
<H3>Methods</H3>
 
24
<UL>
 
25
<LI><A href=#Fl_Dial.Fl_Dial>Fl_Dial</A></LI>
 
26
<LI><A href=#Fl_Dial.~Fl_Dial>~Fl_Dial</A></LI>
 
27
<LI><A href=#Fl_Dial.angles>angle1</A></LI>
 
28
<LI><A href=#Fl_Dial.angles>angle2</A></LI>
 
29
<LI><A href=#Fl_Dial.angles>angles</A></LI>
 
30
<LI><A href=#Fl_Dial.type>type</A></LI>
 
31
</UL>
 
32
<H4><A name=Fl_Dial.Fl_Dial>Fl_Dial::Fl_Dial(int x, int y, int w, int
 
33
h, const char *label = 0)</A></H4>
 
34
 Creates a new <TT>Fl_Dial</TT> widget using the given position, size,
 
35
and label string. The default type is <TT>FL_NORMAL_DIAL</TT>.
 
36
<H4><A name=Fl_Dial.~Fl_Dial>virtual Fl_Dial::~Fl_Dial()</A></H4>
 
37
 Destroys the valuator.
 
38
 
 
39
<H4>
 
40
<A name=Fl_Dial.angles>
 
41
short Fl_Dial::angle1() const;<br>
 
42
void Fl_Dial::angle1(short);<br>
 
43
short Fl_Dial::angle2() const;<br>
 
44
void Fl_Dial::angle2(short);<br>
 
45
void Fl_Dial::angles(short a, short b);
 
46
</A>
 
47
</H4>
 
48
 
 
49
Sets the angles used for the minimum and maximum values.  The default
 
50
values are 45 and 315 (0 degrees is straight down and the angles
 
51
progress clockwise).  Normally angle1 is less than angle2, but if you
 
52
reverse them the dial moves counter-clockwise.
 
53
 
 
54
<H4><A name=Fl_Dial.type>type(uchar)</A></H4>
 
55
 Sets the type of the dial to:
 
56
<UL>
 
57
<LI><TT>FL_NORMAL_DIAL</TT> - Draws a normal dial with a knob. </LI>
 
58
<LI><TT>FL_LINE_DIAL</TT> - Draws a dial with a line. </LI>
 
59
<LI><TT>FL_FILL_DIAL</TT> - Draws a dial with a filled arc. </LI>
 
60
</UL>
 
61
</BODY></HTML>