summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/Fl_Adjuster.cxx7
-rw-r--r--src/Fl_Roller.cxx5
-rw-r--r--src/Fl_Slider.cxx14
-rw-r--r--src/Fl_Value_Input.cxx5
-rw-r--r--src/Fl_Value_Output.cxx5
-rw-r--r--src/Fl_Value_Slider.cxx5
6 files changed, 40 insertions, 1 deletions
diff --git a/src/Fl_Adjuster.cxx b/src/Fl_Adjuster.cxx
index 5c5e46f3a..cbc869488 100644
--- a/src/Fl_Adjuster.cxx
+++ b/src/Fl_Adjuster.cxx
@@ -25,7 +25,6 @@
// http://www.fltk.org/str.php
//
-
#include <FL/Fl.H>
#include <FL/Fl_Adjuster.H>
#include <FL/Fl_Bitmap.H>
@@ -157,6 +156,12 @@ int Fl_Adjuster::handle(int event) {
return 0;
}
+/**
+ Creates a new Fl_Adjuster widget using the given position,
+ size, and label string. It looks best if one of the dimensions is 3
+ times the other.
+ <P> Inherited destructor destroys the Valuator.
+*/
Fl_Adjuster::Fl_Adjuster(int X, int Y, int W, int H, const char* l)
: Fl_Valuator(X, Y, W, H, l) {
box(FL_UP_BOX);
diff --git a/src/Fl_Roller.cxx b/src/Fl_Roller.cxx
index 9a4947ef6..e12651e9b 100644
--- a/src/Fl_Roller.cxx
+++ b/src/Fl_Roller.cxx
@@ -169,6 +169,11 @@ void Fl_Roller::draw() {
if (Fl::focus() == this) draw_focus(FL_THIN_UP_FRAME, x(), y(), w(), h());
}
+/**
+ Creates a new Fl_Roller widget using the given position,
+ size, and label string. The default boxtype is FL_NO_BOX.
+ <P>Inherited destructor destroys the valuator.
+*/
Fl_Roller::Fl_Roller(int X,int Y,int W,int H,const char* L)
: Fl_Valuator(X,Y,W,H,L) {
box(FL_UP_BOX);
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
diff --git a/src/Fl_Value_Input.cxx b/src/Fl_Value_Input.cxx
index d6dc6ab22..accd79407 100644
--- a/src/Fl_Value_Input.cxx
+++ b/src/Fl_Value_Input.cxx
@@ -115,6 +115,11 @@ int Fl_Value_Input::handle(int event) {
}
}
+/**
+ Creates a new Fl_Value_Input widget using the given
+ position, size, and label string. The default boxtype is
+ FL_DOWN_BOX.
+*/
Fl_Value_Input::Fl_Value_Input(int X, int Y, int W, int H, const char* l)
: Fl_Valuator(X, Y, W, H, l), input(X, Y, W, H, 0) {
soft_ = 0;
diff --git a/src/Fl_Value_Output.cxx b/src/Fl_Value_Output.cxx
index 90df41847..88aee2023 100644
--- a/src/Fl_Value_Output.cxx
+++ b/src/Fl_Value_Output.cxx
@@ -88,6 +88,11 @@ int Fl_Value_Output::handle(int event) {
}
}
+/**
+ Creates a new Fl_Value_Output widget using the given
+ position, size, and label string. The default boxtype is FL_NO_BOX.
+ <P> Inherited destructor destroys the Valuator.
+*/
Fl_Value_Output::Fl_Value_Output(int X, int Y, int W, int H,const char *l)
: Fl_Valuator(X,Y,W,H,l) {
box(FL_NO_BOX);
diff --git a/src/Fl_Value_Slider.cxx b/src/Fl_Value_Slider.cxx
index ac7ca2efb..a4d553d1d 100644
--- a/src/Fl_Value_Slider.cxx
+++ b/src/Fl_Value_Slider.cxx
@@ -30,6 +30,11 @@
#include <FL/fl_draw.H>
#include <math.h>
+/**
+ Creates a new Fl_Value_Slider widget using the given
+ position, size, and label string. The default boxtype is FL_DOWN_BOX
+ .
+*/
Fl_Value_Slider::Fl_Value_Slider(int X, int Y, int W, int H, const char*l)
: Fl_Slider(X,Y,W,H,l) {
step(1,100);