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)  

forms.H
Go to the documentation of this file.
1 //
2 // "$Id$"
3 //
4 // Forms emulation header file for the Fast Light Tool Kit (FLTK).
5 //
6 // Copyright 1998-2011 by Bill Spitzak and others.
7 //
8 // This library is free software. Distribution and use rights are outlined in
9 // the file "COPYING" which should have been included with this file. If this
10 // file is missing or damaged, see the license at:
11 //
12 // http://www.fltk.org/COPYING.php
13 //
14 // Please report all bugs and problems on the following page:
15 //
16 // http://www.fltk.org/str.php
17 //
18 
19 #ifndef __FORMS_H__
20 #define __FORMS_H__
21 
22 #include "Fl.H"
23 #include "Fl_Group.H"
24 #include "Fl_Window.H"
25 #include "fl_draw.H"
26 
29 
31 // Random constants & symbols defined by forms.h file:
32 
33 #ifndef NULL
34 #define NULL 0
35 #endif
36 #ifndef FALSE
37 #define FALSE 0
38 #define TRUE 1
39 #endif
40 
41 #define FL_ON 1
42 #define FL_OK 1
43 #define FL_VALID 1
44 #define FL_PREEMPT 1
45 #define FL_AUTO 2
46 #define FL_WHEN_NEEDED FL_AUTO
47 #define FL_OFF 0
48 #define FL_NONE 0
49 #define FL_CANCEL 0
50 #define FL_INVALID 0
51 #define FL_IGNORE -1
52 //#define FL_CLOSE -2 // this variable is never used in FLTK Forms. It is removed becaus it conflicts with the window FL_CLOSE event
53 
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 // 53 is better match
58 #define FL_TOP_BCOL FL_LIGHT2 // 51
59 #define FL_BOTTOM_BCOL FL_DARK2 // 40
60 #define FL_RIGHT_BCOL FL_DARK3 // 36
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))
88 
89 #define FL_ALIGN_BESIDE FL_ALIGN_INSIDE
90 
91 #define FL_PUP_TOGGLE 2 // FL_MENU_TOGGLE
92 #define FL_PUP_INACTIVE 1 // FL_MENU_INACTIVE
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
98 
99 #define FL_MBUTTON1 1
100 #define FL_LEFTMOUSE 1
101 #define FL_MBUTTON2 2
102 #define FL_MIDDLEMOUSE 2
103 #define FL_MBUTTON3 3
104 #define FL_RIGHTMOUSE 3
105 #define FL_MBUTTON4 4
106 #define FL_MBUTTON5 5
107 
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
121 
122 // hacks to change the labeltype() when passed to fl_set_object_lstyle():
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)
126 
127 // size values are different from XForms, match older Forms:
128 #define FL_TINY_SIZE 8
129 #define FL_SMALL_SIZE 11 // 10
130 //#define FL_NORMAL_SIZE 14 // 12
131 #define FL_MEDIUM_SIZE 18 // 14
132 #define FL_LARGE_SIZE 24 // 18
133 #define FL_HUGE_SIZE 32 // 24
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
144 
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)
149 
150 #define FL_BOUND_WIDTH 3
151 
152 typedef int FL_Coord;
153 typedef int FL_COLOR;
154 
156 // fltk interaction:
157 
158 #define FL_CMD_OPT void
159 extern FL_EXPORT void fl_initialize(int*, char*[], const char*, FL_CMD_OPT*, int);
160 inline void fl_finish() {}
161 
162 typedef void (*FL_IO_CALLBACK) (FL_SOCKET, void*);
163 inline void fl_add_io_callback(int fd, short w, FL_IO_CALLBACK cb, void* v) {
164  Fl::add_fd(fd, w, cb, v);}
165 inline void fl_remove_io_callback(int fd, short, FL_IO_CALLBACK) {
166  Fl::remove_fd(fd);} // removes all the callbacks!
167 
168 // type of callback is different and no "id" number is returned:
169 inline void fl_add_timeout(long msec, void (*cb)(void*), void* v) {
170  Fl::add_timeout(msec*.001, cb, v);}
171 inline void fl_remove_timeout(int) {}
172 
173 // type of callback is different!
174 inline void fl_set_idle_callback(void (*cb)()) {Fl::set_idle(cb);}
175 
178 inline Fl_Widget* fl_do_only_forms(void) {return fl_do_forms();}
180 
181 // because of new redraw behavior, these are no-ops:
182 inline void fl_freeze_object(Fl_Widget*) {}
184 inline void fl_freeze_form(Fl_Window*) {}
185 inline void fl_unfreeze_form(Fl_Window*) {}
186 inline void fl_freeze_all_forms() {}
187 inline void fl_unfreeze_all_forms() {}
188 
191 #define fl_set_object_focus fl_set_focus_object
192 
193 // void fl_set_form_atclose(Fl_Window*w,int (*cb)(Fl_Window*,void*),void* v)
194 // void fl_set_atclose(int (*cb)(Fl_Window*,void*),void*)
195 // fl_set_form_atactivate/atdeactivate not implemented!
196 
198 // Fl_Widget:
199 
200 inline void fl_set_object_boxtype(Fl_Widget* o, Fl_Boxtype a) {o->box(a);}
201 inline void fl_set_object_lsize(Fl_Widget* o,int s) {o->labelsize(s);}
202 
203 /* forms lib font indexes must be byte sized - extract correct byte from style word */
204 inline void fl_set_object_lstyle(Fl_Widget* o,int a) {
205  o->labelfont((Fl_Font)(a&0xff)); o->labeltype((Fl_Labeltype)(a>>8));}
206 inline void fl_set_object_lcol(Fl_Widget* o, Fl_Color a) {o->labelcolor(a);}
207 #define fl_set_object_lcolor fl_set_object_lcol
208 inline void fl_set_object_lalign(Fl_Widget* o, Fl_Align a) {o->align(a);}
209 #define fl_set_object_align fl_set_object_lalign
211 inline void fl_set_object_label(Fl_Widget* o, const char* a) {o->label(a); o->redraw();}
212 inline void fl_set_object_position(Fl_Widget*o,int x,int y) {o->position(x,y);}
213 inline void fl_set_object_size(Fl_Widget* o, int w, int h) {o->size(w,h);}
214 inline void fl_set_object_geometry(Fl_Widget* o,int x,int y,int w,int h) {o->resize(x,y,w,h);}
215 
216 inline 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();}
218 inline void fl_get_object_position(Fl_Widget* o,int*x,int*y) {
219  *x = o->x(); *y = o->y();}
220 
221 typedef void (*Forms_CB)(Fl_Widget*, long);
222 inline 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
225 inline void fl_trigger_object(Fl_Widget* o) {o->do_callback();}
226 inline void fl_set_object_return(Fl_Widget* o, int v) {
227  o->when((Fl_When)(v|FL_WHEN_RELEASE));}
228 
229 inline void fl_redraw_object(Fl_Widget* o) {o->redraw();}
230 inline void fl_show_object(Fl_Widget* o) {o->show();}
231 inline void fl_hide_object(Fl_Widget* o) {o->hide();}
232 inline void fl_free_object(Fl_Widget* x) {delete x;}
233 inline void fl_delete_object(Fl_Widget* o) {o->parent()->remove(*o);}
234 inline void fl_activate_object(Fl_Widget* o) {o->activate();}
236 
237 inline void fl_add_object(Fl_Window* f, Fl_Widget* x) {f->add(x);}
238 inline void fl_insert_object(Fl_Widget* o, Fl_Widget* b) {b->parent()->insert(*o,b);}
239 
240 inline Fl_Window* FL_ObjWin(Fl_Widget* o) {return o->window();}
241 
243 // things that appered in the demos a lot that I don't emulate, but
244 // I did not want to edit out of all the demos...
245 
246 inline int fl_get_border_width() {return 3;}
247 inline void fl_set_border_width(int) {}
248 inline void fl_set_object_dblbuffer(Fl_Widget*, int) {}
249 inline void fl_set_form_dblbuffer(Fl_Window*, int) {}
250 
252 // Fl_Window:
253 
254 inline void fl_free_form(Fl_Window* x) {delete x;}
255 inline void fl_redraw_form(Fl_Window* f) {f->redraw();}
256 
257 inline Fl_Window* fl_bgn_form(Fl_Boxtype b,int w,int h) {
258  Fl_Window* g = new Fl_Window(w,h,0);
259  g->box(b);
260  return g;
261 }
262 FL_EXPORT void fl_end_form();
263 inline void fl_addto_form(Fl_Window* f) {f->begin();}
264 inline Fl_Group* fl_bgn_group() {return new Fl_Group(0,0,0,0,0);}
266 inline void fl_addto_group(Fl_Widget* o) {((Fl_Group* )o)->begin();}
267 #define resizebox _ddfdesign_kludge()
268 
269 inline 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));}
271 inline void fl_set_form_position(Fl_Window* f,int x,int y) {f->position(x,y);}
272 inline void fl_set_form_size(Fl_Window* f, int w, int h) {f->size(w,h);}
273 inline void fl_set_form_geometry(Fl_Window* f,int x,int y,int w,int h) {
274  f->resize(x,y,w,h);}
275 #define fl_set_initial_placement fl_set_form_geometry
277 
278 FL_EXPORT void fl_show_form(Fl_Window* f,int p,int b,const char* n);
279 enum { // "p" argument values:
280  FL_PLACE_FREE = 0, // make resizable
281  FL_PLACE_MOUSE = 1, // mouse centered on form
282  FL_PLACE_CENTER = 2, // center of the screen
283  FL_PLACE_POSITION = 4,// fixed position, resizable
284  FL_PLACE_SIZE = 8, // fixed size, normal fltk behavior
285  FL_PLACE_GEOMETRY =16,// fixed size and position
286  FL_PLACE_ASPECT = 32, // keep aspect ratio (ignored)
287  FL_PLACE_FULLSCREEN=64,// fill screen
288  FL_PLACE_HOTSPOT = 128,// enables hotspot
289  FL_PLACE_ICONIC = 256,// iconic (ignored)
290  FL_FREE_SIZE=(1<<14), // force resizable
291  FL_FIX_SIZE =(1<<15) // force off resizable
292 };
293 #define FL_PLACE_FREE_CENTER (FL_PLACE_CENTER|FL_FREE_SIZE)
294 #define FL_PLACE_CENTERFREE (FL_PLACE_CENTER|FL_FREE_SIZE)
295 enum { // "b" arguement values:
299 //FL_MODAL = (1<<8) // not implemented yet in Forms
300 };
301 inline void fl_set_form_hotspot(Fl_Window* w,int x,int y) {w->hotspot(x,y);}
302 inline void fl_set_form_hotobject(Fl_Window* w, Fl_Widget* o) {w->hotspot(o);}
303 extern FL_EXPORT char fl_flip; // in forms.C
304 inline void fl_flip_yorigin() {fl_flip = 1;}
305 
306 #define fl_prepare_form_window fl_show_form
308 
309 inline void fl_raise_form(Fl_Window* f) {f->show();}
310 
311 inline void fl_hide_form(Fl_Window* f) {f->hide();}
312 inline void fl_pop_form(Fl_Window* f) {f->show();}
313 
314 extern FL_EXPORT char fl_modal_next; // in forms.C
315 inline void fl_activate_all_forms() {}
318 inline void fl_activate_form(Fl_Window*w) {w->activate();}
319 
320 inline void fl_set_form_title(Fl_Window* f, const char* s) {f->label(s);}
321 inline void fl_title_form(Fl_Window* f, const char* s) {f->label(s);}
322 
323 typedef void (*Forms_FormCB)(Fl_Widget*);
324 inline 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
326 
327 inline void fl_init() {}
328 FL_EXPORT void fl_set_graphics_mode(int,int);
329 
330 inline int fl_form_is_visible(Fl_Window* f) {return f->visible();}
331 
332 inline int fl_mouse_button() {return Fl::event_button();}
333 #define fl_mousebutton fl_mouse_button
334 
335 #define fl_free free
336 #define fl_malloc malloc
337 #define fl_calloc calloc
338 #define fl_realloc realloc
339 
341 // Drawing functions. Only usable inside an Fl_Free object?
342 
343 inline void fl_drw_box(Fl_Boxtype b,int x,int y,int w,int h,Fl_Color bgc,int=3) {
344  fl_draw_box(b,x,y,w,h,bgc);}
345 inline void fl_drw_frame(Fl_Boxtype b,int x,int y,int w,int h,Fl_Color bgc,int=3) {
346  fl_draw_box(b,x,y,w,h,bgc);}
347 
348 inline void fl_drw_text(Fl_Align align, int x, int y, int w, int h,
349  Fl_Color fgcolor, int size, Fl_Font style,
350  const char* s) {
351  fl_font(style,size);
352  fl_color(fgcolor);
353  fl_draw(s,x,y,w,h,align);
354 }
355 
356 // this does not work except for CENTER...
357 inline void fl_drw_text_beside(Fl_Align align, int x, int y, int w, int h,
358  Fl_Color fgcolor, int size, Fl_Font style,
359  const char* s) {
360  fl_font(style,size);
361  fl_color(fgcolor);
362  fl_draw(s,x,y,w,h,align);
363 }
364 
365 inline void fl_set_font_name(Fl_Font n,const char* s) {Fl::set_font(n,s);}
366 
367 inline void fl_mapcolor(Fl_Color c, uchar r, uchar g, uchar b) {Fl::set_color(c,r,g,b);}
368 
369 #define fl_set_clipping(x,y,w,h) fl_push_clip(x,y,w,h)
370 #define fl_unset_clipping() fl_pop_clip()
371 
373 // Forms classes:
374 
375 inline Fl_Widget* fl_add_new(Fl_Widget* p) {return p;}
376 inline Fl_Widget* fl_add_new(uchar t,Fl_Widget* p) {p->type(t); return p;}
377 
378 #define forms_constructor(type,name) \
379 inline 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) \
382 inline 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) \
385 inline 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)));}
387 
388 #include "Fl_FormsBitmap.H"
389 #define FL_NORMAL_BITMAP FL_NO_BOX
391 inline void fl_set_bitmap_data(Fl_Widget* o, int w, int h, const uchar* b) {
392  ((Fl_FormsBitmap*)o)->set(w,h,b);
393 }
394 
395 #include "Fl_FormsPixmap.H"
396 #define FL_NORMAL_PIXMAP FL_NO_BOX
398 inline void fl_set_pixmap_data(Fl_Widget* o, char*const* b) {
399  ((Fl_FormsPixmap*)o)->set(b);
400 }
401 //inline void fl_set_pixmap_file(Fl_Widget*, const char*);
402 inline void fl_set_pixmap_align(Fl_Widget* o,Fl_Align a,int,int) {o->align(a);}
403 //inline void fl_set_pixmap_colorcloseness(int, int, int);
404 
405 #include "Fl_Box.H"
407 
408 #include "Fl_Browser.H"
410 
411 inline void fl_clear_browser(Fl_Widget* o) {
412  ((Fl_Browser*)o)->clear();}
413 inline void fl_add_browser_line(Fl_Widget* o, const char* s) {
414  ((Fl_Browser*)o)->add(s);}
415 inline void fl_addto_browser(Fl_Widget* o, const char* s) {
416  ((Fl_Browser*)o)->add(s);} /* should also scroll to bottom */
417 //inline void fl_addto_browser_chars(Fl_Widget*, const char*)
418 //#define fl_append_browser fl_addto_browser_chars
419 inline void fl_insert_browser_line(Fl_Widget* o, int n, const char* s) {
420  ((Fl_Browser*)o)->insert(n,s);}
421 inline void fl_delete_browser_line(Fl_Widget* o, int n) {
422  ((Fl_Browser*)o)->remove(n);}
423 inline void fl_replace_browser_line(Fl_Widget* o, int n, const char* s) {
424  ((Fl_Browser*)o)->replace(n,s);}
425 inline char* fl_get_browser_line(Fl_Widget* o, int n) {
426  return (char*)(((Fl_Browser*)o)->text(n));}
427 inline int fl_load_browser(Fl_Widget* o, const char* f) {
428  return ((Fl_Browser*)o)->load(f);}
429 inline void fl_select_browser_line(Fl_Widget* o, int n) {
430  ((Fl_Browser*)o)->select(n,1);}
431 inline void fl_deselect_browser_line(Fl_Widget* o, int n) {
432  ((Fl_Browser*)o)->select(n,0);}
434  ((Fl_Browser*)o)->deselect();}
435 inline int fl_isselected_browser_line(Fl_Widget* o, int n) {
436  return ((Fl_Browser*)o)->selected(n);}
438  return ((Fl_Browser*)o)->topline();}
439 inline int fl_get_browser(Fl_Widget* o) {
440  return ((Fl_Browser*)o)->value();}
442  return ((Fl_Browser*)o)->size();}
443 //linline int fl_get_browser_screenlines(Fl_Widget*);
444 inline void fl_set_browser_topline(Fl_Widget* o, int n) {
445  ((Fl_Browser*)o)->topline(n);}
446 inline void fl_set_browser_fontsize(Fl_Widget* o, int s) {
447  ((Fl_Browser*)o)->textsize(s);}
449  ((Fl_Browser*)o)->textfont(s);}
450 inline void fl_set_browser_specialkey(Fl_Widget* o, char c) {
451  ((Fl_Browser*)o)->format_char(c);}
452 //inline void fl_set_browser_vscrollbar(Fl_Widget*, int);
453 //inline void fl_set_browser_hscrollbar(Fl_Widget*, int);
454 //inline void fl_set_browser_leftslider(Fl_Widget*, int);
455 //#define fl_set_browser_leftscrollbar fl_set_browser_leftslider
456 //inline void fl_set_browser_line_selectable(Fl_Widget*, int, int);
457 //inline void fl_get_browser_dimension(Fl_Widget*,int*,int*,int*,int*);
458 //inline void fl_set_browser_dblclick_callback(Fl_Widget*,FL_CALLBACKPTR,long);
459 //inline void fl_set_browser_xoffset(Fl_Widget*, FL_Coord);
460 //inline void fl_set_browser_scrollbarsize(Fl_Widget*, int, int);
461 inline void fl_setdisplayed_browser_line(Fl_Widget* o, int n, int i) {
462  ((Fl_Browser*)o)->display(n,i);}
463 inline int fl_isdisplayed_browser_line(Fl_Widget* o, int n) {
464  return ((Fl_Browser*)o)->displayed(n);}
465 
466 #include "Fl_Button.H"
467 
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
475 
476 FL_EXPORT Fl_Button* fl_add_button(uchar t,int x,int y,int w,int h,const char* l);
477 inline int fl_get_button(Fl_Widget* b) {return ((Fl_Button*)b)->value();}
478 inline void fl_set_button(Fl_Widget* b, int v) {((Fl_Button*)b)->value(v);}
480 inline void fl_set_button_shortcut(Fl_Widget* b, const char* s,int=0) {
481  ((Fl_Button*)b)->shortcut(s);}
482 //#define fl_set_object_shortcut(b,s) fl_set_button_shortcut(b,s)
483 
484 #include "Fl_Light_Button.H"
486 
487 #include "Fl_Round_Button.H"
490 
491 #include "Fl_Check_Button.H"
493 
494 inline 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;}
495 inline void fl_set_bitmapbutton_data(Fl_Widget* o,int a,int b,uchar* c) {
496  (new Fl_Bitmap(c,a,b))->label(o);} // does not delete old Fl_Bitmap!
497 
498 inline 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;}
499 inline void fl_set_pixmapbutton_data(Fl_Widget* o, const char*const* c) {
500  (new Fl_Pixmap(c))->label(o);} // does not delete old Fl_Pixmap!
501 
502 // Fl_Canvas object not yet implemented!
503 
504 #include "Fl_Chart.H"
505 
507 inline void fl_clear_chart(Fl_Widget* o) {
508  ((Fl_Chart*)o)->clear();}
509 inline void fl_add_chart_value(Fl_Widget* o,double v,const char* s,uchar c){
510  ((Fl_Chart*)o)->add(v,s,c);}
511 inline void fl_insert_chart_value(Fl_Widget* o, int i, double v, const char* s, uchar c) {
512  ((Fl_Chart*)o)->insert(i,v,s,c);}
513 inline void fl_replace_chart_value(Fl_Widget* o, int i, double v, const char* s, uchar c) {
514  ((Fl_Chart*)o)->replace(i,v,s,c);}
515 inline void fl_set_chart_bounds(Fl_Widget* o, double a, double b) {
516  ((Fl_Chart*)o)->bounds(a,b);}
517 inline void fl_set_chart_maxnumb(Fl_Widget* o, int v) {
518  ((Fl_Chart*)o)->maxsize(v);}
519 inline void fl_set_chart_autosize(Fl_Widget* o, int v) {
520  ((Fl_Chart*)o)->autosize(v);}
522  ((Fl_Chart*)o)->textfont(v);}
523 inline void fl_set_chart_lsize(Fl_Widget* o, int v) {
524  ((Fl_Chart*)o)->textsize(v);}
526  ((Fl_Chart*)o)->textcolor(v);}
527 #define fl_set_chart_lcol fl_set_chart_lcolor
528 
529 #include "Fl_Choice.H"
530 
531 #define FL_NORMAL_CHOICE 0
532 #define FL_NORMAL_CHOICE2 0
533 #define FL_DROPLIST_CHOICE 0
534 
536 inline void fl_clear_choice(Fl_Widget* o) {
537  ((Fl_Choice*)o)->clear();}
538 inline void fl_addto_choice(Fl_Widget* o, const char* s) {
539  ((Fl_Choice*)o)->add(s);}
540 inline void fl_replace_choice(Fl_Widget* o, int i, const char* s) {
541  ((Fl_Choice*)o)->replace(i-1,s);}
542 inline void fl_delete_choice(Fl_Widget* o, int i) {
543  ((Fl_Choice*)o)->remove(i-1);}
544 inline void fl_set_choice(Fl_Widget* o, int i) {
545  ((Fl_Choice*)o)->value(i-1);}
546 // inline void fl_set_choice_text(Fl_Widget*, const char*);
547 inline int fl_get_choice(Fl_Widget* o) {
548  return ((Fl_Choice*)o)->value()+1;}
549 // inline const char* fl_get_choice_item_text(Fl_Widget*, int);
550 // inline int fl_get_choice_maxitems(Fl_Widget*);
551 inline const char* fl_get_choice_text(Fl_Widget* o) {
552  return ((Fl_Choice*)o)->text();}
553 inline void fl_set_choice_fontsize(Fl_Widget* o, int x) {
554  ((Fl_Choice*)o)->textsize(x);}
556  ((Fl_Choice*)o)->textfont(x);}
557 // inline void fl_set_choice_item_mode(Fl_Widget*, int, unsigned);
558 // inline void fl_set_choice_item_shortcut(Fl_Widget*, int, const char*);
559 
560 #include "Fl_Clock.H"
562 inline void fl_get_clock(Fl_Widget* o, int* h, int* m, int* s) {
563  *h = ((Fl_Clock*)o)->hour();
564  *m = ((Fl_Clock*)o)->minute();
565  *s = ((Fl_Clock*)o)->second();
566 }
567 
568 #include "Fl_Counter.H"
570 inline void fl_set_counter_value(Fl_Widget* o, double v) {
571  ((Fl_Counter*)o)->value(v);}
572 inline void fl_set_counter_bounds(Fl_Widget* o, double a, double b) {
573  ((Fl_Counter*)o)->bounds(a,b);}
574 inline void fl_set_counter_step(Fl_Widget* o, double a, double b) {
575  ((Fl_Counter*)o)->step(a,b);}
576 inline void fl_set_counter_precision(Fl_Widget* o, int v) {
577  ((Fl_Counter*)o)->precision(v);}
578 inline void fl_set_counter_return(Fl_Widget* o, int v) {
579  ((Fl_Counter*)o)->when((Fl_When)(v|FL_WHEN_RELEASE));}
580 inline double fl_get_counter_value(Fl_Widget* o) {
581  return ((Fl_Counter*)o)->value();}
582 inline void fl_get_counter_bounds(Fl_Widget* o, float* a, float* b) {
583  *a = float(((Fl_Counter*)o)->minimum());
584  *b = float(((Fl_Counter*)o)->maximum());
585 }
586 //inline void fl_set_counter_filter(Fl_Widget*,const char* (*)(Fl_Widget*,double,int));
587 
588 // Cursor stuff cannot be emulated because it uses X stuff
589 inline void fl_set_cursor(Fl_Window* w, Fl_Cursor c) {w->cursor(c);}
590 #define FL_INVISIBLE_CURSOR FL_CURSOR_NONE
591 #define FL_DEFAULT_CURSOR FL_CURSOR_DEFAULT
592 
593 #include "Fl_Dial.H"
594 
595 #define FL_DIAL_COL1 FL_GRAY
596 #define FL_DIAL_COL2 37
597 
599 inline void fl_set_dial_value(Fl_Widget* o, double v) {
600  ((Fl_Dial*)o)->value(v);}
601 inline double fl_get_dial_value(Fl_Widget* o) {
602  return ((Fl_Dial*)o)->value();}
603 inline void fl_set_dial_bounds(Fl_Widget* o, double a, double b) {
604  ((Fl_Dial*)o)->bounds(a, b);}
605 inline 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());
608 }
609 inline void fl_set_dial_return(Fl_Widget* o, int i) {
610  ((Fl_Dial*)o)->when((Fl_When)(i|FL_WHEN_RELEASE));}
611 inline void fl_set_dial_angles(Fl_Widget* o, int a, int b) {
612  ((Fl_Dial*)o)->angles((short)a, (short)b);}
613 //inline void fl_set_dial_cross(Fl_Widget* o, int);
614 // inline void fl_set_dial_direction(Fl_Widget* o, uchar d) {
615 // ((Fl_Dial*)o)->direction(d);}
616 inline void fl_set_dial_step(Fl_Widget* o, double v) {
617  ((Fl_Dial*)o)->step(v);}
618 
619 // Frames:
620 
621 inline Fl_Widget* fl_add_frame(Fl_Boxtype i,int x,int y,int w,int h,const char* l) {
622  return fl_add_box(i,x-3,y-3,w+6,h+6,l);}
623 
624 // labelframe nyi
625 inline Fl_Widget* fl_add_labelframe(Fl_Boxtype i,int x,int y,int w,int h,const char* l) {
626  Fl_Widget* o = fl_add_box(i,x-3,y-3,w+6,h+6,l);
628  return o;
629 }
630 
631 #include "Fl_Free.H"
632 inline Fl_Free*
633 fl_add_free(int t,double x,double y,double w,double h,const char* l,
634  FL_HANDLEPTR hdl) {
635  return (Fl_Free*)(fl_add_new(
636  new Fl_Free(t,int(x),int(y),int(w),int(h),l,hdl)));
637 }
638 
639 #include "fl_ask.H"
640 #include "fl_show_colormap.H"
641 
642 inline int fl_show_question(const char* c, int = 0) {return fl_choice("%s",fl_no,fl_yes,0L,c);}
643 FL_EXPORT void fl_show_message(const char *,const char *,const char *);
644 FL_EXPORT void fl_show_alert(const char *,const char *,const char *,int=0);
645 FL_EXPORT int fl_show_question(const char *,const char *,const char *);
646 inline const char *fl_show_input(const char *l,const char*d=0) {return fl_input("%s",d,l);}
647 FL_EXPORT /*const*/ char *fl_show_simple_input(const char *label, const char *deflt = 0);
649  const char *m1,
650  const char *m2,
651  const char *m3,
652  int numb,
653  const char *b0,
654  const char *b1,
655  const char *b2);
656 
658 #define fl_show_messages fl_message
659 inline 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);
662 }
663 
664 #include "filename.H"
665 #include "Fl_File_Chooser.H"
666 inline int do_matching(char* a, const char* b) {return fl_filename_match(a,b);}
667 
668 // Forms-compatible file chooser (implementation in fselect.C):
669 FL_EXPORT char* fl_show_file_selector(const char* message,const char* dir,
670  const char* pat,const char* fname);
672 FL_EXPORT char* fl_get_pattern();
673 FL_EXPORT char* fl_get_filename();
674 
675 #include "Fl_Input.H"
677 inline void fl_set_input(Fl_Widget* o, const char* v) {
678  ((Fl_Input*)o)->value(v);}
679 inline void fl_set_input_return(Fl_Widget* o, int x) {
680  ((Fl_Input*)o)->when((Fl_When)(x | FL_WHEN_RELEASE));}
682  ((Fl_Input*)o)->textcolor(a);
683  ((Fl_Input*)o)->cursor_color(b);
684 }
685 // inline void fl_set_input_scroll(Fl_Widget*, int);
686 inline void fl_set_input_cursorpos(Fl_Widget* o, int x, int /*y*/) {
687  ((Fl_Input*)o)->position(x);}
688 // inline void fl_set_input_selected(Fl_Widget*, int);
689 // inline void fl_set_input_selected_range(Fl_Widget*, int, int);
690 // inline void fl_set_input_maxchars(Fl_Widget*, int);
691 // inline void fl_set_input_format(Fl_Widget*, int, int);
692 // inline void fl_set_input_hscrollbar(Fl_Widget*, int);
693 // inline void fl_set_input_vscrollbar(Fl_Widget*, int);
694 // inline void fl_set_input_xoffset(Fl_Widget*, int);
695 // inline void fl_set_input_topline(Fl_Widget*, int);
696 // inline void fl_set_input_scrollbarsize(Fl_Widget*, int, int);
697 // inline int fl_get_input_topline(Fl_Widget*);
698 // inline int fl_get_input_screenlines(Fl_Widget*);
699 inline int fl_get_input_cursorpos(Fl_Widget* o, int*x, int*y) {
700  *x = ((Fl_Input*)o)->position(); *y = 0; return *x;}
701 // inline int fl_get_input_numberoflines(Fl_Widget*);
702 // inline void fl_get_input_format(Fl_Widget*, int*, int*);
703 inline const char* fl_get_input(Fl_Widget* o) {return ((Fl_Input*)o)->value();}
704 
705 #include "Fl_Menu_Button.H"
706 
707 // types are not implemented, they all act like FL_PUSH_MENU:
708 #define FL_TOUCH_MENU 0
709 #define FL_PUSH_MENU 1
710 #define FL_PULLDOWN_MENU 2
712 
713 inline void fl_clear_menu(Fl_Widget* o) {
714  ((Fl_Menu_Button*)o)->clear();}
715 inline void fl_set_menu(Fl_Widget* o, const char* s) {
716  ((Fl_Menu_Button*)o)->clear(); ((Fl_Menu_Button*)o)->add(s);}
717 inline void fl_addto_menu(Fl_Widget* o, const char* s) {
718  ((Fl_Menu_Button*)o)->add(s);}
719 inline void fl_replace_menu_item(Fl_Widget* o, int i, const char* s) {
720  ((Fl_Menu_Button*)o)->replace(i-1,s);}
721 inline void fl_delete_menu_item(Fl_Widget* o, int i) {
722  ((Fl_Menu_Button*)o)->remove(i-1);}
723 inline void fl_set_menu_item_shortcut(Fl_Widget* o, int i, const char* s) {
724  ((Fl_Menu_Button*)o)->shortcut(i-1,fl_old_shortcut(s));}
725 inline void fl_set_menu_item_mode(Fl_Widget* o, int i, long x) {
726  ((Fl_Menu_Button*)o)->mode(i-1,x);}
727 inline void fl_show_menu_symbol(Fl_Widget*, int ) {
728 /* ((Fl_Menu_Button*)o)->show_menu_symbol(i); */}
729 // inline void fl_set_menu_popup(Fl_Widget*, int);
730 inline int fl_get_menu(Fl_Widget* o) {
731  return ((Fl_Menu_Button*)o)->value()+1;}
732 inline const char* fl_get_menu_item_text(Fl_Widget* o, int i) {
733  return ((Fl_Menu_Button*)o)->text(i);}
735  return ((Fl_Menu_Button*)o)->size();}
736 inline int fl_get_menu_item_mode(Fl_Widget* o, int i) {
737  return ((Fl_Menu_Button*)o)->mode(i);}
738 inline const char* fl_get_menu_text(Fl_Widget* o) {
739  return ((Fl_Menu_Button*)o)->text();}
740 
741 #include "Fl_Positioner.H"
742 #define FL_NORMAL_POSITIONER 0
744 inline void fl_set_positioner_xvalue(Fl_Widget* o, double v) {
745  ((Fl_Positioner*)o)->xvalue(v);}
747  return ((Fl_Positioner*)o)->xvalue();}
748 inline void fl_set_positioner_xbounds(Fl_Widget* o, double a, double b) {
749  ((Fl_Positioner*)o)->xbounds(a,b);}
750 inline void fl_get_positioner_xbounds(Fl_Widget* o, float* a, float* b) {
751  *a = float(((Fl_Positioner*)o)->xminimum());
752  *b = float(((Fl_Positioner*)o)->xmaximum());
753 }
754 inline void fl_set_positioner_yvalue(Fl_Widget* o, double v) {
755  ((Fl_Positioner*)o)->yvalue(v);}
757  return ((Fl_Positioner*)o)->yvalue();}
758 inline void fl_set_positioner_ybounds(Fl_Widget* o, double a, double b) {
759  ((Fl_Positioner*)o)->ybounds(a,b);}
760 inline void fl_get_positioner_ybounds(Fl_Widget* o, float* a, float* b) {
761  *a = float(((Fl_Positioner*)o)->yminimum());
762  *b = float(((Fl_Positioner*)o)->ymaximum());
763 }
764 inline void fl_set_positioner_xstep(Fl_Widget* o, double v) {
765  ((Fl_Positioner*)o)->xstep(v);}
766 inline void fl_set_positioner_ystep(Fl_Widget* o, double v) {
767  ((Fl_Positioner*)o)->ystep(v);}
768 inline void fl_set_positioner_return(Fl_Widget* o, int v) {
769  ((Fl_Positioner*)o)->when((Fl_When)(v|FL_WHEN_RELEASE));}
770 
771 #include "Fl_Slider.H"
772 
773 #define FL_HOR_BROWSER_SLIDER FL_HOR_SLIDER
774 #define FL_VERT_BROWSER_SLIDER FL_VERT_SLIDER
775 
777 #define FL_SLIDER_COL1 FL_GRAY
778 inline void fl_set_slider_value(Fl_Widget* o, double v) {
779  ((Fl_Slider*)o)->value(v);}
780 inline double fl_get_slider_value(Fl_Widget* o) {
781  return ((Fl_Slider*)o)->value();}
782 inline void fl_set_slider_bounds(Fl_Widget* o, double a, double b) {
783  ((Fl_Slider*)o)->bounds(a, b);}
784 inline void fl_get_slider_bounds(Fl_Widget* o, float* a, float* b) {
785  *a = float(((Fl_Slider*)o)->minimum());
786  *b = float(((Fl_Slider*)o)->maximum());
787 }
788 inline void fl_set_slider_return(Fl_Widget* o, int i) {
789  ((Fl_Slider*)o)->when((Fl_When)(i|FL_WHEN_RELEASE));}
790 inline void fl_set_slider_step(Fl_Widget* o, double v) {
791  ((Fl_Slider*)o)->step(v);}
792 // inline void fl_set_slider_increment(Fl_Widget* o, double v, double);
793 inline void fl_set_slider_size(Fl_Widget* o, double v) {
794  ((Fl_Slider*)o)->slider_size(v);}
795 
796 #include "Fl_Value_Slider.H"
798 
799 inline void fl_set_slider_precision(Fl_Widget* o, int i) {
800  ((Fl_Value_Slider*)o)->precision(i);}
801 // filter function!
802 
803 // The forms text object was the same as an Fl_Box except it inverted the
804 // meaning of FL_ALIGN_INSIDE. Implementation in forms.cxx
806 protected:
807  void draw();
808 public:
809  Fl_FormsText(Fl_Boxtype b, int X, int Y, int W, int H, const char* l=0)
810  : Fl_Widget(X,Y,W,H,l) {box(b); align(FL_ALIGN_LEFT);}
811 };
812 #define FL_NORMAL_TEXT FL_NO_BOX
814 
815 #include "Fl_Timer.H"
817 inline void fl_set_timer(Fl_Widget* o, double v) {((Fl_Timer*)o)->value(v);}
818 inline double fl_get_timer(Fl_Widget* o) {return ((Fl_Timer*)o)->value();}
819 inline void fl_suspend_timer(Fl_Widget* o) {((Fl_Timer*)o)->suspended(1);}
820 inline void fl_resume_timer(Fl_Widget* o) {((Fl_Timer*)o)->suspended(0);}
821 inline void fl_set_timer_countup(Fl_Widget* o,char d) {((Fl_Timer*)o)->direction(d);}
822 void FL_EXPORT fl_gettime(long* sec, long* usec);
823 
824 // Fl_XYPlot nyi
825 
826 
827 // stuff from DDForms:
828 
829 inline int fl_double_click() {return Fl::event_clicks();}
830 inline void fl_draw() {Fl::flush();}
831 
832 #endif /* define __FORMS_H__ */
833 
834 //
835 // End of "$Id$".
836 //
fl_set_object_boxtype
void fl_set_object_boxtype(Fl_Widget *o, Fl_Boxtype a)
Definition: forms.H:200
fl_flip_yorigin
void fl_flip_yorigin()
Definition: forms.H:304
fl_set_object_position
void fl_set_object_position(Fl_Widget *o, int x, int y)
Definition: forms.H:212
fl_font
void fl_font(Fl_Font face, Fl_Fontsize fsize)
Definition: fl_draw.H:509
Fl::set_idle
static void set_idle(Fl_Old_Idle_Handler cb)
Definition: Fl.H:1177
FL_ALIGN_LEFT
const Fl_Align FL_ALIGN_LEFT
Definition: Enumerations.H:839
FL_PLACE_POSITION
Definition: forms.H:283
FL_PLACE_ICONIC
Definition: forms.H:289
fl_set_form_title
void fl_set_form_title(Fl_Window *f, const char *s)
Definition: forms.H:320
fl_add_menu
Fl_Menu_Button * fl_add_menu(uchar t, int x, int y, int w, int h, const char *l)
Definition: forms.H:711
Fl_Choice
A button that is used to pop up a menu.
Definition: Fl_Choice.H:83
FL_PLACE_FREE
Definition: forms.H:280
Fl_FormsText
Definition: forms.H:805
Fl.H
Fl_Timer
Definition: Fl_Timer.H:41
Fl_Widget::activate
void activate()
Definition: Fl_Widget.cxx:241
fl_set_object_color
void fl_set_object_color(Fl_Widget *o, Fl_Color a, Fl_Color b)
Definition: forms.H:210
fl_set_graphics_mode
void fl_set_graphics_mode(int, int)
Definition: forms_compatability.cxx:130
Fl_Dial.H
fl_set_counter_precision
void fl_set_counter_precision(Fl_Widget *o, int v)
Definition: forms.H:576
Fl_Light_Button.H
fl_set_form_hotobject
void fl_set_form_hotobject(Fl_Window *w, Fl_Widget *o)
Definition: forms.H:302
Fl_Widget::align
Fl_Align align() const
Definition: Fl_Widget.H:348
fl_free_object
void fl_free_object(Fl_Widget *x)
Definition: forms.H:232
Fl_Counter
Definition: Fl_Counter.H:48
fl_add_button
Fl_Button * fl_add_button(uchar t, int x, int y, int w, int h, const char *l)
Definition: forms_compatability.cxx:145
fl_set_input
void fl_set_input(Fl_Widget *o, const char *v)
Definition: forms.H:677
fl_modal_next
char fl_modal_next
Definition: forms_compatability.cxx:81
Fl_Round_Button
Definition: Fl_Round_Button.H:36
fl_add_timer
Fl_Timer * fl_add_timer(uchar t, int x, int y, int w, int h, const char *l)
Definition: forms.H:816
fl_set_slider_bounds
void fl_set_slider_bounds(Fl_Widget *o, double a, double b)
Definition: forms.H:782
fl_set_counter_bounds
void fl_set_counter_bounds(Fl_Widget *o, double a, double b)
Definition: forms.H:572
fl_drw_frame
void fl_drw_frame(Fl_Boxtype b, int x, int y, int w, int h, Fl_Color bgc, int=3)
Definition: forms.H:345
Fl_Color
unsigned int Fl_Color
Definition: Enumerations.H:934
fl_redraw_object
void fl_redraw_object(Fl_Widget *o)
Definition: forms.H:229
fl_add_timeout
void fl_add_timeout(long msec, void(*cb)(void *), void *v)
Definition: forms.H:169
fl_set_chart_bounds
void fl_set_chart_bounds(Fl_Widget *o, double a, double b)
Definition: forms.H:515
fl_add_box
Fl_Box * fl_add_box(Fl_Boxtype t, int x, int y, int w, int h, const char *l)
Definition: forms.H:406
Fl_Counter.H
fl_show_simple_input
char * fl_show_simple_input(const char *label, const char *deflt=0)
Definition: forms_compatability.cxx:197
fl_check_only_forms
Fl_Widget * fl_check_only_forms(void)
Definition: forms.H:179
fl_bgn_form
Fl_Window * fl_bgn_form(Fl_Boxtype b, int w, int h)
Definition: forms.H:257
fl_add_round3dbutton
Fl_Round_Button * fl_add_round3dbutton(uchar t, int x, int y, int w, int h, const char *l)
Definition: forms.H:489
FL_OBJECT
Fl_Widget FL_OBJECT
Definition: forms.H:27
fl_set_object_lalign
void fl_set_object_lalign(Fl_Widget *o, Fl_Align a)
Definition: forms.H:208
fl_raise_form
void fl_raise_form(Fl_Window *f)
Definition: forms.H:309
fl_finish
void fl_finish()
Definition: forms.H:160
Fl_Input.H
fl_setdisplayed_browser_line
void fl_setdisplayed_browser_line(Fl_Widget *o, int n, int i)
Definition: forms.H:461
fl_init
void fl_init()
Definition: forms.H:327
Fl_Widget::show
virtual void show()
Definition: Fl_Widget.cxx:271
fl_set_positioner_xbounds
void fl_set_positioner_xbounds(Fl_Widget *o, double a, double b)
Definition: forms.H:748
fl_freeze_object
void fl_freeze_object(Fl_Widget *)
Definition: forms.H:182
Fl_Boxtype
Fl_Boxtype
Definition: Enumerations.H:603
Fl_Widget::labelcolor
Fl_Color labelcolor() const
Definition: Fl_Widget.H:472
fl_get_counter_bounds
void fl_get_counter_bounds(Fl_Widget *o, float *a, float *b)
Definition: forms.H:582
fl_set_slider_size
void fl_set_slider_size(Fl_Widget *o, double v)
Definition: forms.H:793
fl_set_button
void fl_set_button(Fl_Widget *b, int v)
Definition: forms.H:478
Fl_Window::hotspot
void hotspot(int x, int y, int offscreen=0)
Definition: Fl_Window_hotspot.cxx:24
fl_delete_browser_line
void fl_delete_browser_line(Fl_Widget *o, int n)
Definition: forms.H:421
fl_get_browser
int fl_get_browser(Fl_Widget *o)
Definition: forms.H:439
Fl_Clock
This widget provides a round analog clock display.
Definition: Fl_Clock.H:113
fl_delete_choice
void fl_delete_choice(Fl_Widget *o, int i)
Definition: forms.H:542
Fl_Value_Slider.H
fl_initialize
void fl_initialize(int *, char *[], const char *, void *, int)
do_matching
int do_matching(char *a, const char *b)
Definition: forms.H:666
fl_replace_chart_value
void fl_replace_chart_value(Fl_Widget *o, int i, double v, const char *s, uchar c)
Definition: forms.H:513
fl_call_object_callback
void fl_call_object_callback(Fl_Widget *o)
Definition: forms.H:224
fl_ask.H
Fl_Slider
Definition: Fl_Slider.H:61
fl_get_dial_bounds
void fl_get_dial_bounds(Fl_Widget *o, float *a, float *b)
Definition: forms.H:605
message
static Fl_Box * message
Definition: fl_ask.cxx:47
fl_freeze_all_forms
void fl_freeze_all_forms()
Definition: forms.H:186
fl_add_frame
Fl_Widget * fl_add_frame(Fl_Boxtype i, int x, int y, int w, int h, const char *l)
Definition: forms.H:621
fl_color
void fl_color(Fl_Color c)
Definition: fl_draw.H:52
fl_mapcolor
void fl_mapcolor(Fl_Color c, uchar r, uchar g, uchar b)
Definition: forms.H:367
fl_set_menu_item_mode
void fl_set_menu_item_mode(Fl_Widget *o, int i, long x)
Definition: forms.H:725
fl_drw_box
void fl_drw_box(Fl_Boxtype b, int x, int y, int w, int h, Fl_Color bgc, int=3)
Definition: forms.H:343
Fl::event_button
static int event_button()
Definition: Fl.H:678
fl_show_message
void fl_show_message(const char *, const char *, const char *)
Definition: forms_compatability.cxx:174
Fl_Button
Buttons generate callbacks when they are clicked by the user.
Definition: Fl_Button.H:79
Fl_Widget::window
Fl_Window * window() const
Definition: Fl_Window.cxx:118
Fl_Light_Button
Definition: Fl_Light_Button.H:38
FL_WHEN_RELEASE
Do the callback when the button or key is released and the value changes.
Definition: Enumerations.H:443
fl_set_menu_item_shortcut
void fl_set_menu_item_shortcut(Fl_Widget *o, int i, const char *s)
Definition: forms.H:723
fl_add_roundbutton
Fl_Round_Button * fl_add_roundbutton(uchar t, int x, int y, int w, int h, const char *l)
Definition: forms.H:488
fl_add_bitmapbutton
Fl_Widget * fl_add_bitmapbutton(int t, int x, int y, int w, int h, const char *l)
Definition: forms.H:494
Fl_Widget::labelfont
Fl_Font labelfont() const
Definition: Fl_Widget.H:487
FL_PLACE_CENTER
Definition: forms.H:282
fl_isselected_browser_line
int fl_isselected_browser_line(Fl_Widget *o, int n)
Definition: forms.H:435
filename.H
fl_draw
void fl_draw()
Definition: forms.H:830
fl_set_menu
void fl_set_menu(Fl_Widget *o, const char *s)
Definition: forms.H:715
fl_end_group
void fl_end_group()
Definition: forms.H:265
H
static int H
Definition: Fl_Tooltip.cxx:76
FL_FREE_SIZE
Definition: forms.H:290
FL_CMD_OPT
#define FL_CMD_OPT
Definition: forms.H:158
fl_set_slider_step
void fl_set_slider_step(Fl_Widget *o, double v)
Definition: forms.H:790
fl_get_filename
char * fl_get_filename()
Definition: forms_fselect.cxx:54
fl_set_form_position
void fl_set_form_position(Fl_Window *f, int x, int y)
Definition: forms.H:271
FL_NOBORDER
Definition: forms.H:296
fl_set_chart_lstyle
void fl_set_chart_lstyle(Fl_Widget *o, Fl_Font v)
Definition: forms.H:521
fl_add_positioner
Fl_Positioner * fl_add_positioner(uchar t, int x, int y, int w, int h, const char *l)
Definition: forms.H:743
fl_drw_text_beside
void fl_drw_text_beside(Fl_Align align, int x, int y, int w, int h, Fl_Color fgcolor, int size, Fl_Font style, const char *s)
Definition: forms.H:357
fl_add_input
Fl_Input * fl_add_input(uchar t, int x, int y, int w, int h, const char *l)
Definition: forms.H:676
fl_get_object_geometry
void fl_get_object_geometry(Fl_Widget *o, int *x, int *y, int *w, int *h)
Definition: forms.H:216
forms_constructort
#define forms_constructort(type, name)
Definition: forms.H:381
Fl_Chart
Fl_Chart displays simple charts. It is provided for Forms compatibility.
Definition: Fl_Chart.H:72
FL_IO_CALLBACK
void(* FL_IO_CALLBACK)(int, void *)
Definition: forms.H:162
fl_show_form
void fl_show_form(Fl_Window *f, int p, int b, const char *n)
Definition: forms_compatability.cxx:83
fl_set_slider_value
void fl_set_slider_value(Fl_Widget *o, double v)
Definition: forms.H:778
fl_get_browser_topline
int fl_get_browser_topline(Fl_Widget *o)
Definition: forms.H:437
Fl_Widget::when
Fl_When when() const
Definition: Fl_Widget.H:621
Fl_Widget::do_callback
void do_callback()
Definition: Fl_Widget.H:861
fl_set_positioner_ybounds
void fl_set_positioner_ybounds(Fl_Widget *o, double a, double b)
Definition: forms.H:758
fl_drw_text
void fl_drw_text(Fl_Align align, int x, int y, int w, int h, Fl_Color fgcolor, int size, Fl_Font style, const char *s)
Definition: forms.H:348
FL_ObjWin
Fl_Window * FL_ObjWin(Fl_Widget *o)
Definition: forms.H:240
fl_addto_browser
void fl_addto_browser(Fl_Widget *o, const char *s)
Definition: forms.H:415
FL_HANDLEPTR
int(* FL_HANDLEPTR)(Fl_Widget *, int, float, float, char)
Definition: Fl_Free.H:36
Fl_Browser
Definition: Fl_Browser.H:80
fl_get_button
int fl_get_button(Fl_Widget *b)
Definition: forms.H:477
Fl_Widget::labeltype
Fl_Labeltype labeltype() const
Definition: Fl_Widget.H:456
fl_get_counter_value
double fl_get_counter_value(Fl_Widget *o)
Definition: forms.H:580
fl_addto_form
void fl_addto_form(Fl_Window *f)
Definition: forms.H:263
fl_get_positioner_yvalue
double fl_get_positioner_yvalue(Fl_Widget *o)
Definition: forms.H:756
fl_add_lightbutton
Fl_Light_Button * fl_add_lightbutton(uchar t, int x, int y, int w, int h, const char *l)
Definition: forms.H:485
fl_title_form
void fl_title_form(Fl_Window *f, const char *s)
Definition: forms.H:321
fl_get_input
const char * fl_get_input(Fl_Widget *o)
Definition: forms.H:703
b
long b
Definition: jpegint.h:397
fl_activate_object
void fl_activate_object(Fl_Widget *o)
Definition: forms.H:234
FL_EXPORT
#define FL_EXPORT
Definition: Fl_Export.H:35
FL_PLACE_ASPECT
Definition: forms.H:286
fl_get_directory
char * fl_get_directory()
Definition: forms_fselect.cxx:50
fl_redraw_form
void fl_redraw_form(Fl_Window *f)
Definition: forms.H:255
FL_PLACE_MOUSE
Definition: forms.H:281
fl_free_form
void fl_free_form(Fl_Window *x)
Definition: forms.H:254
fl_choice
int fl_choice(const char *q, const char *b0, const char *b1, const char *b2,...)
Definition: fl_ask.cxx:459
fl_do_forms
Fl_Widget * fl_do_forms(void)
Definition: forms_compatability.cxx:119
fl_select_browser_line
void fl_select_browser_line(Fl_Widget *o, int n)
Definition: forms.H:429
fl_double_click
int fl_double_click()
Definition: forms.H:829
fl_yes
const char * fl_yes
string pointer used in common dialogs, you can change it to another language
Definition: fl_ask.cxx:272
FL_PLACE_FULLSCREEN
Definition: forms.H:287
fl_set_positioner_yvalue
void fl_set_positioner_yvalue(Fl_Widget *o, double v)
Definition: forms.H:754
fl_get_input_cursorpos
int fl_get_input_cursorpos(Fl_Widget *o, int *x, int *y)
Definition: forms.H:699
Forms_CB
void(* Forms_CB)(Fl_Widget *, long)
Definition: forms.H:221
fl_insert_object
void fl_insert_object(Fl_Widget *o, Fl_Widget *b)
Definition: forms.H:238
fl_resume_timer
void fl_resume_timer(Fl_Widget *o)
Definition: forms.H:820
Fl_Choice.H
Fl_Window.H
fl_add_new
Fl_Widget * fl_add_new(Fl_Widget *p)
Definition: forms.H:375
fl_set_counter_value
void fl_set_counter_value(Fl_Widget *o, double v)
Definition: forms.H:570
Fl::add_fd
static void add_fd(int fd, int when, Fl_FD_Handler cb, void *=0)
Fl_Bitmap
Definition: Fl_Bitmap.H:33
Fl_Widget::color
Fl_Color color() const
Definition: Fl_Widget.H:378
fl_freeze_form
void fl_freeze_form(Fl_Window *)
Definition: forms.H:184
fl_get_timer
double fl_get_timer(Fl_Widget *o)
Definition: forms.H:818
fl_set_goodies_font
void fl_set_goodies_font(Fl_Font a, Fl_Fontsize b)
Definition: forms.H:657
fl_set_object_lstyle
void fl_set_object_lstyle(Fl_Widget *o, int a)
Definition: forms.H:204
fl_add_object
void fl_add_object(Fl_Window *f, Fl_Widget *x)
Definition: forms.H:237
fl_set_form_callback
void fl_set_form_callback(Fl_Window *f, Forms_FormCB c)
Definition: forms.H:324
p
static menustate * p
Definition: Fl_Menu.cxx:606
Fl_Box.H
Fl_Widget::position
void position(int X, int Y)
Definition: Fl_Widget.H:332
Fl_Widget::w
void w(int v)
Definition: Fl_Widget.H:143
dir
static int dir
Definition: fl_draw_image.cxx:67
fl_hide_form
void fl_hide_form(Fl_Window *f)
Definition: forms.H:311
fl_set_counter_return
void fl_set_counter_return(Fl_Widget *o, int v)
Definition: forms.H:578
fl_add_chart
Fl_Chart * fl_add_chart(uchar t, int x, int y, int w, int h, const char *l)
Definition: forms.H:506
Fl_Widget::x
void x(int v)
Definition: Fl_Widget.H:139
fl_set_browser_fontsize
void fl_set_browser_fontsize(Fl_Widget *o, int s)
Definition: forms.H:446
fl_add_browser_line
void fl_add_browser_line(Fl_Widget *o, const char *s)
Definition: forms.H:413
Fl_Slider.H
fl_add_labelframe
Fl_Widget * fl_add_labelframe(Fl_Boxtype i, int x, int y, int w, int h, const char *l)
Definition: forms.H:625
fl_input
const char * fl_input(const char *label, const char *deflt=0,...)
Definition: fl_ask.cxx:505
fl_set_dial_return
void fl_set_dial_return(Fl_Widget *o, int i)
Definition: forms.H:609
fl_show_file_selector
char * fl_show_file_selector(const char *message, const char *dir, const char *pat, const char *fname)
Definition: forms_fselect.cxx:28
Fl_Free
Definition: Fl_Free.H:57
FL_ALIGN_TOP_LEFT
const Fl_Align FL_ALIGN_TOP_LEFT
Definition: Enumerations.H:858
fl_set_button_shortcut
void fl_set_button_shortcut(Fl_Widget *b, const char *s, int=0)
Definition: forms.H:480
fl_set_form_size
void fl_set_form_size(Fl_Window *f, int w, int h)
Definition: forms.H:272
fl_set_slider_precision
void fl_set_slider_precision(Fl_Widget *o, int i)
Definition: forms.H:799
fl_add_checkbutton
Fl_Check_Button * fl_add_checkbutton(uchar t, int x, int y, int w, int h, const char *l)
Definition: forms.H:492
fl_show_choices
int fl_show_choices(const char *c, int n, const char *b1, const char *b2, const char *b3, int)
Definition: forms.H:659
fl_filename_match
int fl_filename_match(const char *name, const char *pattern)
Definition: filename_match.cxx:44
fl_set_object_geometry
void fl_set_object_geometry(Fl_Widget *o, int x, int y, int w, int h)
Definition: forms.H:214
fl_draw.H
utility header to pull drawing functions together
Fl_Pixmap
Definition: Fl_Pixmap.H:41
fl_set_object_lcol
void fl_set_object_lcol(Fl_Widget *o, Fl_Color a)
Definition: forms.H:206
fl_set_chart_autosize
void fl_set_chart_autosize(Fl_Widget *o, int v)
Definition: forms.H:519
fname
static const char * fname
Definition: file.cxx:128
fl_replace_browser_line
void fl_replace_browser_line(Fl_Widget *o, int n, const char *s)
Definition: forms.H:423
fl_show_colormap.H
fl_set_object_return
void fl_set_object_return(Fl_Widget *o, int v)
Definition: forms.H:226
fl_no
const char * fl_no
string pointer used in common dialogs, you can change it to another language
Definition: fl_ask.cxx:271
fl_get_menu_item_mode
int fl_get_menu_item_mode(Fl_Widget *o, int i)
Definition: forms.H:736
FL_PLACE_GEOMETRY
Definition: forms.H:285
fl_addto_menu
void fl_addto_menu(Fl_Widget *o, const char *s)
Definition: forms.H:717
fl_deactivate_all_forms
void fl_deactivate_all_forms()
Definition: forms.H:316
fl_set_dial_value
void fl_set_dial_value(Fl_Widget *o, double v)
Definition: forms.H:599
Fl_FormsPixmap.H
fl_add_pixmapbutton
Fl_Widget * fl_add_pixmapbutton(int t, int x, int y, int w, int h, const char *l)
Definition: forms.H:498
fl_show_object
void fl_show_object(Fl_Widget *o)
Definition: forms.H:230
Fl_Window
Definition: Fl_Window.H:57
fl_scale_form
void fl_scale_form(Fl_Window *f, double x, double y)
Definition: forms.H:269
FL_FORM
Fl_Window FL_FORM
Definition: forms.H:28
fl_unfreeze_form
void fl_unfreeze_form(Fl_Window *)
Definition: forms.H:185
Fl_Widget::hide
virtual void hide()
Definition: Fl_Widget.cxx:283
Fl_File_Chooser.H
Fl_Input
Definition: Fl_Input.H:222
fl_set_input_return
void fl_set_input_return(Fl_Widget *o, int x)
Definition: forms.H:679
fl_set_browser_fontstyle
void fl_set_browser_fontstyle(Fl_Widget *o, Fl_Font s)
Definition: forms.H:448
fl_set_positioner_xvalue
void fl_set_positioner_xvalue(Fl_Widget *o, double v)
Definition: forms.H:744
fl_set_object_dblbuffer
void fl_set_object_dblbuffer(Fl_Widget *, int)
Definition: forms.H:248
Fl_Fontsize
int Fl_Fontsize
Definition: Enumerations.H:906
FL_FIX_SIZE
Definition: forms.H:291
fl_set_object_label
void fl_set_object_label(Fl_Widget *o, const char *a)
Definition: forms.H:211
fl_show_menu_symbol
void fl_show_menu_symbol(Fl_Widget *, int)
Definition: forms.H:727
fl_set_bitmap_data
void fl_set_bitmap_data(Fl_Widget *o, int w, int h, const uchar *b)
Definition: forms.H:391
cb
static void cb(Fl_Widget *, void *v)
Definition: factory.cxx:937
fl_form_is_visible
int fl_form_is_visible(Fl_Window *f)
Definition: forms.H:330
FL_COLOR
int FL_COLOR
Definition: forms.H:153
fl_set_browser_specialkey
void fl_set_browser_specialkey(Fl_Widget *o, char c)
Definition: forms.H:450
Fl_Menu_Button
Definition: Fl_Menu_Button.H:58
fl_add_pixmap
Fl_FormsPixmap * fl_add_pixmap(Fl_Boxtype t, int x, int y, int w, int h, const char *l)
Definition: forms.H:397
fl_add_bitmap
Fl_FormsBitmap * fl_add_bitmap(Fl_Boxtype t, int x, int y, int w, int h, const char *l)
Definition: forms.H:390
fl_deactivate_object
void fl_deactivate_object(Fl_Widget *o)
Definition: forms.H:235
fl_suspend_timer
void fl_suspend_timer(Fl_Widget *o)
Definition: forms.H:819
Fl_Widget::redraw
void redraw()
Definition: Fl.cxx:1782
Fl_Widget
Definition: Fl_Widget.H:101
Fl_Widget::deactivate
void deactivate()
Definition: Fl_Widget.cxx:253
Fl_Group
Definition: Fl_Group.H:41
Fl_Group::current
static Fl_Group * current()
Definition: Fl_Group.cxx:84
fl_get_menu
int fl_get_menu(Fl_Widget *o)
Definition: forms.H:730
fl_show_input
const char * fl_show_input(const char *l, const char *d=0)
Definition: forms.H:646
fl_message_font
void fl_message_font(Fl_Font f, Fl_Fontsize s)
Definition: fl_ask.H:63
fl_addto_group
void fl_addto_group(Fl_Widget *o)
Definition: forms.H:266
fl_set_pixmap_align
void fl_set_pixmap_align(Fl_Widget *o, Fl_Align a, int, int)
Definition: forms.H:402
fl_set_dial_step
void fl_set_dial_step(Fl_Widget *o, double v)
Definition: forms.H:616
fl_set_chart_maxnumb
void fl_set_chart_maxnumb(Fl_Widget *o, int v)
Definition: forms.H:517
fl_set_object_callback
void fl_set_object_callback(Fl_Widget *o, Forms_CB c, long a)
Definition: forms.H:222
fl_set_choice_fontstyle
void fl_set_choice_fontstyle(Fl_Widget *o, Fl_Font x)
Definition: forms.H:555
Fl_Dial
Definition: Fl_Dial.H:47
Fl::focus
static Fl_Widget * focus()
Definition: Fl.H:840
fl_add_counter
Fl_Counter * fl_add_counter(uchar t, int x, int y, int w, int h, const char *l)
Definition: forms.H:569
Fl_Widget::box
Fl_Boxtype box() const
Definition: Fl_Widget.H:363
fl_get_slider_bounds
void fl_get_slider_bounds(Fl_Widget *o, float *a, float *b)
Definition: forms.H:784
fl_remove_io_callback
void fl_remove_io_callback(int fd, short, FL_IO_CALLBACK)
Definition: forms.H:165
Forms_FormCB
void(* Forms_FormCB)(Fl_Widget *)
Definition: forms.H:323
fl_set_choice
void fl_set_choice(Fl_Widget *o, int i)
Definition: forms.H:544
fl_set_choice_fontsize
void fl_set_choice_fontsize(Fl_Widget *o, int x)
Definition: forms.H:553
fd
static struct FD * fd
fl_get_border_width
int fl_get_border_width()
Definition: forms.H:246
fl_check_forms
Fl_Widget * fl_check_forms()
Definition: forms_compatability.cxx:125
Fl_FormsBitmap.H
fl_draw_box
FL_EXPORT void fl_draw_box(Fl_Boxtype, int x, int y, int w, int h, Fl_Color)
Definition: fl_boxtype.cxx:436
Fl_Widget::h
void h(int v)
Definition: Fl_Widget.H:145
Fl_Widget::label
const char * label() const
Definition: Fl_Widget.H:421
fl_set_timer
void fl_set_timer(Fl_Widget *o, double v)
Definition: forms.H:817
fl_get_pattern
char * fl_get_pattern()
Definition: forms_fselect.cxx:52
fl_get_clock
void fl_get_clock(Fl_Widget *o, int *h, int *m, int *s)
Definition: forms.H:562
fl_set_object_lsize
void fl_set_object_lsize(Fl_Widget *o, int s)
Definition: forms.H:201
fl_add_slider
Fl_Slider * fl_add_slider(uchar t, int x, int y, int w, int h, const char *l)
Definition: forms.H:776
fl_unfreeze_object
void fl_unfreeze_object(Fl_Widget *)
Definition: forms.H:183
fl_get_object_position
void fl_get_object_position(Fl_Widget *o, int *x, int *y)
Definition: forms.H:218
FL_FULLBORDER
Definition: forms.H:297
fl_set_form_hotspot
void fl_set_form_hotspot(Fl_Window *w, int x, int y)
Definition: forms.H:301
fl_clear_choice
void fl_clear_choice(Fl_Widget *o)
Definition: forms.H:536
Fl_Widget::y
void y(int v)
Definition: Fl_Widget.H:141
Fl_FormsBitmap
Definition: Fl_FormsBitmap.H:30
fl_get_menu_text
const char * fl_get_menu_text(Fl_Widget *o)
Definition: forms.H:738
fl_get_menu_maxitems
int fl_get_menu_maxitems(Fl_Widget *o)
Definition: forms.H:734
fl_deselect_browser_line
void fl_deselect_browser_line(Fl_Widget *o, int n)
Definition: forms.H:431
fl_add_text
Fl_FormsText * fl_add_text(Fl_Boxtype t, int x, int y, int w, int h, const char *l)
Definition: forms.H:813
Fl_Box
Definition: Fl_Box.H:34
Fl::event_clicks
static int event_clicks()
Definition: Fl.H:645
Fl::set_color
static void set_color(Fl_Color, uchar, uchar, uchar)
Definition: fl_color.cxx:368
fl_add_dial
Fl_Dial * fl_add_dial(uchar t, int x, int y, int w, int h, const char *l)
Definition: forms.H:598
fl_add_browser
Fl_Browser * fl_add_browser(uchar t, int x, int y, int w, int h, const char *l)
Definition: forms.H:409
fl_set_positioner_xstep
void fl_set_positioner_xstep(Fl_Widget *o, double v)
Definition: forms.H:764
fl_set_border_width
void fl_set_border_width(int)
Definition: forms.H:247
fl_set_focus_object
void fl_set_focus_object(Fl_Window *, Fl_Widget *o)
Definition: forms.H:189
fl_get_menu_item_text
const char * fl_get_menu_item_text(Fl_Widget *o, int i)
Definition: forms.H:732
Fl_Widget::size
void size(int W, int H)
Definition: Fl_Widget.H:341
Fl_Window::cursor
void cursor(Fl_Cursor)
Definition: fl_cursor.cxx:111
Fl::set_font
static void set_font(Fl_Font, const char *)
Definition: fl_set_font.cxx:34
x
int x
Definition: test.c:73
fl_set_dial_angles
void fl_set_dial_angles(Fl_Widget *o, int a, int b)
Definition: forms.H:611
Fl_Widget::callback
Fl_Callback_p callback() const
Definition: Fl_Widget.H:561
Fl_Font
int Fl_Font
Definition: Enumerations.H:877
fl_get_slider_value
double fl_get_slider_value(Fl_Widget *o)
Definition: forms.H:780
fl_get_choice
int fl_get_choice(Fl_Widget *o)
Definition: forms.H:547
fl_old_shortcut
Fl_Shortcut fl_old_shortcut(const char *)
Definition: fl_shortcut.cxx:396
Fl_Labeltype
Fl_Labeltype
Definition: Enumerations.H:763
fl_set_positioner_ystep
void fl_set_positioner_ystep(Fl_Widget *o, double v)
Definition: forms.H:766
fl_clear_menu
void fl_clear_menu(Fl_Widget *o)
Definition: forms.H:713
fl_load_browser
int fl_load_browser(Fl_Widget *o, const char *f)
Definition: forms.H:427
fl_set_input_cursorpos
void fl_set_input_cursorpos(Fl_Widget *o, int x, int)
Definition: forms.H:686
Fl::flush
static void flush()
Definition: Fl.cxx:797
fl_insert_browser_line
void fl_insert_browser_line(Fl_Widget *o, int n, const char *s)
Definition: forms.H:419
fl_activate_form
void fl_activate_form(Fl_Window *w)
Definition: forms.H:318
fl_set_bitmapbutton_data
void fl_set_bitmapbutton_data(Fl_Widget *o, int a, int b, uchar *c)
Definition: forms.H:495
fl_set_chart_lcolor
void fl_set_chart_lcolor(Fl_Widget *o, Fl_Color v)
Definition: forms.H:525
fl_add_chart_value
void fl_add_chart_value(Fl_Widget *o, double v, const char *s, uchar c)
Definition: forms.H:509
fl_pop_form
void fl_pop_form(Fl_Window *f)
Definition: forms.H:312
Fl::add_timeout
static void add_timeout(double t, Fl_Timeout_Handler, void *=0)
Definition: Fl.cxx:329
forms_constructor
#define forms_constructor(type, name)
Definition: forms.H:378
Fl_Group.H
fl_show_form_window
void fl_show_form_window(Fl_Window *)
Definition: forms.H:307
fl_end_form
void fl_end_form()
Definition: forms_compatability.cxx:26
fl_add_valslider
Fl_Value_Slider * fl_add_valslider(uchar t, int x, int y, int w, int h, const char *l)
Definition: forms.H:797
Fl::remove_fd
static void remove_fd(int, int when)
Definition: Fl_win32.cxx:323
Fl_Widget::draw
virtual void draw()=0
y
int y
Definition: test.c:74
forms_constructorb
#define forms_constructorb(type, name)
Definition: forms.H:384
fl_set_cursor
void fl_set_cursor(Fl_Window *w, Fl_Cursor c)
Definition: forms.H:589
fl_remove_timeout
void fl_remove_timeout(int)
Definition: forms.H:171
fl_clear_chart
void fl_clear_chart(Fl_Widget *o)
Definition: forms.H:507
fl_deselect_browser
void fl_deselect_browser(Fl_Widget *o)
Definition: forms.H:433
fl_add_choice
Fl_Choice * fl_add_choice(uchar t, int x, int y, int w, int h, const char *l)
Definition: forms.H:535
fl_adjust_form_size
void fl_adjust_form_size(Fl_Window *)
Definition: forms.H:276
f
Fl_Box_Draw_F * f
Definition: fl_boxtype.cxx:285
fl_get_positioner_xvalue
double fl_get_positioner_xvalue(Fl_Widget *o)
Definition: forms.H:746
Fl_Widget::parent
Fl_Group * parent() const
Definition: Fl_Widget.H:254
Fl_Button.H
Fl_Cursor
Fl_Cursor
Definition: Enumerations.H:1048
fl_hide_object
void fl_hide_object(Fl_Widget *o)
Definition: forms.H:231
Y
static int Y
Definition: Fl_Tooltip.cxx:76
fl_get_browser_line
char * fl_get_browser_line(Fl_Widget *o, int n)
Definition: forms.H:425
fl_bgn_group
Fl_Group * fl_bgn_group()
Definition: forms.H:264
fl_unfreeze_all_forms
void fl_unfreeze_all_forms()
Definition: forms.H:187
fl_isdisplayed_browser_line
int fl_isdisplayed_browser_line(Fl_Widget *o, int n)
Definition: forms.H:463
fl_trigger_object
void fl_trigger_object(Fl_Widget *o)
Definition: forms.H:225
fl_get_positioner_xbounds
void fl_get_positioner_xbounds(Fl_Widget *o, float *a, float *b)
Definition: forms.H:750
fl_set_object_size
void fl_set_object_size(Fl_Widget *o, int w, int h)
Definition: forms.H:213
Fl_Menu_Button.H
fl_set_dial_bounds
void fl_set_dial_bounds(Fl_Widget *o, double a, double b)
Definition: forms.H:603
fl_set_slider_return
void fl_set_slider_return(Fl_Widget *o, int i)
Definition: forms.H:788
fl_get_positioner_ybounds
void fl_get_positioner_ybounds(Fl_Widget *o, float *a, float *b)
Definition: forms.H:760
Fl_Group::remove
void remove(int index)
Definition: Fl_Group.cxx:503
fl_do_only_forms
Fl_Widget * fl_do_only_forms(void)
Definition: forms.H:178
fl_deactivate_form
void fl_deactivate_form(Fl_Window *w)
Definition: forms.H:317
Fl_Value_Slider
Definition: Fl_Value_Slider.H:33
fl_gettime
void fl_gettime(long *sec, long *usec)
Definition: forms_timer.cxx:42
fl_get_browser_maxline
int fl_get_browser_maxline(Fl_Widget *o)
Definition: forms.H:441
Fl_Widget::resize
virtual void resize(int x, int y, int w, int h)
Definition: Fl_Widget.cxx:150
fl_set_pixmap_data
void fl_set_pixmap_data(Fl_Widget *o, char *const *b)
Definition: forms.H:398
fl_set_pixmapbutton_data
void fl_set_pixmapbutton_data(Fl_Widget *o, const char *const *c)
Definition: forms.H:499
fl_get_dial_value
double fl_get_dial_value(Fl_Widget *o)
Definition: forms.H:601
fl_get_button_numb
int fl_get_button_numb(Fl_Widget *)
Definition: forms.H:479
fl_delete_menu_item
void fl_delete_menu_item(Fl_Widget *o, int i)
Definition: forms.H:721
fl_set_positioner_return
void fl_set_positioner_return(Fl_Widget *o, int v)
Definition: forms.H:768
Fl_Widget::labelsize
Fl_Fontsize labelsize() const
Definition: Fl_Widget.H:502
FL_PLACE_SIZE
Definition: forms.H:284
Fl_When
Fl_When
Definition: Enumerations.H:439
fl_flip
char fl_flip
Definition: forms_compatability.cxx:25
FL_PLACE_HOTSPOT
Definition: forms.H:288
Fl_Positioner
Definition: Fl_Positioner.H:37
fl_addto_choice
void fl_addto_choice(Fl_Widget *o, const char *s)
Definition: forms.H:538
fl_set_form_dblbuffer
void fl_set_form_dblbuffer(Fl_Window *, int)
Definition: forms.H:249
fl_set_chart_lsize
void fl_set_chart_lsize(Fl_Widget *o, int v)
Definition: forms.H:523
Fl_Align
unsigned Fl_Align
Definition: Enumerations.H:828
FL_TRANSIENT
Definition: forms.H:298
Fl_Free.H
fl_set_form_geometry
void fl_set_form_geometry(Fl_Window *f, int x, int y, int w, int h)
Definition: forms.H:273
uchar
unsigned char uchar
Definition: fl_types.h:30
fl_set_font_name
void fl_set_font_name(Fl_Font n, const char *s)
Definition: forms.H:365
fl_set_timer_countup
void fl_set_timer_countup(Fl_Widget *o, char d)
Definition: forms.H:821
fl_add_free
Fl_Free * fl_add_free(int t, double x, double y, double w, double h, const char *l, FL_HANDLEPTR hdl)
Definition: forms.H:633
Fl_Group::forms_end
void forms_end()
Definition: forms_compatability.cxx:29
fl_show_question
int fl_show_question(const char *c, int=0)
Definition: forms.H:642
fl_clear_browser
void fl_clear_browser(Fl_Widget *o)
Definition: forms.H:411
fl_replace_menu_item
void fl_replace_menu_item(Fl_Widget *o, int i, const char *s)
Definition: forms.H:719
fl_add_clock
Fl_Clock * fl_add_clock(uchar t, int x, int y, int w, int h, const char *l)
Definition: forms.H:561
fl_add_io_callback
void fl_add_io_callback(int fd, short w, FL_IO_CALLBACK cb, void *v)
Definition: forms.H:163
fl_set_idle_callback
void fl_set_idle_callback(void(*cb)())
Definition: forms.H:174
Fl_Check_Button
A button with a "checkmark" to show its status.
Definition: Fl_Check_Button.H:30
fl_show_choice
int fl_show_choice(const char *m1, const char *m2, const char *m3, int numb, const char *b0, const char *b1, const char *b2)
Definition: forms_compatability.cxx:186
fl_mouse_button
int fl_mouse_button()
Definition: forms.H:332
Fl_FormsText::Fl_FormsText
Fl_FormsText(Fl_Boxtype b, int X, int Y, int W, int H, const char *l=0)
Definition: forms.H:809
FL_SOCKET
#define FL_SOCKET
Definition: Fl.H:56
fl_get_choice_text
const char * fl_get_choice_text(Fl_Widget *o)
Definition: forms.H:551
fl_set_input_color
void fl_set_input_color(Fl_Widget *o, Fl_Color a, Fl_Color b)
Definition: forms.H:681
FL_Coord
int FL_Coord
Definition: forms.H:152
Fl_Positioner.H
fl_insert_chart_value
void fl_insert_chart_value(Fl_Widget *o, int i, double v, const char *s, uchar c)
Definition: forms.H:511
fl_activate_all_forms
void fl_activate_all_forms()
Definition: forms.H:315
fl_replace_choice
void fl_replace_choice(Fl_Widget *o, int i, const char *s)
Definition: forms.H:540
Fl_FormsPixmap
Forms pixmap drawing routines.
Definition: Fl_FormsPixmap.H:31
fl_set_counter_step
void fl_set_counter_step(Fl_Widget *o, double a, double b)
Definition: forms.H:574
fl_delete_object
void fl_delete_object(Fl_Widget *o)
Definition: forms.H:233
Fl_Chart.H
fl_set_browser_topline
void fl_set_browser_topline(Fl_Widget *o, int n)
Definition: forms.H:444
const
#define const
Definition: zconf.h:226
Fl_Clock.H
fl_show_alert
void fl_show_alert(const char *, const char *, const char *, int=0)
Definition: forms_compatability.cxx:178
fl_reset_focus_object
void fl_reset_focus_object(Fl_Widget *o)
Definition: forms.H:190