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)  

Fl_Widget.H
Go to the documentation of this file.
1 //
2 // "$Id$"
3 //
4 // Widget header file for the Fast Light Tool Kit (FLTK).
5 //
6 // Copyright 1998-2015 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 
22 #ifndef Fl_Widget_H
23 #define Fl_Widget_H
24 
25 #include "Enumerations.H"
26 
30 #ifdef _WIN64
31 #if defined(__GNUC__) || defined(__clang__)
32 #include <stdint.h>
33 #else
34 #include <stddef.h> // M$VC
35 #endif
36 typedef intptr_t fl_intptr_t;
37 typedef uintptr_t fl_uintptr_t;
38 #else
39 typedef long fl_intptr_t;
40 typedef unsigned long fl_uintptr_t;
41 #endif
42 
43 class Fl_Widget;
44 class Fl_Window;
45 class Fl_Group;
46 class Fl_Image;
47 
49 typedef void (Fl_Callback )(Fl_Widget*, void*);
51 typedef Fl_Callback* Fl_Callback_p; // needed for BORLAND
53 typedef void (Fl_Callback0)(Fl_Widget*);
55 typedef void (Fl_Callback1)(Fl_Widget*, long);
56 
67  const char* value;
82 
84  void draw(int,int,int,int, Fl_Align) const ;
85  void measure(int &w, int &h) const ;
86 };
87 
88 
102  friend class Fl_Group;
103 
106  void* user_data_;
107  int x_,y_,w_,h_;
109  unsigned int flags_;
116 
117  const char *tooltip_;
118 
120  Fl_Widget(const Fl_Widget &);
122  Fl_Widget& operator=(const Fl_Widget &);
123 
124 protected:
125 
136  Fl_Widget(int x, int y, int w, int h, const char *label=0L);
137 
139  void x(int v) {x_ = v;}
141  void y(int v) {y_ = v;}
143  void w(int v) {w_ = v;}
145  void h(int v) {h_ = v;}
147  unsigned int flags() const {return flags_;}
149  void set_flag(unsigned int c) {flags_ |= c;}
151  void clear_flag(unsigned int c) {flags_ &= ~c;}
155  enum {
156  INACTIVE = 1<<0,
157  INVISIBLE = 1<<1,
158  OUTPUT = 1<<2,
159  NOBORDER = 1<<3,
160  FORCE_POSITION = 1<<4,
161  NON_MODAL = 1<<5,
162  SHORTCUT_LABEL = 1<<6,
163  CHANGED = 1<<7,
164  OVERRIDE = 1<<8,
165  VISIBLE_FOCUS = 1<<9,
166  COPIED_LABEL = 1<<10,
167  CLIP_CHILDREN = 1<<11,
168  MENU_WINDOW = 1<<12,
169  TOOLTIP_WINDOW = 1<<13,
170  MODAL = 1<<14,
171  NO_OVERLAY = 1<<15,
172  GROUP_RELATIVE = 1<<16,
173  COPIED_TOOLTIP = 1<<17,
174  FULLSCREEN = 1<<18,
176  // (space for more flags)
177  USERFLAG3 = 1<<29,
178  USERFLAG2 = 1<<30,
179  USERFLAG1 = 1<<31
180  };
181  void draw_box() const;
182  void draw_box(Fl_Boxtype t, Fl_Color c) const;
183  void draw_box(Fl_Boxtype t, int x,int y,int w,int h, Fl_Color c) const;
184  void draw_backdrop() const;
186  void draw_focus() {draw_focus(box(),x(),y(),w(),h());}
187  void draw_focus(Fl_Boxtype t, int x,int y,int w,int h) const;
188  void draw_label() const;
189  void draw_label(int, int, int, int) const;
190 
191 public:
192 
201  virtual ~Fl_Widget();
202 
219  virtual void draw() = 0;
220 
237  virtual int handle(int event);
238 
247  int is_label_copied() const {return ((flags_ & COPIED_LABEL) ? 1 : 0);}
248 
254  Fl_Group* parent() const {return parent_;}
255 
264  void parent(Fl_Group* p) {parent_ = p;} // for hacks only, use Fl_Group::add()
265 
274  uchar type() const {return type_;}
275 
279  void type(uchar t) {type_ = t;}
280 
284  int x() const {return x_;}
285 
289  int y() const {return y_;}
290 
294  int w() const {return w_;}
295 
299  int h() const {return h_;}
300 
320  virtual void resize(int x, int y, int w, int h);
321 
323  int damage_resize(int,int,int,int);
324 
332  void position(int X,int Y) {resize(X,Y,w_,h_);}
333 
341  void size(int W,int H) {resize(x_,y_,W,H);}
342 
348  Fl_Align align() const {return label_.align_;}
349 
357  void align(Fl_Align alignment) {label_.align_ = alignment;}
358 
363  Fl_Boxtype box() const {return (Fl_Boxtype)box_;}
364 
372  void box(Fl_Boxtype new_box) {box_ = new_box;}
373 
378  Fl_Color color() const {return color_;}
379 
390  void color(Fl_Color bg) {color_ = bg;}
391 
396  Fl_Color selection_color() const {return color2_;}
397 
407 
415  void color(Fl_Color bg, Fl_Color sel) {color_=bg; color2_=sel;}
416 
421  const char* label() const {return label_.value;}
422 
433  void label(const char* text);
434 
445  void copy_label(const char *new_label);
446 
450  void label(Fl_Labeltype a, const char* b) {label_.type = a; label_.value = b;}
451 
457 
467 
472  Fl_Color labelcolor() const {return label_.color;}
473 
479 
487  Fl_Font labelfont() const {return label_.font;}
488 
497 
502  Fl_Fontsize labelsize() const {return label_.size;}
503 
508  void labelsize(Fl_Fontsize pix) {label_.size=pix;}
509 
514  Fl_Image* image() {return label_.image;}
515  const Fl_Image* image() const {return label_.image;}
516 
521  void image(Fl_Image* img) {label_.image=img;}
522 
527  void image(Fl_Image& img) {label_.image=&img;}
528 
534  const Fl_Image* deimage() const {return label_.deimage;}
535 
540  void deimage(Fl_Image* img) {label_.deimage=img;}
541 
546  void deimage(Fl_Image& img) {label_.deimage=&img;}
547 
552  const char *tooltip() const {return tooltip_;}
553 
554  void tooltip(const char *text); // see Fl_Tooltip
555  void copy_tooltip(const char *text); // see Fl_Tooltip
556 
561  Fl_Callback_p callback() const {return callback_;}
562 
569 
575 
581 
588 
593  void* user_data() const {return user_data_;}
594 
599  void user_data(void* v) {user_data_ = v;}
600 
605  long argument() const {return (long)(fl_intptr_t)user_data_;}
606 
611  void argument(long v) {user_data_ = (void*)(fl_intptr_t)v;}
612 
621  Fl_When when() const {return (Fl_When)when_;}
622 
654  void when(uchar i) {when_ = i;}
655 
660  unsigned int visible() const {return !(flags_&INVISIBLE);}
661 
666  int visible_r() const;
667 
685  virtual void show();
686 
690  virtual void hide();
691 
697 
703 
708  unsigned int active() const {return !(flags_&INACTIVE);}
709 
714  int active_r() const;
715 
721  void activate();
722 
737  void deactivate();
738 
747  unsigned int output() const {return (flags_&OUTPUT);}
748 
752  void set_output() {flags_ |= OUTPUT;}
753 
757  void clear_output() {flags_ &= ~OUTPUT;}
758 
764  unsigned int takesevents() const {return !(flags_&(INACTIVE|INVISIBLE|OUTPUT));}
765 
781  unsigned int changed() const {return flags_&CHANGED;}
782 
787 
792 
798 
803  void set_active() {flags_ &= ~INACTIVE;}
804 
812  int take_focus();
813 
821 
827 
832  void visible_focus(int v) { if (v) set_visible_focus(); else clear_visible_focus(); }
833 
838  unsigned int visible_focus() { return flags_ & VISIBLE_FOCUS; }
839 
855  static void default_callback(Fl_Widget *cb, void *d);
856 
862 
869  void do_callback(Fl_Widget* o,long arg) {do_callback(o,(void*)(fl_intptr_t)arg);}
870 
871  // Causes a widget to invoke its callback function with arbitrary arguments.
872  // Documentation and implementation in Fl_Widget.cxx
873  void do_callback(Fl_Widget* o,void* arg=0);
874 
875  /* Internal use only. */
876  int test_shortcut();
877  /* Internal use only. */
878  static unsigned int label_shortcut(const char *t);
879  /* Internal use only. */
880  static int test_shortcut(const char*, const bool require_alt = false);
881  /* Internal use only. */
884 
890  int contains(const Fl_Widget *w) const ;
891 
898  int inside(const Fl_Widget* wgt) const {return wgt ? wgt->contains(this) : 0;}
899 
903  void redraw();
904 
909  void redraw_label();
910 
917  uchar damage() const {return damage_;}
918 
931  void clear_damage(uchar c = 0) {damage_ = c;}
932 
938  void damage(uchar c);
939 
946  void damage(uchar c, int x, int y, int w, int h);
947 
948  void draw_label(int, int, int, int, Fl_Align) const;
949 
957  void measure_label(int& ww, int& hh) const {label_.measure(ww, hh);}
958 
959  Fl_Window* window() const ;
960  Fl_Window* top_window() const;
961  Fl_Window* top_window_offset(int& xoff, int& yoff) const;
962 
986  virtual Fl_Group* as_group() {return 0;}
987 
1000  virtual Fl_Window* as_window() {return 0;}
1001 
1012  virtual class Fl_Gl_Window* as_gl_window() {return 0;}
1013 
1017 
1021  Fl_Color color2() const {return (Fl_Color)color2_;}
1022 
1026  void color2(unsigned a) {color2_ = a;}
1027 };
1028 
1034 #define FL_RESERVED_TYPE 100
1035 
1036 #endif
1037 
1038 //
1039 // End of "$Id$".
1040 //
Fl_Widget::draw_label
void draw_label() const
Definition: fl_labeltype.cxx:99
Fl_Widget::output
unsigned int output() const
Definition: Fl_Widget.H:747
Fl_Widget::OVERRIDE
position window on top (Fl_Window)
Definition: Fl_Widget.H:164
Fl_Widget::FORCE_POSITION
don't let the window manager position the window (Fl_Window)
Definition: Fl_Widget.H:160
Fl_Callback_p
Fl_Callback * Fl_Callback_p
Definition: Fl_Widget.H:51
Fl_Widget::as_group
virtual Fl_Group * as_group()
Definition: Fl_Widget.H:986
Fl_Widget::y
int y() const
Definition: Fl_Widget.H:289
Fl_Widget::visible_focus
void visible_focus(int v)
Definition: Fl_Widget.H:832
Fl_Widget::activate
void activate()
Definition: Fl_Widget.cxx:241
Fl_Widget::deimage
void deimage(Fl_Image &img)
Definition: Fl_Widget.H:546
Fl_Widget::align
Fl_Align align() const
Definition: Fl_Widget.H:348
Fl_Widget::x_
int x_
Definition: Fl_Widget.H:107
Fl_Widget::draw_box
void draw_box() const
Definition: fl_boxtype.cxx:442
Fl_Widget::MENU_WINDOW
a temporary popup window, dismissed by clicking outside (Fl_Window)
Definition: Fl_Widget.H:168
Fl_Widget::redraw_label
void redraw_label()
Definition: Fl.cxx:1786
Fl_Widget::h_
int h_
Definition: Fl_Widget.H:107
Fl_Color
unsigned int Fl_Color
Definition: Enumerations.H:934
Fl_Widget::CLIP_CHILDREN
all drawing within this widget will be clipped (Fl_Group)
Definition: Fl_Widget.H:167
Fl_Widget::~Fl_Widget
virtual ~Fl_Widget()
Definition: Fl_Widget.cxx:178
Fl_Widget::color
void color(Fl_Color bg)
Definition: Fl_Widget.H:390
Fl_Widget::top_window_offset
Fl_Window * top_window_offset(int &xoff, int &yoff) const
Definition: Fl_Window.cxx:141
Fl_Widget::deimage
void deimage(Fl_Image *img)
Definition: Fl_Widget.H:540
Fl_Widget::takesevents
unsigned int takesevents() const
Definition: Fl_Widget.H:764
Fl_Widget::show
virtual void show()
Definition: Fl_Widget.cxx:271
Fl_Boxtype
Fl_Boxtype
Definition: Enumerations.H:603
Fl_Widget::labelcolor
Fl_Color labelcolor() const
Definition: Fl_Widget.H:472
Fl_Image
Base class for image caching and drawing.
Definition: Fl_Image.H:55
Fl_Widget::MODAL
a window blocking input to all other winows (Fl_Window)
Definition: Fl_Widget.H:170
fl_uintptr_t
unsigned long fl_uintptr_t
Definition: Fl_Widget.H:40
Fl_Widget::clear_active
void clear_active()
Definition: Fl_Widget.H:797
Fl_Widget::labeltype
void labeltype(Fl_Labeltype a)
Definition: Fl_Widget.H:466
Fl_Widget::callback
void callback(Fl_Callback0 *cb)
Definition: Fl_Widget.H:580
Fl_Widget::labelfont
void labelfont(Fl_Font f)
Definition: Fl_Widget.H:496
Fl_Widget::clear_changed
void clear_changed()
Definition: Fl_Widget.H:791
Fl_Widget::labelfont
Fl_Font labelfont() const
Definition: Fl_Widget.H:487
Fl_Label::type
uchar type
Definition: Fl_Widget.H:81
Fl_Widget::_clear_fullscreen
void _clear_fullscreen()
Definition: Fl_Widget.H:883
Fl_Widget::changed
unsigned int changed() const
Definition: Fl_Widget.H:781
H
static int H
Definition: Fl_Tooltip.cxx:76
Fl_Widget::callback_
Fl_Callback * callback_
Definition: Fl_Widget.H:105
Fl_Widget::color2
void color2(unsigned a)
Definition: Fl_Widget.H:1026
Fl_Widget::set_visible_focus
void set_visible_focus()
Definition: Fl_Widget.H:820
Fl_Widget::set_flag
void set_flag(unsigned int c)
Definition: Fl_Widget.H:149
Fl_Widget::x
int x() const
Definition: Fl_Widget.H:284
Fl_Widget::TOOLTIP_WINDOW
a temporary popup, transparent to events, and dismissed easily (Fl_Window)
Definition: Fl_Widget.H:169
Fl_Widget::set_visible
void set_visible()
Definition: Fl_Widget.H:696
window
static Fl_TooltipBox * window
Definition: Fl_Tooltip.cxx:75
Fl_Widget::draw_backdrop
void draw_backdrop() const
Definition: fl_boxtype.cxx:447
Fl_Widget::color_
Fl_Color color_
Definition: Fl_Widget.H:110
Fl_Label::color
Fl_Color color
Definition: Fl_Widget.H:77
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_Widget::label
void label(Fl_Labeltype a, const char *b)
Definition: Fl_Widget.H:450
Fl_Widget::set_active
void set_active()
Definition: Fl_Widget.H:803
Fl_Widget::labeltype
Fl_Labeltype labeltype() const
Definition: Fl_Widget.H:456
Fl_Label::image
Fl_Image * image
Definition: Fl_Widget.H:69
Fl_Widget::user_data
void * user_data() const
Definition: Fl_Widget.H:593
Fl_Callback
void() Fl_Callback(Fl_Widget *, void *)
Definition: Fl_Widget.H:49
b
long b
Definition: jpegint.h:397
FL_EXPORT
#define FL_EXPORT
Definition: Fl_Export.H:35
Fl_Widget::NO_OVERLAY
window not using a hardware overlay plane (Fl_Menu_Window)
Definition: Fl_Widget.H:171
Fl_Widget::COPIED_LABEL
the widget label is internally copied, its destruction is handled by the widget
Definition: Fl_Widget.H:166
Fl_Widget::flags_
unsigned int flags_
Definition: Fl_Widget.H:109
Fl_Widget::label_
Fl_Label label_
Definition: Fl_Widget.H:108
Fl_Widget::as_window
virtual Fl_Window * as_window()
Definition: Fl_Widget.H:1000
Fl_Widget::color
void color(Fl_Color bg, Fl_Color sel)
Definition: Fl_Widget.H:415
Fl_Widget::image
void image(Fl_Image &img)
Definition: Fl_Widget.H:527
Fl_Widget::w
int w() const
Definition: Fl_Widget.H:294
Fl_Label::deimage
Fl_Image * deimage
Definition: Fl_Widget.H:71
Fl_Widget::clear_visible
void clear_visible()
Definition: Fl_Widget.H:702
Fl_Widget::color
Fl_Color color() const
Definition: Fl_Widget.H:378
Fl_Widget::copy_label
void copy_label(const char *new_label)
Definition: Fl_Widget.cxx:324
Fl_Widget::_set_fullscreen
void _set_fullscreen()
Definition: Fl_Widget.H:882
p
static menustate * p
Definition: Fl_Menu.cxx:606
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
Fl_Widget::callback
void callback(Fl_Callback *cb)
Definition: Fl_Widget.H:574
Fl_Widget::selection_color
Fl_Color selection_color() const
Definition: Fl_Widget.H:396
Fl_Widget::x
void x(int v)
Definition: Fl_Widget.H:139
Fl_Widget::color2_
Fl_Color color2_
Definition: Fl_Widget.H:111
Fl_Widget::set_output
void set_output()
Definition: Fl_Widget.H:752
Fl_Widget::parent_
Fl_Group * parent_
Definition: Fl_Widget.H:104
Fl_Widget::as_gl_window
virtual class Fl_Gl_Window * as_gl_window()
Definition: Fl_Widget.H:1012
draw
static void draw(int which, int x, int y, int w, int h, int inset)
Definition: fl_gtk.cxx:166
Fl_Widget::flags
unsigned int flags() const
Definition: Fl_Widget.H:147
Fl_Widget::box
void box(Fl_Boxtype new_box)
Definition: Fl_Widget.H:372
Fl_Label
Definition: Fl_Widget.H:65
arg
static int arg(int argc, char **argv, int &i)
Definition: fluid.cxx:1723
Fl_Widget::USERFLAG1
reserved for 3rd party extensions
Definition: Fl_Widget.H:179
Fl_Widget::active_r
int active_r() const
Definition: Fl_Widget.cxx:265
Fl_Widget::deimage
const Fl_Image * deimage() const
Definition: Fl_Widget.H:534
Fl_Widget::COPIED_TOOLTIP
the widget tooltip is internally copied, its destruction is handled by the widget
Definition: Fl_Widget.H:173
Fl_Widget::GROUP_RELATIVE
Reserved, not implemented. DO NOT USE.
Definition: Fl_Widget.H:172
Fl_Label::size
Fl_Fontsize size
Definition: Fl_Widget.H:75
Fl_Widget::y_
int y_
Definition: Fl_Widget.H:107
Fl_Widget::visible
unsigned int visible() const
Definition: Fl_Widget.H:660
Fl_Window
Definition: Fl_Window.H:57
Fl_Widget::hide
virtual void hide()
Definition: Fl_Widget.cxx:283
Fl_Widget::type
void type(uchar t)
Definition: Fl_Widget.H:279
Fl_Widget::USERFLAG3
reserved for 3rd party extensions
Definition: Fl_Widget.H:177
Fl_Widget::OUTPUT
for output only
Definition: Fl_Widget.H:158
Fl_Fontsize
int Fl_Fontsize
Definition: Enumerations.H:906
Fl_Widget::user_data
void user_data(void *v)
Definition: Fl_Widget.H:599
Fl_Widget::type_
uchar type_
Definition: Fl_Widget.H:112
Fl_Widget::align
void align(Fl_Align alignment)
Definition: Fl_Widget.H:357
Fl_Widget::when
void when(uchar i)
Definition: Fl_Widget.H:654
Fl_Widget::damage
uchar damage() const
Definition: Fl_Widget.H:917
Fl_Widget::test_shortcut
int test_shortcut()
Definition: fl_shortcut.cxx:494
Fl_Widget::callback
void callback(Fl_Callback *cb, void *p)
Definition: Fl_Widget.H:568
cb
static void cb(Fl_Widget *, void *v)
Definition: factory.cxx:937
Fl_Widget::measure_label
void measure_label(int &ww, int &hh) const
Definition: Fl_Widget.H:957
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_Widget::label_shortcut
static unsigned int label_shortcut(const char *t)
Definition: fl_shortcut.cxx:423
fl_intptr_t
long fl_intptr_t
Definition: Fl_Widget.H:39
Fl_Widget::box
Fl_Boxtype box() const
Definition: Fl_Widget.H:363
Fl_Widget::clear_output
void clear_output()
Definition: Fl_Widget.H:757
Fl_Widget::h
int h() const
Definition: Fl_Widget.H:299
measure
static Fl_Label_Measure_F * measure[16]
Definition: fl_labeltype.cxx:66
Fl_Group::resize
void resize(int, int, int, int)
Definition: Fl_Group.cxx:634
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_Group::operator=
Fl_Group & operator=(const Fl_Group &)
Fl_Label::measure
void measure(int &w, int &h) const
Definition: fl_labeltype.cxx:86
Fl_Widget::y
void y(int v)
Definition: Fl_Widget.H:141
Fl_Gl_Window
Definition: Fl_Gl_Window.H:56
Fl_Widget::set_changed
void set_changed()
Definition: Fl_Widget.H:786
Fl_Widget::NON_MODAL
this is a hovering toolbar window (Fl_Window)
Definition: Fl_Widget.H:161
Fl_Widget::MAC_USE_ACCENTS_MENU
On the Mac OS platform, pressing and holding a key on the keyboard opens an accented-character menu w...
Definition: Fl_Widget.H:175
Fl_Group::handle
int handle(int)
Definition: Fl_Group.cxx:147
Fl_Widget::size
void size(int W, int H)
Definition: Fl_Widget.H:341
x
int x
Definition: test.c:73
Fl_Widget::tooltip_
const char * tooltip_
Definition: Fl_Widget.H:117
Fl_Widget::active
unsigned int active() const
Definition: Fl_Widget.H:708
Fl_Widget::default_callback
static void default_callback(Fl_Widget *cb, void *d)
Definition: Fl_Widget.cxx:39
Fl_Widget::callback
Fl_Callback_p callback() const
Definition: Fl_Widget.H:561
Fl_Widget::visible_r
int visible_r() const
Definition: Fl_Widget.cxx:295
Fl_Widget::damage_
uchar damage_
Definition: Fl_Widget.H:113
Fl_Font
int Fl_Font
Definition: Enumerations.H:877
Fl_Widget::CHANGED
the widget value changed
Definition: Fl_Widget.H:163
Fl_Widget::w_
int w_
Definition: Fl_Widget.H:107
Fl_Labeltype
Fl_Labeltype
Definition: Enumerations.H:763
Fl_Widget::clear_damage
void clear_damage(uchar c=0)
Definition: Fl_Widget.H:931
Fl_Widget::parent
void parent(Fl_Group *p)
Definition: Fl_Widget.H:264
Fl_Widget::image
void image(Fl_Image *img)
Definition: Fl_Widget.H:521
Fl_Widget::VISIBLE_FOCUS
accepts keyboard focus navigation if the widget can have the focus
Definition: Fl_Widget.H:165
Fl_Label::value
const char * value
Definition: Fl_Widget.H:67
Fl_Callback0
void() Fl_Callback0(Fl_Widget *)
Definition: Fl_Widget.H:53
Fl_Callback1
void() Fl_Callback1(Fl_Widget *, long)
Definition: Fl_Widget.H:55
Fl_Widget::user_data_
void * user_data_
Definition: Fl_Widget.H:106
Fl_Widget::do_callback
void do_callback(Fl_Widget *o, long arg)
Definition: Fl_Widget.H:869
Fl_Widget::argument
long argument() const
Definition: Fl_Widget.H:605
Fl_Widget::tooltip
const char * tooltip() const
Definition: Fl_Widget.H:552
y
int y
Definition: test.c:74
Fl_Widget::labelsize
void labelsize(Fl_Fontsize pix)
Definition: Fl_Widget.H:508
Fl_Widget::FULLSCREEN
a fullscreen window (Fl_Window)
Definition: Fl_Widget.H:174
Fl_Widget::copy_tooltip
void copy_tooltip(const char *text)
Definition: Fl_Tooltip.cxx:365
Fl_Widget::visible_focus
unsigned int visible_focus()
Definition: Fl_Widget.H:838
Fl_Widget::contains
int contains(const Fl_Widget *w) const
Definition: Fl_Widget.cxx:303
Fl_Label::font
Fl_Font font
Definition: Fl_Widget.H:73
Fl_Widget::NOBORDER
don't draw a decoration (Fl_Window)
Definition: Fl_Widget.H:159
Fl_Widget::USERFLAG2
reserved for 3rd party extensions
Definition: Fl_Widget.H:178
Fl_Widget::type
uchar type() const
Definition: Fl_Widget.H:274
f
Fl_Box_Draw_F * f
Definition: fl_boxtype.cxx:285
Fl_Widget::parent
Fl_Group * parent() const
Definition: Fl_Widget.H:254
Y
static int Y
Definition: Fl_Tooltip.cxx:76
Fl_Widget::clear_visible_focus
void clear_visible_focus()
Definition: Fl_Widget.H:826
Fl_Widget::SHORTCUT_LABEL
the label contains a shortcut we need to draw
Definition: Fl_Widget.H:162
Fl_Widget::inside
int inside(const Fl_Widget *wgt) const
Definition: Fl_Widget.H:898
Fl_Widget::argument
void argument(long v)
Definition: Fl_Widget.H:611
Fl_Widget::when_
uchar when_
Definition: Fl_Widget.H:115
Fl_Widget::callback
void callback(Fl_Callback1 *cb, long p=0)
Definition: Fl_Widget.H:587
Fl_Widget::Fl_Widget
Fl_Widget(const Fl_Widget &)
Fl_Widget::color2
Fl_Color color2() const
Definition: Fl_Widget.H:1021
Fl_Widget::take_focus
int take_focus()
Definition: Fl_Widget.cxx:162
Fl_Widget::labelsize
Fl_Fontsize labelsize() const
Definition: Fl_Widget.H:502
Fl_When
Fl_When
Definition: Enumerations.H:439
Fl_Widget::damage_resize
int damage_resize(int, int, int, int)
Definition: Fl_Widget.cxx:155
Fl_Widget::box_
uchar box_
Definition: Fl_Widget.H:114
Fl_Align
unsigned Fl_Align
Definition: Enumerations.H:828
Fl_Widget::top_window
Fl_Window * top_window() const
Definition: Fl_Window.cxx:130
uchar
unsigned char uchar
Definition: fl_types.h:30
Fl_Widget::deimage
Fl_Image * deimage()
Definition: Fl_Widget.H:533
Fl_Widget::INACTIVE
the widget can't receive focus, and is disabled but potentially visible
Definition: Fl_Widget.H:156
Fl_Widget::INVISIBLE
the widget is not drawn, but can receive a few special events
Definition: Fl_Widget.H:157
Fl_Widget::clear_flag
void clear_flag(unsigned int c)
Definition: Fl_Widget.H:151
Enumerations.H
Fl_Widget::labelcolor
void labelcolor(Fl_Color c)
Definition: Fl_Widget.H:478
Fl_Widget::selection_color
void selection_color(Fl_Color a)
Definition: Fl_Widget.H:406
Fl_Widget::use_accents_menu
int use_accents_menu()
Definition: Fl_Widget.H:1016
Fl_Label::align_
Fl_Align align_
Definition: Fl_Widget.H:79
Fl_Widget::draw_focus
void draw_focus()
Definition: Fl_Widget.H:186
Fl_Widget::image
Fl_Image * image()
Definition: Fl_Widget.H:514
Fl_Widget::is_label_copied
int is_label_copied() const
Definition: Fl_Widget.H:247
Fl_Widget::image
const Fl_Image * image() const
Definition: Fl_Widget.H:515