FLTK
Enumerations.H
Go to the documentation of this file.
1 //
2 // Enumerations for the Fast Light Tool Kit (FLTK).
3 //
4 // Copyright 1998-2020 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/abi-version.h and #included here.
28  ******************************************************************************
29  * For more informations on FL_ABI_VERSION see README.abi-version.txt.
30  ******************************************************************************
31  */
32 
33 #include <FL/abi-version.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 
47 
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
196 enum Fl_Event { // events
199 
211  FL_PUSH = 1,
212 
220 
228  FL_ENTER = 3,
229 
234  FL_LEAVE = 4,
235 
243  FL_DRAG = 5,
244 
258  FL_FOCUS = 6,
259 
264 
286 
291 
295  FL_KEYUP = 9,
296 
302  FL_CLOSE = 10,
303 
310  FL_MOVE = 11,
311 
325 
332 
337 
344  FL_HIDE = 15,
345 
352  FL_SHOW = 16,
353 
358  FL_PASTE = 17,
359 
366 
371 
377 
383 
387 
411 // DEV NOTE: Keep this list in sync with FL/names.h
412 };
413 
421 enum Fl_When { // Fl_Widget::when():
430 };
431  // group: When Conditions
433 
446 
447 // FIXME: These codes collide with valid Unicode keys
448 
449 #define FL_Button 0xfee8
450 #define FL_BackSpace 0xff08
451 #define FL_Tab 0xff09
452 #define FL_Iso_Key 0xff0c
453 #define FL_Enter 0xff0d
454 #define FL_Pause 0xff13
455 #define FL_Scroll_Lock 0xff14
456 #define FL_Escape 0xff1b
457 #define FL_Kana 0xff2e
458 #define FL_Eisu 0xff2f
459 #define FL_Yen 0xff30
460 #define FL_JIS_Underscore 0xff31
461 #define FL_Home 0xff50
462 #define FL_Left 0xff51
463 #define FL_Up 0xff52
464 #define FL_Right 0xff53
465 #define FL_Down 0xff54
466 #define FL_Page_Up 0xff55
467 #define FL_Page_Down 0xff56
468 #define FL_End 0xff57
469 #define FL_Print 0xff61
470 #define FL_Insert 0xff63
471 #define FL_Menu 0xff67
472 #define FL_Help 0xff68
473 #define FL_Num_Lock 0xff7f
474 #define FL_KP 0xff80
475 #define FL_KP_Enter 0xff8d
476 #define FL_KP_Last 0xffbd
477 #define FL_F 0xffbd
478 #define FL_F_Last 0xffe0
479 #define FL_Shift_L 0xffe1
480 #define FL_Shift_R 0xffe2
481 #define FL_Control_L 0xffe3
482 #define FL_Control_R 0xffe4
483 #define FL_Caps_Lock 0xffe5
484 #define FL_Meta_L 0xffe7
485 #define FL_Meta_R 0xffe8
486 #define FL_Alt_L 0xffe9
487 #define FL_Alt_R 0xffea
488 #define FL_Delete 0xffff
489 
490 // These use the Private Use Area (PUA) of the Basic Multilingual Plane
491 // of Unicode. Guaranteed not to conflict with a proper Unicode character.
492 
493 // These primarily map to the XFree86 keysym range
494 #define FL_Volume_Down 0xEF11 /* Volume control down */
495 #define FL_Volume_Mute 0xEF12 /* Mute sound from the system */
496 #define FL_Volume_Up 0xEF13 /* Volume control up */
497 #define FL_Media_Play 0xEF14 /* Start playing of audio */
498 #define FL_Media_Stop 0xEF15 /* Stop playing audio */
499 #define FL_Media_Prev 0xEF16 /* Previous track */
500 #define FL_Media_Next 0xEF17 /* Next track */
501 #define FL_Home_Page 0xEF18 /* Display user's home page */
502 #define FL_Mail 0xEF19 /* Invoke user's mail program */
503 #define FL_Search 0xEF1B /* Search */
504 #define FL_Back 0xEF26 /* Like back on a browser */
505 #define FL_Forward 0xEF27 /* Like forward on a browser */
506 #define FL_Stop 0xEF28 /* Stop current operation */
507 #define FL_Refresh 0xEF29 /* Refresh the page */
508 #define FL_Sleep 0xEF2F /* Put system to sleep */
509 #define FL_Favorites 0xEF30 /* Show favorite locations */
510  // group: Mouse and Keyboard Events
512 
521 
522 #define FL_LEFT_MOUSE 1
523 #define FL_MIDDLE_MOUSE 2
524 #define FL_RIGHT_MOUSE 3
525 
526  // group: Mouse Buttons
527 
528 
534  // group: Event States
535 
536 // FIXME: it would be nice to have the modifiers in the upper 8 bit so that
537 // a unicode key (24bit) can be sent as an unsigned with the modifiers.
538 
539 #define FL_SHIFT 0x00010000
540 #define FL_CAPS_LOCK 0x00020000
541 #define FL_CTRL 0x00040000
542 #define FL_ALT 0x00080000
543 #define FL_NUM_LOCK 0x00100000
544  // most X servers do this?
545 #define FL_META 0x00400000
546  // correct for XFree86
547 #define FL_SCROLL_LOCK 0x00800000
548  // correct for XFree86
549 #define FL_BUTTON1 0x01000000
550 #define FL_BUTTON2 0x02000000
551 #define FL_BUTTON3 0x04000000
552 #define FL_BUTTONS 0x7f000000
553 #define FL_BUTTON(n) (0x00800000<<(n))
554 
555 #define FL_KEY_MASK 0x0000ffff
556  // FIXME: Unicode needs 24 bits!
557  // group: Event States
559 
584  // group: Box Types
585 
598 enum Fl_Boxtype { // boxtypes (if you change these you must also change fl_boxtype.cxx):
599 
600  FL_NO_BOX = 0,
657 };
658 extern FL_EXPORT Fl_Boxtype fl_define_FL_ROUND_UP_BOX();
659 #define FL_ROUND_UP_BOX fl_define_FL_ROUND_UP_BOX()
660 #define FL_ROUND_DOWN_BOX (Fl_Boxtype)(fl_define_FL_ROUND_UP_BOX()+1)
661 extern FL_EXPORT Fl_Boxtype fl_define_FL_SHADOW_BOX();
662 #define FL_SHADOW_BOX fl_define_FL_SHADOW_BOX()
663 #define FL_SHADOW_FRAME (Fl_Boxtype)(fl_define_FL_SHADOW_BOX()+2)
664 extern FL_EXPORT Fl_Boxtype fl_define_FL_ROUNDED_BOX();
665 #define FL_ROUNDED_BOX fl_define_FL_ROUNDED_BOX()
666 #define FL_ROUNDED_FRAME (Fl_Boxtype)(fl_define_FL_ROUNDED_BOX()+2)
667 extern FL_EXPORT Fl_Boxtype fl_define_FL_RFLAT_BOX();
668 #define FL_RFLAT_BOX fl_define_FL_RFLAT_BOX()
669 extern FL_EXPORT Fl_Boxtype fl_define_FL_RSHADOW_BOX();
670 #define FL_RSHADOW_BOX fl_define_FL_RSHADOW_BOX()
671 extern FL_EXPORT Fl_Boxtype fl_define_FL_DIAMOND_BOX();
672 #define FL_DIAMOND_UP_BOX fl_define_FL_DIAMOND_BOX()
673 #define FL_DIAMOND_DOWN_BOX (Fl_Boxtype)(fl_define_FL_DIAMOND_BOX()+1)
674 extern FL_EXPORT Fl_Boxtype fl_define_FL_OVAL_BOX();
675 #define FL_OVAL_BOX fl_define_FL_OVAL_BOX()
676 #define FL_OSHADOW_BOX (Fl_Boxtype)(fl_define_FL_OVAL_BOX()+1)
677 #define FL_OVAL_FRAME (Fl_Boxtype)(fl_define_FL_OVAL_BOX()+2)
678 #define FL_OFLAT_BOX (Fl_Boxtype)(fl_define_FL_OVAL_BOX()+3)
679 
680 extern FL_EXPORT Fl_Boxtype fl_define_FL_PLASTIC_UP_BOX();
681 #define FL_PLASTIC_UP_BOX fl_define_FL_PLASTIC_UP_BOX()
682 #define FL_PLASTIC_DOWN_BOX (Fl_Boxtype)(fl_define_FL_PLASTIC_UP_BOX()+1)
683 #define FL_PLASTIC_UP_FRAME (Fl_Boxtype)(fl_define_FL_PLASTIC_UP_BOX()+2)
684 #define FL_PLASTIC_DOWN_FRAME (Fl_Boxtype)(fl_define_FL_PLASTIC_UP_BOX()+3)
685 #define FL_PLASTIC_THIN_UP_BOX (Fl_Boxtype)(fl_define_FL_PLASTIC_UP_BOX()+4)
686 #define FL_PLASTIC_THIN_DOWN_BOX (Fl_Boxtype)(fl_define_FL_PLASTIC_UP_BOX()+5)
687 #define FL_PLASTIC_ROUND_UP_BOX (Fl_Boxtype)(fl_define_FL_PLASTIC_UP_BOX()+6)
688 #define FL_PLASTIC_ROUND_DOWN_BOX (Fl_Boxtype)(fl_define_FL_PLASTIC_UP_BOX()+7)
689 
690 extern FL_EXPORT Fl_Boxtype fl_define_FL_GTK_UP_BOX();
691 #define FL_GTK_UP_BOX fl_define_FL_GTK_UP_BOX()
692 #define FL_GTK_DOWN_BOX (Fl_Boxtype)(fl_define_FL_GTK_UP_BOX()+1)
693 #define FL_GTK_UP_FRAME (Fl_Boxtype)(fl_define_FL_GTK_UP_BOX()+2)
694 #define FL_GTK_DOWN_FRAME (Fl_Boxtype)(fl_define_FL_GTK_UP_BOX()+3)
695 #define FL_GTK_THIN_UP_BOX (Fl_Boxtype)(fl_define_FL_GTK_UP_BOX()+4)
696 #define FL_GTK_THIN_DOWN_BOX (Fl_Boxtype)(fl_define_FL_GTK_UP_BOX()+5)
697 #define FL_GTK_THIN_UP_FRAME (Fl_Boxtype)(fl_define_FL_GTK_UP_BOX()+6)
698 #define FL_GTK_THIN_DOWN_FRAME (Fl_Boxtype)(fl_define_FL_GTK_UP_BOX()+7)
699 #define FL_GTK_ROUND_UP_BOX (Fl_Boxtype)(fl_define_FL_GTK_UP_BOX()+8)
700 #define FL_GTK_ROUND_DOWN_BOX (Fl_Boxtype)(fl_define_FL_GTK_UP_BOX()+9)
701 
702 extern FL_EXPORT Fl_Boxtype fl_define_FL_GLEAM_UP_BOX();
703 #define FL_GLEAM_UP_BOX fl_define_FL_GLEAM_UP_BOX()
704 #define FL_GLEAM_DOWN_BOX (Fl_Boxtype)(fl_define_FL_GLEAM_UP_BOX()+1)
705 #define FL_GLEAM_UP_FRAME (Fl_Boxtype)(fl_define_FL_GLEAM_UP_BOX()+2)
706 #define FL_GLEAM_DOWN_FRAME (Fl_Boxtype)(fl_define_FL_GLEAM_UP_BOX()+3)
707 #define FL_GLEAM_THIN_UP_BOX (Fl_Boxtype)(fl_define_FL_GLEAM_UP_BOX()+4)
708 #define FL_GLEAM_THIN_DOWN_BOX (Fl_Boxtype)(fl_define_FL_GLEAM_UP_BOX()+5)
709 #define FL_GLEAM_ROUND_UP_BOX (Fl_Boxtype)(fl_define_FL_GLEAM_UP_BOX()+6)
710 #define FL_GLEAM_ROUND_DOWN_BOX (Fl_Boxtype)(fl_define_FL_GLEAM_UP_BOX()+7)
711 
712 // conversions of box types to other boxtypes:
719  return (Fl_Boxtype)((b<FL_UP_BOX||b%4>1)?b:(b-2));
720 }
727  return (Fl_Boxtype)((b<FL_UP_BOX)?b:(b|1));
728 }
735  return (Fl_Boxtype)((b%4<2)?b:(b+2));
736 }
737 
738 // back-compatibility box types:
739 #define FL_FRAME FL_ENGRAVED_FRAME
740 #define FL_FRAME_BOX FL_ENGRAVED_BOX
741 #define FL_CIRCLE_BOX FL_ROUND_DOWN_BOX
742 #define FL_DIAMOND_BOX FL_DIAMOND_DOWN_BOX
743  // group: Box Types
745 
757 enum Fl_Labeltype { // labeltypes:
766 
768 };
769 
781 #define FL_SYMBOL_LABEL FL_NORMAL_LABEL
782 
786 extern Fl_Labeltype FL_EXPORT fl_define_FL_SHADOW_LABEL();
790 #define FL_SHADOW_LABEL fl_define_FL_SHADOW_LABEL()
791 
796 extern Fl_Labeltype FL_EXPORT fl_define_FL_ENGRAVED_LABEL();
800 #define FL_ENGRAVED_LABEL fl_define_FL_ENGRAVED_LABEL()
801 
806 extern Fl_Labeltype FL_EXPORT fl_define_FL_EMBOSSED_LABEL();
810 #define FL_EMBOSSED_LABEL fl_define_FL_EMBOSSED_LABEL()
811 
816 extern Fl_Labeltype FL_EXPORT fl_define_FL_MULTI_LABEL();
821 #define FL_MULTI_LABEL fl_define_FL_MULTI_LABEL()
822 
827 extern Fl_Labeltype FL_EXPORT fl_define_FL_ICON_LABEL();
831 #define FL_ICON_LABEL fl_define_FL_ICON_LABEL()
832 
837 extern Fl_Labeltype FL_EXPORT fl_define_FL_IMAGE_LABEL();
844 #define FL_IMAGE_LABEL fl_define_FL_IMAGE_LABEL()
845 
908 typedef unsigned Fl_Align;
909 
911 const Fl_Align FL_ALIGN_CENTER = 0x0000;
912 
915 const Fl_Align FL_ALIGN_TOP = 0x0001;
916 
918 const Fl_Align FL_ALIGN_BOTTOM = 0x0002;
919 
923 const Fl_Align FL_ALIGN_LEFT = 0x0004;
924 
926 const Fl_Align FL_ALIGN_RIGHT = 0x0008;
927 
929 const Fl_Align FL_ALIGN_INSIDE = 0x0010;
930 
933 
936 
938 const Fl_Align FL_ALIGN_CLIP = 0x0040;
939 
941 const Fl_Align FL_ALIGN_WRAP = 0x0080;
942 
945 
948 
951 
952 const Fl_Align FL_ALIGN_TOP_LEFT = FL_ALIGN_TOP | FL_ALIGN_LEFT;
953 const Fl_Align FL_ALIGN_TOP_RIGHT = FL_ALIGN_TOP | FL_ALIGN_RIGHT;
954 const Fl_Align FL_ALIGN_BOTTOM_LEFT = FL_ALIGN_BOTTOM | FL_ALIGN_LEFT;
955 const Fl_Align FL_ALIGN_BOTTOM_RIGHT = FL_ALIGN_BOTTOM | FL_ALIGN_RIGHT;
956 
959 
962 
965 
968 
970 const Fl_Align FL_ALIGN_NOWRAP = 0x0000;
971 
974 
985 typedef int Fl_Font;
986 
991 const Fl_Font FL_COURIER = 4;
995 const Fl_Font FL_TIMES = 8;
999 const Fl_Font FL_SYMBOL = 12;
1000 const Fl_Font FL_SCREEN = 13;
1003 
1004 const Fl_Font FL_FREE_FONT = 16;
1005 const Fl_Font FL_BOLD = 1;
1006 const Fl_Font FL_ITALIC = 2;
1008 
1014 typedef int Fl_Fontsize;
1015 
1016 extern FL_EXPORT Fl_Fontsize FL_NORMAL_SIZE;
1017 
1042 typedef unsigned int Fl_Color;
1043 
1044 // Standard colors. These are used as default colors in widgets and altered as necessary
1049 
1050  // boxtypes generally limit themselves to these colors so
1051  // the whole ramp is not allocated:
1052 
1053 const Fl_Color FL_GRAY0 = 32; // 'A'
1054 const Fl_Color FL_DARK3 = 39; // 'H'
1055 const Fl_Color FL_DARK2 = 45; // 'N'
1056 const Fl_Color FL_DARK1 = 47; // 'P'
1057 const Fl_Color FL_BACKGROUND_COLOR = 49; // 'R' default background color
1058 const Fl_Color FL_LIGHT1 = 50; // 'S'
1059 const Fl_Color FL_LIGHT2 = 52; // 'U'
1060 const Fl_Color FL_LIGHT3 = 54; // 'W'
1061 
1062  // FLTK provides a 5x8x5 color cube that is used with colormap visuals
1063 
1064 const Fl_Color FL_BLACK = 56;
1065 const Fl_Color FL_RED = 88;
1066 const Fl_Color FL_GREEN = 63;
1067 const Fl_Color FL_YELLOW = 95;
1068 const Fl_Color FL_BLUE = 216;
1069 const Fl_Color FL_MAGENTA = 248;
1070 const Fl_Color FL_CYAN = 223;
1071 const Fl_Color FL_DARK_RED = 72;
1072 
1073 const Fl_Color FL_DARK_GREEN = 60;
1074 const Fl_Color FL_DARK_YELLOW = 76;
1075 const Fl_Color FL_DARK_BLUE = 136;
1076 const Fl_Color FL_DARK_MAGENTA = 152;
1077 const Fl_Color FL_DARK_CYAN = 140;
1078 
1079 const Fl_Color FL_WHITE = 255;
1080 
1081 
1082 #define FL_FREE_COLOR (Fl_Color)16
1083 #define FL_NUM_FREE_COLOR 16
1084 #define FL_GRAY_RAMP (Fl_Color)32
1085 #define FL_NUM_GRAY 24
1086 #define FL_GRAY FL_BACKGROUND_COLOR
1087 #define FL_COLOR_CUBE (Fl_Color)56
1088 #define FL_NUM_RED 5
1089 #define FL_NUM_GREEN 8
1090 #define FL_NUM_BLUE 5
1091 
1092 FL_EXPORT Fl_Color fl_inactive(Fl_Color c);
1093 
1094 FL_EXPORT Fl_Color fl_contrast(Fl_Color fg, Fl_Color bg);
1095 
1096 FL_EXPORT Fl_Color fl_color_average(Fl_Color c1, Fl_Color c2, float weight);
1097 
1099 inline Fl_Color fl_lighter(Fl_Color c) { return fl_color_average(c, FL_WHITE, .67f); }
1100 
1102 inline Fl_Color fl_darker(Fl_Color c) { return fl_color_average(c, FL_BLACK, .67f); }
1103 
1106  if (!r && !g && !b) return FL_BLACK;
1107  else return (Fl_Color)(((((r << 8) | g) << 8) | b) << 8);
1108 }
1109 
1112  if (!g) return FL_BLACK;
1113  else return (Fl_Color)(((((g << 8) | g) << 8) | g) << 8);
1114 }
1115 
1124 inline Fl_Color fl_gray_ramp(int i) {return (Fl_Color)(i+FL_GRAY_RAMP);}
1125 
1140 inline Fl_Color fl_color_cube(int r, int g, int b) {
1141  return (Fl_Color)((b*FL_NUM_RED + r) * FL_NUM_GREEN + g + FL_COLOR_CUBE);}
1142  // group: Colors
1144 
1147 
1155 /* FIXME: We should renumber these, but that will break the ABI */
1166  /* Resize indicators */
1181 }; // group: Cursors
1183 
1185 enum { // values for "when" passed to Fl::add_fd()
1186  FL_READ = 1,
1187  FL_WRITE = 4,
1189 };
1190 
1192 enum Fl_Mode {
1193  FL_RGB = 0,
1194  FL_INDEX = 1,
1195  FL_SINGLE = 0,
1196  FL_DOUBLE = 2,
1197  FL_ACCUM = 4,
1198  FL_ALPHA = 8,
1199  FL_DEPTH = 16,
1200  FL_STENCIL = 32,
1201  FL_RGB8 = 64,
1202  FL_MULTISAMPLE= 128,
1203  FL_STEREO = 256,
1204  FL_FAKE_SINGLE = 512, // Fake single buffered windows using double-buffer
1205  FL_OPENGL3 = 1024
1206 };
1207 
1208 // image alpha blending
1209 
1210 #define FL_IMAGE_WITH_ALPHA 0x40000000
1211 
1221 };
1222 
1223 // FLTK 1.0.x compatibility definitions (FLTK_1_0_COMPAT) dropped in 1.4.0
1224 
1225 #endif
const Fl_Align FL_ALIGN_CLIP
All parts of the label that are larger than the widget will not be drawn.
Definition: Enumerations.H:938
busy indicator (for instance hourglass).
Definition: Enumerations.H:1160
invisible.
Definition: Enumerations.H:1180
Do the callback when the button or key is released and the value changes.
Definition: Enumerations.H:425
Fl_Boxtype fl_box(Fl_Boxtype b)
Get the filled version of a frame.
Definition: Enumerations.H:718
const Fl_Align FL_ALIGN_LEFT_TOP
Outside only, left of widget, top position, magic value: TOP | BOTTOM | LEFT.
Definition: Enumerations.H:958
gtk+ version of FL_DOWN_FRAME, use FL_GTK_DOWN_FRAME
Definition: Enumerations.H:641
The Fl::selection_owner() will get this event before the selection is moved to another widget...
Definition: Enumerations.H:365
Fl_Color fl_darker(Fl_Color c)
Returns a darker version of the specified color.
Definition: Enumerations.H:1102
Fl_Cursor
The following constants define the mouse cursors that are available in FLTK.
Definition: Enumerations.H:1156
Fl_Boxtype fl_frame(Fl_Boxtype b)
Get the unfilled, frame only version of a box.
Definition: Enumerations.H:734
const Fl_Font FL_FREE_FONT
first one to allocate
Definition: Enumerations.H:1004
const Fl_Font FL_HELVETICA_BOLD
Helvetica (or Arial) bold.
Definition: Enumerations.H:988
plastic version of FL_THIN_DOWN_BOX, use FL_PLASTIC_THIN_DOWN_BOX
Definition: Enumerations.H:635
const Fl_Font FL_COURIER_ITALIC
Courier italic.
Definition: Enumerations.H:993
const Fl_Color FL_BACKGROUND2_COLOR
the default background color for text, list, and valuator widgets
Definition: Enumerations.H:1046
downwards, left resize.
Definition: Enumerations.H:1176
gtk+ version of FL_ROUND_DOWN_BOX, use FL_GTK_ROUND_DOWN_BOX
Definition: Enumerations.H:647
Call the callback if an exception occurs on the file.
Definition: Enumerations.H:1188
Second user-defined damage bit.
Definition: Enumerations.H:1219
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:944
see figure 1, use FL_ROUND_DOWN_BOX
Definition: Enumerations.H:623
Fl_Labeltype FL_EXPORT 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
see figure 1, use FL_SHADOW_BOX
Definition: Enumerations.H:615
see figure 1, use FL_DIAMOND_DOWN_BOX
Definition: Enumerations.H:625
You should get this event some time after you call Fl::paste().
Definition: Enumerations.H:358
plastic version of FL_UP_FRAME, use FL_PLASTIC_UP_FRAME
Definition: Enumerations.H:632
question mark pointer.
Definition: Enumerations.H:1163
const Fl_Font FL_TIMES_BOLD
Times roman bold.
Definition: Enumerations.H:996
A mouse button has gone down with the mouse pointing at this widget.
Definition: Enumerations.H:211
This indicates an attempt to give a widget the keyboard focus.
Definition: Enumerations.H:258
pointing hand.
Definition: Enumerations.H:1162
see figure 1
Definition: Enumerations.H:603
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:1124
const Fl_Font FL_ZAPF_DINGBATS
Zapf-dingbats font.
Definition: Enumerations.H:1002
Everything needs to be redrawn.
Definition: Enumerations.H:1220
see figure 1
Definition: Enumerations.H:614
This widget is no longer active, due to Fl_Widget::deactivate() being called on it or one of its pare...
Definition: Enumerations.H:331
This widget is no longer visible, due to Fl_Widget::hide() being called on it or one of its parents...
Definition: Enumerations.H:344
const Fl_Align FL_ALIGN_IMAGE_OVER_TEXT
If the label contains an image, draw the text below the image.
Definition: Enumerations.H:935
Fl_Color fl_lighter(Fl_Color c)
Returns a lighter version of the specified color.
Definition: Enumerations.H:1099
This widget is now active, due to Fl_Widget::activate() being called on it or one of its parents...
Definition: Enumerations.H:336
Do the callback whenever the user interacts with the widget.
Definition: Enumerations.H:424
see figure 1, use FL_OVAL_FRAME
Definition: Enumerations.H:628
const Fl_Font FL_COURIER
Courier normal.
Definition: Enumerations.H:991
Do the callback when the user presses the ENTER key and the value changes.
Definition: Enumerations.H:427
Fl_When
These constants determine when a callback is performed.
Definition: Enumerations.H:421
see figure 1
Definition: Enumerations.H:605
see figure 1
Definition: Enumerations.H:610
const Fl_Color FL_FOREGROUND_COLOR
the default foreground color (0) used for labels and text
Definition: Enumerations.H:1045
the label displays an "icon" based on a Fl_Image
Definition: Enumerations.H:765
see figure 1, use FL_OFLAT_BOX
Definition: Enumerations.H:629
downwards resize.
Definition: Enumerations.H:1175
plastic version of FL_DOWN_BOX, use FL_PLASTIC_DOWN_BOX
Definition: Enumerations.H:631
The user has released the mouse button dropping data into the widget.
Definition: Enumerations.H:392
const Fl_Color FL_INACTIVE_COLOR
the inactive foreground color
Definition: Enumerations.H:1047
Fl_Labeltype FL_EXPORT 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_Color fl_rgb_color(uchar r, uchar g, uchar b)
Returns the 24-bit color value closest to r, g, b.
Definition: Enumerations.H:1105
The mouse has been moved inside a widget while dragging data.
Definition: Enumerations.H:382
gtk+ version of FL_THIN_DOWN_FRAME, use FL_GTK_THIN_DOWN_FRAME
Definition: Enumerations.H:645
Fl_Mode
visual types and Fl_Gl_Window::mode() (values match Glut)
Definition: Enumerations.H:1192
Definitions of platform-dependent types.
Fl_Damage
Damage masks.
Definition: Enumerations.H:1213
A mouse button has been released.
Definition: Enumerations.H:219
see figure 1, use FL_DIAMOND_UP_BOX
Definition: Enumerations.H:624
A key was pressed (FL_KEYDOWN) or released (FL_KEYUP).
Definition: Enumerations.H:285
see figure 1
Definition: Enumerations.H:609
FL_EXPORT Fl_Color fl_contrast(Fl_Color fg, Fl_Color bg)
Returns a color that contrasts with the background color.
Definition: fl_color.cxx:145
draws a composite label
Definition: Enumerations.H:763
A child needs to be redrawn.
Definition: Enumerations.H:1214
see figure 1, use FL_ROUNDED_FRAME
Definition: Enumerations.H:620
diagonal resize.
Definition: Enumerations.H:1169
const Fl_Align FL_ALIGN_LEFT_BOTTOM
Outside only, left of widget, bottom position, magic value: TOP | LEFT | RIGHT.
Definition: Enumerations.H:964
Do the callback only when the widget value changes.
Definition: Enumerations.H:423
Fl_Labeltype FL_EXPORT fl_define_FL_IMAGE_LABEL()
Initializes the internal table entry for FL_IMAGE_LABEL and returns its internal value.
Definition: Fl_Image.cxx:114
const Fl_Font FL_ITALIC
add this to helvetica, courier, or times
Definition: Enumerations.H:1006
Fl_Labeltype FL_EXPORT 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_CENTER
Align the label horizontally in the middle.
Definition: Enumerations.H:911
plastic version of FL_THIN_UP_BOX, use FL_PLASTIC_THIN_UP_BOX
Definition: Enumerations.H:634
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
const Fl_Align FL_ALIGN_NOWRAP
Nothing, same as FL_ALIGN_CENTER, for back compatibility.
Definition: Enumerations.H:970
Fl_Boxtype
FLTK standard box types.
Definition: Enumerations.H:598
see figure 1, use FL_ROUNDED_BOX
Definition: Enumerations.H:618
diagonal resize.
Definition: Enumerations.H:1170
The user has moved the mouse wheel.
Definition: Enumerations.H:370
see figure 1
Definition: Enumerations.H:607
const Fl_Align FL_ALIGN_INSIDE
Draw the label inside of the widget.
Definition: Enumerations.H:929
gtk+ version of FL_ROUND_UP_BOX, use FL_GTK_ROUND_UP_BOX
Definition: Enumerations.H:646
see figure 1
Definition: Enumerations.H:616
The mouse has been moved to point at this widget.
Definition: Enumerations.H:376
see figure 1
Definition: Enumerations.H:602
up/down resize.
Definition: Enumerations.H:1167
draws the text (0)
Definition: Enumerations.H:758
Key release event.
Definition: Enumerations.H:295
gtk+ version of FL_UP_BOX, use FL_GTK_UP_BOX
Definition: Enumerations.H:638
see figure 1
Definition: Enumerations.H:613
The fullscreen state of the window has changed.
Definition: Enumerations.H:400
Fl_Labeltype FL_EXPORT 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
gleam version of FL_ROUND_DOWN_BOX, use FL_GLEAM_ROUND_DOWN_BOX
Definition: Enumerations.H:655
const Fl_Align FL_ALIGN_RIGHT_BOTTOM
Outside only, right of widget, bottom position, magic value: BOTTOM | LEFT | RIGHT.
Definition: Enumerations.H:967
I-beam.
Definition: Enumerations.H:1161
const Fl_Font FL_TIMES_BOLD_ITALIC
Times roman bold-italic.
Definition: Enumerations.H:998
plastic version of FL_UP_BOX, use FL_PLASTIC_UP_BOX
Definition: Enumerations.H:630
The user clicked the close button of a window.
Definition: Enumerations.H:302
gtk+ version of FL_DOWN_BOX, use FL_GTK_DOWN_BOX
Definition: Enumerations.H:639
leftwards resize.
Definition: Enumerations.H:1177
draws a drop shadow under the text
Definition: Enumerations.H:760
see figure 1, use FL_OVAL_BOX
Definition: Enumerations.H:626
FL_EXPORT Fl_Color fl_inactive(Fl_Color c)
Returns the inactive, dimmed version of the given color.
Definition: fl_color.cxx:132
The Fl_Scroll widget was scrolled.
Definition: Enumerations.H:1216
see figure 1
Definition: Enumerations.H:612
gleam version of FL_DOWN_FRAME, use FL_GLEAM_DOWN_FRAME
Definition: Enumerations.H:651
const Fl_Font FL_COURIER_BOLD
Courier bold.
Definition: Enumerations.H:992
nothing is drawn at all, this box is invisible
Definition: Enumerations.H:600
upwards resize.
Definition: Enumerations.H:1171
const Fl_Font FL_SCREEN_BOLD
Default monospaced bold screen font.
Definition: Enumerations.H:1001
left/right resize.
Definition: Enumerations.H:1168
draws edges as though the text is engraved
Definition: Enumerations.H:761
gleam version of FL_DOWN_BOX, use FL_GLEAM_DOWN_BOX
Definition: Enumerations.H:649
Do the callback when the button or key is released, even if the value doesn&#39;t change.
Definition: Enumerations.H:426
The overlay planes need to be redrawn.
Definition: Enumerations.H:1217
const Fl_Font FL_BOLD_ITALIC
add this to helvetica, courier, or times
Definition: Enumerations.H:1007
gtk+ version of FL_THIN_DOWN_BOX, use FL_GTK_THIN_DOWN_BOX
Definition: Enumerations.H:643
This event is sent to the previous Fl::focus() widget when another widget gets the focus or the windo...
Definition: Enumerations.H:263
const Fl_Font FL_HELVETICA_ITALIC
Helvetica (or Arial) oblique.
Definition: Enumerations.H:989
upwards, left resize.
Definition: Enumerations.H:1178
Call the callback when data can be written without blocking.
Definition: Enumerations.H:1187
an arrow pointer.
Definition: Enumerations.H:1158
downwards, right resize.
Definition: Enumerations.H:1174
const Fl_Align FL_ALIGN_RIGHT_TOP
Outside only, right of widget, top position, magic value: TOP | BOTTOM | RIGHT.
Definition: Enumerations.H:961
const Fl_Align FL_ALIGN_POSITION_MASK
Mask value to test for TOP, BOTTOM, LEFT, and RIGHT flags.
Definition: Enumerations.H:973
int Fl_Fontsize
Size of a font in pixels.
Definition: Enumerations.H:1014
Never call the callback.
Definition: Enumerations.H:422
The mouse has moved with a button held down.
Definition: Enumerations.H:243
const Fl_Color FL_SELECTION_COLOR
the default selection/highlight color
Definition: Enumerations.H:1048
The user has made a zoom/pinch/magnification gesture (Mac OS platform only).
Definition: Enumerations.H:406
see figure 1, use FL_RSHADOW_BOX
Definition: Enumerations.H:619
plastic version of FL_DOWN_FRAME, use FL_PLASTIC_DOWN_FRAME
Definition: Enumerations.H:633
const Fl_Align FL_ALIGN_WRAP
Wrap text that does not fit the width of the widget.
Definition: Enumerations.H:941
gleam version of FL_THIN_UP_BOX, use FL_GLEAM_THIN_UP_BOX
Definition: Enumerations.H:652
gtk+ version of FL_UP_FRAME, use FL_GTK_UP_FRAME
Definition: Enumerations.H:640
4-pointed arrow or hand.
Definition: Enumerations.H:1164
see figure 1
Definition: Enumerations.H:604
const Fl_Font FL_BOLD
add this to helvetica, courier, or times
Definition: Enumerations.H:1005
crosshair.
Definition: Enumerations.H:1159
gleam version of FL_ROUND_UP_BOX, use FL_GLEAM_ROUND_UP_BOX
Definition: Enumerations.H:654
gleam version of FL_UP_BOX, use FL_GLEAM_UP_BOX
Definition: Enumerations.H:648
The screen configuration (number, positions) was changed.
Definition: Enumerations.H:396
FL_EXPORT Fl_Fontsize FL_NORMAL_SIZE
normal font size
Definition: Fl_Widget.cxx:107
unsigned int Fl_Color
An FLTK color value; see also Colors.
Definition: Enumerations.H:1042
Fl_Labeltype
The labeltype() method sets the type of the label.
Definition: Enumerations.H:757
This widget is visible again, due to Fl_Widget::show() being called on it or one of its parents...
Definition: Enumerations.H:352
the default cursor, usually an arrow.
Definition: Enumerations.H:1157
This file contains simple "C"-style type definitions.
int Fl_Font
A font number is an index into the internal font table.
Definition: Enumerations.H:985
const Fl_Align FL_ALIGN_TOP
Align the label at the top of the widget.
Definition: Enumerations.H:915
draws the icon associated with the text
Definition: Enumerations.H:764
see figure 1
Definition: Enumerations.H:606
A zoom event (ctrl/+/-/0/ or cmd/+/-/0/) was processed.
Definition: Enumerations.H:410
a flat box
Definition: Enumerations.H:601
unsigned Fl_Align
FLTK type for alignment control.
Definition: Enumerations.H:908
const Fl_Font FL_SYMBOL
Standard symbol font.
Definition: Enumerations.H:999
The mouse has moved without any mouse buttons held down.
Definition: Enumerations.H:310
The window was exposed.
Definition: Enumerations.H:1215
plastic version of FL_ROUND_UP_BOX, use FL_PLASTIC_ROUND_UP_BOX
Definition: Enumerations.H:636
Fl_Color fl_color_cube(int r, int g, int b)
Returns a color out of the color cube.
Definition: Enumerations.H:1140
see figure 1
Definition: Enumerations.H:611
see figure 1, use FL_OSHADOW_BOX
Definition: Enumerations.H:627
const Fl_Font FL_HELVETICA_BOLD_ITALIC
Helvetica (or Arial) bold-oblique.
Definition: Enumerations.H:990
see figure 1, use FL_ROUND_UP_BOX
Definition: Enumerations.H:622
const Fl_Font FL_HELVETICA
Helvetica (or Arial) normal (0)
Definition: Enumerations.H:987
gtk+ version of FL_THIN_UP_BOX, use FL_GTK_THIN_UP_BOX
Definition: Enumerations.H:642
Do the callback when the user presses the ENTER key, even if the value doesn&#39;t change.
Definition: Enumerations.H:428
= (FL_WHEN_ENTER_KEY | FL_WHEN_CHANGED | FL_WHEN_NOT_CHANGED)
Definition: Enumerations.H:429
upwards, right resize.
Definition: Enumerations.H:1172
does nothing
Definition: Enumerations.H:759
see figure 1, use FL_RFLAT_BOX
Definition: Enumerations.H:621
first free labeltype to use for creating own labeltypes
Definition: Enumerations.H:767
Fl_Labeltype FL_EXPORT 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
FL_EXPORT 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:111
const Fl_Align FL_ALIGN_BOTTOM
Align the label at the bottom of the widget.
Definition: Enumerations.H:918
const Fl_Font FL_TIMES_ITALIC
Times roman italic.
Definition: Enumerations.H:997
the first free box type for creation of new box types
Definition: Enumerations.H:656
const Fl_Font FL_TIMES
Times roman.
Definition: Enumerations.H:995
The mouse has been moved to point at this widget.
Definition: Enumerations.H:228
The mouse has moved out of the widget.
Definition: Enumerations.H:386
gleam version of FL_THIN_DOWN_BOX, use FL_GLEAM_THIN_DOWN_BOX
Definition: Enumerations.H:653
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:947
const Fl_Align FL_ALIGN_LEFT
Align the label at the left of the widget.
Definition: Enumerations.H:923
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:932
The mouse has moved out of the widget.
Definition: Enumerations.H:234
First user-defined damage bit.
Definition: Enumerations.H:1218
Call the callback when there is data to be read.
Definition: Enumerations.H:1186
const Fl_Font FL_COURIER_BOLD_ITALIC
Courier bold-italic.
Definition: Enumerations.H:994
Equivalent to FL_KEYDOWN.
Definition: Enumerations.H:290
rightwards resize.
Definition: Enumerations.H:1173
plastic version of FL_ROUND_DOWN_BOX, use FL_PLASTIC_ROUND_DOWN_BOX
Definition: Enumerations.H:637
see figure 1, use FL_SHADOW_FRAME
Definition: Enumerations.H:617
see figure 1
Definition: Enumerations.H:608
gleam version of FL_UP_FRAME, use FL_GLEAM_UP_FRAME
Definition: Enumerations.H:650
unsigned char uchar
unsigned char
Definition: fl_types.h:28
If the Fl::focus() widget is zero or ignores an FL_KEYBOARD event then FLTK tries sending this event ...
Definition: Enumerations.H:324
const Fl_Font FL_SCREEN
Default monospaced screen font.
Definition: Enumerations.H:1000
No event.
Definition: Enumerations.H:198
const Fl_Align FL_ALIGN_IMAGE_BACKDROP
If the label contains an image, draw the image or deimage in the background.
Definition: Enumerations.H:950
gtk+ version of FL_THIN_UP_FRAME, use FL_GTK_THIN_UP_FRAME
Definition: Enumerations.H:644
Fl_Boxtype fl_down(Fl_Boxtype b)
Get the "pressed" or "down" version of a box.
Definition: Enumerations.H:726
const Fl_Align FL_ALIGN_RIGHT
Align the label to the right of the widget.
Definition: Enumerations.H:926
const Fl_Align FL_ALIGN_IMAGE_MASK
Mask value to test for image alignment flags.
Definition: Enumerations.H:976
draws edges as though the text is raised
Definition: Enumerations.H:762