46#define FL_WHEN_NEEDED FL_AUTO
54#define FL_LCOL FL_BLACK
55#define FL_COL1 FL_GRAY
56#define FL_MCOL FL_LIGHT1
57#define FL_LEFT_BCOL FL_LIGHT3
58#define FL_TOP_BCOL FL_LIGHT2
59#define FL_BOTTOM_BCOL FL_DARK2
60#define FL_RIGHT_BCOL FL_DARK3
61#define FL_INACTIVE FL_INACTIVE_COLOR
62#define FL_INACTIVE_COL FL_INACTIVE_COLOR
63#define FL_FREE_COL1 FL_FREE_COLOR
64#define FL_FREE_COL2 ((Fl_Color)(FL_FREE_COLOR+1))
65#define FL_FREE_COL3 ((Fl_Color)(FL_FREE_COLOR+2))
66#define FL_FREE_COL4 ((Fl_Color)(FL_FREE_COLOR+3))
67#define FL_FREE_COL5 ((Fl_Color)(FL_FREE_COLOR+4))
68#define FL_FREE_COL6 ((Fl_Color)(FL_FREE_COLOR+5))
69#define FL_FREE_COL7 ((Fl_Color)(FL_FREE_COLOR+6))
70#define FL_FREE_COL8 ((Fl_Color)(FL_FREE_COLOR+7))
71#define FL_FREE_COL9 ((Fl_Color)(FL_FREE_COLOR+8))
72#define FL_FREE_COL10 ((Fl_Color)(FL_FREE_COLOR+9))
73#define FL_FREE_COL11 ((Fl_Color)(FL_FREE_COLOR+10))
74#define FL_FREE_COL12 ((Fl_Color)(FL_FREE_COLOR+11))
75#define FL_FREE_COL13 ((Fl_Color)(FL_FREE_COLOR+12))
76#define FL_FREE_COL14 ((Fl_Color)(FL_FREE_COLOR+13))
77#define FL_FREE_COL15 ((Fl_Color)(FL_FREE_COLOR+14))
78#define FL_FREE_COL16 ((Fl_Color)(FL_FREE_COLOR+15))
79#define FL_TOMATO ((Fl_Color)(131))
80#define FL_INDIANRED ((Fl_Color)(164))
81#define FL_SLATEBLUE ((Fl_Color)(195))
82#define FL_DARKGOLD ((Fl_Color)(84))
83#define FL_PALEGREEN ((Fl_Color)(157))
84#define FL_ORCHID ((Fl_Color)(203))
85#define FL_DARKCYAN ((Fl_Color)(189))
86#define FL_DARKTOMATO ((Fl_Color)(113))
87#define FL_WHEAT ((Fl_Color)(174))
89#define FL_ALIGN_BESIDE FL_ALIGN_INSIDE
91#define FL_PUP_TOGGLE 2
92#define FL_PUP_INACTIVE 1
93#define FL_NO_FRAME FL_NO_BOX
94#define FL_ROUNDED3D_UPBOX FL_ROUND_UP_BOX
95#define FL_ROUNDED3D_DOWNBOX FL_ROUND_DOWN_BOX
96#define FL_OVAL3D_UPBOX FL_ROUND_UP_BOX
97#define FL_OVAL3D_DOWNBOX FL_ROUND_DOWN_BOX
100#define FL_LEFTMOUSE 1
102#define FL_MIDDLEMOUSE 2
104#define FL_RIGHTMOUSE 3
108#define FL_INVALID_STYLE 255
109#define FL_NORMAL_STYLE FL_HELVETICA
110#define FL_BOLD_STYLE FL_HELVETICA_BOLD
111#define FL_ITALIC_STYLE FL_HELVETICA_ITALIC
112#define FL_BOLDITALIC_STYLE FL_HELVETICA_BOLD_ITALIC
113#define FL_FIXED_STYLE FL_COURIER
114#define FL_FIXEDBOLD_STYLE FL_COURIER_BOLD
115#define FL_FIXEDITALIC_STYLE FL_COURIER_ITALIC
116#define FL_FIXEDBOLDITALIC_STYLE FL_COURIER_BOLD_ITALIC
117#define FL_TIMES_STYLE FL_TIMES
118#define FL_TIMESBOLD_STYLE FL_TIMES_BOLD
119#define FL_TIMESITALIC_STYLE FL_TIMES_ITALIC
120#define FL_TIMESBOLDITALIC_STYLE FL_TIMES_BOLD_ITALIC
123#define FL_SHADOW_STYLE (FL_SHADOW_LABEL<<8)
124#define FL_ENGRAVED_STYLE (FL_ENGRAVED_LABEL<<8)
125#define FL_EMBOSSED_STYLE (FL_EMBOSSED_LABEL<<0)
128#define FL_TINY_SIZE 8
129#define FL_SMALL_SIZE 11
131#define FL_MEDIUM_SIZE 18
132#define FL_LARGE_SIZE 24
133#define FL_HUGE_SIZE 32
134#define FL_DEFAULT_SIZE FL_SMALL_SIZE
135#define FL_TINY_FONT FL_TINY_SIZE
136#define FL_SMALL_FONT FL_SMALL_SIZE
137#define FL_NORMAL_FONT FL_NORMAL_SIZE
138#define FL_MEDIUM_FONT FL_MEDIUM_SIZE
139#define FL_LARGE_FONT FL_LARGE_SIZE
140#define FL_HUGE_FONT FL_HUGE_SIZE
141#define FL_NORMAL_FONT1 FL_SMALL_FONT
142#define FL_NORMAL_FONT2 FL_NORMAL_FONT
143#define FL_DEFAULT_FONT FL_SMALL_FONT
145#define FL_RETURN_END_CHANGED FL_WHEN_RELEASE
146#define FL_RETURN_CHANGED FL_WHEN_CHANGED
147#define FL_RETURN_END FL_WHEN_RELEASE_ALWAYS
148#define FL_RETURN_ALWAYS (FL_WHEN_CHANGED|FL_WHEN_NOT_CHANGED)
150#define FL_BOUND_WIDTH 3
158#define FL_CMD_OPT void
159extern FL_EXPORT
void fl_initialize(
int*,
char*[],
const char*, FL_CMD_OPT*,
int);
160inline void fl_finish() {}
162typedef void (*FL_IO_CALLBACK) (FL_SOCKET,
void*);
163inline void fl_add_io_callback(
int fd,
short w, FL_IO_CALLBACK cb,
void* v) {
165inline void fl_remove_io_callback(
int fd,
short, FL_IO_CALLBACK) {
169inline void fl_add_timeout(
long msec,
void (*cb)(
void*),
void* v) {
171inline void fl_remove_timeout(
int) {}
174inline void fl_set_idle_callback(
void (*cb)()) {
Fl::set_idle(cb);}
178inline Fl_Widget* fl_do_only_forms(
void) {
return fl_do_forms();}
179inline Fl_Widget* fl_check_only_forms(
void) {
return fl_check_forms();}
182inline void fl_freeze_object(
Fl_Widget*) {}
183inline void fl_unfreeze_object(
Fl_Widget*) {}
185inline void fl_unfreeze_form(
Fl_Window*) {}
186inline void fl_freeze_all_forms() {}
187inline void fl_unfreeze_all_forms() {}
191#define fl_set_object_focus fl_set_focus_object
204inline void fl_set_object_lstyle(
Fl_Widget* o,
int a) {
207#define fl_set_object_lcolor fl_set_object_lcol
209#define fl_set_object_align fl_set_object_lalign
213inline void fl_set_object_size(
Fl_Widget* o,
int w,
int h) {o->
size(w,h);}
214inline void fl_set_object_geometry(
Fl_Widget* o,
int x,
int y,
int w,
int h) {o->
resize(x,y,w,h);}
216inline void fl_get_object_geometry(
Fl_Widget* o,
int*x,
int*y,
int*w,
int*h) {
217 *x = o->
x(); *y = o->
y(); *w = o->
w(); *h = o->
h();}
218inline void fl_get_object_position(
Fl_Widget* o,
int*x,
int*y) {
219 *x = o->
x(); *y = o->
y();}
221typedef void (*Forms_CB)(
Fl_Widget*, long);
222inline void fl_set_object_callback(
Fl_Widget*o,Forms_CB c,
long a) {o->
callback(c,a);}
223#define fl_set_call_back fl_set_object_callback
226inline void fl_set_object_return(
Fl_Widget* o,
int v) {
232inline void fl_free_object(
Fl_Widget* x) {
delete x;}
246inline int fl_get_border_width() {
return 3;}
247inline void fl_set_border_width(
int) {}
248inline void fl_set_object_dblbuffer(
Fl_Widget*,
int) {}
249inline void fl_set_form_dblbuffer(
Fl_Window*,
int) {}
254inline void fl_free_form(
Fl_Window* x) {
delete x;}
255inline void fl_redraw_form(
Fl_Window* f) {f->redraw();}
262FL_EXPORT
void fl_end_form();
263inline void fl_addto_form(
Fl_Window* f) {f->begin();}
267#define resizebox _ddfdesign_kludge()
269inline void fl_scale_form(
Fl_Window* f,
double x,
double y) {
270 f->resizable(f); f->size(
int(f->w()*x),
int(f->h()*y));}
271inline void fl_set_form_position(
Fl_Window* f,
int x,
int y) {f->position(x,y);}
272inline void fl_set_form_size(
Fl_Window* f,
int w,
int h) {f->size(w,h);}
273inline void fl_set_form_geometry(
Fl_Window* f,
int x,
int y,
int w,
int h) {
275#define fl_set_initial_placement fl_set_form_geometry
276inline void fl_adjust_form_size(
Fl_Window*) {}
278FL_EXPORT
void fl_show_form(
Fl_Window* f,
int p,
int b,
const char* n);
283 FL_PLACE_POSITION = 4,
285 FL_PLACE_GEOMETRY =16,
286 FL_PLACE_ASPECT = 32,
287 FL_PLACE_FULLSCREEN=64,
288 FL_PLACE_HOTSPOT = 128,
289 FL_PLACE_ICONIC = 256,
290 FL_FREE_SIZE=(1<<14),
293#define FL_PLACE_FREE_CENTER (FL_PLACE_CENTER|FL_FREE_SIZE)
294#define FL_PLACE_CENTERFREE (FL_PLACE_CENTER|FL_FREE_SIZE)
301inline void fl_set_form_hotspot(
Fl_Window* w,
int x,
int y) {w->hotspot(x,y);}
303extern FL_EXPORT
char fl_flip;
304inline void fl_flip_yorigin() {fl_flip = 1;}
306#define fl_prepare_form_window fl_show_form
307inline void fl_show_form_window(
Fl_Window*) {}
309inline void fl_raise_form(
Fl_Window* f) {f->show();}
311inline void fl_hide_form(
Fl_Window* f) {f->hide();}
312inline void fl_pop_form(
Fl_Window* f) {f->show();}
314extern FL_EXPORT
char fl_modal_next;
315inline void fl_activate_all_forms() {}
316inline void fl_deactivate_all_forms() {fl_modal_next = 1;}
317inline void fl_deactivate_form(
Fl_Window*w) {w->deactivate();}
318inline void fl_activate_form(
Fl_Window*w) {w->activate();}
320inline void fl_set_form_title(
Fl_Window* f,
const char* s) {f->label(s);}
321inline void fl_title_form(
Fl_Window* f,
const char* s) {f->label(s);}
324inline void fl_set_form_callback(
Fl_Window* f,Forms_FormCB c) {f->callback(c);}
325#define fl_set_form_call_back fl_set_form_callback
327inline void fl_init() {}
328FL_EXPORT
void fl_set_graphics_mode(
int,
int);
330inline int fl_form_is_visible(
Fl_Window* f) {
return f->visible();}
333#define fl_mousebutton fl_mouse_button
336#define fl_malloc malloc
337#define fl_calloc calloc
338#define fl_realloc realloc
348inline void fl_drw_text(
Fl_Align align,
int x,
int y,
int w,
int h,
357inline void fl_drw_text_beside(
Fl_Align align,
int x,
int y,
int w,
int h,
369#define fl_set_clipping(x,y,w,h) fl_push_clip(x,y,w,h)
370#define fl_unset_clipping() fl_pop_clip()
378#define forms_constructor(type,name) \
379inline type* name(uchar t,int x,int y,int w,int h,const char* l) { \
380 return (type*)(fl_add_new(t, new type(x,y,w,h,l)));}
381#define forms_constructort(type,name) \
382inline type* name(uchar t,int x,int y,int w,int h,const char* l) { \
383 return (type*)(fl_add_new(new type(t,x,y,w,h,l)));}
384#define forms_constructorb(type,name) \
385inline type* name(Fl_Boxtype t,int x,int y,int w,int h,const char* l) { \
386 return (type*)(fl_add_new(new type(t,x,y,w,h,l)));}
388#include "Fl_FormsBitmap.H"
389#define FL_NORMAL_BITMAP FL_NO_BOX
391inline void fl_set_bitmap_data(
Fl_Widget* o,
int w,
int h,
const uchar* b) {
395#include "Fl_FormsPixmap.H"
396#define FL_NORMAL_PIXMAP FL_NO_BOX
398inline void fl_set_pixmap_data(
Fl_Widget* o,
char*
const* b) {
406forms_constructorb(
Fl_Box, fl_add_box)
408#include "Fl_Browser.H"
411inline void fl_clear_browser(
Fl_Widget* o) {
413inline void fl_add_browser_line(
Fl_Widget* o,
const char* s) {
415inline void fl_addto_browser(
Fl_Widget* o,
const char* s) {
419inline void fl_insert_browser_line(
Fl_Widget* o,
int n,
const char* s) {
421inline void fl_delete_browser_line(
Fl_Widget* o,
int n) {
423inline void fl_replace_browser_line(
Fl_Widget* o,
int n,
const char* s) {
425inline char* fl_get_browser_line(
Fl_Widget* o,
int n) {
427inline int fl_load_browser(
Fl_Widget* o,
const char* f) {
429inline void fl_select_browser_line(
Fl_Widget* o,
int n) {
431inline void fl_deselect_browser_line(
Fl_Widget* o,
int n) {
433inline void fl_deselect_browser(
Fl_Widget* o) {
435inline int fl_isselected_browser_line(
Fl_Widget* o,
int n) {
437inline int fl_get_browser_topline(
Fl_Widget* o) {
441inline int fl_get_browser_maxline(
Fl_Widget* o) {
444inline void fl_set_browser_topline(
Fl_Widget* o,
int n) {
446inline void fl_set_browser_fontsize(
Fl_Widget* o,
int s) {
450inline void fl_set_browser_specialkey(
Fl_Widget* o,
char c) {
461inline void fl_setdisplayed_browser_line(
Fl_Widget* o,
int n,
int i) {
463inline int fl_isdisplayed_browser_line(
Fl_Widget* o,
int n) {
466#include "Fl_Button.H"
468#define FL_NORMAL_BUTTON 0
469#define FL_TOUCH_BUTTON 4
470#define FL_INOUT_BUTTON 5
471#define FL_RETURN_BUTTON 6
472#define FL_HIDDEN_RET_BUTTON 7
473#define FL_PUSH_BUTTON FL_TOGGLE_BUTTON
474#define FL_MENU_BUTTON 9
476FL_EXPORT
Fl_Button* fl_add_button(
uchar t,
int x,
int y,
int w,
int h,
const char* l);
480inline void fl_set_button_shortcut(
Fl_Widget* b,
const char* s,
int=0) {
484#include "Fl_Light_Button.H"
487#include "Fl_Round_Button.H"
491#include "Fl_Check_Button.H"
494inline Fl_Widget* fl_add_bitmapbutton(
int t,
int x,
int y,
int w,
int h,
const char* l) {
Fl_Widget* o = fl_add_button(t,x,y,w,h,l);
return o;}
495inline void fl_set_bitmapbutton_data(
Fl_Widget* o,
int a,
int b,
uchar* c) {
498inline Fl_Widget* fl_add_pixmapbutton(
int t,
int x,
int y,
int w,
int h,
const char* l) {
Fl_Widget* o = fl_add_button(t,x,y,w,h,l);
return o;}
499inline void fl_set_pixmapbutton_data(
Fl_Widget* o,
const char*
const* c) {
506forms_constructor(
Fl_Chart, fl_add_chart)
507inline void fl_clear_chart(
Fl_Widget* o) {
509inline void fl_add_chart_value(
Fl_Widget* o,
double v,
const char* s,
uchar c){
511inline void fl_insert_chart_value(
Fl_Widget* o,
int i,
double v,
const char* s,
uchar c) {
513inline void fl_replace_chart_value(
Fl_Widget* o,
int i,
double v,
const char* s,
uchar c) {
515inline void fl_set_chart_bounds(
Fl_Widget* o,
double a,
double b) {
517inline void fl_set_chart_maxnumb(
Fl_Widget* o,
int v) {
519inline void fl_set_chart_autosize(
Fl_Widget* o,
int v) {
523inline void fl_set_chart_lsize(
Fl_Widget* o,
int v) {
527#define fl_set_chart_lcol fl_set_chart_lcolor
529#include "Fl_Choice.H"
531#define FL_NORMAL_CHOICE 0
532#define FL_NORMAL_CHOICE2 0
533#define FL_DROPLIST_CHOICE 0
535forms_constructor(
Fl_Choice, fl_add_choice)
536inline void fl_clear_choice(
Fl_Widget* o) {
538inline void fl_addto_choice(
Fl_Widget* o,
const char* s) {
540inline void fl_replace_choice(
Fl_Widget* o,
int i,
const char* s) {
542inline void fl_delete_choice(
Fl_Widget* o,
int i) {
544inline void fl_set_choice(
Fl_Widget* o,
int i) {
551inline const char* fl_get_choice_text(
Fl_Widget* o) {
553inline void fl_set_choice_fontsize(
Fl_Widget* o,
int x) {
561forms_constructort(
Fl_Clock, fl_add_clock)
562inline void fl_get_clock(
Fl_Widget* o,
int* h,
int* m,
int* s) {
568#include "Fl_Counter.H"
570inline void fl_set_counter_value(
Fl_Widget* o,
double v) {
572inline void fl_set_counter_bounds(
Fl_Widget* o,
double a,
double b) {
574inline void fl_set_counter_step(
Fl_Widget* o,
double a,
double b) {
576inline void fl_set_counter_precision(
Fl_Widget* o,
int v) {
578inline void fl_set_counter_return(
Fl_Widget* o,
int v) {
580inline double fl_get_counter_value(
Fl_Widget* o) {
582inline void fl_get_counter_bounds(
Fl_Widget* o,
float* a,
float* b) {
590#define FL_INVISIBLE_CURSOR FL_CURSOR_NONE
591#define FL_DEFAULT_CURSOR FL_CURSOR_DEFAULT
595#define FL_DIAL_COL1 FL_GRAY
596#define FL_DIAL_COL2 37
598forms_constructor(
Fl_Dial, fl_add_dial)
599inline void fl_set_dial_value(
Fl_Widget* o,
double v) {
601inline double fl_get_dial_value(
Fl_Widget* o) {
602 return ((
Fl_Dial*)o)->value();}
603inline void fl_set_dial_bounds(
Fl_Widget* o,
double a,
double b) {
605inline void fl_get_dial_bounds(
Fl_Widget* o,
float* a,
float* b) {
606 *a = float(((
Fl_Dial*)o)->minimum());
607 *b = float(((
Fl_Dial*)o)->maximum());
609inline void fl_set_dial_return(
Fl_Widget* o,
int i) {
611inline void fl_set_dial_angles(
Fl_Widget* o,
int a,
int b) {
612 ((
Fl_Dial*)o)->angles((
short)a, (short)b);}
616inline void fl_set_dial_step(
Fl_Widget* o,
double v) {
622 return fl_add_box(i,x-3,y-3,w+6,h+6,l);}
626 Fl_Widget* o = fl_add_box(i,x-3,y-3,w+6,h+6,l);
627 o->
align(FL_ALIGN_TOP_LEFT);
633fl_add_free(
int t,
double x,
double y,
double w,
double h,
const char* l,
636 new Fl_Free(t,
int(x),
int(y),
int(w),
int(h),l,hdl)));
643FL_EXPORT
void fl_show_message(
const char *,
const char *,
const char *);
644FL_EXPORT
void fl_show_alert(
const char *,
const char *,
const char *,
int=0);
645FL_EXPORT
int fl_show_question(
const char *,
const char *,
const char *);
646inline const char *fl_show_input(
const char *l,
const char*d=0) {
return fl_input(
"%s",d,l);}
647FL_EXPORT
char *fl_show_simple_input(
const char *label,
const char *deflt = 0);
648FL_EXPORT
int fl_show_choice(
658#define fl_show_messages fl_message
659inline int fl_show_choices(
const char* c,
int n,
const char* b1,
const char* b2,
660 const char* b3,
int) {
661 return fl_show_choice(0,c,0,n,b1,b2,b3);
665#include "Fl_File_Chooser.H"
669FL_EXPORT
char* fl_show_file_selector(
const char* message,
const char* dir,
670 const char* pat,
const char* fname);
671FL_EXPORT
char* fl_get_directory();
672FL_EXPORT
char* fl_get_pattern();
673FL_EXPORT
char* fl_get_filename();
676forms_constructor(
Fl_Input, fl_add_input)
677inline void fl_set_input(
Fl_Widget* o,
const char* v) {
679inline void fl_set_input_return(
Fl_Widget* o,
int x) {
686inline void fl_set_input_cursorpos(
Fl_Widget* o,
int x,
int ) {
699inline int fl_get_input_cursorpos(
Fl_Widget* o,
int*x,
int*y) {
700 *x = ((
Fl_Input*)o)->position(); *y = 0;
return *x;}
705#include "Fl_Menu_Button.H"
708#define FL_TOUCH_MENU 0
709#define FL_PUSH_MENU 1
710#define FL_PULLDOWN_MENU 2
715inline void fl_set_menu(
Fl_Widget* o,
const char* s) {
717inline void fl_addto_menu(
Fl_Widget* o,
const char* s) {
719inline void fl_replace_menu_item(
Fl_Widget* o,
int i,
const char* s) {
721inline void fl_delete_menu_item(
Fl_Widget* o,
int i) {
723inline void fl_set_menu_item_shortcut(
Fl_Widget* o,
int i,
const char* s) {
725inline void fl_set_menu_item_mode(
Fl_Widget* o,
int i,
long x) {
727inline void fl_show_menu_symbol(
Fl_Widget*,
int ) {
732inline const char* fl_get_menu_item_text(
Fl_Widget* o,
int i) {
734inline int fl_get_menu_maxitems(
Fl_Widget* o) {
736inline int fl_get_menu_item_mode(
Fl_Widget* o,
int i) {
738inline const char* fl_get_menu_text(
Fl_Widget* o) {
741#include "Fl_Positioner.H"
742#define FL_NORMAL_POSITIONER 0
744inline void fl_set_positioner_xvalue(
Fl_Widget* o,
double v) {
746inline double fl_get_positioner_xvalue(
Fl_Widget* o) {
748inline void fl_set_positioner_xbounds(
Fl_Widget* o,
double a,
double b) {
750inline void fl_get_positioner_xbounds(
Fl_Widget* o,
float* a,
float* b) {
754inline void fl_set_positioner_yvalue(
Fl_Widget* o,
double v) {
756inline double fl_get_positioner_yvalue(
Fl_Widget* o) {
758inline void fl_set_positioner_ybounds(
Fl_Widget* o,
double a,
double b) {
760inline void fl_get_positioner_ybounds(
Fl_Widget* o,
float* a,
float* b) {
764inline void fl_set_positioner_xstep(
Fl_Widget* o,
double v) {
766inline void fl_set_positioner_ystep(
Fl_Widget* o,
double v) {
768inline void fl_set_positioner_return(
Fl_Widget* o,
int v) {
771#include "Fl_Slider.H"
773#define FL_HOR_BROWSER_SLIDER FL_HOR_SLIDER
774#define FL_VERT_BROWSER_SLIDER FL_VERT_SLIDER
776forms_constructort(
Fl_Slider, fl_add_slider)
777#define FL_SLIDER_COL1 FL_GRAY
778inline void fl_set_slider_value(
Fl_Widget* o,
double v) {
780inline double fl_get_slider_value(
Fl_Widget* o) {
782inline void fl_set_slider_bounds(
Fl_Widget* o,
double a,
double b) {
784inline void fl_get_slider_bounds(
Fl_Widget* o,
float* a,
float* b) {
788inline void fl_set_slider_return(
Fl_Widget* o,
int i) {
790inline void fl_set_slider_step(
Fl_Widget* o,
double v) {
793inline void fl_set_slider_size(
Fl_Widget* o,
double v) {
796#include "Fl_Value_Slider.H"
799inline void fl_set_slider_precision(
Fl_Widget* o,
int i) {
812#define FL_NORMAL_TEXT FL_NO_BOX
816forms_constructort(
Fl_Timer, fl_add_timer)
821inline void fl_set_timer_countup(
Fl_Widget* o,
char d) {((
Fl_Timer*)o)->direction(d);}
822void FL_EXPORT fl_gettime(
long* sec,
long* usec);
int Fl_Font
A font number is an index into the internal font table.
Definition: Enumerations.H:875
unsigned Fl_Align
FLTK type for alignment control.
Definition: Enumerations.H:826
Fl_Cursor
The following constants define the mouse cursors that are available in FLTK.
Definition: Enumerations.H:1046
unsigned int Fl_Color
An FLTK color value; see also Colors
Definition: Enumerations.H:932
Fl_Labeltype
The labeltype() method sets the type of the label.
Definition: Enumerations.H:761
int Fl_Fontsize
Size of a font in pixels.
Definition: Enumerations.H:904
Fl_When
These constants determine when a callback is performed.
Definition: Enumerations.H:437
@ FL_WHEN_RELEASE
Do the callback when the button or key is released and the value changes.
Definition: Enumerations.H:441
Fl_Boxtype
Definition: Enumerations.H:601
const Fl_Align FL_ALIGN_LEFT
Align the label at the left of the widget.
Definition: Enumerations.H:837
The Fl_Bitmap class supports caching and drawing of mono-color (bitmap) images.
Definition: Fl_Bitmap.H:33
This widget simply draws its box, and possibly its label.
Definition: Fl_Box.H:34
The Fl_Browser widget displays a scrolling list of text lines, and manages all the storage for the te...
Definition: Fl_Browser.H:80
Fl_Chart displays simple charts.
Definition: Fl_Chart.H:72
A button that is used to pop up a menu.
Definition: Fl_Choice.H:83
This widget provides a round analog clock display.
Definition: Fl_Clock.H:113
Controls a single floating point value with button (or keyboard) arrows.
Definition: Fl_Counter.H:48
The Fl_Dial widget provides a circular dial to control a single floating point value.
Definition: Fl_Dial.H:47
void draw()
Draws the widget.
Emulation of the Forms "free" widget.
Definition: Fl_Free.H:57
The Fl_Group class is the FLTK container widget.
Definition: Fl_Group.H:41
void forms_end()
This is for forms compatibility only.
Definition: forms_compatability.cxx:29
void remove(int index)
Removes the widget at index from the group but does not delete it.
Definition: Fl_Group.cxx:503
static Fl_Group * current()
Returns the currently active group.
Definition: Fl_Group.cxx:84
The Fl_Pixmap class supports caching and drawing of colormap (pixmap) images, including transparency.
Definition: Fl_Pixmap.H:41
This class is provided for Forms compatibility.
Definition: Fl_Positioner.H:37
The Fl_Slider widget contains a sliding knob inside a box.
Definition: Fl_Slider.H:61
This is provided only to emulate the Forms Timer widget.
Definition: Fl_Timer.H:41
The Fl_Value_Slider widget is a Fl_Slider widget with a box displaying the current value.
Definition: Fl_Value_Slider.H:33
This widget produces an actual window.
Definition: Fl_Window.H:57
static void flush()
Causes all the windows that need it to be redrawn and graphics forced out through the pipes.
Definition: Fl.cxx:801
static void remove_fd(int, int when)
Removes a file descriptor handler.
static void add_timeout(double t, Fl_Timeout_Handler, void *=0)
Adds a one-shot timeout callback.
Definition: Fl.cxx:329
static void set_idle(Fl_Old_Idle_Handler cb)
Sets an idle callback.
Definition: Fl.H:1177
static void add_fd(int fd, int when, Fl_FD_Handler cb, void *=0)
Adds file descriptor fd to listen to.
File names and URI utility functions.
utility header to pull drawing functions together
The fl_show_colormap() function hides the implementation classes used to provide the popup window and...
unsigned char uchar
unsigned char
Definition: fl_types.h:30
FL_EXPORT int fl_filename_match(const char *name, const char *pattern)
Checks if a string s matches a pattern p.
Definition: filename_match.cxx:44
static void set_font(Fl_Font, const char *)
Changes a face.
Definition: fl_set_font.cxx:34
void fl_font(Fl_Font face, Fl_Fontsize fsize)
Sets the current font, which is then used in various drawing routines.
Definition: fl_draw.H:509
void fl_color(Fl_Color c)
Sets the color for all subsequent drawing operations.
Definition: fl_draw.H:52
static void set_color(Fl_Color, uchar, uchar, uchar)
Sets an entry in the fl_color index table.
Definition: fl_color.cxx:368
FL_EXPORT void fl_draw_box(Fl_Boxtype, int x, int y, int w, int h, Fl_Color)
Draws a box using given type, position, size and color.
Definition: fl_boxtype.cxx:436
FL_EXPORT unsigned int fl_old_shortcut(const char *s)
Emulation of XForms named shortcuts.
Definition: fl_shortcut.cxx:396
FL_EXPORT void fl_draw(const char *str, int x, int y)
Draws a nul-terminated UTF-8 string starting at the given x, y location.
Definition: fl_font.cxx:70
static Fl_Widget * focus()
Gets the current Fl::focus() widget.
Definition: Fl.H:840
static int event_button()
Gets which particular mouse button caused the current event.
Definition: Fl.H:678
static int event_clicks()
Returns non zero if we had a double click event.
Definition: Fl.H:645
FL_EXPORT const char * fl_yes
string pointer used in common dialogs, you can change it to another language
Definition: fl_ask.cxx:278
const char * fl_input(const char *fmt, const char *defstr,...)
Shows an input dialog displaying the fmt message.
Definition: fl_ask.cxx:561
int fl_choice(const char *fmt, const char *b0, const char *b1, const char *b2,...)
Shows a dialog displaying the printf style fmt message, this dialog features up to 3 customizable cho...
Definition: fl_ask.cxx:465
FL_EXPORT const char * fl_no
string pointer used in common dialogs, you can change it to another language
Definition: fl_ask.cxx:277