From 09f3094aef152ece5bf802983d54f1642d803e0d Mon Sep 17 00:00:00 2001 From: Fabien Costantini Date: Mon, 15 Sep 2008 12:46:49 +0000 Subject: Doxygen documentation WP10 Done. Reserved WP11. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6254 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- src/Fl_Slider.cxx | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'src/Fl_Slider.cxx') 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 -- cgit v1.2.3