24 #include <FL/Fl_Group.H> 25 #include <FL/Fl_Input.H> 26 #include <FL/Fl_Repeat_Button.H> 72 Fl_Spinner(
int X,
int Y,
int W,
int H,
const char *L = 0);
76 void resize(
int X,
int Y,
int W,
int H);
79 const char *
format()
const {
return (format_); }
82 void format(
const char *f) { format_ = f; update(); }
85 double maximum()
const {
return (maximum_); }
91 double minimum()
const {
return (minimum_); }
97 void range(
double a,
double b) { minimum_ = a; maximum_ = b; }
107 double step()
const {
return (step_); }
131 void wrap(
int set) { wrap_ =
set ? 1 : 0; }
137 int wrap()
const {
return wrap_; }
167 double value()
const {
return (value_); }
174 void value(
double v) { value_ = v; update(); }
207 #endif // !Fl_Spinner_H
void maximum_size(int m)
Sets the maximum width of the input field.
Definition: Fl_Spinner.H:199
double step() const
Gets the amount to change the value when the user clicks a button.
Definition: Fl_Spinner.H:107
Fl_Font textfont() const
Gets the font of the text in the input field.
Definition: Fl_Spinner.H:146
void textsize(Fl_Fontsize s)
Sets the size of the text in the input field.
Definition: Fl_Spinner.H:155
void wrap(int set)
Sets whether the spinner wraps around at upper and lower bounds.
Definition: Fl_Spinner.H:131
Fl_Color selection_color() const
Returns the selection color of the spinner widget's input field.
Definition: Fl_Spinner.H:194
Fl_Color textcolor() const
Gets the color of the text in the input field.
Definition: Fl_Spinner.H:140
void selection_color(Fl_Color val)
Sets the selection color of the spinner widget's input field.
Definition: Fl_Spinner.H:189
int wrap() const
Gets the wrap mode of the Fl_Spinner widget.
Definition: Fl_Spinner.H:137
uchar type() const
Gets the numeric representation in the input field.
Definition: Fl_Spinner.H:164
Fl_Color color() const
Returns the background color of the spinner widget's input field.
Definition: Fl_Spinner.H:184
void value(double v)
Sets the current value of the input widget.
Definition: Fl_Spinner.H:174
double value() const
Gets the current value of the widget.
Definition: Fl_Spinner.H:167
The Fl_Group class is the FLTK container widget.
Definition: Fl_Group.H:42
This file contains type definitions and general enumerations.
void textfont(Fl_Font f)
Sets the font of the text in the input field.
Definition: Fl_Spinner.H:149
void minimum(double m)
Sets the minimum value of the widget.
Definition: Fl_Spinner.H:94
int Fl_Fontsize
Size of a font in pixels.
Definition: Enumerations.H:1014
This widget is a combination of a numerical input widget and repeat buttons.
Definition: Fl_Spinner.H:37
double maximum() const
Gets the maximum value of the widget.
Definition: Fl_Spinner.H:85
void maximum(double m)
Sets the maximum value of the widget.
Definition: Fl_Spinner.H:88
int maximum_size() const
Returns the maximum width of the input field.
Definition: Fl_Spinner.H:204
unsigned int Fl_Color
An FLTK color value; see also Colors.
Definition: Enumerations.H:1042
int Fl_Font
A font number is an index into the internal font table.
Definition: Enumerations.H:985
void color(Fl_Color v)
Sets the background color of the spinner widget's input field.
Definition: Fl_Spinner.H:179
void format(const char *f)
Sets the format string for the value.
Definition: Fl_Spinner.H:82
void range(double a, double b)
Sets the minimum and maximum values for the widget.
Definition: Fl_Spinner.H:97
double minimum() const
Gets the minimum value of the widget.
Definition: Fl_Spinner.H:91
const char * format() const
Returns the format string for the value.
Definition: Fl_Spinner.H:79
void textcolor(Fl_Color c)
Sets the color of the text in the input field.
Definition: Fl_Spinner.H:143
Fl_Fontsize textsize() const
Gets the size of the text in the input field.
Definition: Fl_Spinner.H:152
unsigned char uchar
unsigned char
Definition: fl_types.h:28