46typedef uintptr_t fl_uintptr_t;
49typedef unsigned long fl_uintptr_t;
52typedef unsigned char fl_damage_t;
94 void draw(
int,
int,
int,
int,
Fl_Align)
const ;
95 void measure(
int &w,
int &h)
const ;
127 const char *tooltip_;
146 Fl_Widget(
int x,
int y,
int w,
int h,
const char *label=0L);
149 void x(
int v) {x_ = v;}
151 void y(
int v) {y_ = v;}
153 void w(
int v) {w_ = v;}
155 void h(
int v) {h_ = v;}
157 unsigned int flags()
const {
return flags_;}
170 FORCE_POSITION = 1<<4,
172 SHORTCUT_LABEL = 1<<6,
175 VISIBLE_FOCUS = 1<<9,
176 COPIED_LABEL = 1<<10,
177 CLIP_CHILDREN = 1<<11,
179 TOOLTIP_WINDOW = 1<<13,
182 GROUP_RELATIVE = 1<<16,
183 COPIED_TOOLTIP = 1<<17,
189 void draw_box()
const;
192 void draw_backdrop()
const;
195 void draw_focus(
Fl_Boxtype t,
int x,
int y,
int w,
int h)
const;
196 void draw_label()
const;
197 void draw_label(
int,
int,
int,
int)
const;
245 virtual int handle(
int event);
282 int x()
const {
return x_;}
287 int y()
const {
return y_;}
292 int w()
const {
return w_;}
297 int h()
const {
return h_;}
318 virtual void resize(
int x,
int y,
int w,
int h);
321 int damage_resize(
int,
int,
int,
int);
339 void size(
int W,
int H) {resize(x_,y_,W,H);}
431 void label(
const char* text);
443 void copy_label(
const char *new_label);
550 const char *
tooltip()
const {
return tooltip_;}
552 void tooltip(
const char *text);
553 void copy_tooltip(
const char *text);
656 unsigned int visible()
const {
return !(flags_&INVISIBLE);}
662 int visible_r()
const;
704 unsigned int active()
const {
return !(flags_&INACTIVE);}
710 int active_r()
const;
743 unsigned int output()
const {
return (flags_&OUTPUT);}
760 unsigned int takesevents()
const {
return !(flags_&(INACTIVE|INVISIBLE|OUTPUT));}
777 unsigned int changed()
const {
return flags_&CHANGED;}
816 void visible_focus(
int v) {
if (v) set_visible_focus();
else clear_visible_focus(); }
831 static void default_callback(
Fl_Widget *cb,
void *d);
849 void do_callback(
Fl_Widget* o,
void* arg=0);
854 static unsigned int label_shortcut(
const char *t);
856 static int test_shortcut(
const char*,
const bool require_alt =
false);
890 fl_damage_t
damage()
const {
return damage_;}
911 void damage(fl_damage_t c);
919 void damage(fl_damage_t c,
int x,
int y,
int w,
int h);
921 void draw_label(
int,
int,
int,
int,
Fl_Align)
const;
1002#define FL_RESERVED_TYPE 100
This file contains type definitions and general enumerations.
int Fl_Font
A font number is an index into the internal font table.
Definition Enumerations.H:707
unsigned Fl_Align
FLTK type for alignment control.
Definition Enumerations.H:658
unsigned int Fl_Color
an FLTK color value
Definition Enumerations.H:764
Fl_Labeltype
The labeltype() method sets the type of the label.
Definition Enumerations.H:601
int Fl_Fontsize
Size of a font in pixels.
Definition Enumerations.H:736
Fl_When
These constants determine when a callback is performed.
Definition Enumerations.H:313
Fl_Boxtype
Definition Enumerations.H:472
The Fl_Gl_Window widget sets things up so OpenGL works.
Definition Fl_Gl_Window.H:65
The Fl_Group class is the FLTK container widget.
Definition Fl_Group.H:45
Fl_Image is the base class used for caching and drawing all kinds of images in FLTK.
Definition Fl_Image.H:51
This widget produces an actual window.
Definition Fl_Window.H:58
unsigned char uchar
unsigned char
Definition fl_types.h:39
This struct stores all information for a text or mixed graphics label.
Definition Fl_Widget.H:75
uchar type
type of label.
Definition Fl_Widget.H:91
Fl_Image * deimage
optional image for a deactivated label
Definition Fl_Widget.H:81
void measure(int &w, int &h) const
Measures the size of the label.
Definition fl_labeltype.cxx:95
Fl_Fontsize size
size of label font
Definition Fl_Widget.H:85
const char * value
label text
Definition Fl_Widget.H:77
Fl_Align align_
alignment of label
Definition Fl_Widget.H:89
Fl_Color color
text color
Definition Fl_Widget.H:87
Fl_Image * image
optional image for an active label
Definition Fl_Widget.H:79
Fl_Font font
label font used in text
Definition Fl_Widget.H:83