FLTK 1.3.11
Enumerations.H
Go to the documentation of this file.
1 //
2 // Enumerations for the Fast Light Tool Kit (FLTK).
3 //
4 // Copyright 1998-2025 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  * Notes on FL_ABI_VERSION and deprecated (obsolete) FLTK_ABI_VERSION:
27  *
28  * (1) FLTK_ABI_VERSION is deprecated, but still defined below.
29  * Do NOT define FLTK_ABI_VERSION here - it would be overwritten later.
30  *
31  * (2) FL_ABI_VERSION is now (as of FLTK 1.3.4) defined by configure
32  * or CMake. Do NOT define it here. Its definition will be included
33  * below by "#include <FL/abi-version.h>".
34  *
35  * (3) If you use the provided IDE files (Windows VC++ or Xcode) you should
36  * edit the definition in the provided file abi-version.ide. The correct
37  * file is `/path/to/fltk/abi-version.ide' .
38  *
39  ******************************************************************************
40  * For more informations on FL_ABI_VERSION see README.abi-version.txt.
41  ******************************************************************************
42  */
43 
44 #include <FL/abi-version.h>
45 
46 # include "Fl_Export.H"
47 # include "fl_types.h"
48 
57 
62 #define FL_MAJOR_VERSION 1
63 
69 #define FL_MINOR_VERSION 3
70 
76 #define FL_PATCH_VERSION 11
77 
99 #define FL_VERSION ( (double)FL_MAJOR_VERSION + \
100  (double)FL_MINOR_VERSION * 0.01 + \
101  (double)FL_PATCH_VERSION * 0.0001 )
102 
121 #define FL_API_VERSION (FL_MAJOR_VERSION*10000 + FL_MINOR_VERSION*100 + FL_PATCH_VERSION)
122 
153 #ifndef FL_ABI_VERSION
154 #define FL_ABI_VERSION (FL_MAJOR_VERSION*10000 + FL_MINOR_VERSION*100)
155 #endif
156 
157 /*
158  Check if FL_ABI_VERSION is out of allowed range; redefine if necessary.
159 
160  This is done to prevent users from defining an illegal ABI version.
161 
162  Rule: FL_MAJOR_VERSION * 10000 + FL_MINOR_VERSION * 100
163  <= FL_ABI_VERSION <= FL_API_VERSION.
164 
165  Example (FLTK 1.3.4):
166 
167  10300 <= FL_ABI_VERSION <= 10304
168 
169  Note: configure + CMake can be used to define FL_ABI_VERSION, but they
170  do not check validity. This is done here.
171 */
172 
173 #if FL_ABI_VERSION < FL_MAJOR_VERSION*10000 + FL_MINOR_VERSION*100
174 
175 # undef FL_ABI_VERSION
176 # define FL_ABI_VERSION (FL_MAJOR_VERSION*10000 + FL_MINOR_VERSION*100)
177 
178 #elif FL_ABI_VERSION > FL_API_VERSION
179 
180 # undef FL_ABI_VERSION
181 # define FL_ABI_VERSION FL_API_VERSION
182 
183 #endif
184 
185 /*
186  FLTK_ABI_VERSION is deprecated (replaced by FL_ABI_VERSION).
187 
188  This deprecated constant will be removed in FLTK 1.4.0 and later.
189  Please use FL_ABI_VERSION when FLTK 1.4.0 has been released.
190 */
191 
192 #ifdef FLTK_ABI_VERSION
193 #undef FLTK_ABI_VERSION
194 #endif
195 
196 #define FLTK_ABI_VERSION FL_ABI_VERSION
197  // group: Version Numbers
199 
218 // DEV NOTE: Keep this list in sync with FL/names.H
219 enum Fl_Event { // events
222 
234  FL_PUSH = 1,
235 
243 
251  FL_ENTER = 3,
252 
257  FL_LEAVE = 4,
258 
266  FL_DRAG = 5,
267 
281  FL_FOCUS = 6,
282 
287 
309 
314 
318  FL_KEYUP = 9,
319 
325  FL_CLOSE = 10,
326 
333  FL_MOVE = 11,
334 
348 
355 
360 
367  FL_HIDE = 15,
368 
375  FL_SHOW = 16,
376 
381  FL_PASTE = 17,
382 
389 
394 
400 
406 
410 
428 };
429 
437 enum Fl_When { // Fl_Widget::when():
446 };
447  // group: When Conditions
449 
462 
463 // FIXME: These codes collide with valid Unicode keys
464 
465 #define FL_Button 0xfee8
466 #define FL_BackSpace 0xff08
467 #define FL_Tab 0xff09
468 #define FL_Iso_Key 0xff0c
469 #define FL_Enter 0xff0d
470 #define FL_Pause 0xff13
471 #define FL_Scroll_Lock 0xff14
472 #define FL_Escape 0xff1b
473 #define FL_Kana 0xff2e
474 #define FL_Eisu 0xff2f
475 #define FL_Yen 0xff30
476 #define FL_JIS_Underscore 0xff31
477 #define FL_Home 0xff50
478 #define FL_Left 0xff51
479 #define FL_Up 0xff52
480 #define FL_Right 0xff53
481 #define FL_Down 0xff54
482 #define FL_Page_Up 0xff55
483 #define FL_Page_Down 0xff56
484 #define FL_End 0xff57
485 #define FL_Print 0xff61
486 #define FL_Insert 0xff63
487 #define FL_Menu 0xff67
488 #define FL_Help 0xff68
489 #define FL_Num_Lock 0xff7f
490 #define FL_KP 0xff80
491 #define FL_KP_Enter 0xff8d
492 #define FL_KP_Last 0xffbd
493 #define FL_F 0xffbd
494 #define FL_F_Last 0xffe0
495 #define FL_Shift_L 0xffe1
496 #define FL_Shift_R 0xffe2
497 #define FL_Control_L 0xffe3
498 #define FL_Control_R 0xffe4
499 #define FL_Caps_Lock 0xffe5
500 #define FL_Meta_L 0xffe7
501 #define FL_Meta_R 0xffe8
502 #define FL_Alt_L 0xffe9
503 #define FL_Alt_R 0xffea
504 #define FL_Delete 0xffff
505 
506 // These use the Private Use Area (PUA) of the Basic Multilingual Plane
507 // of Unicode. Guaranteed not to conflict with a proper Unicode character.
508 
509 // These primarily map to the XFree86 keysym range
510 #define FL_Volume_Down 0xEF11 /* Volume control down */
511 #define FL_Volume_Mute 0xEF12 /* Mute sound from the system */
512 #define FL_Volume_Up 0xEF13 /* Volume control up */
513 #define FL_Media_Play 0xEF14 /* Start playing of audio */
514 #define FL_Media_Stop 0xEF15 /* Stop playing audio */
515 #define FL_Media_Prev 0xEF16 /* Previous track */
516 #define FL_Media_Next 0xEF17 /* Next track */
517 #define FL_Home_Page 0xEF18 /* Display user's home page */
518 #define FL_Mail 0xEF19 /* Invoke user's mail program */
519 #define FL_Search 0xEF1B /* Search */
520 #define FL_Back 0xEF26 /* Like back on a browser */
521 #define FL_Forward 0xEF27 /* Like forward on a browser */
522 #define FL_Stop 0xEF28 /* Stop current operation */
523 #define FL_Refresh 0xEF29 /* Refresh the page */
524 #define FL_Sleep 0xEF2F /* Put system to sleep */
525 #define FL_Favorites 0xEF30 /* Show favorite locations */
526  // group: Mouse and Keyboard Events
528 
537 
538 #define FL_LEFT_MOUSE 1
539 #define FL_MIDDLE_MOUSE 2
540 #define FL_RIGHT_MOUSE 3
541 #define FL_BACK_MOUSE 4
542 #define FL_FORWARD_MOUSE 5
543 
544  // group: Mouse Buttons
545 
546 
552  // group: Event States
553 
554 // FIXME: it would be nice to have the modifiers in the upper 8 bit so that
555 // a unicode ke (24bit) can be sent as an unsigned with the modifiers.
556 
557 #define FL_SHIFT 0x00010000
558 #define FL_CAPS_LOCK 0x00020000
559 #define FL_CTRL 0x00040000
560 #define FL_ALT 0x00080000
561 #define FL_NUM_LOCK 0x00100000
562  // most X servers do this?
563 #define FL_META 0x00400000
564  // correct for XFree86
565 #define FL_SCROLL_LOCK 0x00800000
566  // correct for XFree86
567 
568 // Mouse buttons
569 
570 #define FL_BUTTON1 0x01000000
571 #define FL_BUTTON2 0x02000000
572 #define FL_BUTTON3 0x04000000
573 #define FL_BUTTON4 0x08000000
574 #define FL_BUTTON5 0x10000000
575 #define FL_BUTTONS 0x1f000000
576 
577 #define FL_BUTTON(n) (0x00800000<<(n))
578 
580 #define FL_KEY_MASK 0x0000ffff
581  // FIXME: Unicode needs 24 bits!
582 
583 #ifdef __APPLE__
584 # define FL_COMMAND FL_META
585 # define FL_CONTROL FL_CTRL
586 #else
587 # define FL_COMMAND FL_CTRL
588 # define FL_CONTROL FL_META
589 #endif // __APPLE__
590  // group: Event States
592 
610 enum Fl_Boxtype { // boxtypes (if you change these you must fix fl_boxtype.cxx):
611 
612  FL_NO_BOX = 0,
669 };
670 extern FL_EXPORT Fl_Boxtype fl_define_FL_ROUND_UP_BOX();
671 #define FL_ROUND_UP_BOX fl_define_FL_ROUND_UP_BOX()
672 #define FL_ROUND_DOWN_BOX (Fl_Boxtype)(fl_define_FL_ROUND_UP_BOX()+1)
673 extern FL_EXPORT Fl_Boxtype fl_define_FL_SHADOW_BOX();
674 #define FL_SHADOW_BOX fl_define_FL_SHADOW_BOX()
675 #define FL_SHADOW_FRAME (Fl_Boxtype)(fl_define_FL_SHADOW_BOX()+2)
676 extern FL_EXPORT Fl_Boxtype fl_define_FL_ROUNDED_BOX();
677 #define FL_ROUNDED_BOX fl_define_FL_ROUNDED_BOX()
678 #define FL_ROUNDED_FRAME (Fl_Boxtype)(fl_define_FL_ROUNDED_BOX()+2)
679 extern FL_EXPORT Fl_Boxtype fl_define_FL_RFLAT_BOX();
680 #define FL_RFLAT_BOX fl_define_FL_RFLAT_BOX()
681 extern FL_EXPORT Fl_Boxtype fl_define_FL_RSHADOW_BOX();
682 #define FL_RSHADOW_BOX fl_define_FL_RSHADOW_BOX()
683 extern FL_EXPORT Fl_Boxtype fl_define_FL_DIAMOND_BOX();
684 #define FL_DIAMOND_UP_BOX fl_define_FL_DIAMOND_BOX()
685 #define FL_DIAMOND_DOWN_BOX (Fl_Boxtype)(fl_define_FL_DIAMOND_BOX()+1)
686 extern FL_EXPORT Fl_Boxtype fl_define_FL_OVAL_BOX();
687 #define FL_OVAL_BOX fl_define_FL_OVAL_BOX()
688 #define FL_OSHADOW_BOX (Fl_Boxtype)(fl_define_FL_OVAL_BOX()+1)
689 #define FL_OVAL_FRAME (Fl_Boxtype)(fl_define_FL_OVAL_BOX()+2)
690 #define FL_OFLAT_BOX (Fl_Boxtype)(fl_define_FL_OVAL_BOX()+3)
691 
692 extern FL_EXPORT Fl_Boxtype fl_define_FL_PLASTIC_UP_BOX();
693 #define FL_PLASTIC_UP_BOX fl_define_FL_PLASTIC_UP_BOX()
694 #define FL_PLASTIC_DOWN_BOX (Fl_Boxtype)(fl_define_FL_PLASTIC_UP_BOX()+1)
695 #define FL_PLASTIC_UP_FRAME (Fl_Boxtype)(fl_define_FL_PLASTIC_UP_BOX()+2)
696 #define FL_PLASTIC_DOWN_FRAME (Fl_Boxtype)(fl_define_FL_PLASTIC_UP_BOX()+3)
697 #define FL_PLASTIC_THIN_UP_BOX (Fl_Boxtype)(fl_define_FL_PLASTIC_UP_BOX()+4)
698 #define FL_PLASTIC_THIN_DOWN_BOX (Fl_Boxtype)(fl_define_FL_PLASTIC_UP_BOX()+5)
699 #define FL_PLASTIC_ROUND_UP_BOX (Fl_Boxtype)(fl_define_FL_PLASTIC_UP_BOX()+6)
700 #define FL_PLASTIC_ROUND_DOWN_BOX (Fl_Boxtype)(fl_define_FL_PLASTIC_UP_BOX()+7)
701 
702 extern FL_EXPORT Fl_Boxtype fl_define_FL_GTK_UP_BOX();
703 #define FL_GTK_UP_BOX fl_define_FL_GTK_UP_BOX()
704 #define FL_GTK_DOWN_BOX (Fl_Boxtype)(fl_define_FL_GTK_UP_BOX()+1)
705 #define FL_GTK_UP_FRAME (Fl_Boxtype)(fl_define_FL_GTK_UP_BOX()+2)
706 #define FL_GTK_DOWN_FRAME (Fl_Boxtype)(fl_define_FL_GTK_UP_BOX()+3)
707 #define FL_GTK_THIN_UP_BOX (Fl_Boxtype)(fl_define_FL_GTK_UP_BOX()+4)
708 #define FL_GTK_THIN_DOWN_BOX (Fl_Boxtype)(fl_define_FL_GTK_UP_BOX()+5)
709 #define FL_GTK_THIN_UP_FRAME (Fl_Boxtype)(fl_define_FL_GTK_UP_BOX()+6)
710 #define FL_GTK_THIN_DOWN_FRAME (Fl_Boxtype)(fl_define_FL_GTK_UP_BOX()+7)
711 #define FL_GTK_ROUND_UP_BOX (Fl_Boxtype)(fl_define_FL_GTK_UP_BOX()+8)
712 #define FL_GTK_ROUND_DOWN_BOX (Fl_Boxtype)(fl_define_FL_GTK_UP_BOX()+9)
713 
714 extern FL_EXPORT Fl_Boxtype fl_define_FL_GLEAM_UP_BOX();
715 #define FL_GLEAM_UP_BOX fl_define_FL_GLEAM_UP_BOX()
716 #define FL_GLEAM_DOWN_BOX (Fl_Boxtype)(fl_define_FL_GLEAM_UP_BOX()+1)
717 #define FL_GLEAM_UP_FRAME (Fl_Boxtype)(fl_define_FL_GLEAM_UP_BOX()+2)
718 #define FL_GLEAM_DOWN_FRAME (Fl_Boxtype)(fl_define_FL_GLEAM_UP_BOX()+3)
719 #define FL_GLEAM_THIN_UP_BOX (Fl_Boxtype)(fl_define_FL_GLEAM_UP_BOX()+4)
720 #define FL_GLEAM_THIN_DOWN_BOX (Fl_Boxtype)(fl_define_FL_GLEAM_UP_BOX()+5)
721 #define FL_GLEAM_ROUND_UP_BOX (Fl_Boxtype)(fl_define_FL_GLEAM_UP_BOX()+6)
722 #define FL_GLEAM_ROUND_DOWN_BOX (Fl_Boxtype)(fl_define_FL_GLEAM_UP_BOX()+7)
723 
724 // conversions of box types to other boxtypes:
731  return (Fl_Boxtype)((b<FL_UP_BOX||b%4>1)?b:(b-2));
732 }
739  return (Fl_Boxtype)((b<FL_UP_BOX)?b:(b|1));
740 }
747  return (Fl_Boxtype)((b%4<2)?b:(b+2));
748 }
749 
750 // back-compatibility box types:
751 #define FL_FRAME FL_ENGRAVED_FRAME
752 #define FL_FRAME_BOX FL_ENGRAVED_BOX
753 #define FL_CIRCLE_BOX FL_ROUND_DOWN_BOX
754 #define FL_DIAMOND_BOX FL_DIAMOND_DOWN_BOX
755  // group: Box Types
757 
770 enum Fl_Labeltype { // labeltypes:
779 
781 };
782 
787 #define FL_SYMBOL_LABEL FL_NORMAL_LABEL
788 extern Fl_Labeltype FL_EXPORT fl_define_FL_SHADOW_LABEL();
789 #define FL_SHADOW_LABEL fl_define_FL_SHADOW_LABEL()
790 extern Fl_Labeltype FL_EXPORT fl_define_FL_ENGRAVED_LABEL();
791 #define FL_ENGRAVED_LABEL fl_define_FL_ENGRAVED_LABEL()
792 extern Fl_Labeltype FL_EXPORT fl_define_FL_EMBOSSED_LABEL();
793 #define FL_EMBOSSED_LABEL fl_define_FL_EMBOSSED_LABEL()
794 
835 typedef unsigned Fl_Align;
865 const Fl_Align FL_ALIGN_TOP_LEFT = FL_ALIGN_TOP | FL_ALIGN_LEFT;
866 const Fl_Align FL_ALIGN_TOP_RIGHT = FL_ALIGN_TOP | FL_ALIGN_RIGHT;
867 const Fl_Align FL_ALIGN_BOTTOM_LEFT = FL_ALIGN_BOTTOM | FL_ALIGN_LEFT;
868 const Fl_Align FL_ALIGN_BOTTOM_RIGHT = FL_ALIGN_BOTTOM | FL_ALIGN_RIGHT;
869 const Fl_Align FL_ALIGN_LEFT_TOP = 0x0007; // magic value
870 const Fl_Align FL_ALIGN_RIGHT_TOP = 0x000b; // magic value
871 const Fl_Align FL_ALIGN_LEFT_BOTTOM = 0x000d; // magic value
872 const Fl_Align FL_ALIGN_RIGHT_BOTTOM = 0x000e; // magic value
873 const Fl_Align FL_ALIGN_NOWRAP = (Fl_Align)0; // for back compatibility
874 const Fl_Align FL_ALIGN_POSITION_MASK = 0x000f; // left, right, top, bottom
875 const Fl_Align FL_ALIGN_IMAGE_MASK = 0x0320; // l/r, t/b, backdrop
884 typedef int Fl_Font;
885 
890 const Fl_Font FL_COURIER = 4;
894 const Fl_Font FL_TIMES = 8;
898 const Fl_Font FL_SYMBOL = 12;
899 const Fl_Font FL_SCREEN = 13;
902 
903 const Fl_Font FL_FREE_FONT = 16;
904 const Fl_Font FL_BOLD = 1;
905 const Fl_Font FL_ITALIC = 2;
907 
913 typedef int Fl_Fontsize;
914 
915 extern FL_EXPORT Fl_Fontsize FL_NORMAL_SIZE;
916 
941 typedef unsigned int Fl_Color;
942 
943 // Standard colors. These are used as default colors in widgets and altered as necessary
948 
949  // boxtypes generally limit themselves to these colors so
950  // the whole ramp is not allocated:
951 
952 const Fl_Color FL_GRAY0 = 32; // 'A'
953 const Fl_Color FL_DARK3 = 39; // 'H'
954 const Fl_Color FL_DARK2 = 45; // 'N'
955 const Fl_Color FL_DARK1 = 47; // 'P'
956 const Fl_Color FL_BACKGROUND_COLOR = 49; // 'R' default background color
957 const Fl_Color FL_LIGHT1 = 50; // 'S'
958 const Fl_Color FL_LIGHT2 = 52; // 'U'
959 const Fl_Color FL_LIGHT3 = 54; // 'W'
960 
961  // FLTK provides a 5x8x5 color cube that is used with colormap visuals
962 
963 const Fl_Color FL_BLACK = 56;
964 const Fl_Color FL_RED = 88;
965 const Fl_Color FL_GREEN = 63;
966 const Fl_Color FL_YELLOW = 95;
967 const Fl_Color FL_BLUE = 216;
968 const Fl_Color FL_MAGENTA = 248;
969 const Fl_Color FL_CYAN = 223;
970 const Fl_Color FL_DARK_RED = 72;
971 
972 const Fl_Color FL_DARK_GREEN = 60;
973 const Fl_Color FL_DARK_YELLOW = 76;
974 const Fl_Color FL_DARK_BLUE = 136;
975 const Fl_Color FL_DARK_MAGENTA = 152;
976 const Fl_Color FL_DARK_CYAN = 140;
977 
978 const Fl_Color FL_WHITE = 255;
979 
980 
981 #define FL_FREE_COLOR (Fl_Color)16
982 #define FL_NUM_FREE_COLOR 16
983 #define FL_GRAY_RAMP (Fl_Color)32
984 #define FL_NUM_GRAY 24
985 #define FL_GRAY FL_BACKGROUND_COLOR
986 #define FL_COLOR_CUBE (Fl_Color)56
987 #define FL_NUM_RED 5
988 #define FL_NUM_GREEN 8
989 #define FL_NUM_BLUE 5
990 
991 FL_EXPORT Fl_Color fl_inactive(Fl_Color c);
992 
993 FL_EXPORT Fl_Color fl_contrast(Fl_Color fg, Fl_Color bg);
994 
995 FL_EXPORT Fl_Color fl_color_average(Fl_Color c1, Fl_Color c2, float weight);
996 
998 inline Fl_Color fl_lighter(Fl_Color c) { return fl_color_average(c, FL_WHITE, .67f); }
999 
1001 inline Fl_Color fl_darker(Fl_Color c) { return fl_color_average(c, FL_BLACK, .67f); }
1002 
1005  if (!r && !g && !b) return FL_BLACK;
1006  else return (Fl_Color)(((((r << 8) | g) << 8) | b) << 8);
1007 }
1008 
1011  if (!g) return FL_BLACK;
1012  else return (Fl_Color)(((((g << 8) | g) << 8) | g) << 8);
1013 }
1014 
1023 inline Fl_Color fl_gray_ramp(int i) {return (Fl_Color)(i+FL_GRAY_RAMP);}
1024 
1039 inline Fl_Color fl_color_cube(int r, int g, int b) {
1040  return (Fl_Color)((b*FL_NUM_RED + r) * FL_NUM_GREEN + g + FL_COLOR_CUBE);}
1041  // group: Colors
1043 
1046 
1054 /* FIXME: We should renumber these, but that will break the ABI */
1065  /* Resize indicators */
1080 }; // group: Cursors
1082 
1084 enum { // values for "when" passed to Fl::add_fd()
1085  FL_READ = 1,
1086  FL_WRITE = 4,
1088 };
1089 
1091 enum Fl_Mode {
1092  FL_RGB = 0,
1093  FL_INDEX = 1,
1094  FL_SINGLE = 0,
1095  FL_DOUBLE = 2,
1096  FL_ACCUM = 4,
1097  FL_ALPHA = 8,
1098  FL_DEPTH = 16,
1099  FL_STENCIL = 32,
1100  FL_RGB8 = 64,
1101  FL_MULTISAMPLE= 128,
1102  FL_STEREO = 256,
1103  FL_FAKE_SINGLE = 512, // Fake single buffered windows using double-buffer
1104  FL_OPENGL3 = 1024
1105 };
1106 
1107 // image alpha blending
1108 
1109 #define FL_IMAGE_WITH_ALPHA 0x40000000
1110 
1120 };
1121 
1122 // FLTK 1.0.x compatibility definitions...
1123 # ifdef FLTK_1_0_COMPAT
1124 # define contrast fl_contrast
1125 # define down fl_down
1126 # define frame fl_frame
1127 # define inactive fl_inactive
1128 # endif // FLTK_1_0_COMPAT
1129 
1130 #endif
1131 
1132 //
1133 // End of "$Id$".
1134 //
const Fl_Align FL_ALIGN_CLIP
All parts of the label that are lager than the widget will not be drawn .
Definition: Enumerations.H:856
busy indicator (e.g.
Definition: Enumerations.H:1059
invisible.
Definition: Enumerations.H:1079
Do the callback when the button or key is released and the value changes.
Definition: Enumerations.H:441
Fl_Boxtype fl_box(Fl_Boxtype b)
Get the filled version of a frame.
Definition: Enumerations.H:730
gtk+ version of FL_DOWN_FRAME
Definition: Enumerations.H:653
The Fl::selection_owner() will get this event before the selection is moved to another widget...
Definition: Enumerations.H:388
Fl_Color fl_darker(Fl_Color c)
Returns a darker version of the specified color.
Definition: Enumerations.H:1001
Fl_Cursor
The following constants define the mouse cursors that are available in FLTK.
Definition: Enumerations.H:1055
Fl_Boxtype fl_frame(Fl_Boxtype b)
Get the unfilled, frame only version of a box.
Definition: Enumerations.H:746
const Fl_Font FL_FREE_FONT
first one to allocate
Definition: Enumerations.H:903
const Fl_Font FL_HELVETICA_BOLD
Helvetica (or Arial) bold.
Definition: Enumerations.H:887
plastic version of FL_THIN_DOWN_BOX
Definition: Enumerations.H:647
const Fl_Font FL_COURIER_ITALIC
Courier italic.
Definition: Enumerations.H:892
const Fl_Color FL_BACKGROUND2_COLOR
the default background color for text, list, and valuator widgets
Definition: Enumerations.H:945
downwards, left resize.
Definition: Enumerations.H:1075
gtk+ version of FL_ROUND_DOWN_BOX
Definition: Enumerations.H:659
Call the callback if an exception occurs on the file.
Definition: Enumerations.H:1087
Second user-defined damage bit.
Definition: Enumerations.H:1118
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:860
see figure 1
Definition: Enumerations.H:635
see figure 1
Definition: Enumerations.H:627
see figure 1
Definition: Enumerations.H:637
You should get this event some time after you call Fl::paste().
Definition: Enumerations.H:381
plastic version of FL_UP_FRAME
Definition: Enumerations.H:644
question mark pointer.
Definition: Enumerations.H:1062
const Fl_Font FL_TIMES_BOLD
Times roman bold.
Definition: Enumerations.H:895
A mouse button has gone down with the mouse pointing at this widget.
Definition: Enumerations.H:234
This indicates an attempt to give a widget the keyboard focus.
Definition: Enumerations.H:281
pointing hand.
Definition: Enumerations.H:1061
see figure 1
Definition: Enumerations.H:615
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:1023
const Fl_Font FL_ZAPF_DINGBATS
Zapf-dingbats font.
Definition: Enumerations.H:901
Everything needs to be redrawn.
Definition: Enumerations.H:1119
see figure 1
Definition: Enumerations.H:626
This widget is no longer active, due to Fl_Widget::deactivate() being called on it or one of its pare...
Definition: Enumerations.H:354
This widget is no longer visible, due to Fl_Widget::hide() being called on it or one of its parents...
Definition: Enumerations.H:367
const Fl_Align FL_ALIGN_IMAGE_OVER_TEXT
If the label contains an image, draw the text below the image.
Definition: Enumerations.H:854
Fl_Color fl_lighter(Fl_Color c)
Returns a lighter version of the specified color.
Definition: Enumerations.H:998
This widget is now active, due to Fl_Widget::activate() being called on it or one of its parents...
Definition: Enumerations.H:359
Do the callback whenever the user interacts with the widget.
Definition: Enumerations.H:440
see figure 1
Definition: Enumerations.H:640
const Fl_Font FL_COURIER
Courier normal.
Definition: Enumerations.H:890
Do the callback when the user presses the ENTER key and the value changes.
Definition: Enumerations.H:443
Fl_When
These constants determine when a callback is performed.
Definition: Enumerations.H:437
see figure 1
Definition: Enumerations.H:617
see figure 1
Definition: Enumerations.H:622
const Fl_Color FL_FOREGROUND_COLOR
the default foreground color (0) used for labels and text
Definition: Enumerations.H:944
the label displays an "icon" based on a Fl_Image
Definition: Enumerations.H:778
see figure 1
Definition: Enumerations.H:641
downwards resize.
Definition: Enumerations.H:1074
plastic version of FL_DOWN_BOX
Definition: Enumerations.H:643
The user has released the mouse button dropping data into the widget.
Definition: Enumerations.H:415
const Fl_Color FL_INACTIVE_COLOR
the inactive foreground color
Definition: Enumerations.H:946
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:1004
The mouse has been moved inside a widget while dragging data.
Definition: Enumerations.H:405
gtk+ version of FL_THIN_DOWN_FRAME
Definition: Enumerations.H:657
Fl_Mode
visual types and Fl_Gl_Window::mode() (values match Glut)
Definition: Enumerations.H:1091
Fl_Damage
Damage masks.
Definition: Enumerations.H:1112
A mouse button has been released.
Definition: Enumerations.H:242
see figure 1
Definition: Enumerations.H:636
A key was pressed (FL_KEYDOWN) or released (FL_KEYUP).
Definition: Enumerations.H:308
see figure 1
Definition: Enumerations.H:621
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:435
draws a composite label
Definition: Enumerations.H:776
A child needs to be redrawn.
Definition: Enumerations.H:1113
see figure 1
Definition: Enumerations.H:632
diagonal resize.
Definition: Enumerations.H:1068
Do the callback only when the widget value changes.
Definition: Enumerations.H:439
const Fl_Font FL_ITALIC
add this to helvetica, courier, or times
Definition: Enumerations.H:905
const Fl_Align FL_ALIGN_CENTER
Align the label horizontally in the middle.
Definition: Enumerations.H:837
plastic version of FL_THIN_UP_BOX
Definition: Enumerations.H:646
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:219
Fl_Boxtype
Definition: Enumerations.H:610
see figure 1
Definition: Enumerations.H:630
diagonal resize.
Definition: Enumerations.H:1069
The user has moved the mouse wheel.
Definition: Enumerations.H:393
see figure 1
Definition: Enumerations.H:619
const Fl_Align FL_ALIGN_INSIDE
Draw the label inside of the widget.
Definition: Enumerations.H:850
gtk+ version of FL_ROUND_UP_BOX
Definition: Enumerations.H:658
see figure 1
Definition: Enumerations.H:628
The mouse has been moved to point at this widget.
Definition: Enumerations.H:399
see figure 1
Definition: Enumerations.H:614
up/down resize.
Definition: Enumerations.H:1066
draws the text (0)
Definition: Enumerations.H:771
Key release event.
Definition: Enumerations.H:318
gtk+ version of FL_UP_BOX
Definition: Enumerations.H:650
see figure 1
Definition: Enumerations.H:625
The fullscreen state of the window has changed.
Definition: Enumerations.H:422
gleam version of FL_ROUND_DOWN_BOX
Definition: Enumerations.H:667
I-beam.
Definition: Enumerations.H:1060
const Fl_Font FL_TIMES_BOLD_ITALIC
Times roman bold-italic.
Definition: Enumerations.H:897
plastic version of FL_UP_BOX
Definition: Enumerations.H:642
The user clicked the close button of a window.
Definition: Enumerations.H:325
gtk+ version of FL_DOWN_BOX
Definition: Enumerations.H:651
leftwards resize.
Definition: Enumerations.H:1076
draws a drop shadow under the text
Definition: Enumerations.H:773
see figure 1
Definition: Enumerations.H:638
FL_EXPORT Fl_Color fl_inactive(Fl_Color c)
Returns the inactive, dimmed version of the given color.
Definition: fl_color.cxx:423
The Fl_Scroll widget was scrolled.
Definition: Enumerations.H:1115
see figure 1
Definition: Enumerations.H:624
gleam version of FL_DOWN_FRAME
Definition: Enumerations.H:663
const Fl_Font FL_COURIER_BOLD
Courier bold.
Definition: Enumerations.H:891
nothing is drawn at all, this box is invisible
Definition: Enumerations.H:612
upwards resize.
Definition: Enumerations.H:1070
const Fl_Font FL_SCREEN_BOLD
Default monospaced bold screen font.
Definition: Enumerations.H:900
left/right resize.
Definition: Enumerations.H:1067
draws edges as though the text is engraved
Definition: Enumerations.H:774
gleam version of FL_DOWN_BOX
Definition: Enumerations.H:661
Do the callback when the button or key is released, even if the value doesn't change.
Definition: Enumerations.H:442
The overlay planes need to be redrawn.
Definition: Enumerations.H:1116
const Fl_Font FL_BOLD_ITALIC
add this to helvetica, courier, or times
Definition: Enumerations.H:906
gtk+ version of FL_THIN_DOWN_BOX
Definition: Enumerations.H:655
This event is sent to the previous Fl::focus() widget when another widget gets the focus or the windo...
Definition: Enumerations.H:286
const Fl_Font FL_HELVETICA_ITALIC
Helvetica (or Arial) oblique.
Definition: Enumerations.H:888
upwards, left resize.
Definition: Enumerations.H:1077
Call the callback when data can be written without blocking.
Definition: Enumerations.H:1086
an arrow pointer.
Definition: Enumerations.H:1057
downwards, right resize.
Definition: Enumerations.H:1073
int Fl_Fontsize
Size of a font in pixels.
Definition: Enumerations.H:913
Never call the callback.
Definition: Enumerations.H:438
The mouse has moved with a button held down.
Definition: Enumerations.H:266
const Fl_Color FL_SELECTION_COLOR
the default selection/highlight color
Definition: Enumerations.H:947
The user has made a zoom/pinch/magnification gesture.
Definition: Enumerations.H:427
see figure 1
Definition: Enumerations.H:631
plastic version of FL_DOWN_FRAME
Definition: Enumerations.H:645
const Fl_Align FL_ALIGN_WRAP
Wrap text that does not fit the width of the widget.
Definition: Enumerations.H:858
gleam version of FL_THIN_UP_BOX
Definition: Enumerations.H:664
gtk+ version of FL_UP_FRAME
Definition: Enumerations.H:652
4-pointed arrow or hand.
Definition: Enumerations.H:1063
see figure 1
Definition: Enumerations.H:616
const Fl_Font FL_BOLD
add this to helvetica, courier, or times
Definition: Enumerations.H:904
crosshair.
Definition: Enumerations.H:1058
gleam version of FL_ROUND_UP_BOX
Definition: Enumerations.H:666
gleam version of FL_UP_BOX
Definition: Enumerations.H:660
The screen configuration (number, positions) was changed.
Definition: Enumerations.H:419
FL_EXPORT Fl_Fontsize FL_NORMAL_SIZE
normal font size
Definition: Fl_Widget.cxx:117
unsigned int Fl_Color
An FLTK color value; see also Colors.
Definition: Enumerations.H:941
Fl_Labeltype
The labeltype() method sets the type of the label.
Definition: Enumerations.H:770
This widget is visible again, due to Fl_Widget::show() being called on it or one of its parents...
Definition: Enumerations.H:375
the default cursor, usually an arrow.
Definition: Enumerations.H:1056
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:884
const Fl_Align FL_ALIGN_TOP
Align the label at the top of the widget.
Definition: Enumerations.H:840
draws the icon associated with the text
Definition: Enumerations.H:777
see figure 1
Definition: Enumerations.H:618
a flat box
Definition: Enumerations.H:613
unsigned Fl_Align
FLTK type for alignment control.
Definition: Enumerations.H:835
const Fl_Font FL_SYMBOL
Standard symbol font.
Definition: Enumerations.H:898
The mouse has moved without any mouse buttons held down.
Definition: Enumerations.H:333
The window was exposed.
Definition: Enumerations.H:1114
plastic version of FL_ROUND_UP_BOX
Definition: Enumerations.H:648
Fl_Color fl_color_cube(int r, int g, int b)
Returns a color out of the color cube.
Definition: Enumerations.H:1039
see figure 1
Definition: Enumerations.H:623
see figure 1
Definition: Enumerations.H:639
const Fl_Font FL_HELVETICA_BOLD_ITALIC
Helvetica (or Arial) bold-oblique.
Definition: Enumerations.H:889
see figure 1
Definition: Enumerations.H:634
const Fl_Font FL_HELVETICA
Helvetica (or Arial) normal (0)
Definition: Enumerations.H:886
gtk+ version of FL_THIN_UP_BOX
Definition: Enumerations.H:654
Do the callback when the user presses the ENTER key, even if the value doesn't change.
Definition: Enumerations.H:444
?
Definition: Enumerations.H:445
upwards, right resize.
Definition: Enumerations.H:1071
does nothing
Definition: Enumerations.H:772
see figure 1
Definition: Enumerations.H:633
first free labeltype to use for creating own labeltypes
Definition: Enumerations.H:780
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:402
const Fl_Align FL_ALIGN_BOTTOM
Align the label at the bottom of the widget.
Definition: Enumerations.H:842
const Fl_Font FL_TIMES_ITALIC
Times roman italic.
Definition: Enumerations.H:896
the first free box type for creation of new box types
Definition: Enumerations.H:668
const Fl_Font FL_TIMES
Times roman.
Definition: Enumerations.H:894
The mouse has been moved to point at this widget.
Definition: Enumerations.H:251
The mouse has moved out of the widget.
Definition: Enumerations.H:409
gleam version of FL_THIN_DOWN_BOX
Definition: Enumerations.H:665
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:862
const Fl_Align FL_ALIGN_LEFT
Align the label at the left of the widget.
Definition: Enumerations.H:846
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:852
The mouse has moved out of the widget.
Definition: Enumerations.H:257
First user-defined damage bit.
Definition: Enumerations.H:1117
Call the callback when there is data to be read.
Definition: Enumerations.H:1085
const Fl_Font FL_COURIER_BOLD_ITALIC
Courier bold-italic.
Definition: Enumerations.H:893
Equivalent to FL_KEYDOWN.
Definition: Enumerations.H:313
rightwards resize.
Definition: Enumerations.H:1072
plastic version of FL_ROUND_DOWN_BOX
Definition: Enumerations.H:649
see figure 1
Definition: Enumerations.H:629
see figure 1
Definition: Enumerations.H:620
gleam version of FL_UP_FRAME
Definition: Enumerations.H:662
unsigned char uchar
unsigned char
Definition: fl_types.h:30
If the Fl::focus() widget is zero or ignores an FL_KEYBOARD event then FLTK tries sending this event ...
Definition: Enumerations.H:347
const Fl_Font FL_SCREEN
Default monospaced screen font.
Definition: Enumerations.H:899
No event.
Definition: Enumerations.H:221
const Fl_Align FL_ALIGN_IMAGE_BACKDROP
If the label contains an image, draw the image or deimage in the background.
Definition: Enumerations.H:864
gtk+ version of FL_THIN_UP_FRAME
Definition: Enumerations.H:656
Fl_Boxtype fl_down(Fl_Boxtype b)
Get the "pressed" or "down" version of a box.
Definition: Enumerations.H:738
const Fl_Align FL_ALIGN_RIGHT
Align the label to the right of the widget.
Definition: Enumerations.H:848
draws edges as though the text is raised
Definition: Enumerations.H:775