From 989b0cd372cf00775950c74d5455942671537fe4 Mon Sep 17 00:00:00 2001 From: Michael R Sweet Date: Tue, 16 Apr 2002 12:14:27 +0000 Subject: Update changelog. Add missing methods to Fl_Valuator docos. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2091 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- documentation/Fl_Valuator.html | 201 +++++++++++++++++++++++++---------------- 1 file changed, 123 insertions(+), 78 deletions(-) (limited to 'documentation') diff --git a/documentation/Fl_Valuator.html b/documentation/Fl_Valuator.html index e72d7cce3..4903c144c 100644 --- a/documentation/Fl_Valuator.html +++ b/documentation/Fl_Valuator.html @@ -36,101 +36,146 @@ defined as zero.

- -
+

Fl_Valuator::Fl_Valuator(int x, int y, int w, int h, const char *label = 0)

- Creates a new Fl_Valuator widget using the given position, + +

Creates a new Fl_Valuator widget using the given position, size, and label string. The default boxtype is FL_NO_BOX. -

virtual Fl_Valuator::~Fl_Valuator() -

- Destroys the valuator. -

double Fl_Valuator::value() const -
int Fl_Valuator::value(double)

- Get or set the current value. The new value is not clamped or -otherwise changed before storing it. Use clamp() or round() - to modify the value before calling this if you want. If the new value -is different than the current one the object is redrawn. The initial -value is zero. -

double Fl_Valuator::minimum() const -
void Fl_Valuator::minimum(double)

- Gets or sets the minimum value for the valuator. + +

virtual Fl_Valuator::~Fl_Valuator()

+ +

Destroys the valuator. + +

void Fl_Valuator::bounds(double a, double b);

+ +

Sets the minimum (a) and maximum (b) values for +the valuator widget. + +

int Fl_Valuator::changed() const

+ +

This value is true if the user has moved the slider. It is +turned off by value(x) and just before doing a callback +(the callback can turn it back on if desired). + +

double Fl_Valuator::clamp(double)

+ +

Clamps the passed value to the valuator range. + +

void Fl_Valuator::clear_changed()

+ +

Clears the changed() flag. + +

int Fl_Valuator::format(char *)

+ +

Format the passed value to show enough digits so that for the +current step value. If the step has been set to zero then it +does a %g format. The characters are written into the +passed buffer. + +

double +Fl_Valuator::increment(double,int n)

+ +

Adds n times the step value to the passed value. If +step was set to zero it uses fabs(maximum() - minimum()) / +100. +

double Fl_Valuator::maximum() const -
void Fl_Valuator::maximum(double)

- Gets or sets the maximum value for the valuator. +
void Fl_Valuator::maximum(double) + +

Gets or sets the maximum value for the valuator. + +

double Fl_Valuator::minimum() const +
void Fl_Valuator::minimum(double)

+ +

Gets or sets the minimum value for the valuator. + +

void Fl_Valuator::precision(int digits);

+ +

Sets the step value to 1/10digits. +

void Fl_Valuator::range(double min, double max);

- Sets the minimum and maximum values for the valuator. When the user -manipulates the widget, the value is limited to this range. This -clamping is done after rounding to the step value (this makes a -difference if the range is not a multiple of the step). -

The minimum may be greater than the maximum. This has the effect of -"reversing" the object so the larger values are in the opposite -direction. This also switches which end of the filled sliders is -filled.

-

Some widgets consider this a "soft" range. This means they will -stop at the range, but if the user releases and grabs the control again -and tries to move it further, it is allowed.

-

The range may affect the display. You must redraw() the -widget after changing the range.

-

double Fl_Valuator::step() const -
void Fl_Valuator::step(double) -
void Fl_Valuator::step(int A, int B)

- Get or set the step value. As the user moves the mouse the value is -rounded to the nearest multiple of the step value. This is done -before clamping it to the range. For most objects the default step -is zero. -

For precision the step is stored as the ratio of two integers, A/B. - You can set these integers directly. Currently setting a floating -point value sets the nearest A/1 or 1/B value possible.

-

int Fl_Valuator::format(char *) -

-Format the passed value to show enough digits so that for the current -step value. If the step has been set to zero then it does a %g -format. The characters are written into the passed buffer. + +

Sets the minimum and maximum values for the valuator. When +the user manipulates the widget, the value is limited to this +range. This clamping is done after rounding to the step +value (this makes a difference if the range is not a multiple of +the step). + +

The minimum may be greater than the maximum. This has the +effect of "reversing" the object so the larger values +are in the opposite direction. This also switches which end of +the filled sliders is filled.

+ +

Some widgets consider this a "soft" range. This +means they will stop at the range, but if the user releases and +grabs the control again and tries to move it further, it is +allowed.

+ +

The range may affect the display. You must redraw() +the widget after changing the range.

+

double Fl_Valuator::round(double)

-Round the passed value to the nearest step increment. Does nothing if -step is zero. -

double Fl_Valuator::clamp(double)

-Clamp the passed value to the valuator range. -

double -Fl_Valuator::increment(double,int n)

- Adds n times the step value to the passed value. If step was -set to zero it uses fabs(maximum() - minimum()) / 100. -

int Fl_Widget::changed() const

- This value is true if the user has moved the slider. It is turned off -by value(x) and just before doing a callback (the callback can -turn it back on if desired). -

void Fl_Widget::set_changed()

-Sets the changed() flag. -

void Fl_Widget::clear_changed() -

- Clears the changed() flag. + +

Round the passed value to the nearest step increment. Does +nothing if step is zero. + +

void Fl_Valuator::set_changed()

+ +

Sets the changed() flag. + +

double Fl_Valuator::step() const +
void Fl_Valuator::step(double) +
void Fl_Valuator::step(int A, int B)

+ +

Gets or sets the step value. As the user moves the mouse the +value is rounded to the nearest multiple of the step value. This +is done before clamping it to the range. For most widgets +the default step is zero. + +

For precision the step is stored as the ratio of two +integers, A/B. You can set these integers directly. Currently +setting a floating point value sets the nearest A/1 or 1/B value +possible.

+ +

double Fl_Valuator::value() const +
int Fl_Valuator::value(double)

+ +

Gets or sets the current value. The new value is not +clamped or otherwise changed before storing it. Use +clamp() or round() to modify the value before +calling value(). The widget is redrawn if the new value +is different than the current one. The initial value is zero. + + + -- cgit v1.2.3