FLTK 1.3.11
Toggle main menu visibility
Loading...
Searching...
No Matches
Fl_Dial.H
1
//
2
// "$Id$"
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
33
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$".
88
//
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::angles
void angles(short a, short b)
See short angle1() const.
Definition
Fl_Dial.H:80
Fl_Dial::Fl_Dial
Fl_Dial(int x, int y, int w, int h, const char *l=0)
Creates a new Fl_Dial widget using the given position, size, and label string.
Definition
Fl_Dial.cxx:146
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::angle2
void angle2(short a)
See short angle1() const.
Definition
Fl_Dial.H:78
Fl_Valuator::Fl_Valuator
Fl_Valuator(int X, int Y, int W, int H, const char *L)
Creates a new Fl_Valuator widget using the given position, size, and label string.
Definition
Fl_Valuator.cxx:28
Fl_Widget::draw
virtual void draw()=0
Draws the widget.
Fl_Widget::handle
virtual int handle(int event)
Handles the specified event.
Definition
Fl_Widget.cxx:112
Fl_Widget::x
void x(int v)
Internal use only.
Definition
Fl_Widget.H:139
Fl_Widget::w
void w(int v)
Internal use only.
Definition
Fl_Widget.H:143
Fl_Widget::y
void y(int v)
Internal use only.
Definition
Fl_Widget.H:141
Fl_Widget::h
void h(int v)
Internal use only.
Definition
Fl_Widget.H:145
FL
Fl_Dial.H
Generated by
1.17.0