31#if defined(__GNUC__) || defined(__clang__)
37typedef uintptr_t fl_uintptr_t;
40typedef unsigned long fl_uintptr_t;
84 void draw(
int,
int,
int,
int,
Fl_Align)
const ;
85 void measure(
int &w,
int &h)
const ;
117 const char *tooltip_;
136 Fl_Widget(
int x,
int y,
int w,
int h,
const char *label=0L);
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_;}
160 FORCE_POSITION = 1<<4,
162 SHORTCUT_LABEL = 1<<6,
165 VISIBLE_FOCUS = 1<<9,
166 COPIED_LABEL = 1<<10,
167 CLIP_CHILDREN = 1<<11,
169 TOOLTIP_WINDOW = 1<<13,
172 GROUP_RELATIVE = 1<<16,
173 COPIED_TOOLTIP = 1<<17,
175 MAC_USE_ACCENTS_MENU = 1<<19,
181 void draw_box()
const;
184 void draw_backdrop()
const;
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;
237 virtual int handle(
int event);
284 int x()
const {
return x_;}
289 int y()
const {
return y_;}
294 int w()
const {
return w_;}
299 int h()
const {
return h_;}
320 virtual void resize(
int x,
int y,
int w,
int h);
323 int damage_resize(
int,
int,
int,
int);
341 void size(
int W,
int H) {resize(x_,y_,W,H);}
433 void label(
const char* text);
445 void copy_label(
const char *new_label);
552 const char *
tooltip()
const {
return tooltip_;}
554 void tooltip(
const char *text);
555 void copy_tooltip(
const char *text);
660 unsigned int visible()
const {
return !(flags_&INVISIBLE);}
666 int visible_r()
const;
708 unsigned int active()
const {
return !(flags_&INACTIVE);}
714 int active_r()
const;
747 unsigned int output()
const {
return (flags_&OUTPUT);}
764 unsigned int takesevents()
const {
return !(flags_&(INACTIVE|INVISIBLE|OUTPUT));}
781 unsigned int changed()
const {
return flags_&CHANGED;}
832 void visible_focus(
int v) {
if (v) set_visible_focus();
else clear_visible_focus(); }
855 static void default_callback(
Fl_Widget *cb,
void *d);
873 void do_callback(
Fl_Widget* o,
void* arg=0);
878 static unsigned int label_shortcut(
const char *t);
880 static int test_shortcut(
const char*,
const bool require_alt =
false);
882 void _set_fullscreen() {flags_ |= FULLSCREEN;}
883 void _clear_fullscreen() {flags_ &= ~FULLSCREEN;}
938 void damage(
uchar c);
946 void damage(
uchar c,
int x,
int y,
int w,
int h);
948 void draw_label(
int,
int,
int,
int,
Fl_Align)
const;
961 Fl_Window* top_window_offset(
int& xoff,
int& yoff)
const;
1034#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:875
unsigned Fl_Align
FLTK type for alignment control.
Definition Enumerations.H:826
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_Boxtype
Definition Enumerations.H:601
The Fl_Gl_Window widget sets things up so OpenGL works.
Definition Fl_Gl_Window.H:56
The Fl_Group class is the FLTK container widget.
Definition Fl_Group.H:41
Base class for image caching and drawing.
Definition Fl_Image.H:55
This widget produces an actual window.
Definition Fl_Window.H:57
unsigned char uchar
unsigned char
Definition fl_types.h:30
This struct stores all information for a text or mixed graphics label.
Definition Fl_Widget.H:65
uchar type
type of label.
Definition Fl_Widget.H:81
Fl_Image * deimage
optional image for a deactivated label
Definition Fl_Widget.H:71
void measure(int &w, int &h) const
Measures the size of the label.
Definition fl_labeltype.cxx:86
Fl_Fontsize size
size of label font
Definition Fl_Widget.H:75
const char * value
label text
Definition Fl_Widget.H:67
Fl_Align align_
alignment of label
Definition Fl_Widget.H:79
Fl_Color color
text color
Definition Fl_Widget.H:77
Fl_Image * image
optional image for an active label
Definition Fl_Widget.H:69
Fl_Font font
label font used in text
Definition Fl_Widget.H:73