diff options
| author | Fabien Costantini <fabien@onepost.net> | 2008-09-15 12:46:49 +0000 |
|---|---|---|
| committer | Fabien Costantini <fabien@onepost.net> | 2008-09-15 12:46:49 +0000 |
| commit | 09f3094aef152ece5bf802983d54f1642d803e0d (patch) | |
| tree | e59f10539bf9709ed3a236e05d98605150add316 /src/Fl_Slider.cxx | |
| parent | 730dc6367d0970f56b3bd4e0b3bd6842ffa27443 (diff) | |
Doxygen documentation WP10 Done. Reserved WP11.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6254 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/Fl_Slider.cxx')
| -rw-r--r-- | src/Fl_Slider.cxx | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/Fl_Slider.cxx b/src/Fl_Slider.cxx index be39e9ce8..c1966567e 100644 --- a/src/Fl_Slider.cxx +++ b/src/Fl_Slider.cxx @@ -36,12 +36,20 @@ void Fl_Slider::_Fl_Slider() { slider_ = 0; // FL_UP_BOX; } +/** + Creates a new Fl_Slider widget using the given position, + size, and label string. The default boxtype is FL_DOWN_BOX. +*/ Fl_Slider::Fl_Slider(int X, int Y, int W, int H, const char* l) : Fl_Valuator(X, Y, W, H, l) { box(FL_DOWN_BOX); _Fl_Slider(); } +/** + Creates a new Fl_Slider widget using the given position, + size, and label string. The default boxtype is FL_DOWN_BOX. +*/ Fl_Slider::Fl_Slider(uchar t, int X, int Y, int W, int H, const char* l) : Fl_Valuator(X, Y, W, H, l) { type(t); @@ -50,6 +58,7 @@ Fl_Slider::Fl_Slider(uchar t, int X, int Y, int W, int H, const char* l) _Fl_Slider(); } +/** See float Fl_Slider::slider_size() const */ void Fl_Slider::slider_size(double v) { if (v < 0) v = 0; if (v > 1) v = 1; @@ -59,6 +68,10 @@ void Fl_Slider::slider_size(double v) { } } +/** + Sets the minimum (a) and maximum (b) values for the valuator widget. + if at least one of the values is changed, a partial redraw is asked. +*/ void Fl_Slider::bounds(double a, double b) { if (minimum() != a || maximum() != b) { Fl_Valuator::bounds(a, b); @@ -66,6 +79,7 @@ void Fl_Slider::bounds(double a, double b) { } } +/** Returns Fl_Scrollbar::value(). */ int Fl_Slider::scrollvalue(int p, int W, int t, int l) { // p = position, first line displayed // w = window, number of lines displayed |
