fltk
1.3.5-source
About: FLTK (Fast Light Tool Kit) is a cross-platform C++ GUI toolkit for UNIX/Linux (X11), Microsoft Windows, and MacOS X. Fossies Dox: fltk-1.3.5-source.tar.bz2 ("inofficial" and yet experimental doxygen-generated source code documentation) 
|
Go to the documentation of this file. 53 #if FLTK_ABI_VERSION >= 10301 70 if (v < sb->minimum_) {
101 if (format_[0]==
'%'&&format_[1]==
'.'&&format_[2]==
'*') {
105 char temp[64], *sp = temp;
106 sprintf(temp,
"%.12f", step_);
109 while (sp>temp && *sp==
'0') sp--;
110 while (sp>temp && (*sp>=
'0' && *sp<=
'9')) { sp--; c++; }
111 sprintf(s, format_, c, value_);
113 sprintf(s, format_, value_);
125 Fl_Spinner(
int X,
int Y,
int W,
int H,
const char *L = 0);
128 const char *
format() {
return (format_); }
130 void format(
const char *
f) { format_ =
f; update(); }
137 up_button_.do_callback();
140 down_button_.do_callback();
165 void range(
double a,
double b) { minimum_ = a; maximum_ =
b; }
170 up_button_.resize(X + W -
H / 2 - 2,
Y,
H / 2 + 2,
H / 2);
171 down_button_.resize(X + W -
H / 2 - 2,
Y +
H -
H / 2,
179 double step()
const {
return (step_); }
230 double value()
const {
return (value_); }
236 void value(
double v) { value_ = v; update(); }
255 #endif // !Fl_Spinner_H
#define FL_Up
The up arrow key.
void resize(int X, int Y, int W, int H)
void textsize(Fl_Fontsize s)
void selection_color(Fl_Color val)
static void sb_cb(Fl_Widget *w, Fl_Spinner *sb)
Fl_Color textcolor() const
Fl_Color selection_color() const
#define FL_Down
The down arrow key.
Fl_Repeat_Button up_button_
void format(const char *f)
void resize(int, int, int, int)
Fl_Repeat_Button down_button_
Fl_Fontsize textsize() const
void textcolor(Fl_Color c)
void range(double a, double b)