|
fltk 1.3.0rc3
About: FLTK (Fast Light Tool Kit) is a cross-platform C++ GUI toolkit for UNIX/Linux (X11), Microsoft Windows, and MacOS X. Release candidate.
SfR Fresh Dox: fltk-1.3.0rc3-source.tar.gz ("inofficial" and yet experimental doxygen-generated source code documentation) ![]() |
#include <Fl_Dial.H>


Public Member Functions | |
| int | handle (int) |
| Fl_Dial (int x, int y, int w, int h, const char *l=0) | |
| short | angle1 () const |
| void | angle1 (short a) |
| short | angle2 () const |
| void | angle2 (short a) |
| void | angles (short a, short b) |
Protected Member Functions | |
| void | draw (int X, int Y, int W, int H) |
| int | handle (int event, int X, int Y, int W, int H) |
| void | draw () |
The Fl_Dial widget provides a circular dial to control a single floating point value.
| 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. The default type is FL_NORMAL_DIAL.
Definition at line 152 of file Fl_Dial.cxx.
References Fl_Widget::box(), FL_INACTIVE_COLOR, FL_OVAL_BOX, and Fl_Widget::selection_color().
| short Fl_Dial::angle1 | ( | ) | const [inline] |
| void Fl_Dial::angle1 | ( | short | a | ) | [inline] |
See short angle1() const
| void Fl_Dial::angle2 | ( | short | a | ) | [inline] |
See short angle1() const
| short Fl_Dial::angle2 | ( | ) | const [inline] |
See short angle1() const
| void Fl_Dial::angles | ( | short | a, |
| short | b | ||
| ) | [inline] |
| void Fl_Dial::draw | ( | void | ) | [protected, virtual] |
Draws dial at current position and size.
Implements Fl_Widget.
Definition at line 101 of file Fl_Dial.cxx.
References Fl_Widget::draw_label(), Fl_Widget::h(), Fl_Widget::w(), Fl_Widget::x(), and Fl_Widget::y().
| void Fl_Dial::draw | ( | int | X, |
| int | Y, | ||
| int | W, | ||
| int | H | ||
| ) | [protected] |
Draws dial at given position and size.
| [in] | X,Y,W,H | position and size |
Definition at line 39 of file Fl_Dial.cxx.
References _FL_ROUND_UP_BOX, Fl_Widget::active_r(), Fl_Widget::box(), Fl::box_dh(), Fl::box_dw(), Fl::box_dx(), Fl::box_dy(), Fl_Widget::color(), Fl_Widget::damage(), Fl_Widget::draw_box(), fl_arc(), fl_begin_loop(), fl_begin_polygon(), fl_circle(), fl_color(), FL_DAMAGE_ALL, fl_end_loop(), fl_end_polygon(), FL_FILL_DIAL, FL_FOREGROUND_COLOR, fl_inactive(), fl_pie(), fl_pop_matrix(), fl_push_matrix(), fl_rotate(), fl_scale(), fl_translate(), fl_vertex(), Fl_Valuator::maximum(), Fl_Valuator::minimum(), Fl_Widget::selection_color(), Fl_Widget::type(), and Fl_Valuator::value().
| int Fl_Dial::handle | ( | int | e | ) | [virtual] |
Allow subclasses to handle event based on current position and size.
Reimplemented from Fl_Widget.
Definition at line 148 of file Fl_Dial.cxx.
References Fl_Widget::h(), handle(), Fl_Widget::w(), Fl_Widget::x(), and Fl_Widget::y().
| int Fl_Dial::handle | ( | int | event, |
| int | X, | ||
| int | Y, | ||
| int | W, | ||
| int | H | ||
| ) | [protected] |
Allows subclasses to handle event based on given position and size.
| [in] | event,X,Y,W,H | event to handle, related position and size. |
Definition at line 110 of file Fl_Dial.cxx.
References Fl_Valuator::clamp(), Fl_Widget_Tracker::deleted(), Fl::event_x(), Fl::event_y(), FL_DRAG, FL_ENTER, FL_LEAVE, FL_PUSH, FL_RELEASE, Fl_Valuator::handle_drag(), Fl_Valuator::handle_push(), Fl_Valuator::handle_release(), M_PI, Fl_Valuator::maximum(), Fl_Valuator::minimum(), Fl_Valuator::round(), val, and Fl_Valuator::value().
Referenced by handle().