FLTK 1.4.0
Loading...
Searching...
No Matches
Enumerations.H
Go to the documentation of this file.
1//
2// Enumerations for the Fast Light Tool Kit (FLTK).
3//
4// Copyright 1998-2024 by Bill Spitzak and others.
5//
6// This library is free software. Distribution and use rights are outlined in
7// the file "COPYING" which should have been included with this file. If this
8// file is missing or damaged, see the license at:
9//
10// https://www.fltk.org/COPYING.php
11//
12// Please see the following page on how to report bugs and issues:
13//
14// https://www.fltk.org/bugs.php
15//
16
21#ifndef Fl_Enumerations_H
22#define Fl_Enumerations_H
23
24/*
25 ******************************************************************************
26 * FL_ABI_VERSION is defined by configure or CMake since FLTK 1.3.4.
27 * It is written to FL/fl_config.h and #included here.
28 ******************************************************************************
29 * For more informations on FL_ABI_VERSION see README.abi-version.txt.
30 ******************************************************************************
31 */
32
33#include <FL/fl_config.h>
34
35# include "Fl_Export.H"
36# include "fl_types.h"
37# include <FL/platform_types.h> // for FL_COMMAND and FL_CONTROL
38
52#define FL_MAJOR_VERSION 1
53
59#define FL_MINOR_VERSION 4
60
66#define FL_PATCH_VERSION 0
67
89#define FL_VERSION ( (double)FL_MAJOR_VERSION + \
90 (double)FL_MINOR_VERSION * 0.01 + \
91 (double)FL_PATCH_VERSION * 0.0001 )
92
111#define FL_API_VERSION (FL_MAJOR_VERSION*10000 + FL_MINOR_VERSION*100 + FL_PATCH_VERSION)
112
143#ifndef FL_ABI_VERSION
144#define FL_ABI_VERSION (FL_MAJOR_VERSION*10000 + FL_MINOR_VERSION*100)
145#endif
146
147/*
148 Check if FL_ABI_VERSION is out of allowed range; redefine if necessary.
149
150 This is done to prevent users from defining an illegal ABI version.
151
152 Rule: FL_MAJOR_VERSION * 10000 + FL_MINOR_VERSION * 100
153 <= FL_ABI_VERSION <= FL_API_VERSION.
154
155 Example (FLTK 1.3.4):
156
157 10300 <= FL_ABI_VERSION <= 10304
158
159 Note: configure + CMake can be used to define FL_ABI_VERSION, but they
160 do not check validity. This is done here.
161*/
162
163#if FL_ABI_VERSION < FL_MAJOR_VERSION*10000 + FL_MINOR_VERSION*100
164
165# undef FL_ABI_VERSION
166# define FL_ABI_VERSION (FL_MAJOR_VERSION*10000 + FL_MINOR_VERSION*100)
167
168#elif FL_ABI_VERSION > FL_API_VERSION
169
170# undef FL_ABI_VERSION
171# define FL_ABI_VERSION FL_API_VERSION
172
173#endif
174
// group: Version Numbers
176
195// DEV NOTE: Keep this list in sync with FL/names.h
196enum Fl_Event { // events
199
212
220
229
235
244
259
264
286
291
296
303
311
325
332
337
345
353
359
366
371
377
383
387
410 FL_ZOOM_EVENT = 27
411// DEV NOTE: Keep this list in sync with FL/names.h
413
// group: When Conditions
438
439
// group: Callback Reasons
463
464
475// FIXME: These codes collide with valid Unicode keys
476
477#define FL_Button 0xfee8
478#define FL_BackSpace 0xff08
479#define FL_Tab 0xff09
480#define FL_Iso_Key 0xff0c
481#define FL_Enter 0xff0d
482#define FL_Pause 0xff13
483#define FL_Scroll_Lock 0xff14
484#define FL_Escape 0xff1b
485#define FL_Kana 0xff2e
486#define FL_Eisu 0xff2f
487#define FL_Yen 0xff30
488#define FL_JIS_Underscore 0xff31
489#define FL_Home 0xff50
490#define FL_Left 0xff51
491#define FL_Up 0xff52
492#define FL_Right 0xff53
493#define FL_Down 0xff54
494#define FL_Page_Up 0xff55
495#define FL_Page_Down 0xff56
496#define FL_End 0xff57
497#define FL_Print 0xff61
498#define FL_Insert 0xff63
499#define FL_Menu 0xff67
500#define FL_Help 0xff68
501#define FL_Num_Lock 0xff7f
502#define FL_KP 0xff80
503#define FL_KP_Enter 0xff8d
504#define FL_KP_Last 0xffbd
505#define FL_F 0xffbd
506#define FL_F_Last 0xffe0
507#define FL_Shift_L 0xffe1
508#define FL_Shift_R 0xffe2
509#define FL_Control_L 0xffe3
510#define FL_Control_R 0xffe4
511#define FL_Caps_Lock 0xffe5
512#define FL_Meta_L 0xffe7
513#define FL_Meta_R 0xffe8
514#define FL_Alt_L 0xffe9
515#define FL_Alt_R 0xffea
516#define FL_Delete 0xffff
517
518// These use the Private Use Area (PUA) of the Basic Multilingual Plane
519// of Unicode. Guaranteed not to conflict with a proper Unicode character.
520
521// These primarily map to the XFree86 keysym range
522#define FL_Volume_Down 0xEF11
523#define FL_Volume_Mute 0xEF12
524#define FL_Volume_Up 0xEF13
525#define FL_Media_Play 0xEF14
526#define FL_Media_Stop 0xEF15
527#define FL_Media_Prev 0xEF16
528#define FL_Media_Next 0xEF17
529#define FL_Home_Page 0xEF18
530#define FL_Mail 0xEF19
531#define FL_Search 0xEF1B
532#define FL_Back 0xEF26
533#define FL_Forward 0xEF27
534#define FL_Stop 0xEF28
535#define FL_Refresh 0xEF29
536#define FL_Sleep 0xEF2F
537#define FL_Favorites 0xEF30
538
// group: Non-ASCII key names
540
550#define FL_LEFT_MOUSE 1
551#define FL_MIDDLE_MOUSE 2
552#define FL_RIGHT_MOUSE 3
553
// group: Mouse Buttons
555
556
// group: Event States
563
564// FIXME: it would be nice to have the modifiers in the upper 8 bit so that
565// a unicode key (24bit) can be sent as an unsigned with the modifiers.
566
567#define FL_SHIFT 0x00010000
568#define FL_CAPS_LOCK 0x00020000
569#define FL_CTRL 0x00040000
570#define FL_ALT 0x00080000
571#define FL_NUM_LOCK 0x00100000
572 // most X servers do this?
573#define FL_META 0x00400000
574 // correct for XFree86
575#define FL_SCROLL_LOCK 0x00800000
576 // correct for XFree86
577#define FL_BUTTON1 0x01000000
578#define FL_BUTTON2 0x02000000
579#define FL_BUTTON3 0x04000000
580#define FL_BUTTONS 0x7f000000
581#define FL_BUTTON(n) (0x00800000<<(n))
582
583#define FL_KEY_MASK 0x0000ffff
584 // FIXME: Unicode needs 24 bits!
585
// group: Event States
587
// group: Box Types
614
626enum Fl_Boxtype { // boxtypes (if you change these you must also change fl_boxtype.cxx):
627
698
699#ifndef FL_DOXYGEN
700
701extern FL_EXPORT Fl_Boxtype fl_define_FL_ROUND_UP_BOX();
702#define FL_ROUND_UP_BOX fl_define_FL_ROUND_UP_BOX()
703#define FL_ROUND_DOWN_BOX (Fl_Boxtype)(fl_define_FL_ROUND_UP_BOX()+1)
704extern FL_EXPORT Fl_Boxtype fl_define_FL_SHADOW_BOX();
705#define FL_SHADOW_BOX fl_define_FL_SHADOW_BOX()
706#define FL_SHADOW_FRAME (Fl_Boxtype)(fl_define_FL_SHADOW_BOX()+2)
707extern FL_EXPORT Fl_Boxtype fl_define_FL_ROUNDED_BOX();
708#define FL_ROUNDED_BOX fl_define_FL_ROUNDED_BOX()
709#define FL_ROUNDED_FRAME (Fl_Boxtype)(fl_define_FL_ROUNDED_BOX()+2)
710extern FL_EXPORT Fl_Boxtype fl_define_FL_RFLAT_BOX();
711#define FL_RFLAT_BOX fl_define_FL_RFLAT_BOX()
712extern FL_EXPORT Fl_Boxtype fl_define_FL_RSHADOW_BOX();
713#define FL_RSHADOW_BOX fl_define_FL_RSHADOW_BOX()
714extern FL_EXPORT Fl_Boxtype fl_define_FL_DIAMOND_BOX();
715#define FL_DIAMOND_UP_BOX fl_define_FL_DIAMOND_BOX()
716#define FL_DIAMOND_DOWN_BOX (Fl_Boxtype)(fl_define_FL_DIAMOND_BOX()+1)
717extern FL_EXPORT Fl_Boxtype fl_define_FL_OVAL_BOX();
718#define FL_OVAL_BOX fl_define_FL_OVAL_BOX()
719#define FL_OSHADOW_BOX (Fl_Boxtype)(fl_define_FL_OVAL_BOX()+1)
720#define FL_OVAL_FRAME (Fl_Boxtype)(fl_define_FL_OVAL_BOX()+2)
721#define FL_OFLAT_BOX (Fl_Boxtype)(fl_define_FL_OVAL_BOX()+3)
722
723extern FL_EXPORT Fl_Boxtype fl_define_FL_PLASTIC_UP_BOX();
724#define FL_PLASTIC_UP_BOX fl_define_FL_PLASTIC_UP_BOX()
725#define FL_PLASTIC_DOWN_BOX (Fl_Boxtype)(fl_define_FL_PLASTIC_UP_BOX()+1)
726#define FL_PLASTIC_UP_FRAME (Fl_Boxtype)(fl_define_FL_PLASTIC_UP_BOX()+2)
727#define FL_PLASTIC_DOWN_FRAME (Fl_Boxtype)(fl_define_FL_PLASTIC_UP_BOX()+3)
728#define FL_PLASTIC_THIN_UP_BOX (Fl_Boxtype)(fl_define_FL_PLASTIC_UP_BOX()+4)
729#define FL_PLASTIC_THIN_DOWN_BOX (Fl_Boxtype)(fl_define_FL_PLASTIC_UP_BOX()+5)
730#define FL_PLASTIC_ROUND_UP_BOX (Fl_Boxtype)(fl_define_FL_PLASTIC_UP_BOX()+6)
731#define FL_PLASTIC_ROUND_DOWN_BOX (Fl_Boxtype)(fl_define_FL_PLASTIC_UP_BOX()+7)
732
733extern FL_EXPORT Fl_Boxtype fl_define_FL_GTK_UP_BOX();
734#define FL_GTK_UP_BOX fl_define_FL_GTK_UP_BOX()
735#define FL_GTK_DOWN_BOX (Fl_Boxtype)(fl_define_FL_GTK_UP_BOX()+1)
736#define FL_GTK_UP_FRAME (Fl_Boxtype)(fl_define_FL_GTK_UP_BOX()+2)
737#define FL_GTK_DOWN_FRAME (Fl_Boxtype)(fl_define_FL_GTK_UP_BOX()+3)
738#define FL_GTK_THIN_UP_BOX (Fl_Boxtype)(fl_define_FL_GTK_UP_BOX()+4)
739#define FL_GTK_THIN_DOWN_BOX (Fl_Boxtype)(fl_define_FL_GTK_UP_BOX()+5)
740#define FL_GTK_THIN_UP_FRAME (Fl_Boxtype)(fl_define_FL_GTK_UP_BOX()+6)
741#define FL_GTK_THIN_DOWN_FRAME (Fl_Boxtype)(fl_define_FL_GTK_UP_BOX()+7)
742#define FL_GTK_ROUND_UP_BOX (Fl_Boxtype)(fl_define_FL_GTK_UP_BOX()+8)
743#define FL_GTK_ROUND_DOWN_BOX (Fl_Boxtype)(fl_define_FL_GTK_UP_BOX()+9)
744
745extern FL_EXPORT Fl_Boxtype fl_define_FL_GLEAM_UP_BOX();
746#define FL_GLEAM_UP_BOX fl_define_FL_GLEAM_UP_BOX()
747#define FL_GLEAM_DOWN_BOX (Fl_Boxtype)(fl_define_FL_GLEAM_UP_BOX()+1)
748#define FL_GLEAM_UP_FRAME (Fl_Boxtype)(fl_define_FL_GLEAM_UP_BOX()+2)
749#define FL_GLEAM_DOWN_FRAME (Fl_Boxtype)(fl_define_FL_GLEAM_UP_BOX()+3)
750#define FL_GLEAM_THIN_UP_BOX (Fl_Boxtype)(fl_define_FL_GLEAM_UP_BOX()+4)
751#define FL_GLEAM_THIN_DOWN_BOX (Fl_Boxtype)(fl_define_FL_GLEAM_UP_BOX()+5)
752#define FL_GLEAM_ROUND_UP_BOX (Fl_Boxtype)(fl_define_FL_GLEAM_UP_BOX()+6)
753#define FL_GLEAM_ROUND_DOWN_BOX (Fl_Boxtype)(fl_define_FL_GLEAM_UP_BOX()+7)
754
755extern FL_EXPORT Fl_Boxtype fl_define_FL_OXY_UP_BOX();
756#define FL_OXY_UP_BOX fl_define_FL_OXY_UP_BOX()
757#define FL_OXY_DOWN_BOX (Fl_Boxtype)(fl_define_FL_OXY_UP_BOX()+1)
758#define FL_OXY_UP_FRAME (Fl_Boxtype)(fl_define_FL_OXY_UP_BOX()+2)
759#define FL_OXY_DOWN_FRAME (Fl_Boxtype)(fl_define_FL_OXY_UP_BOX()+3)
760#define FL_OXY_THIN_UP_BOX (Fl_Boxtype)(fl_define_FL_OXY_UP_BOX()+4)
761#define FL_OXY_THIN_DOWN_BOX (Fl_Boxtype)(fl_define_FL_OXY_UP_BOX()+5)
762#define FL_OXY_THIN_UP_FRAME (Fl_Boxtype)(fl_define_FL_OXY_UP_BOX()+6)
763#define FL_OXY_THIN_DOWN_FRAME (Fl_Boxtype)(fl_define_FL_OXY_UP_BOX()+7)
764#define FL_OXY_ROUND_UP_BOX (Fl_Boxtype)(fl_define_FL_OXY_UP_BOX()+8)
765#define FL_OXY_ROUND_DOWN_BOX (Fl_Boxtype)(fl_define_FL_OXY_UP_BOX()+9)
766#define FL_OXY_BUTTON_UP_BOX (Fl_Boxtype)(fl_define_FL_OXY_UP_BOX()+10)
767#define FL_OXY_BUTTON_DOWN_BOX (Fl_Boxtype)(fl_define_FL_OXY_UP_BOX()+11)
768
769#endif // ! FL_DOXYGEN
770
771// conversions of box types to other boxtypes:
778 return (Fl_Boxtype)((b<FL_UP_BOX||b%4>1)?b:(b-2));
779}
786 return (Fl_Boxtype)((b<FL_UP_BOX)?b:(b|1));
787}
794 return (Fl_Boxtype)((b%4<2)?b:(b+2));
795}
796
797// back-compatibility box types:
798#define FL_FRAME FL_ENGRAVED_FRAME
799#define FL_FRAME_BOX FL_ENGRAVED_BOX
800#define FL_CIRCLE_BOX FL_ROUND_DOWN_BOX
801#define FL_DIAMOND_BOX FL_DIAMOND_DOWN_BOX
802
// group: Box Types
804
828
840#define FL_SYMBOL_LABEL FL_NORMAL_LABEL
845extern Fl_Labeltype FL_EXPORT fl_define_FL_SHADOW_LABEL();
849#define FL_SHADOW_LABEL fl_define_FL_SHADOW_LABEL()
850
859#define FL_ENGRAVED_LABEL fl_define_FL_ENGRAVED_LABEL()
860
869#define FL_EMBOSSED_LABEL fl_define_FL_EMBOSSED_LABEL()
870
875extern Fl_Labeltype FL_EXPORT fl_define_FL_MULTI_LABEL();
880#define FL_MULTI_LABEL fl_define_FL_MULTI_LABEL()
881
886extern Fl_Labeltype FL_EXPORT fl_define_FL_ICON_LABEL();
890#define FL_ICON_LABEL fl_define_FL_ICON_LABEL()
891
896extern Fl_Labeltype FL_EXPORT fl_define_FL_IMAGE_LABEL();
903#define FL_IMAGE_LABEL fl_define_FL_IMAGE_LABEL()
904
967typedef unsigned Fl_Align;
968
971
974const Fl_Align FL_ALIGN_TOP = 0x0001;
975
978
982const Fl_Align FL_ALIGN_LEFT = 0x0004;
983
986
989
992
995
997const Fl_Align FL_ALIGN_CLIP = 0x0040;
998
1001
1004
1007
1010
1011const Fl_Align FL_ALIGN_TOP_LEFT = FL_ALIGN_TOP | FL_ALIGN_LEFT;
1012const Fl_Align FL_ALIGN_TOP_RIGHT = FL_ALIGN_TOP | FL_ALIGN_RIGHT;
1013const Fl_Align FL_ALIGN_BOTTOM_LEFT = FL_ALIGN_BOTTOM | FL_ALIGN_LEFT;
1014const Fl_Align FL_ALIGN_BOTTOM_RIGHT = FL_ALIGN_BOTTOM | FL_ALIGN_RIGHT;
1015
1018
1021
1024
1027
1030
1033
1044typedef int Fl_Font;
1045
1058const Fl_Font FL_SYMBOL = 12;
1059const Fl_Font FL_SCREEN = 13;
1062
1064const Fl_Font FL_BOLD = 1;
1067
1073typedef int Fl_Fontsize;
1074
1075extern FL_EXPORT Fl_Fontsize FL_NORMAL_SIZE;
1076
1101typedef unsigned int Fl_Color;
1102
1103// Standard colors. These are used as default colors in widgets and altered as necessary
1108
1109 // boxtypes generally limit themselves to these colors so
1110 // the whole ramp is not allocated:
1111
1112const Fl_Color FL_GRAY0 = 32; // 'A'
1113const Fl_Color FL_DARK3 = 39; // 'H'
1114const Fl_Color FL_DARK2 = 45; // 'N'
1115const Fl_Color FL_DARK1 = 47; // 'P'
1117const Fl_Color FL_BACKGROUND_COLOR = 49; // 'R' default background color
1118const Fl_Color FL_LIGHT1 = 50; // 'S'
1119const Fl_Color FL_LIGHT2 = 52; // 'U'
1120const Fl_Color FL_LIGHT3 = 54; // 'W'
1121
1122 // FLTK provides a 5x8x5 color cube that is used with colormap visuals
1123
1124const Fl_Color FL_BLACK = 56;
1125const Fl_Color FL_RED = 88;
1126const Fl_Color FL_GREEN = 63;
1127const Fl_Color FL_YELLOW = 95;
1128const Fl_Color FL_BLUE = 216;
1129const Fl_Color FL_MAGENTA = 248;
1130const Fl_Color FL_CYAN = 223;
1131const Fl_Color FL_DARK_RED = 72;
1132
1133const Fl_Color FL_DARK_GREEN = 60;
1134const Fl_Color FL_DARK_YELLOW = 76;
1135const Fl_Color FL_DARK_BLUE = 136;
1136const Fl_Color FL_DARK_MAGENTA = 152;
1137const Fl_Color FL_DARK_CYAN = 140;
1138
1139const Fl_Color FL_WHITE = 255;
1140
1143#define FL_FREE_COLOR (Fl_Color)16
1144#define FL_NUM_FREE_COLOR 16
1145#define FL_GRAY_RAMP (Fl_Color)32
1146#define FL_NUM_GRAY 24
1147#define FL_GRAY FL_BACKGROUND_COLOR
1148#define FL_COLOR_CUBE (Fl_Color)56
1149#define FL_NUM_RED 5
1150#define FL_NUM_GREEN 8
1151#define FL_NUM_BLUE 5
1152
1153FL_EXPORT Fl_Color fl_inactive(Fl_Color c);
1154
1175
1177
1188
1189// The following functions are defined and documented in src/fl_contrast.cxx
1190
1191FL_EXPORT void fl_contrast_level(int level);
1192FL_EXPORT int fl_contrast_level();
1193FL_EXPORT void fl_contrast_mode(int mode);
1194FL_EXPORT int fl_contrast_mode();
1195
1196FL_EXPORT Fl_Color fl_contrast(Fl_Color fg, Fl_Color bg, Fl_Fontsize fs = 0, int context = 0);
1197
1198FL_EXPORT double fl_lightness(Fl_Color color);
1199FL_EXPORT double fl_luminance(Fl_Color color);
1200
1201// Other color functions are defined and documented in src/fl_color.cxx
1202
1203FL_EXPORT Fl_Color fl_color_average(Fl_Color c1, Fl_Color c2, float weight);
1204
1206inline Fl_Color fl_lighter(Fl_Color c) { return fl_color_average(c, FL_WHITE, .67f); }
1207
1209inline Fl_Color fl_darker(Fl_Color c) { return fl_color_average(c, FL_BLACK, .67f); }
1210
1213 if (!r && !g && !b) return FL_BLACK;
1214 else return (Fl_Color)(((((r << 8) | g) << 8) | b) << 8);
1215}
1216
1219 if (!g) return FL_BLACK;
1220 else return (Fl_Color)(((((g << 8) | g) << 8) | g) << 8);
1221}
1222
1231inline Fl_Color fl_gray_ramp(int i) {return (Fl_Color)(i+FL_GRAY_RAMP);}
1232
1247inline Fl_Color fl_color_cube(int r, int g, int b) {
1248 return (Fl_Color)((b*FL_NUM_RED + r) * FL_NUM_GREEN + g + FL_COLOR_CUBE);}
1249
// group: Colors
1251
1260/* FIXME: We should renumber these, but that will break the ABI */
1262 FL_CURSOR_DEFAULT = 0, // U+2196
1263 FL_CURSOR_ARROW = 35, // U+2196
1264 FL_CURSOR_CROSS = 66, // U+FF0B
1265 FL_CURSOR_WAIT = 76, // U+231A, U+231B
1266 FL_CURSOR_INSERT = 77, // U+2336
1267 FL_CURSOR_HAND = 31, // U+261C
1269 FL_CURSOR_MOVE = 27, // U+2725, U+270B
1270
1271 /* Resize indicators */
1272 FL_CURSOR_NS = 78, // U+21D5
1273 FL_CURSOR_WE = 79, // U+21D4
1274 FL_CURSOR_NWSE = 80, // U+2921
1275 FL_CURSOR_NESW = 81, // U+2922
1276 FL_CURSOR_N = 70, // U+2912
1277 FL_CURSOR_NE = 69, // U+2197
1278 FL_CURSOR_E = 49, // U+21E5
1279 FL_CURSOR_SE = 8, // U+21F2
1280 FL_CURSOR_S = 9, // U+2913
1281 FL_CURSOR_SW = 7, // U+2199
1282 FL_CURSOR_W = 36, // U+21E4
1283 FL_CURSOR_NW = 68, // U+21F1
1284
1285 FL_CURSOR_NONE =255
// group: Cursors
1288
1290enum { // values for "when" passed to Fl::add_fd()
1293 FL_EXCEPT = 8
1295
1298 FL_RGB = 0,
1299 FL_INDEX = 1,
1300 FL_SINGLE = 0,
1301 FL_DOUBLE = 2,
1302 FL_ACCUM = 4,
1303 FL_ALPHA = 8,
1304 FL_DEPTH = 16,
1305 FL_STENCIL = 32,
1306 FL_RGB8 = 64,
1307 FL_MULTISAMPLE= 128,
1308 FL_STEREO = 256,
1309 FL_FAKE_SINGLE = 512, // Fake single buffered windows using double-buffer
1310 FL_OPENGL3 = 1024
1311};
1312
1313// image alpha blending
1314
1315#define FL_IMAGE_WITH_ALPHA 0x40000000
1316
1327
1328// FLTK 1.0.x compatibility definitions (FLTK_1_0_COMPAT) dropped in 1.4.0
1329
1348
1382
1383#endif
Fl_Boxtype fl_frame(Fl_Boxtype b)
Get the unfilled, frame only version of a box.
Definition Enumerations.H:793
@ FL_WRITE
Call the callback when data can be written without blocking.
Definition Enumerations.H:1292
@ FL_EXCEPT
Call the callback if an exception occurs on the file.
Definition Enumerations.H:1293
@ FL_READ
Call the callback when there is data to be read.
Definition Enumerations.H:1291
const Fl_Font FL_TIMES_BOLD_ITALIC
Times roman bold-italic.
Definition Enumerations.H:1057
const Fl_Align FL_ALIGN_RIGHT
Align the label to the right of the widget.
Definition Enumerations.H:985
const Fl_Align FL_ALIGN_IMAGE_BACKDROP
If the label contains an image, draw the image or deimage in the background.
Definition Enumerations.H:1009
const Fl_Align FL_ALIGN_BOTTOM
Align the label at the bottom of the widget.
Definition Enumerations.H:977
const Fl_Align FL_ALIGN_LEFT_BOTTOM
Outside only, left of widget, bottom position, magic value: TOP | LEFT | RIGHT.
Definition Enumerations.H:1023
int Fl_Font
A font number is an index into the internal font table.
Definition Enumerations.H:1044
const Fl_Font FL_SYMBOL
Standard symbol font.
Definition Enumerations.H:1058
Fl_Labeltype fl_define_FL_ENGRAVED_LABEL()
Initializes the internal table entry for FL_ENGRAVED_LABEL and returns its internal value.
Definition fl_engraved_label.cxx:71
const Fl_Align FL_ALIGN_RIGHT_BOTTOM
Outside only, right of widget, bottom position, magic value: BOTTOM | LEFT | RIGHT.
Definition Enumerations.H:1026
Fl_Color fl_color_cube(int r, int g, int b)
Returns a color out of the color cube.
Definition Enumerations.H:1247
const Fl_Font FL_ZAPF_DINGBATS
Zapf-dingbats font.
Definition Enumerations.H:1061
const Fl_Font FL_COURIER_BOLD
Courier bold.
Definition Enumerations.H:1051
Fl_Arrow_Type
Arrow types define the type of arrow drawing function.
Definition Enumerations.H:1342
@ FL_ARROW_RETURN
Return arrow, e.g. in Fl_Return_Button.
Definition Enumerations.H:1346
@ FL_ARROW_DOUBLE
Double arrow, e.g. in Fl_Counter.
Definition Enumerations.H:1344
@ FL_ARROW_CHOICE
Dropdown box, e.g. in Fl_Choice.
Definition Enumerations.H:1345
@ FL_ARROW_SINGLE
Single arrow, e.g. in Fl_Scrollbar.
Definition Enumerations.H:1343
const Fl_Color FL_SELECTION_COLOR
the default selection/highlight color
Definition Enumerations.H:1107
const Fl_Font FL_TIMES
Times roman.
Definition Enumerations.H:1054
const Fl_Font FL_HELVETICA_ITALIC
Helvetica (or Arial) oblique.
Definition Enumerations.H:1048
const Fl_Font FL_TIMES_BOLD
Times roman bold.
Definition Enumerations.H:1055
Fl_Color() Fl_Contrast_Function(Fl_Color, Fl_Color, Fl_Fontsize, int)
Type of a custom fl_contrast() function.
Definition Enumerations.H:1174
const Fl_Align FL_ALIGN_CENTER
Align the label horizontally in the middle.
Definition Enumerations.H:970
unsigned Fl_Align
FLTK type for alignment control.
Definition Enumerations.H:967
const Fl_Align FL_ALIGN_IMAGE_OVER_TEXT
If the label contains an image, draw the text below the image.
Definition Enumerations.H:994
const Fl_Font FL_BOLD_ITALIC
add this to Helvetica, Courier, or Times
Definition Enumerations.H:1066
const Fl_Align FL_ALIGN_CLIP
All parts of the label that are larger than the widget will not be drawn.
Definition Enumerations.H:997
const Fl_Font FL_SCREEN
Default monospaced screen font.
Definition Enumerations.H:1059
const Fl_Font FL_BOLD
add this to Helvetica, Courier, or Times
Definition Enumerations.H:1064
const Fl_Color FL_BACKGROUND2_COLOR
the default background color for text, list, and valuator widgets
Definition Enumerations.H:1105
Fl_Color fl_gray_ramp(int i)
Returns a gray color value from black (i == 0) to white (i == FL_NUM_GRAY - 1).
Definition Enumerations.H:1231
const Fl_Align FL_ALIGN_TOP
Align the label at the top of the widget.
Definition Enumerations.H:974
const Fl_Align FL_ALIGN_TEXT_NEXT_TO_IMAGE
If the label contains an image, draw the text to the left of the image.
Definition Enumerations.H:1006
const Fl_Color FL_INACTIVE_COLOR
the inactive foreground color
Definition Enumerations.H:1106
Fl_Boxtype fl_down(Fl_Boxtype b)
Get the "pressed" or "down" version of a box.
Definition Enumerations.H:785
const Fl_Align FL_ALIGN_NOWRAP
Nothing, same as FL_ALIGN_CENTER, for back compatibility.
Definition Enumerations.H:1029
Fl_Cursor
The following constants define the mouse cursors that are available in FLTK.
Definition Enumerations.H:1261
@ FL_CURSOR_MOVE
4-pointed arrow or hand: ✥, ✋
Definition Enumerations.H:1269
@ FL_CURSOR_DEFAULT
the default cursor, usually an arrow: ↖
Definition Enumerations.H:1262
@ FL_CURSOR_HAND
pointing hand: ☜
Definition Enumerations.H:1267
@ FL_CURSOR_WE
left/right resize: ⇔
Definition Enumerations.H:1273
@ FL_CURSOR_SE
downwards, right resize: ⇲
Definition Enumerations.H:1279
@ FL_CURSOR_W
leftwards resize: ⇤
Definition Enumerations.H:1282
@ FL_CURSOR_NW
upwards, left resize: ⇱
Definition Enumerations.H:1283
@ FL_CURSOR_NONE
invisible.
Definition Enumerations.H:1285
@ FL_CURSOR_E
rightwards resize: ⇥
Definition Enumerations.H:1278
@ FL_CURSOR_CROSS
crosshair: +
Definition Enumerations.H:1264
@ FL_CURSOR_WAIT
busy indicator (for instance hourglass): ⌚,⌛
Definition Enumerations.H:1265
@ FL_CURSOR_NWSE
diagonal resize: ⤡
Definition Enumerations.H:1274
@ FL_CURSOR_HELP
question mark pointer: ?
Definition Enumerations.H:1268
@ FL_CURSOR_NS
up/down resize: ⇕
Definition Enumerations.H:1272
@ FL_CURSOR_INSERT
I-beam: ⌶
Definition Enumerations.H:1266
@ FL_CURSOR_NESW
diagonal resize: ⤢
Definition Enumerations.H:1275
@ FL_CURSOR_SW
downwards, left resize: ↙
Definition Enumerations.H:1281
@ FL_CURSOR_NE
upwards, right resize: ↗
Definition Enumerations.H:1277
@ FL_CURSOR_S
downwards resize: ⤓
Definition Enumerations.H:1280
@ FL_CURSOR_ARROW
an arrow pointer: ↖
Definition Enumerations.H:1263
@ FL_CURSOR_N
upwards resize: ⤒
Definition Enumerations.H:1276
const Fl_Font FL_HELVETICA
Helvetica (or Arial) normal (0)
Definition Enumerations.H:1046
Fl_Color fl_rgb_color(uchar r, uchar g, uchar b)
Returns the 24-bit color value closest to r, g, b.
Definition Enumerations.H:1212
const Fl_Font FL_COURIER_BOLD_ITALIC
Courier bold-italic.
Definition Enumerations.H:1053
const Fl_Font FL_TIMES_ITALIC
Times roman italic.
Definition Enumerations.H:1056
Fl_Color fl_darker(Fl_Color c)
Returns a darker version of the specified color.
Definition Enumerations.H:1209
unsigned int Fl_Color
An FLTK color value; see also Colors
Definition Enumerations.H:1101
const Fl_Color FL_FOREGROUND_COLOR
the default foreground color (0) used for labels and text
Definition Enumerations.H:1104
Fl_Labeltype fl_define_FL_IMAGE_LABEL()
Initializes the internal table entry for FL_IMAGE_LABEL and returns its internal value.
Definition Fl_Image.cxx:144
const Fl_Font FL_HELVETICA_BOLD_ITALIC
Helvetica (or Arial) bold-oblique.
Definition Enumerations.H:1049
Fl_Boxtype fl_box(Fl_Boxtype b)
Get the filled version of a frame.
Definition Enumerations.H:777
Fl_Damage
Damage masks.
Definition Enumerations.H:1318
@ FL_DAMAGE_USER2
Second user-defined damage bit.
Definition Enumerations.H:1324
@ FL_DAMAGE_EXPOSE
The window was exposed.
Definition Enumerations.H:1320
@ FL_DAMAGE_USER1
First user-defined damage bit.
Definition Enumerations.H:1323
@ FL_DAMAGE_OVERLAY
The overlay planes need to be redrawn.
Definition Enumerations.H:1322
@ FL_DAMAGE_CHILD
A child needs to be redrawn.
Definition Enumerations.H:1319
@ FL_DAMAGE_ALL
Everything needs to be redrawn.
Definition Enumerations.H:1325
@ FL_DAMAGE_SCROLL
The Fl_Scroll widget was scrolled.
Definition Enumerations.H:1321
Fl_Fontsize FL_NORMAL_SIZE
normal font size
Definition Fl_Widget.cxx:107
const Fl_Color FL_BACKGROUND_COLOR
Default background color.
Definition Enumerations.H:1117
const Fl_Align FL_ALIGN_RIGHT_TOP
Outside only, right of widget, top position, magic value: TOP | BOTTOM | RIGHT.
Definition Enumerations.H:1020
Fl_Mode
visual types and Fl_Gl_Window::mode() (values match Glut)
Definition Enumerations.H:1297
Fl_Labeltype fl_define_FL_ICON_LABEL()
Initializes the internal table entry for FL_ICON_LABEL and returns its internal value.
Definition Fl_File_Icon.cxx:52
const Fl_Align FL_ALIGN_TEXT_OVER_IMAGE
If the label contains an image, draw the text on top of the image.
Definition Enumerations.H:991
const Fl_Font FL_SCREEN_BOLD
Default monospaced bold screen font.
Definition Enumerations.H:1060
const Fl_Font FL_ITALIC
add this to Helvetica, Courier, or Times
Definition Enumerations.H:1065
const Fl_Font FL_FREE_FONT
first one to allocate
Definition Enumerations.H:1063
Fl_Labeltype fl_define_FL_MULTI_LABEL()
Initializes the internal table entry for FL_MULTI_LABEL and returns its internal value.
Definition Fl_Multi_Label.cxx:58
Fl_Labeltype fl_define_FL_SHADOW_LABEL()
Initializes the internal table entry for FL_SHADOW_LABEL and returns its internal value.
Definition fl_engraved_label.cxx:67
Fl_Event
Every time a user moves the mouse pointer, clicks a button, or presses a key, an event is generated a...
Definition Enumerations.H:196
@ FL_SCREEN_CONFIGURATION_CHANGED
The screen configuration (number, positions) was changed.
Definition Enumerations.H:396
@ FL_DND_LEAVE
The mouse has moved out of the widget.
Definition Enumerations.H:386
@ FL_KEYBOARD
Equivalent to FL_KEYDOWN.
Definition Enumerations.H:290
@ FL_KEYDOWN
A key was pressed (FL_KEYDOWN) or released (FL_KEYUP).
Definition Enumerations.H:285
@ FL_ENTER
The mouse has been moved to point at this widget.
Definition Enumerations.H:228
@ FL_CLOSE
The user clicked the close button of a window.
Definition Enumerations.H:302
@ FL_PUSH
A mouse button has gone down with the mouse pointing at this widget.
Definition Enumerations.H:211
@ FL_ACTIVATE
This widget is now active, due to Fl_Widget::activate() being called on it or one of its parents.
Definition Enumerations.H:336
@ FL_RELEASE
A mouse button has been released.
Definition Enumerations.H:219
@ FL_ZOOM_EVENT
A zoom event (ctrl/+/-/0/ or cmd/+/-/0/) was processed.
Definition Enumerations.H:410
@ FL_PASTE
You should get this event some time after you call Fl::paste().
Definition Enumerations.H:358
@ FL_SHORTCUT
If the Fl::focus() widget is zero or ignores an FL_KEYBOARD event then FLTK tries sending this event ...
Definition Enumerations.H:324
@ FL_UNFOCUS
This event is sent to the previous Fl::focus() widget when another widget gets the focus or the windo...
Definition Enumerations.H:263
@ FL_ZOOM_GESTURE
The user has made a zoom/pinch/magnification gesture (Mac OS platform only).
Definition Enumerations.H:406
@ FL_DND_RELEASE
The user has released the mouse button dropping data into the widget.
Definition Enumerations.H:392
@ FL_SHOW
This widget is visible again, due to Fl_Widget::show() being called on it or one of its parents,...
Definition Enumerations.H:352
@ FL_SELECTIONCLEAR
The Fl::selection_owner() will get this event before the selection is moved to another widget.
Definition Enumerations.H:365
@ FL_LEAVE
The mouse has moved out of the widget.
Definition Enumerations.H:234
@ FL_DRAG
The mouse has moved with a button held down.
Definition Enumerations.H:243
@ FL_DND_DRAG
The mouse has been moved inside a widget while dragging data.
Definition Enumerations.H:382
@ FL_KEYUP
Key release event.
Definition Enumerations.H:295
@ FL_MOVE
The mouse has moved without any mouse buttons held down.
Definition Enumerations.H:310
@ FL_FULLSCREEN
The fullscreen state of the window has changed.
Definition Enumerations.H:400
@ FL_MOUSEWHEEL
The user has moved the mouse wheel.
Definition Enumerations.H:370
@ FL_DEACTIVATE
This widget is no longer active, due to Fl_Widget::deactivate() being called on it or one of its pare...
Definition Enumerations.H:331
@ FL_FOCUS
This indicates an attempt to give a widget the keyboard focus.
Definition Enumerations.H:258
@ FL_HIDE
This widget is no longer visible, due to Fl_Widget::hide() being called on it or one of its parents,...
Definition Enumerations.H:344
@ FL_NO_EVENT
No event.
Definition Enumerations.H:198
@ FL_DND_ENTER
The mouse has been moved to point at this widget.
Definition Enumerations.H:376
const Fl_Align FL_ALIGN_LEFT_TOP
Outside only, left of widget, top position, magic value: TOP | BOTTOM | LEFT.
Definition Enumerations.H:1017
Fl_Labeltype
The labeltype() method sets the type of the label.
Definition Enumerations.H:816
@ _FL_EMBOSSED_LABEL
draws edges as though the text is raised
Definition Enumerations.H:821
@ _FL_SHADOW_LABEL
draws a drop shadow under the text
Definition Enumerations.H:819
@ _FL_IMAGE_LABEL
the label displays an "icon" based on a Fl_Image
Definition Enumerations.H:824
@ _FL_ENGRAVED_LABEL
draws edges as though the text is engraved
Definition Enumerations.H:820
@ FL_NORMAL_LABEL
draws the text (0)
Definition Enumerations.H:817
@ _FL_MULTI_LABEL
draws a composite label
Definition Enumerations.H:822
@ FL_NO_LABEL
does nothing
Definition Enumerations.H:818
@ FL_FREE_LABELTYPE
first free labeltype to use for creating own labeltypes
Definition Enumerations.H:826
@ _FL_ICON_LABEL
draws the icon associated with the text
Definition Enumerations.H:823
int Fl_Fontsize
Size of a font in pixels.
Definition Enumerations.H:1073
const Fl_Align FL_ALIGN_WRAP
Wrap text that does not fit the width of the widget.
Definition Enumerations.H:1000
Fl_When
These constants determine when a callback is performed.
Definition Enumerations.H:426
@ FL_WHEN_ENTER_KEY
Do the callback when the user presses the ENTER key and the value changes.
Definition Enumerations.H:432
@ FL_WHEN_RELEASE_ALWAYS
Do the callback when the button or key is released, even if the value doesn't change.
Definition Enumerations.H:431
@ FL_WHEN_ENTER_KEY_CHANGED
Do callbacks whether the value changed or not, and when the ENTER key is pressed.
Definition Enumerations.H:434
@ FL_WHEN_CLOSED
Do the callback when a child of Fl_Tabs is closed.
Definition Enumerations.H:435
@ FL_WHEN_ENTER_KEY_ALWAYS
Do the callback when the user presses the ENTER key, even if the value doesn't change.
Definition Enumerations.H:433
@ FL_WHEN_NOT_CHANGED
Do the callback whenever the user interacts with the widget.
Definition Enumerations.H:429
@ FL_WHEN_NEVER
Never call the callback.
Definition Enumerations.H:427
@ FL_WHEN_CHANGED
Do the callback only when the widget value changes.
Definition Enumerations.H:428
@ FL_WHEN_RELEASE
Do the callback when the button or key is released and the value changes.
Definition Enumerations.H:430
const Fl_Align FL_ALIGN_INSIDE
Draw the label inside of the widget.
Definition Enumerations.H:988
const Fl_Align FL_ALIGN_POSITION_MASK
Mask value to test for TOP, BOTTOM, LEFT, and RIGHT flags.
Definition Enumerations.H:1032
const Fl_Align FL_ALIGN_IMAGE_NEXT_TO_TEXT
If the label contains an image, draw the text to the right of the image.
Definition Enumerations.H:1003
Fl_Boxtype
FLTK standard box types.
Definition Enumerations.H:626
@ _FL_OXY_ROUND_DOWN_BOX
oxy version of FL_ROUND_DOWN_BOX, use FL_OXY_ROUND_DOWN_BOX
Definition Enumerations.H:693
@ _FL_PLASTIC_UP_BOX
plastic version of FL_UP_BOX, use FL_PLASTIC_UP_BOX
Definition Enumerations.H:658
@ _FL_RSHADOW_BOX
see figure Standard Box Types, use FL_RSHADOW_BOX
Definition Enumerations.H:647
@ _FL_OXY_BUTTON_DOWN_BOX
FL_OXY_BUTTON_DOWN_BOX (new boxtype ?), use FL_OXY_BUTTON_DOWN_BOX.
Definition Enumerations.H:695
@ FL_BORDER_BOX
see figure Standard Box Types
Definition Enumerations.H:642
@ _FL_PLASTIC_UP_FRAME
plastic version of FL_UP_FRAME, use FL_PLASTIC_UP_FRAME
Definition Enumerations.H:660
@ _FL_PLASTIC_ROUND_DOWN_BOX
plastic version of FL_ROUND_DOWN_BOX, use FL_PLASTIC_ROUND_DOWN_BOX
Definition Enumerations.H:665
@ _FL_PLASTIC_ROUND_UP_BOX
plastic version of FL_ROUND_UP_BOX, use FL_PLASTIC_ROUND_UP_BOX
Definition Enumerations.H:664
@ FL_THIN_UP_BOX
see figure Standard Box Types
Definition Enumerations.H:634
@ _FL_OXY_THIN_DOWN_BOX
oxy version of FL_THIN_DOWN_BOX, use FL_OXY_THIN_DOWN_BOX
Definition Enumerations.H:689
@ FL_EMBOSSED_BOX
see figure Standard Box Types
Definition Enumerations.H:639
@ _FL_OXY_UP_FRAME
oxy version of FL_UP_FRAME, use FL_OXY_UP_FRAME
Definition Enumerations.H:686
@ _FL_OVAL_FRAME
see figure Standard Box Types, use FL_OVAL_FRAME
Definition Enumerations.H:656
@ _FL_OFLAT_BOX
see figure Standard Box Types, use FL_OFLAT_BOX
Definition Enumerations.H:657
@ _FL_GTK_THIN_UP_FRAME
gtk+ version of FL_THIN_UP_FRAME, use FL_GTK_THIN_UP_FRAME
Definition Enumerations.H:672
@ _FL_RFLAT_BOX
see figure Standard Box Types, use FL_RFLAT_BOX
Definition Enumerations.H:649
@ _FL_GTK_THIN_DOWN_FRAME
gtk+ version of FL_THIN_DOWN_FRAME, use FL_GTK_THIN_DOWN_FRAME
Definition Enumerations.H:673
@ FL_NO_BOX
nothing is drawn at all, this box is invisible
Definition Enumerations.H:628
@ _FL_GTK_UP_FRAME
gtk+ version of FL_UP_FRAME, use FL_GTK_UP_FRAME
Definition Enumerations.H:668
@ _FL_SHADOW_FRAME
see figure Standard Box Types, use FL_SHADOW_FRAME
Definition Enumerations.H:645
@ _FL_OXY_THIN_UP_BOX
oxy version of FL_THIN_UP_BOX, use FL_OXY_THIN_UP_BOX
Definition Enumerations.H:688
@ _FL_OSHADOW_BOX
see figure Standard Box Types, use FL_OSHADOW_BOX
Definition Enumerations.H:655
@ FL_BORDER_FRAME
see figure Standard Box Types
Definition Enumerations.H:644
@ _FL_ROUNDED_FRAME
see figure Standard Box Types, use FL_ROUNDED_FRAME
Definition Enumerations.H:648
@ _FL_GTK_DOWN_BOX
gtk+ version of FL_DOWN_BOX, use FL_GTK_DOWN_BOX
Definition Enumerations.H:667
@ FL_THIN_DOWN_FRAME
see figure Standard Box Types
Definition Enumerations.H:637
@ FL_FLAT_BOX
a flat box
Definition Enumerations.H:629
@ _FL_GLEAM_THIN_DOWN_BOX
gleam version of FL_THIN_DOWN_BOX, use FL_GLEAM_THIN_DOWN_BOX
Definition Enumerations.H:681
@ _FL_GTK_THIN_UP_BOX
gtk+ version of FL_THIN_UP_BOX, use FL_GTK_THIN_UP_BOX
Definition Enumerations.H:670
@ _FL_GTK_ROUND_DOWN_BOX
gtk+ version of FL_ROUND_DOWN_BOX, use FL_GTK_ROUND_DOWN_BOX
Definition Enumerations.H:675
@ _FL_SHADOW_BOX
see figure Standard Box Types, use FL_SHADOW_BOX
Definition Enumerations.H:643
@ _FL_GLEAM_DOWN_FRAME
gleam version of FL_DOWN_FRAME, use FL_GLEAM_DOWN_FRAME
Definition Enumerations.H:679
@ _FL_PLASTIC_DOWN_BOX
plastic version of FL_DOWN_BOX, use FL_PLASTIC_DOWN_BOX
Definition Enumerations.H:659
@ _FL_OXY_THIN_UP_FRAME
oxy version of FL_THIN_UP_FRAME, use FL_OXY_THIN_UP_FRAME
Definition Enumerations.H:690
@ _FL_OXY_DOWN_FRAME
oxy version of FL_DOWN_FRAME, use FL_OXY_DOWN_FRAME
Definition Enumerations.H:687
@ _FL_OXY_THIN_DOWN_FRAME
oxy version of FL_THIN_DOWN_FRAME, use FL_OXY_THIN_DOWN_FRAME
Definition Enumerations.H:691
@ _FL_GLEAM_DOWN_BOX
gleam version of FL_DOWN_BOX, use FL_GLEAM_DOWN_BOX
Definition Enumerations.H:677
@ FL_DOWN_BOX
see figure Standard Box Types
Definition Enumerations.H:631
@ FL_ENGRAVED_FRAME
see figure Standard Box Types
Definition Enumerations.H:640
@ _FL_GTK_ROUND_UP_BOX
gtk+ version of FL_ROUND_UP_BOX, use FL_GTK_ROUND_UP_BOX
Definition Enumerations.H:674
@ _FL_GLEAM_ROUND_DOWN_BOX
gleam version of FL_ROUND_DOWN_BOX, use FL_GLEAM_ROUND_DOWN_BOX
Definition Enumerations.H:683
@ FL_FREE_BOXTYPE
the first free box type for creation of new box types
Definition Enumerations.H:696
@ FL_UP_FRAME
see figure Standard Box Types
Definition Enumerations.H:632
@ _FL_ROUND_UP_BOX
see figure Standard Box Types, use FL_ROUND_UP_BOX
Definition Enumerations.H:650
@ _FL_GTK_UP_BOX
gtk+ version of FL_UP_BOX, use FL_GTK_UP_BOX
Definition Enumerations.H:666
@ FL_UP_BOX
see figure Standard Box Types
Definition Enumerations.H:630
@ FL_ENGRAVED_BOX
see figure Standard Box Types
Definition Enumerations.H:638
@ _FL_OXY_DOWN_BOX
oxy version of FL_DOWN_BOX, use FL_OXY_DOWN_BOX
Definition Enumerations.H:685
@ _FL_OXY_ROUND_UP_BOX
oxy version of FL_ROUND_UP_BOX, use FL_OXY_ROUND_UP_BOX
Definition Enumerations.H:692
@ _FL_OVAL_BOX
see figure Standard Box Types, use FL_OVAL_BOX
Definition Enumerations.H:654
@ _FL_PLASTIC_THIN_UP_BOX
plastic version of FL_THIN_UP_BOX, use FL_PLASTIC_THIN_UP_BOX
Definition Enumerations.H:662
@ FL_THIN_DOWN_BOX
see figure Standard Box Types
Definition Enumerations.H:635
@ _FL_GLEAM_UP_FRAME
gleam version of FL_UP_FRAME, use FL_GLEAM_UP_FRAME
Definition Enumerations.H:678
@ _FL_GTK_DOWN_FRAME
gtk+ version of FL_DOWN_FRAME, use FL_GTK_DOWN_FRAME
Definition Enumerations.H:669
@ FL_EMBOSSED_FRAME
see figure Standard Box Types
Definition Enumerations.H:641
@ _FL_DIAMOND_DOWN_BOX
see figure Standard Box Types, use FL_DIAMOND_DOWN_BOX
Definition Enumerations.H:653
@ FL_DOWN_FRAME
see figure Standard Box Types
Definition Enumerations.H:633
@ _FL_PLASTIC_DOWN_FRAME
plastic version of FL_DOWN_FRAME, use FL_PLASTIC_DOWN_FRAME
Definition Enumerations.H:661
@ _FL_ROUNDED_BOX
see figure Standard Box Types, use FL_ROUNDED_BOX
Definition Enumerations.H:646
@ _FL_ROUND_DOWN_BOX
see figure Standard Box Types, use FL_ROUND_DOWN_BOX
Definition Enumerations.H:651
@ _FL_DIAMOND_UP_BOX
see figure Standard Box Types, use FL_DIAMOND_UP_BOX
Definition Enumerations.H:652
@ _FL_PLASTIC_THIN_DOWN_BOX
plastic version of FL_THIN_DOWN_BOX, use FL_PLASTIC_THIN_DOWN_BOX
Definition Enumerations.H:663
@ FL_THIN_UP_FRAME
see figure Standard Box Types
Definition Enumerations.H:636
@ _FL_GTK_THIN_DOWN_BOX
gtk+ version of FL_THIN_DOWN_BOX, use FL_GTK_THIN_DOWN_BOX
Definition Enumerations.H:671
@ _FL_GLEAM_ROUND_UP_BOX
gleam version of FL_ROUND_UP_BOX, use FL_GLEAM_ROUND_UP_BOX
Definition Enumerations.H:682
@ _FL_OXY_UP_BOX
oxy version of FL_UP_BOX, use FL_OXY_UP_BOX
Definition Enumerations.H:684
@ _FL_GLEAM_UP_BOX
gleam version of FL_UP_BOX, use FL_GLEAM_UP_BOX
Definition Enumerations.H:676
@ _FL_GLEAM_THIN_UP_BOX
gleam version of FL_THIN_UP_BOX, use FL_GLEAM_THIN_UP_BOX
Definition Enumerations.H:680
@ _FL_OXY_BUTTON_UP_BOX
FL_OXY_BUTTON_UP_BOX (new boxtype ?), use FL_OXY_BUTTON_UP_BOX.
Definition Enumerations.H:694
const Fl_Font FL_HELVETICA_BOLD
Helvetica (or Arial) bold.
Definition Enumerations.H:1047
const Fl_Font FL_COURIER
Courier normal.
Definition Enumerations.H:1050
const Fl_Align FL_ALIGN_LEFT
Align the label at the left of the widget.
Definition Enumerations.H:982
Fl_Callback_Reason
These constants describe why a callback is performed.
Definition Enumerations.H:446
@ FL_REASON_DESELECTED
an item was de-selected
Definition Enumerations.H:449
@ FL_REASON_CANCELLED
a dialog was cancelled
Definition Enumerations.H:454
@ FL_REASON_USER
user defined callback reasons
Definition Enumerations.H:460
@ FL_REASON_RELEASED
the mouse button was released
Definition Enumerations.H:458
@ FL_REASON_GOT_FOCUS
a widget received focus
Definition Enumerations.H:456
@ FL_REASON_LOST_FOCUS
a widget lost focus
Definition Enumerations.H:457
@ FL_REASON_CLOSED
an item was closed
Definition Enumerations.H:452
@ FL_REASON_OPENED
an item was opened
Definition Enumerations.H:451
@ FL_REASON_ENTER_KEY
user finished input pressing Enter
Definition Enumerations.H:459
@ FL_REASON_CHANGED
the value of the widget was modified
Definition Enumerations.H:455
@ FL_REASON_UNKNOWN
unknown or unset reason
Definition Enumerations.H:447
@ FL_REASON_SELECTED
an item was selected
Definition Enumerations.H:448
@ FL_REASON_DRAGGED
an item was dragged into a new place
Definition Enumerations.H:453
@ FL_REASON_RESELECTED
an item was re-selected (double-clicked).
Definition Enumerations.H:450
Fl_Labeltype fl_define_FL_EMBOSSED_LABEL()
Initializes the internal table entry for FL_EMBOSSED_LABEL and returns its internal value.
Definition fl_engraved_label.cxx:75
const Fl_Align FL_ALIGN_IMAGE_MASK
Mask value to test for image alignment flags.
Definition Enumerations.H:1035
const Fl_Font FL_COURIER_ITALIC
Courier italic.
Definition Enumerations.H:1052
Fl_Contrast_Mode
Define the possible modes to calculate fl_contrast().
Definition Enumerations.H:1181
@ FL_CONTRAST_LEGACY
legacy (FLTK 1.3.x) contrast function
Definition Enumerations.H:1183
@ FL_CONTRAST_LAST
internal use only (invalid contrast mode)
Definition Enumerations.H:1186
@ FL_CONTRAST_NONE
always return foreground color
Definition Enumerations.H:1182
@ FL_CONTRAST_CUSTOM
optional custom contrast function
Definition Enumerations.H:1185
@ FL_CONTRAST_CIELAB
new (FLTK 1.4.0) default function
Definition Enumerations.H:1184
Fl_Orientation
Fl_Orientation describes the orientation of a GUI element.
Definition Enumerations.H:1371
@ FL_ORIENT_UP
GUI element pointing up ( 90°)
Definition Enumerations.H:1375
@ FL_ORIENT_SE
GUI element pointing SE (315°)
Definition Enumerations.H:1380
@ FL_ORIENT_RIGHT
GUI element pointing right ( 0°)
Definition Enumerations.H:1373
@ FL_ORIENT_LEFT
GUI element pointing left (180°)
Definition Enumerations.H:1377
@ FL_ORIENT_NONE
GUI element direction is unspecified.
Definition Enumerations.H:1372
@ FL_ORIENT_DOWN
GUI element pointing down (270°)
Definition Enumerations.H:1379
@ FL_ORIENT_NE
GUI element pointing NE ( 45°)
Definition Enumerations.H:1374
@ FL_ORIENT_SW
GUI element pointing SW (225°)
Definition Enumerations.H:1378
@ FL_ORIENT_NW
GUI element pointing NW (135°)
Definition Enumerations.H:1376
Fl_Color fl_lighter(Fl_Color c)
Returns a lighter version of the specified color.
Definition Enumerations.H:1206
This file contains simple "C"-style type definitions.
unsigned char uchar
unsigned char
Definition fl_types.h:30
Fl_Color fl_contrast(Fl_Color fg, Fl_Color bg, Fl_Fontsize fs=0, int context=0)
Returns a color that contrasts with the background color.
Definition fl_contrast.cxx:463
Fl_Color fl_inactive(Fl_Color c)
Returns the inactive, dimmed version of the given color.
Definition fl_color.cxx:167
double fl_lightness(Fl_Color color)
Return the perceived lightness of a color.
Definition fl_contrast.cxx:114
int fl_contrast_level()
Get the contrast level (sensitivity) of the fl_contrast() method.
Definition fl_contrast.cxx:192
void fl_contrast_function(Fl_Contrast_Function *f)
Register a custom contrast function.
Definition fl_contrast.cxx:284
Fl_Color fl_color_average(Fl_Color c1, Fl_Color c2, float weight)
Returns the weighted average color between the two given colors.
Definition fl_color.cxx:146
int fl_contrast_mode()
Return the current contrast algorithm (mode).
Definition fl_contrast.cxx:251
double fl_luminance(Fl_Color color)
Return the raw / physical luminance of a color.
Definition fl_contrast.cxx:82
Definitions of platform-dependent types.