25#include <FL/Fl_Input.H>
26#include <FL/Fl_Repeat_Button.H>
74 Fl_Spinner(
int X,
int Y,
int W,
int H, const
char *L = 0);
78 void resize(
int X,
int Y,
int W,
int H)
FL_OVERRIDE;
81 const
char *format()
const {
return (format_); }
84 void format(
const char *f) { format_ = f; update(); }
87 double maximum()
const {
return (maximum_); }
93 double minimum()
const {
return (minimum_); }
99 void range(
double a,
double b) { minimum_ = a; maximum_ = b; }
109 double step()
const {
return (step_); }
133 void wrap(
int set) { wrap_ = set ? 1 : 0; }
139 int wrap()
const {
return wrap_; }
169 double value()
const {
return (value_); }
176 void value(
double v) { value_ = v; update(); }
This file contains type definitions and general enumerations.
int Fl_Font
A font number is an index into the internal font table.
Definition Enumerations.H:1044
unsigned int Fl_Color
An FLTK color value; see also Colors
Definition Enumerations.H:1101
int Fl_Fontsize
Size of a font in pixels.
Definition Enumerations.H:1073
Fl_Group and Fl_End classes.
The Fl_Group class is the FLTK container widget.
Definition Fl_Group.H:56
int handle(int) FL_OVERRIDE
Handles the specified event.
Definition Fl_Group.cxx:145
void draw() FL_OVERRIDE
Draws the widget.
Definition Fl_Group.cxx:926
This widget is a combination of a numerical input widget and repeat buttons.
Definition Fl_Spinner.H:37
Fl_Font textfont() const
Gets the font of the text in the input field.
Definition Fl_Spinner.H:148
void textcolor(Fl_Color c)
Sets the color of the text in the input field.
Definition Fl_Spinner.H:145
double value() const
Gets the current value of the widget.
Definition Fl_Spinner.H:169
void selection_color(Fl_Color val)
Sets the selection color of the spinner widget's input field.
Definition Fl_Spinner.H:191
void maximum_size(int m)
Sets the maximum width of the input field.
Definition Fl_Spinner.H:201
void textsize(Fl_Fontsize s)
Sets the size of the text in the input field.
Definition Fl_Spinner.H:157
double minimum() const
Gets the minimum value of the widget.
Definition Fl_Spinner.H:93
void maximum(double m)
Sets the maximum value of the widget.
Definition Fl_Spinner.H:90
Fl_Color color() const
Returns the background color of the spinner widget's input field.
Definition Fl_Spinner.H:186
void minimum(double m)
Sets the minimum value of the widget.
Definition Fl_Spinner.H:96
uchar type() const
Gets the numeric representation in the input field.
Definition Fl_Spinner.H:166
int wrap() const
Gets the wrap mode of the Fl_Spinner widget.
Definition Fl_Spinner.H:139
void textfont(Fl_Font f)
Sets the font of the text in the input field.
Definition Fl_Spinner.H:151
Fl_Color selection_color() const
Returns the selection color of the spinner widget's input field.
Definition Fl_Spinner.H:196
Fl_Fontsize textsize() const
Gets the size of the text in the input field.
Definition Fl_Spinner.H:154
void format(const char *f)
Sets the format string for the value.
Definition Fl_Spinner.H:84
int maximum_size() const
Returns the maximum width of the input field.
Definition Fl_Spinner.H:206
void range(double a, double b)
Sets the minimum and maximum values for the widget.
Definition Fl_Spinner.H:99
double step() const
Gets the amount to change the value when the user clicks a button.
Definition Fl_Spinner.H:109
double maximum() const
Gets the maximum value of the widget.
Definition Fl_Spinner.H:87
void value(double v)
Sets the current value of the input widget.
Definition Fl_Spinner.H:176
void wrap(int set)
Sets whether the spinner wraps around at upper and lower bounds.
Definition Fl_Spinner.H:133
void color(Fl_Color v)
Sets the background color of the spinner widget's input field.
Definition Fl_Spinner.H:181
Fl_Color textcolor() const
Gets the color of the text in the input field.
Definition Fl_Spinner.H:142
#define FL_OVERRIDE
This macro makes it safe to use the C++11 keyword override with older compilers.
Definition fl_attr.h:46
unsigned char uchar
unsigned char
Definition fl_types.h:30