FLTK 1.4.4

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-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
20
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
39// Keep the following comment in sync with the values below for searching
40// Current FLTK version: 1.4.4
41
50
55#define FL_MAJOR_VERSION 1
56
62#define FL_MINOR_VERSION 4
63
71#define FL_PATCH_VERSION 4
72
94#define FL_VERSION ( (double)FL_MAJOR_VERSION + \
95 (double)FL_MINOR_VERSION * 0.01 + \
96 (double)FL_PATCH_VERSION * 0.0001 )
97
116#define FL_API_VERSION (FL_MAJOR_VERSION*10000 + FL_MINOR_VERSION*100 + FL_PATCH_VERSION)
117
148#ifndef FL_ABI_VERSION
149#define FL_ABI_VERSION (FL_MAJOR_VERSION*10000 + FL_MINOR_VERSION*100)
150#endif
151
152/*
153 Check if FL_ABI_VERSION is out of allowed range; redefine if necessary.
154
155 This is done to prevent users from defining an illegal ABI version.
156
157 Rule: FL_MAJOR_VERSION * 10000 + FL_MINOR_VERSION * 100
158 <= FL_ABI_VERSION <= FL_API_VERSION + 1.
159
160 Since FLTK 1.4.2+ (Git commits after release 1.4.2) FL_ABI_VERSION is
161 allowed to be one higher than FL_API_VERSION so ABI changes in Git
162 targeted at the *next* release (e.g. 1.4.3) can be used.
163
164 Example: Commits after release FLTK 1.4.2 (before release 1.4.3):
165
166 10400 <= FL_ABI_VERSION <= 10403
167
168 Note: configure + CMake can be used to define FL_ABI_VERSION, but they
169 do not check validity. This is done here.
170*/
171
172#if FL_ABI_VERSION < FL_MAJOR_VERSION*10000 + FL_MINOR_VERSION*100
173
174# undef FL_ABI_VERSION
175# define FL_ABI_VERSION (FL_MAJOR_VERSION*10000 + FL_MINOR_VERSION*100)
176
177#elif FL_ABI_VERSION > FL_API_VERSION + 1
178
179# undef FL_ABI_VERSION
180# define FL_ABI_VERSION FL_API_VERSION + 1
181
182#endif
183 // group: Version Numbers
185
204// DEV NOTE: Keep this list in sync with FL/names.h
205 enum Fl_Event { // events
207 FL_NO_EVENT = 0,
208
220 FL_PUSH = 1,
221
228 FL_RELEASE = 2,
229
237 FL_ENTER = 3,
238
243 FL_LEAVE = 4,
244
252 FL_DRAG = 5,
253
267 FL_FOCUS = 6,
268
272 FL_UNFOCUS = 7,
273
294 FL_KEYDOWN = 8,
295
299 FL_KEYBOARD = 8,
300
304 FL_KEYUP = 9,
305
311 FL_CLOSE = 10,
312
319 FL_MOVE = 11,
320
333 FL_SHORTCUT = 12,
334
340 FL_DEACTIVATE = 13,
341
345 FL_ACTIVATE = 14,
346
353 FL_HIDE = 15,
354
361 FL_SHOW = 16,
362
367 FL_PASTE = 17,
368
374 FL_SELECTIONCLEAR = 18,
375
379 FL_MOUSEWHEEL = 19,
380
385 FL_DND_ENTER = 20,
386
391 FL_DND_DRAG = 21,
392
395 FL_DND_LEAVE = 22,
396
401 FL_DND_RELEASE = 23,
405 FL_SCREEN_CONFIGURATION_CHANGED = 24,
409 FL_FULLSCREEN = 25,
415 FL_ZOOM_GESTURE = 26,
419 FL_ZOOM_EVENT = 27
420 // DEV NOTE: Keep this list in sync with FL/names.h
421};
422
435 enum Fl_When { // Fl_Widget::when():
436 FL_WHEN_NEVER = 0,
437 FL_WHEN_CHANGED = 1,
438 FL_WHEN_NOT_CHANGED = 2,
439 FL_WHEN_RELEASE = 4,
440 FL_WHEN_RELEASE_ALWAYS = 6,
441 FL_WHEN_ENTER_KEY = 8,
442 FL_WHEN_ENTER_KEY_ALWAYS = 10,
443 FL_WHEN_ENTER_KEY_CHANGED = 11,
444 FL_WHEN_CLOSED = 16
445};
446 // group: When Conditions
447
448
455 enum Fl_Callback_Reason {
456 FL_REASON_UNKNOWN=0,
457 FL_REASON_SELECTED,
458 FL_REASON_DESELECTED,
459 FL_REASON_RESELECTED,
460 FL_REASON_OPENED,
461 FL_REASON_CLOSED,
462 FL_REASON_DRAGGED,
463 FL_REASON_CANCELLED,
464 FL_REASON_CHANGED,
465 FL_REASON_GOT_FOCUS,
466 FL_REASON_LOST_FOCUS,
467 FL_REASON_RELEASED,
468 FL_REASON_ENTER_KEY,
469 FL_REASON_USER = 32
470};
471 // group: Callback Reasons
472
473
481
483
484// FIXME: These codes collide with valid Unicode keys
485
486#define FL_Button 0xfee8
487#define FL_BackSpace 0xff08
488#define FL_Tab 0xff09
489#define FL_Iso_Key 0xff0c
490#define FL_Enter 0xff0d
491#define FL_Pause 0xff13
492#define FL_Scroll_Lock 0xff14
493#define FL_Escape 0xff1b
494#define FL_Kana 0xff2e
495#define FL_Eisu 0xff2f
496#define FL_Yen 0xff30
497#define FL_JIS_Underscore 0xff31
498#define FL_Home 0xff50
499#define FL_Left 0xff51
500#define FL_Up 0xff52
501#define FL_Right 0xff53
502#define FL_Down 0xff54
503#define FL_Page_Up 0xff55
504#define FL_Page_Down 0xff56
505#define FL_End 0xff57
506#define FL_Print 0xff61
507#define FL_Insert 0xff63
508#define FL_Menu 0xff67
509#define FL_Help 0xff68
510#define FL_Num_Lock 0xff7f
511#define FL_KP 0xff80
512#define FL_KP_Enter 0xff8d
513#define FL_KP_Last 0xffbd
514#define FL_F 0xffbd
515#define FL_F_Last 0xffe0
516#define FL_Shift_L 0xffe1
517#define FL_Shift_R 0xffe2
518#define FL_Control_L 0xffe3
519#define FL_Control_R 0xffe4
520#define FL_Caps_Lock 0xffe5
521#define FL_Meta_L 0xffe7
522#define FL_Meta_R 0xffe8
523#define FL_Alt_L 0xffe9
524#define FL_Alt_R 0xffea
525#define FL_Delete 0xffff
526#define FL_Alt_Gr 0xfe03
527
528// These use the Private Use Area (PUA) of the Basic Multilingual Plane
529// of Unicode. Guaranteed not to conflict with a proper Unicode character.
530
531// These primarily map to the XFree86 keysym range
532#define FL_Volume_Down 0xEF11
533#define FL_Volume_Mute 0xEF12
534#define FL_Volume_Up 0xEF13
535#define FL_Media_Play 0xEF14
536#define FL_Media_Stop 0xEF15
537#define FL_Media_Prev 0xEF16
538#define FL_Media_Next 0xEF17
539#define FL_Home_Page 0xEF18
540#define FL_Mail 0xEF19
541#define FL_Search 0xEF1B
542#define FL_Back 0xEF26
543#define FL_Forward 0xEF27
544#define FL_Stop 0xEF28
545#define FL_Refresh 0xEF29
546#define FL_Sleep 0xEF2F
547#define FL_Favorites 0xEF30
548 // group: Non-ASCII key names
550
557
559
560#define FL_LEFT_MOUSE 1
561#define FL_MIDDLE_MOUSE 2
562#define FL_RIGHT_MOUSE 3
563#define FL_BACK_MOUSE 4
564#define FL_FORWARD_MOUSE 5
565 // group: Mouse Buttons
567
568
573 // group: Event States
575
576// FIXME: it would be nice to have the modifiers in the upper 8 bits so that
577// a unicode key (21 bits) can be sent as an unsigned with the modifiers.
578
579#define FL_SHIFT 0x00010000
580#define FL_CAPS_LOCK 0x00020000
581#define FL_CTRL 0x00040000
582#define FL_ALT 0x00080000
583#define FL_NUM_LOCK 0x00100000
584 // most X servers do this?
585#define FL_META 0x00400000
586 // correct for XFree86
587#define FL_SCROLL_LOCK 0x00800000
588 // correct for XFree86
589// Mouse buttons
590
591#define FL_BUTTON1 0x01000000
592#define FL_BUTTON2 0x02000000
593#define FL_BUTTON3 0x04000000
594#define FL_BUTTON4 0x08000000
595#define FL_BUTTON5 0x10000000
596#define FL_BUTTONS 0x1f000000
597
598#define FL_BUTTON(n) (0x00800000<<(n))
600
601#define FL_KEY_MASK 0x0000ffff
602 // FIXME: Unicode needs 21 bits!
603 // group: Event States
605
630 // group: Box Types
632
644 enum Fl_Boxtype { // boxtypes (if you change these you must also change fl_boxtype.cxx):
645
646 FL_NO_BOX = 0,
647 FL_FLAT_BOX,
648 FL_UP_BOX,
649 FL_DOWN_BOX,
650 FL_UP_FRAME,
651 FL_DOWN_FRAME,
652 FL_THIN_UP_BOX,
653 FL_THIN_DOWN_BOX,
654 FL_THIN_UP_FRAME,
655 FL_THIN_DOWN_FRAME,
656 FL_ENGRAVED_BOX,
657 FL_EMBOSSED_BOX,
658 FL_ENGRAVED_FRAME,
659 FL_EMBOSSED_FRAME,
660 FL_BORDER_BOX,
661 _FL_SHADOW_BOX,
662 FL_BORDER_FRAME,
663 _FL_SHADOW_FRAME,
664 _FL_ROUNDED_BOX,
665 _FL_RSHADOW_BOX,
666 _FL_ROUNDED_FRAME,
667 _FL_RFLAT_BOX,
668 _FL_ROUND_UP_BOX,
669 _FL_ROUND_DOWN_BOX,
670 _FL_DIAMOND_UP_BOX,
671 _FL_DIAMOND_DOWN_BOX,
672 _FL_OVAL_BOX,
673 _FL_OSHADOW_BOX,
674 _FL_OVAL_FRAME,
675 _FL_OFLAT_BOX,
676 _FL_PLASTIC_UP_BOX,
677 _FL_PLASTIC_DOWN_BOX,
678 _FL_PLASTIC_UP_FRAME,
679 _FL_PLASTIC_DOWN_FRAME,
680 _FL_PLASTIC_THIN_UP_BOX,
681 _FL_PLASTIC_THIN_DOWN_BOX,
682 _FL_PLASTIC_ROUND_UP_BOX,
683 _FL_PLASTIC_ROUND_DOWN_BOX,
684 _FL_GTK_UP_BOX,
685 _FL_GTK_DOWN_BOX,
686 _FL_GTK_UP_FRAME,
687 _FL_GTK_DOWN_FRAME,
688 _FL_GTK_THIN_UP_BOX,
689 _FL_GTK_THIN_DOWN_BOX,
690 _FL_GTK_THIN_UP_FRAME,
691 _FL_GTK_THIN_DOWN_FRAME,
692 _FL_GTK_ROUND_UP_BOX,
693 _FL_GTK_ROUND_DOWN_BOX,
694 _FL_GLEAM_UP_BOX,
695 _FL_GLEAM_DOWN_BOX,
696 _FL_GLEAM_UP_FRAME,
697 _FL_GLEAM_DOWN_FRAME,
698 _FL_GLEAM_THIN_UP_BOX,
699 _FL_GLEAM_THIN_DOWN_BOX,
700 _FL_GLEAM_ROUND_UP_BOX,
701 _FL_GLEAM_ROUND_DOWN_BOX,
702 _FL_OXY_UP_BOX,
703 _FL_OXY_DOWN_BOX,
704 _FL_OXY_UP_FRAME,
705 _FL_OXY_DOWN_FRAME,
706 _FL_OXY_THIN_UP_BOX,
707 _FL_OXY_THIN_DOWN_BOX,
708 _FL_OXY_THIN_UP_FRAME,
709 _FL_OXY_THIN_DOWN_FRAME,
710 _FL_OXY_ROUND_UP_BOX,
711 _FL_OXY_ROUND_DOWN_BOX,
712 _FL_OXY_BUTTON_UP_BOX,
713 _FL_OXY_BUTTON_DOWN_BOX,
714 FL_FREE_BOXTYPE,
715 FL_MAX_BOXTYPE = 255
716};
717
718#ifndef FL_DOXYGEN
719
720 extern FL_EXPORT Fl_Boxtype fl_define_FL_ROUND_UP_BOX();
721#define FL_ROUND_UP_BOX fl_define_FL_ROUND_UP_BOX()
722#define FL_ROUND_DOWN_BOX (Fl_Boxtype)(fl_define_FL_ROUND_UP_BOX()+1)
723 extern FL_EXPORT Fl_Boxtype fl_define_FL_SHADOW_BOX();
724#define FL_SHADOW_BOX fl_define_FL_SHADOW_BOX()
725#define FL_SHADOW_FRAME (Fl_Boxtype)(fl_define_FL_SHADOW_BOX()+2)
726 extern FL_EXPORT Fl_Boxtype fl_define_FL_ROUNDED_BOX();
727#define FL_ROUNDED_BOX fl_define_FL_ROUNDED_BOX()
728#define FL_ROUNDED_FRAME (Fl_Boxtype)(fl_define_FL_ROUNDED_BOX()+2)
729 extern FL_EXPORT Fl_Boxtype fl_define_FL_RFLAT_BOX();
730#define FL_RFLAT_BOX fl_define_FL_RFLAT_BOX()
731 extern FL_EXPORT Fl_Boxtype fl_define_FL_RSHADOW_BOX();
732#define FL_RSHADOW_BOX fl_define_FL_RSHADOW_BOX()
733 extern FL_EXPORT Fl_Boxtype fl_define_FL_DIAMOND_BOX();
734#define FL_DIAMOND_UP_BOX fl_define_FL_DIAMOND_BOX()
735#define FL_DIAMOND_DOWN_BOX (Fl_Boxtype)(fl_define_FL_DIAMOND_BOX()+1)
736 extern FL_EXPORT Fl_Boxtype fl_define_FL_OVAL_BOX();
737#define FL_OVAL_BOX fl_define_FL_OVAL_BOX()
738#define FL_OSHADOW_BOX (Fl_Boxtype)(fl_define_FL_OVAL_BOX()+1)
739#define FL_OVAL_FRAME (Fl_Boxtype)(fl_define_FL_OVAL_BOX()+2)
740#define FL_OFLAT_BOX (Fl_Boxtype)(fl_define_FL_OVAL_BOX()+3)
741
742 extern FL_EXPORT Fl_Boxtype fl_define_FL_PLASTIC_UP_BOX();
743#define FL_PLASTIC_UP_BOX fl_define_FL_PLASTIC_UP_BOX()
744#define FL_PLASTIC_DOWN_BOX (Fl_Boxtype)(fl_define_FL_PLASTIC_UP_BOX()+1)
745#define FL_PLASTIC_UP_FRAME (Fl_Boxtype)(fl_define_FL_PLASTIC_UP_BOX()+2)
746#define FL_PLASTIC_DOWN_FRAME (Fl_Boxtype)(fl_define_FL_PLASTIC_UP_BOX()+3)
747#define FL_PLASTIC_THIN_UP_BOX (Fl_Boxtype)(fl_define_FL_PLASTIC_UP_BOX()+4)
748#define FL_PLASTIC_THIN_DOWN_BOX (Fl_Boxtype)(fl_define_FL_PLASTIC_UP_BOX()+5)
749#define FL_PLASTIC_ROUND_UP_BOX (Fl_Boxtype)(fl_define_FL_PLASTIC_UP_BOX()+6)
750#define FL_PLASTIC_ROUND_DOWN_BOX (Fl_Boxtype)(fl_define_FL_PLASTIC_UP_BOX()+7)
751
752 extern FL_EXPORT Fl_Boxtype fl_define_FL_GTK_UP_BOX();
753#define FL_GTK_UP_BOX fl_define_FL_GTK_UP_BOX()
754#define FL_GTK_DOWN_BOX (Fl_Boxtype)(fl_define_FL_GTK_UP_BOX()+1)
755#define FL_GTK_UP_FRAME (Fl_Boxtype)(fl_define_FL_GTK_UP_BOX()+2)
756#define FL_GTK_DOWN_FRAME (Fl_Boxtype)(fl_define_FL_GTK_UP_BOX()+3)
757#define FL_GTK_THIN_UP_BOX (Fl_Boxtype)(fl_define_FL_GTK_UP_BOX()+4)
758#define FL_GTK_THIN_DOWN_BOX (Fl_Boxtype)(fl_define_FL_GTK_UP_BOX()+5)
759#define FL_GTK_THIN_UP_FRAME (Fl_Boxtype)(fl_define_FL_GTK_UP_BOX()+6)
760#define FL_GTK_THIN_DOWN_FRAME (Fl_Boxtype)(fl_define_FL_GTK_UP_BOX()+7)
761#define FL_GTK_ROUND_UP_BOX (Fl_Boxtype)(fl_define_FL_GTK_UP_BOX()+8)
762#define FL_GTK_ROUND_DOWN_BOX (Fl_Boxtype)(fl_define_FL_GTK_UP_BOX()+9)
763
764 extern FL_EXPORT Fl_Boxtype fl_define_FL_GLEAM_UP_BOX();
765#define FL_GLEAM_UP_BOX fl_define_FL_GLEAM_UP_BOX()
766#define FL_GLEAM_DOWN_BOX (Fl_Boxtype)(fl_define_FL_GLEAM_UP_BOX()+1)
767#define FL_GLEAM_UP_FRAME (Fl_Boxtype)(fl_define_FL_GLEAM_UP_BOX()+2)
768#define FL_GLEAM_DOWN_FRAME (Fl_Boxtype)(fl_define_FL_GLEAM_UP_BOX()+3)
769#define FL_GLEAM_THIN_UP_BOX (Fl_Boxtype)(fl_define_FL_GLEAM_UP_BOX()+4)
770#define FL_GLEAM_THIN_DOWN_BOX (Fl_Boxtype)(fl_define_FL_GLEAM_UP_BOX()+5)
771#define FL_GLEAM_ROUND_UP_BOX (Fl_Boxtype)(fl_define_FL_GLEAM_UP_BOX()+6)
772#define FL_GLEAM_ROUND_DOWN_BOX (Fl_Boxtype)(fl_define_FL_GLEAM_UP_BOX()+7)
773
774 extern FL_EXPORT Fl_Boxtype fl_define_FL_OXY_UP_BOX();
775#define FL_OXY_UP_BOX fl_define_FL_OXY_UP_BOX()
776#define FL_OXY_DOWN_BOX (Fl_Boxtype)(fl_define_FL_OXY_UP_BOX()+1)
777#define FL_OXY_UP_FRAME (Fl_Boxtype)(fl_define_FL_OXY_UP_BOX()+2)
778#define FL_OXY_DOWN_FRAME (Fl_Boxtype)(fl_define_FL_OXY_UP_BOX()+3)
779#define FL_OXY_THIN_UP_BOX (Fl_Boxtype)(fl_define_FL_OXY_UP_BOX()+4)
780#define FL_OXY_THIN_DOWN_BOX (Fl_Boxtype)(fl_define_FL_OXY_UP_BOX()+5)
781#define FL_OXY_THIN_UP_FRAME (Fl_Boxtype)(fl_define_FL_OXY_UP_BOX()+6)
782#define FL_OXY_THIN_DOWN_FRAME (Fl_Boxtype)(fl_define_FL_OXY_UP_BOX()+7)
783#define FL_OXY_ROUND_UP_BOX (Fl_Boxtype)(fl_define_FL_OXY_UP_BOX()+8)
784#define FL_OXY_ROUND_DOWN_BOX (Fl_Boxtype)(fl_define_FL_OXY_UP_BOX()+9)
785#define FL_OXY_BUTTON_UP_BOX (Fl_Boxtype)(fl_define_FL_OXY_UP_BOX()+10)
786#define FL_OXY_BUTTON_DOWN_BOX (Fl_Boxtype)(fl_define_FL_OXY_UP_BOX()+11)
787
788#endif // ! FL_DOXYGEN
789
790// conversions of box types to other boxtypes:
796 inline Fl_Boxtype fl_box(Fl_Boxtype b) {
797 return (Fl_Boxtype)((b<FL_UP_BOX||b%4>1)?b:(b-2));
798}
799
804 inline Fl_Boxtype fl_down(Fl_Boxtype b) {
805 return (Fl_Boxtype)((b<FL_UP_BOX)?b:(b|1));
806}
807
812 inline Fl_Boxtype fl_frame(Fl_Boxtype b) {
813 return (Fl_Boxtype)((b%4<2)?b:(b+2));
814}
815
816// back-compatibility box types:
817#define FL_FRAME FL_ENGRAVED_FRAME
818#define FL_FRAME_BOX FL_ENGRAVED_BOX
819#define FL_CIRCLE_BOX FL_ROUND_DOWN_BOX
820#define FL_DIAMOND_BOX FL_DIAMOND_DOWN_BOX
821 // group: Box Types
823
835 enum Fl_Labeltype { // labeltypes:
836 FL_NORMAL_LABEL = 0,
837 FL_NO_LABEL,
838 _FL_SHADOW_LABEL,
839 _FL_ENGRAVED_LABEL,
840 _FL_EMBOSSED_LABEL,
841 _FL_MULTI_LABEL,
842 _FL_ICON_LABEL,
843 _FL_IMAGE_LABEL,
844
845 FL_FREE_LABELTYPE
846};
847
852
859#define FL_SYMBOL_LABEL FL_NORMAL_LABEL
864 extern Fl_Labeltype FL_EXPORT fl_define_FL_SHADOW_LABEL();
868#define FL_SHADOW_LABEL fl_define_FL_SHADOW_LABEL()
869
874 extern Fl_Labeltype FL_EXPORT fl_define_FL_ENGRAVED_LABEL();
878#define FL_ENGRAVED_LABEL fl_define_FL_ENGRAVED_LABEL()
879
884 extern Fl_Labeltype FL_EXPORT fl_define_FL_EMBOSSED_LABEL();
888#define FL_EMBOSSED_LABEL fl_define_FL_EMBOSSED_LABEL()
889
894 extern Fl_Labeltype FL_EXPORT fl_define_FL_MULTI_LABEL();
899#define FL_MULTI_LABEL fl_define_FL_MULTI_LABEL()
900
905 extern Fl_Labeltype FL_EXPORT fl_define_FL_ICON_LABEL();
909#define FL_ICON_LABEL fl_define_FL_ICON_LABEL()
910
915 extern Fl_Labeltype FL_EXPORT fl_define_FL_IMAGE_LABEL();
922#define FL_IMAGE_LABEL fl_define_FL_IMAGE_LABEL()
923
925
986 typedef unsigned Fl_Align;
987
989 const Fl_Align FL_ALIGN_CENTER = 0x0000;
990
993 const Fl_Align FL_ALIGN_TOP = 0x0001;
994
996 const Fl_Align FL_ALIGN_BOTTOM = 0x0002;
997
1001 const Fl_Align FL_ALIGN_LEFT = 0x0004;
1002
1004 const Fl_Align FL_ALIGN_RIGHT = 0x0008;
1005
1007 const Fl_Align FL_ALIGN_INSIDE = 0x0010;
1008
1010 const Fl_Align FL_ALIGN_TEXT_OVER_IMAGE = 0x0020;
1011
1013 const Fl_Align FL_ALIGN_IMAGE_OVER_TEXT = 0x0000;
1014
1016 const Fl_Align FL_ALIGN_CLIP = 0x0040;
1017
1019 const Fl_Align FL_ALIGN_WRAP = 0x0080;
1020
1022 const Fl_Align FL_ALIGN_IMAGE_NEXT_TO_TEXT = 0x0100;
1023
1025 const Fl_Align FL_ALIGN_TEXT_NEXT_TO_IMAGE = 0x0120;
1026
1028 const Fl_Align FL_ALIGN_IMAGE_BACKDROP = 0x0200;
1029
1030 const Fl_Align FL_ALIGN_TOP_LEFT = FL_ALIGN_TOP | FL_ALIGN_LEFT;
1031 const Fl_Align FL_ALIGN_TOP_RIGHT = FL_ALIGN_TOP | FL_ALIGN_RIGHT;
1032 const Fl_Align FL_ALIGN_BOTTOM_LEFT = FL_ALIGN_BOTTOM | FL_ALIGN_LEFT;
1033 const Fl_Align FL_ALIGN_BOTTOM_RIGHT = FL_ALIGN_BOTTOM | FL_ALIGN_RIGHT;
1034
1036 const Fl_Align FL_ALIGN_LEFT_TOP = 0x0007;
1037
1039 const Fl_Align FL_ALIGN_RIGHT_TOP = 0x000b;
1040
1042 const Fl_Align FL_ALIGN_LEFT_BOTTOM = 0x000d;
1043
1045 const Fl_Align FL_ALIGN_RIGHT_BOTTOM = 0x000e;
1046
1048 const Fl_Align FL_ALIGN_NOWRAP = 0x0000;
1049
1051 const Fl_Align FL_ALIGN_POSITION_MASK = 0x000f;
1052
1054 const Fl_Align FL_ALIGN_IMAGE_MASK = 0x0320;
1056
1057
1063 typedef int Fl_Font;
1064
1065 const Fl_Font FL_HELVETICA = 0;
1066 const Fl_Font FL_HELVETICA_BOLD = 1;
1067 const Fl_Font FL_HELVETICA_ITALIC = 2;
1068 const Fl_Font FL_HELVETICA_BOLD_ITALIC = 3;
1069 const Fl_Font FL_COURIER = 4;
1070 const Fl_Font FL_COURIER_BOLD = 5;
1071 const Fl_Font FL_COURIER_ITALIC = 6;
1072 const Fl_Font FL_COURIER_BOLD_ITALIC = 7;
1073 const Fl_Font FL_TIMES = 8;
1074 const Fl_Font FL_TIMES_BOLD = 9;
1075 const Fl_Font FL_TIMES_ITALIC = 10;
1076 const Fl_Font FL_TIMES_BOLD_ITALIC = 11;
1077 const Fl_Font FL_SYMBOL = 12;
1078 const Fl_Font FL_SCREEN = 13;
1079 const Fl_Font FL_SCREEN_BOLD = 14;
1080 const Fl_Font FL_ZAPF_DINGBATS = 15;
1081
1082 const Fl_Font FL_FREE_FONT = 16;
1083 const Fl_Font FL_BOLD = 1;
1084 const Fl_Font FL_ITALIC = 2;
1085 const Fl_Font FL_BOLD_ITALIC = 3;
1086
1088
1092 typedef int Fl_Fontsize;
1093
1094 extern FL_EXPORT Fl_Fontsize FL_NORMAL_SIZE;
1095
1120 typedef unsigned int Fl_Color;
1121
1122// Standard colors. These are used as default colors in widgets and altered as necessary
1123 const Fl_Color FL_FOREGROUND_COLOR = 0;
1124 const Fl_Color FL_BACKGROUND2_COLOR = 7;
1125 const Fl_Color FL_INACTIVE_COLOR = 8;
1126 const Fl_Color FL_SELECTION_COLOR = 15;
1127
1128 // boxtypes generally limit themselves to these colors so
1129 // the whole ramp is not allocated:
1130
1131 const Fl_Color FL_GRAY0 = 32; // 'A'
1132 const Fl_Color FL_DARK3 = 39; // 'H'
1133 const Fl_Color FL_DARK2 = 45; // 'N'
1134 const Fl_Color FL_DARK1 = 47; // 'P'
1136 const Fl_Color FL_BACKGROUND_COLOR = 49; // 'R' default background color
1137 const Fl_Color FL_LIGHT1 = 50; // 'S'
1138 const Fl_Color FL_LIGHT2 = 52; // 'U'
1139 const Fl_Color FL_LIGHT3 = 54; // 'W'
1140
1141 // FLTK provides a 5x8x5 color cube that is used with colormap visuals
1142
1143 const Fl_Color FL_BLACK = 56;
1144 const Fl_Color FL_RED = 88;
1145 const Fl_Color FL_GREEN = 63;
1146 const Fl_Color FL_YELLOW = 95;
1147 const Fl_Color FL_BLUE = 216;
1148 const Fl_Color FL_MAGENTA = 248;
1149 const Fl_Color FL_CYAN = 223;
1150 const Fl_Color FL_DARK_RED = 72;
1151
1152 const Fl_Color FL_DARK_GREEN = 60;
1153 const Fl_Color FL_DARK_YELLOW = 76;
1154 const Fl_Color FL_DARK_BLUE = 136;
1155 const Fl_Color FL_DARK_MAGENTA = 152;
1156 const Fl_Color FL_DARK_CYAN = 140;
1157
1158 const Fl_Color FL_WHITE = 255;
1159
1162#define FL_FREE_COLOR (Fl_Color)16
1163#define FL_NUM_FREE_COLOR 16
1164#define FL_GRAY_RAMP (Fl_Color)32
1165#define FL_NUM_GRAY 24
1166#define FL_GRAY FL_BACKGROUND_COLOR
1167#define FL_COLOR_CUBE (Fl_Color)56
1168#define FL_NUM_RED 5
1169#define FL_NUM_GREEN 8
1170#define FL_NUM_BLUE 5
1171
1172FL_EXPORT Fl_Color fl_inactive(Fl_Color c);
1173
1196 typedef Fl_Color (Fl_Contrast_Function)(Fl_Color, Fl_Color, int, int);
1197
1198FL_EXPORT void fl_contrast_function(Fl_Contrast_Function *f);
1199
1203 enum Fl_Contrast_Mode {
1204 FL_CONTRAST_NONE = 0,
1205 FL_CONTRAST_LEGACY,
1206 FL_CONTRAST_CIELAB,
1207 FL_CONTRAST_CUSTOM,
1208 FL_CONTRAST_LAST
1209};
1210
1211// The following functions are defined and documented in src/fl_contrast.cxx
1212
1213FL_EXPORT void fl_contrast_level(int level);
1214FL_EXPORT int fl_contrast_level();
1215FL_EXPORT void fl_contrast_mode(int mode);
1216FL_EXPORT int fl_contrast_mode();
1217
1218FL_EXPORT Fl_Color fl_contrast(Fl_Color fg, Fl_Color bg, int context = 0, int size = 0);
1219
1220FL_EXPORT double fl_lightness(Fl_Color color);
1221FL_EXPORT double fl_luminance(Fl_Color color);
1222
1223// Other color functions are defined and documented in src/fl_color.cxx
1224
1225FL_EXPORT Fl_Color fl_color_average(Fl_Color c1, Fl_Color c2, float weight);
1226
1228 inline Fl_Color fl_lighter(Fl_Color c) { return fl_color_average(c, FL_WHITE, .67f); }
1229
1231 inline Fl_Color fl_darker(Fl_Color c) { return fl_color_average(c, FL_BLACK, .67f); }
1232
1234 inline Fl_Color fl_rgb_color(uchar r, uchar g, uchar b) {
1235 if (!r && !g && !b) return FL_BLACK;
1236 else return (Fl_Color)(((((r << 8) | g) << 8) | b) << 8);
1237}
1238
1240 inline Fl_Color fl_rgb_color(uchar g) {
1241 if (!g) return FL_BLACK;
1242 else return (Fl_Color)(((((g << 8) | g) << 8) | g) << 8);
1243}
1244
1253 inline Fl_Color fl_gray_ramp(int i) {return (Fl_Color)(i+FL_GRAY_RAMP);}
1254
1269 inline Fl_Color fl_color_cube(int r, int g, int b) {
1270 return (Fl_Color)((b*FL_NUM_RED + r) * FL_NUM_GREEN + g + FL_COLOR_CUBE);}
1271 // group: Colors
1273
1276
1282/* FIXME: We should renumber these, but that will break the ABI */
1283 enum Fl_Cursor {
1284 FL_CURSOR_DEFAULT = 0, // U+2196
1285 FL_CURSOR_ARROW = 35, // U+2196
1286 FL_CURSOR_CROSS = 66, // U+FF0B
1287 FL_CURSOR_WAIT = 76, // U+231A, U+231B
1288 FL_CURSOR_INSERT = 77, // U+2336
1289 FL_CURSOR_HAND = 31, // U+261C
1290 FL_CURSOR_HELP = 47,
1291 FL_CURSOR_MOVE = 27, // U+2725, U+270B
1292
1293 /* Resize indicators */
1294 FL_CURSOR_NS = 78, // U+21D5
1295 FL_CURSOR_WE = 79, // U+21D4
1296 FL_CURSOR_NWSE = 80, // U+2921
1297 FL_CURSOR_NESW = 81, // U+2922
1298 FL_CURSOR_N = 70, // U+2912
1299 FL_CURSOR_NE = 69, // U+2197
1300 FL_CURSOR_E = 49, // U+21E5
1301 FL_CURSOR_SE = 8, // U+21F2
1302 FL_CURSOR_S = 9, // U+2913
1303 FL_CURSOR_SW = 7, // U+2199
1304 FL_CURSOR_W = 36, // U+21E4
1305 FL_CURSOR_NW = 68, // U+21F1
1306
1307 FL_CURSOR_NONE =255
1308};
1309 // group: Cursors
1310
1312 enum { // values for "when" passed to Fl::add_fd()
1313 FL_READ = 1,
1314 FL_WRITE = 4,
1315 FL_EXCEPT = 8
1316};
1317
1319 enum Fl_Mode {
1320 FL_RGB = 0,
1321 FL_INDEX = 1,
1322 FL_SINGLE = 0,
1323 FL_DOUBLE = 2,
1324 FL_ACCUM = 4,
1325 FL_ALPHA = 8,
1326 FL_DEPTH = 16,
1327 FL_STENCIL = 32,
1328 FL_RGB8 = 64,
1329 FL_MULTISAMPLE= 128,
1330 FL_STEREO = 256,
1331 FL_FAKE_SINGLE = 512, // Fake single buffered windows using double-buffer
1332 FL_OPENGL3 = 1024
1333};
1334
1335// image alpha blending
1336
1337#define FL_IMAGE_WITH_ALPHA 0x40000000
1338
1340 enum Fl_Damage {
1341 FL_DAMAGE_CHILD = 0x01,
1342 FL_DAMAGE_EXPOSE = 0x02,
1343 FL_DAMAGE_SCROLL = 0x04,
1344 FL_DAMAGE_OVERLAY = 0x08,
1345 FL_DAMAGE_USER1 = 0x10,
1346 FL_DAMAGE_USER2 = 0x20,
1347 FL_DAMAGE_ALL = 0x80
1348};
1349
1350// FLTK 1.0.x compatibility definitions (FLTK_1_0_COMPAT) dropped in 1.4.0
1351
1363
1364 enum Fl_Arrow_Type {
1365 FL_ARROW_SINGLE = 0x01,
1366 FL_ARROW_DOUBLE = 0x02,
1367 FL_ARROW_CHOICE = 0x03,
1368 FL_ARROW_RETURN = 0x04
1369};
1370
1392
1393 enum Fl_Orientation {
1394 FL_ORIENT_NONE = 0x00,
1395 FL_ORIENT_RIGHT = 0x00,
1396 FL_ORIENT_NE = 0x01,
1397 FL_ORIENT_UP = 0x02,
1398 FL_ORIENT_NW = 0x03,
1399 FL_ORIENT_LEFT = 0x04,
1400 FL_ORIENT_SW = 0x05,
1401 FL_ORIENT_DOWN = 0x06,
1402 FL_ORIENT_SE = 0x07
1403};
1404
1405#endif
fl_frame
Fl_Boxtype fl_frame(Fl_Boxtype b)
Get the unfilled, frame only version of a box.
Definition Enumerations.H:812
FL_TIMES_BOLD_ITALIC
const Fl_Font FL_TIMES_BOLD_ITALIC
Times roman bold-italic.
Definition Enumerations.H:1076
FL_ALIGN_RIGHT
const Fl_Align FL_ALIGN_RIGHT
Align the label to the right of the widget.
Definition Enumerations.H:1004
FL_ALIGN_IMAGE_BACKDROP
const Fl_Align FL_ALIGN_IMAGE_BACKDROP
If the label contains an image, draw the image or deimage in the background.
Definition Enumerations.H:1028
FL_ALIGN_BOTTOM
const Fl_Align FL_ALIGN_BOTTOM
Align the label at the bottom of the widget.
Definition Enumerations.H:996
FL_ALIGN_LEFT_BOTTOM
const Fl_Align FL_ALIGN_LEFT_BOTTOM
Outside only, left of widget, bottom position, magic value: TOP | LEFT | RIGHT.
Definition Enumerations.H:1042
Fl_Font
int Fl_Font
A font number is an index into the internal font table.
Definition Enumerations.H:1063
FL_SYMBOL
const Fl_Font FL_SYMBOL
Standard symbol font.
Definition Enumerations.H:1077
fl_define_FL_ENGRAVED_LABEL
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:104
FL_ALIGN_RIGHT_BOTTOM
const Fl_Align FL_ALIGN_RIGHT_BOTTOM
Outside only, right of widget, bottom position, magic value: BOTTOM | LEFT | RIGHT.
Definition Enumerations.H:1045
fl_color_cube
Fl_Color fl_color_cube(int r, int g, int b)
Returns a color out of the color cube.
Definition Enumerations.H:1269
FL_ZAPF_DINGBATS
const Fl_Font FL_ZAPF_DINGBATS
Zapf-dingbats font.
Definition Enumerations.H:1080
FL_COURIER_BOLD
const Fl_Font FL_COURIER_BOLD
Courier bold.
Definition Enumerations.H:1070
Fl_Arrow_Type
Fl_Arrow_Type
Arrow types define the type of arrow drawing function.
Definition Enumerations.H:1364
FL_ARROW_RETURN
@ FL_ARROW_RETURN
Return arrow, e.g. in Fl_Return_Button.
Definition Enumerations.H:1368
FL_ARROW_DOUBLE
@ FL_ARROW_DOUBLE
Double arrow, e.g. in Fl_Counter.
Definition Enumerations.H:1366
FL_ARROW_CHOICE
@ FL_ARROW_CHOICE
Dropdown box, e.g. in Fl_Choice.
Definition Enumerations.H:1367
FL_ARROW_SINGLE
@ FL_ARROW_SINGLE
Single arrow, e.g. in Fl_Scrollbar.
Definition Enumerations.H:1365
FL_SELECTION_COLOR
const Fl_Color FL_SELECTION_COLOR
the default selection/highlight color
Definition Enumerations.H:1126
FL_TIMES
const Fl_Font FL_TIMES
Times roman.
Definition Enumerations.H:1073
FL_HELVETICA_ITALIC
const Fl_Font FL_HELVETICA_ITALIC
Helvetica (or Arial) oblique.
Definition Enumerations.H:1067
Fl_Contrast_Function
Fl_Color Fl_Contrast_Function(Fl_Color, Fl_Color, int, int)
Type of a custom fl_contrast() function.
Definition Enumerations.H:1196
FL_TIMES_BOLD
const Fl_Font FL_TIMES_BOLD
Times roman bold.
Definition Enumerations.H:1074
FL_ALIGN_CENTER
const Fl_Align FL_ALIGN_CENTER
Align the label horizontally in the middle.
Definition Enumerations.H:989
Fl_Align
unsigned Fl_Align
FLTK type for alignment control.
Definition Enumerations.H:986
FL_ALIGN_IMAGE_OVER_TEXT
const Fl_Align FL_ALIGN_IMAGE_OVER_TEXT
If the label contains an image, draw the text below the image.
Definition Enumerations.H:1013
FL_BOLD_ITALIC
const Fl_Font FL_BOLD_ITALIC
add this to Helvetica, Courier, or Times
Definition Enumerations.H:1085
FL_ALIGN_CLIP
const Fl_Align FL_ALIGN_CLIP
All parts of the label that are larger than the widget will not be drawn.
Definition Enumerations.H:1016
FL_SCREEN
const Fl_Font FL_SCREEN
Default monospaced screen font.
Definition Enumerations.H:1078
FL_BOLD
const Fl_Font FL_BOLD
add this to Helvetica, Courier, or Times
Definition Enumerations.H:1083
FL_BACKGROUND2_COLOR
const Fl_Color FL_BACKGROUND2_COLOR
the default background color for text, list, and valuator widgets
Definition Enumerations.H:1124
fl_gray_ramp
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:1253
FL_ALIGN_TOP
const Fl_Align FL_ALIGN_TOP
Align the label at the top of the widget.
Definition Enumerations.H:993
FL_ALIGN_TEXT_NEXT_TO_IMAGE
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:1025
FL_INACTIVE_COLOR
const Fl_Color FL_INACTIVE_COLOR
the inactive foreground color
Definition Enumerations.H:1125
fl_down
Fl_Boxtype fl_down(Fl_Boxtype b)
Get the "pressed" or "down" version of a box.
Definition Enumerations.H:804
FL_ALIGN_NOWRAP
const Fl_Align FL_ALIGN_NOWRAP
Nothing, same as FL_ALIGN_CENTER, for back compatibility.
Definition Enumerations.H:1048
Fl_Cursor
Fl_Cursor
The following constants define the mouse cursors that are available in FLTK.
Definition Enumerations.H:1283
FL_CURSOR_MOVE
@ FL_CURSOR_MOVE
4-pointed arrow or hand: ✥, ✋
Definition Enumerations.H:1291
FL_CURSOR_DEFAULT
@ FL_CURSOR_DEFAULT
the default cursor, usually an arrow: ↖
Definition Enumerations.H:1284
FL_CURSOR_HAND
@ FL_CURSOR_HAND
pointing hand: ☜
Definition Enumerations.H:1289
FL_CURSOR_WE
@ FL_CURSOR_WE
left/right resize: ⇔
Definition Enumerations.H:1295
FL_CURSOR_SE
@ FL_CURSOR_SE
downwards, right resize: ⇲
Definition Enumerations.H:1301
FL_CURSOR_W
@ FL_CURSOR_W
leftwards resize: ⇤
Definition Enumerations.H:1304
FL_CURSOR_NW
@ FL_CURSOR_NW
upwards, left resize: ⇱
Definition Enumerations.H:1305
FL_CURSOR_NONE
@ FL_CURSOR_NONE
invisible.
Definition Enumerations.H:1307
FL_CURSOR_E
@ FL_CURSOR_E
rightwards resize: ⇥
Definition Enumerations.H:1300
FL_CURSOR_CROSS
@ FL_CURSOR_CROSS
crosshair: ＋
Definition Enumerations.H:1286
FL_CURSOR_WAIT
@ FL_CURSOR_WAIT
busy indicator (for instance hourglass): ⌚,⌛
Definition Enumerations.H:1287
FL_CURSOR_NWSE
@ FL_CURSOR_NWSE
diagonal resize: ⤡
Definition Enumerations.H:1296
FL_CURSOR_HELP
@ FL_CURSOR_HELP
question mark pointer: ?
Definition Enumerations.H:1290
FL_CURSOR_NS
@ FL_CURSOR_NS
up/down resize: ⇕
Definition Enumerations.H:1294
FL_CURSOR_INSERT
@ FL_CURSOR_INSERT
I-beam: ⌶
Definition Enumerations.H:1288
FL_CURSOR_NESW
@ FL_CURSOR_NESW
diagonal resize: ⤢
Definition Enumerations.H:1297
FL_CURSOR_SW
@ FL_CURSOR_SW
downwards, left resize: ↙
Definition Enumerations.H:1303
FL_CURSOR_NE
@ FL_CURSOR_NE
upwards, right resize: ↗
Definition Enumerations.H:1299
FL_CURSOR_S
@ FL_CURSOR_S
downwards resize: ⤓
Definition Enumerations.H:1302
FL_CURSOR_ARROW
@ FL_CURSOR_ARROW
an arrow pointer: ↖
Definition Enumerations.H:1285
FL_CURSOR_N
@ FL_CURSOR_N
upwards resize: ⤒
Definition Enumerations.H:1298
FL_HELVETICA
const Fl_Font FL_HELVETICA
Helvetica (or Arial) normal (0)
Definition Enumerations.H:1065
fl_rgb_color
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:1234
FL_COURIER_BOLD_ITALIC
const Fl_Font FL_COURIER_BOLD_ITALIC
Courier bold-italic.
Definition Enumerations.H:1072
FL_TIMES_ITALIC
const Fl_Font FL_TIMES_ITALIC
Times roman italic.
Definition Enumerations.H:1075
fl_darker
Fl_Color fl_darker(Fl_Color c)
Returns a darker version of the specified color.
Definition Enumerations.H:1231
Fl_Color
unsigned int Fl_Color
An FLTK color value; see also Colors.
Definition Enumerations.H:1120
FL_FOREGROUND_COLOR
const Fl_Color FL_FOREGROUND_COLOR
the default foreground color (0) used for labels and text
Definition Enumerations.H:1123
fl_define_FL_IMAGE_LABEL
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:148
FL_HELVETICA_BOLD_ITALIC
const Fl_Font FL_HELVETICA_BOLD_ITALIC
Helvetica (or Arial) bold-oblique.
Definition Enumerations.H:1068
fl_box
Fl_Boxtype fl_box(Fl_Boxtype b)
Get the filled version of a frame.
Definition Enumerations.H:796
Fl_Damage
Fl_Damage
Damage masks.
Definition Enumerations.H:1340
FL_DAMAGE_USER2
@ FL_DAMAGE_USER2
Second user-defined damage bit.
Definition Enumerations.H:1346
FL_DAMAGE_EXPOSE
@ FL_DAMAGE_EXPOSE
The window was exposed.
Definition Enumerations.H:1342
FL_DAMAGE_USER1
@ FL_DAMAGE_USER1
First user-defined damage bit.
Definition Enumerations.H:1345
FL_DAMAGE_OVERLAY
@ FL_DAMAGE_OVERLAY
The overlay planes need to be redrawn.
Definition Enumerations.H:1344
FL_DAMAGE_CHILD
@ FL_DAMAGE_CHILD
A child needs to be redrawn.
Definition Enumerations.H:1341
FL_DAMAGE_ALL
@ FL_DAMAGE_ALL
Everything needs to be redrawn.
Definition Enumerations.H:1347
FL_DAMAGE_SCROLL
@ FL_DAMAGE_SCROLL
The Fl_Scroll widget was scrolled.
Definition Enumerations.H:1343
FL_NORMAL_SIZE
Fl_Fontsize FL_NORMAL_SIZE
normal font size
Definition Fl_Widget.cxx:107
FL_BACKGROUND_COLOR
const Fl_Color FL_BACKGROUND_COLOR
Default background color.
Definition Enumerations.H:1136
FL_ALIGN_RIGHT_TOP
const Fl_Align FL_ALIGN_RIGHT_TOP
Outside only, right of widget, top position, magic value: TOP | BOTTOM | RIGHT.
Definition Enumerations.H:1039
Fl_Mode
Fl_Mode
visual types and Fl_Gl_Window::mode() (values match Glut)
Definition Enumerations.H:1319
fl_define_FL_ICON_LABEL
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
FL_ALIGN_TEXT_OVER_IMAGE
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:1010
FL_SCREEN_BOLD
const Fl_Font FL_SCREEN_BOLD
Default monospaced bold screen font.
Definition Enumerations.H:1079
FL_ITALIC
const Fl_Font FL_ITALIC
add this to Helvetica, Courier, or Times
Definition Enumerations.H:1084
FL_FREE_FONT
const Fl_Font FL_FREE_FONT
first one to allocate
Definition Enumerations.H:1082
fl_define_FL_MULTI_LABEL
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_define_FL_SHADOW_LABEL
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:100
Fl_Event
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:205
FL_SCREEN_CONFIGURATION_CHANGED
@ FL_SCREEN_CONFIGURATION_CHANGED
The screen configuration (number, positions) was changed.
Definition Enumerations.H:405
FL_DND_LEAVE
@ FL_DND_LEAVE
The mouse has moved out of the widget.
Definition Enumerations.H:395
FL_KEYBOARD
@ FL_KEYBOARD
Equivalent to FL_KEYDOWN.
Definition Enumerations.H:299
FL_KEYDOWN
@ FL_KEYDOWN
A key was pressed (FL_KEYDOWN) or released (FL_KEYUP).
Definition Enumerations.H:294
FL_ENTER
@ FL_ENTER
The mouse has been moved to point at this widget.
Definition Enumerations.H:237
FL_CLOSE
@ FL_CLOSE
The user clicked the close button of a window.
Definition Enumerations.H:311
FL_PUSH
@ FL_PUSH
A mouse button has gone down with the mouse pointing at this widget.
Definition Enumerations.H:220
FL_ACTIVATE
@ FL_ACTIVATE
This widget is now active, due to Fl_Widget::activate() being called on it or one of its parents.
Definition Enumerations.H:345
FL_RELEASE
@ FL_RELEASE
A mouse button has been released.
Definition Enumerations.H:228
FL_ZOOM_EVENT
@ FL_ZOOM_EVENT
A zoom event (ctrl/+/-/0/ or cmd/+/-/0/) was processed.
Definition Enumerations.H:419
FL_PASTE
@ FL_PASTE
You should get this event some time after you call Fl::paste().
Definition Enumerations.H:367
FL_SHORTCUT
@ FL_SHORTCUT
If the Fl::focus() widget is zero or ignores an FL_KEYBOARD event then FLTK tries sending this event ...
Definition Enumerations.H:333
FL_UNFOCUS
@ FL_UNFOCUS
This event is sent to the previous Fl::focus() widget when another widget gets the focus or the windo...
Definition Enumerations.H:272
FL_ZOOM_GESTURE
@ FL_ZOOM_GESTURE
The user has made a zoom/pinch/magnification gesture (Mac OS platform only).
Definition Enumerations.H:415
FL_DND_RELEASE
@ FL_DND_RELEASE
The user has released the mouse button dropping data into the widget.
Definition Enumerations.H:401
FL_SHOW
@ FL_SHOW
This widget is visible again, due to Fl_Widget::show() being called on it or one of its parents,...
Definition Enumerations.H:361
FL_SELECTIONCLEAR
@ FL_SELECTIONCLEAR
The Fl::selection_owner() will get this event before the selection is moved to another widget.
Definition Enumerations.H:374
FL_LEAVE
@ FL_LEAVE
The mouse has moved out of the widget.
Definition Enumerations.H:243
FL_DRAG
@ FL_DRAG
The mouse has moved with a button held down.
Definition Enumerations.H:252
FL_DND_DRAG
@ FL_DND_DRAG
The mouse has been moved inside a widget while dragging data.
Definition Enumerations.H:391
FL_KEYUP
@ FL_KEYUP
Key release event.
Definition Enumerations.H:304
FL_MOVE
@ FL_MOVE
The mouse has moved without any mouse buttons held down.
Definition Enumerations.H:319
FL_FULLSCREEN
@ FL_FULLSCREEN
The fullscreen state of the window has changed.
Definition Enumerations.H:409
FL_MOUSEWHEEL
@ FL_MOUSEWHEEL
The user has moved the mouse wheel.
Definition Enumerations.H:379
FL_DEACTIVATE
@ 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:340
FL_FOCUS
@ FL_FOCUS
This indicates an attempt to give a widget the keyboard focus.
Definition Enumerations.H:267
FL_HIDE
@ 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:353
FL_NO_EVENT
@ FL_NO_EVENT
No event.
Definition Enumerations.H:207
FL_DND_ENTER
@ FL_DND_ENTER
The mouse has been moved to point at this widget.
Definition Enumerations.H:385
FL_ALIGN_LEFT_TOP
const Fl_Align FL_ALIGN_LEFT_TOP
Outside only, left of widget, top position, magic value: TOP | BOTTOM | LEFT.
Definition Enumerations.H:1036
Fl_Labeltype
Fl_Labeltype
The labeltype() method sets the type of the label.
Definition Enumerations.H:835
_FL_EMBOSSED_LABEL
@ _FL_EMBOSSED_LABEL
draws edges as though the text is raised
Definition Enumerations.H:840
_FL_SHADOW_LABEL
@ _FL_SHADOW_LABEL
draws a drop shadow under the text
Definition Enumerations.H:838
_FL_IMAGE_LABEL
@ _FL_IMAGE_LABEL
the label displays an "icon" based on a Fl_Image
Definition Enumerations.H:843
_FL_ENGRAVED_LABEL
@ _FL_ENGRAVED_LABEL
draws edges as though the text is engraved
Definition Enumerations.H:839
FL_NORMAL_LABEL
@ FL_NORMAL_LABEL
draws the text (0)
Definition Enumerations.H:836
_FL_MULTI_LABEL
@ _FL_MULTI_LABEL
draws a composite label
Definition Enumerations.H:841
FL_NO_LABEL
@ FL_NO_LABEL
does nothing
Definition Enumerations.H:837
FL_FREE_LABELTYPE
@ FL_FREE_LABELTYPE
first free labeltype to use for creating own labeltypes
Definition Enumerations.H:845
_FL_ICON_LABEL
@ _FL_ICON_LABEL
draws the icon associated with the text
Definition Enumerations.H:842
Fl_Fontsize
int Fl_Fontsize
Size of a font in pixels.
Definition Enumerations.H:1092
FL_ALIGN_WRAP
const Fl_Align FL_ALIGN_WRAP
Wrap text that does not fit the width of the widget.
Definition Enumerations.H:1019
Fl_When
Fl_When
These constants determine when a callback is performed.
Definition Enumerations.H:435
FL_WHEN_ENTER_KEY
@ FL_WHEN_ENTER_KEY
Do the callback when the user presses the ENTER key and the value changes.
Definition Enumerations.H:441
FL_WHEN_RELEASE_ALWAYS
@ FL_WHEN_RELEASE_ALWAYS
Do the callback when the button or key is released, even if the value doesn't change.
Definition Enumerations.H:440
FL_WHEN_ENTER_KEY_CHANGED
@ FL_WHEN_ENTER_KEY_CHANGED
Do callbacks whether the value changed or not, and when the ENTER key is pressed.
Definition Enumerations.H:443
FL_WHEN_CLOSED
@ FL_WHEN_CLOSED
Do the callback when a child of Fl_Tabs is closed.
Definition Enumerations.H:444
FL_WHEN_ENTER_KEY_ALWAYS
@ 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:442
FL_WHEN_NOT_CHANGED
@ FL_WHEN_NOT_CHANGED
Do the callback whenever the user interacts with the widget.
Definition Enumerations.H:438
FL_WHEN_NEVER
@ FL_WHEN_NEVER
Never call the callback.
Definition Enumerations.H:436
FL_WHEN_CHANGED
@ FL_WHEN_CHANGED
Do the callback only when the widget value changes.
Definition Enumerations.H:437
FL_WHEN_RELEASE
@ FL_WHEN_RELEASE
Do the callback when the button or key is released and the value changes.
Definition Enumerations.H:439
FL_ALIGN_INSIDE
const Fl_Align FL_ALIGN_INSIDE
Draw the label inside of the widget.
Definition Enumerations.H:1007
FL_ALIGN_POSITION_MASK
const Fl_Align FL_ALIGN_POSITION_MASK
Mask value to test for TOP, BOTTOM, LEFT, and RIGHT flags.
Definition Enumerations.H:1051
FL_ALIGN_IMAGE_NEXT_TO_TEXT
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:1022
Fl_Boxtype
Fl_Boxtype
FLTK standard box types.
Definition Enumerations.H:644
_FL_OXY_ROUND_DOWN_BOX
@ _FL_OXY_ROUND_DOWN_BOX
oxy version of FL_ROUND_DOWN_BOX, use FL_OXY_ROUND_DOWN_BOX
Definition Enumerations.H:711
FL_MAX_BOXTYPE
@ FL_MAX_BOXTYPE
highest legal index for a box type
Definition Enumerations.H:715
_FL_PLASTIC_UP_BOX
@ _FL_PLASTIC_UP_BOX
plastic version of FL_UP_BOX, use FL_PLASTIC_UP_BOX
Definition Enumerations.H:676
_FL_RSHADOW_BOX
@ _FL_RSHADOW_BOX
see figure Standard Box Types, use FL_RSHADOW_BOX
Definition Enumerations.H:665
_FL_OXY_BUTTON_DOWN_BOX
@ _FL_OXY_BUTTON_DOWN_BOX
FL_OXY_BUTTON_DOWN_BOX (new boxtype ?), use FL_OXY_BUTTON_DOWN_BOX.
Definition Enumerations.H:713
FL_BORDER_BOX
@ FL_BORDER_BOX
see figure Standard Box Types
Definition Enumerations.H:660
_FL_PLASTIC_UP_FRAME
@ _FL_PLASTIC_UP_FRAME
plastic version of FL_UP_FRAME, use FL_PLASTIC_UP_FRAME
Definition Enumerations.H:678
_FL_PLASTIC_ROUND_DOWN_BOX
@ _FL_PLASTIC_ROUND_DOWN_BOX
plastic version of FL_ROUND_DOWN_BOX, use FL_PLASTIC_ROUND_DOWN_BOX
Definition Enumerations.H:683
_FL_PLASTIC_ROUND_UP_BOX
@ _FL_PLASTIC_ROUND_UP_BOX
plastic version of FL_ROUND_UP_BOX, use FL_PLASTIC_ROUND_UP_BOX
Definition Enumerations.H:682
FL_THIN_UP_BOX
@ FL_THIN_UP_BOX
see figure Standard Box Types
Definition Enumerations.H:652
_FL_OXY_THIN_DOWN_BOX
@ _FL_OXY_THIN_DOWN_BOX
oxy version of FL_THIN_DOWN_BOX, use FL_OXY_THIN_DOWN_BOX
Definition Enumerations.H:707
FL_EMBOSSED_BOX
@ FL_EMBOSSED_BOX
see figure Standard Box Types
Definition Enumerations.H:657
_FL_OXY_UP_FRAME
@ _FL_OXY_UP_FRAME
oxy version of FL_UP_FRAME, use FL_OXY_UP_FRAME
Definition Enumerations.H:704
_FL_OVAL_FRAME
@ _FL_OVAL_FRAME
see figure Standard Box Types, use FL_OVAL_FRAME
Definition Enumerations.H:674
_FL_OFLAT_BOX
@ _FL_OFLAT_BOX
see figure Standard Box Types, use FL_OFLAT_BOX
Definition Enumerations.H:675
_FL_GTK_THIN_UP_FRAME
@ _FL_GTK_THIN_UP_FRAME
gtk+ version of FL_THIN_UP_FRAME, use FL_GTK_THIN_UP_FRAME
Definition Enumerations.H:690
_FL_RFLAT_BOX
@ _FL_RFLAT_BOX
see figure Standard Box Types, use FL_RFLAT_BOX
Definition Enumerations.H:667
_FL_GTK_THIN_DOWN_FRAME
@ _FL_GTK_THIN_DOWN_FRAME
gtk+ version of FL_THIN_DOWN_FRAME, use FL_GTK_THIN_DOWN_FRAME
Definition Enumerations.H:691
FL_NO_BOX
@ FL_NO_BOX
nothing is drawn at all, this box is invisible
Definition Enumerations.H:646
_FL_GTK_UP_FRAME
@ _FL_GTK_UP_FRAME
gtk+ version of FL_UP_FRAME, use FL_GTK_UP_FRAME
Definition Enumerations.H:686
_FL_SHADOW_FRAME
@ _FL_SHADOW_FRAME
see figure Standard Box Types, use FL_SHADOW_FRAME
Definition Enumerations.H:663
_FL_OXY_THIN_UP_BOX
@ _FL_OXY_THIN_UP_BOX
oxy version of FL_THIN_UP_BOX, use FL_OXY_THIN_UP_BOX
Definition Enumerations.H:706
_FL_OSHADOW_BOX
@ _FL_OSHADOW_BOX
see figure Standard Box Types, use FL_OSHADOW_BOX
Definition Enumerations.H:673
FL_BORDER_FRAME
@ FL_BORDER_FRAME
see figure Standard Box Types
Definition Enumerations.H:662
_FL_ROUNDED_FRAME
@ _FL_ROUNDED_FRAME
see figure Standard Box Types, use FL_ROUNDED_FRAME
Definition Enumerations.H:666
_FL_GTK_DOWN_BOX
@ _FL_GTK_DOWN_BOX
gtk+ version of FL_DOWN_BOX, use FL_GTK_DOWN_BOX
Definition Enumerations.H:685
FL_THIN_DOWN_FRAME
@ FL_THIN_DOWN_FRAME
see figure Standard Box Types
Definition Enumerations.H:655
FL_FLAT_BOX
@ FL_FLAT_BOX
a flat box
Definition Enumerations.H:647
_FL_GLEAM_THIN_DOWN_BOX
@ _FL_GLEAM_THIN_DOWN_BOX
gleam version of FL_THIN_DOWN_BOX, use FL_GLEAM_THIN_DOWN_BOX
Definition Enumerations.H:699
_FL_GTK_THIN_UP_BOX
@ _FL_GTK_THIN_UP_BOX
gtk+ version of FL_THIN_UP_BOX, use FL_GTK_THIN_UP_BOX
Definition Enumerations.H:688
_FL_GTK_ROUND_DOWN_BOX
@ _FL_GTK_ROUND_DOWN_BOX
gtk+ version of FL_ROUND_DOWN_BOX, use FL_GTK_ROUND_DOWN_BOX
Definition Enumerations.H:693
_FL_SHADOW_BOX
@ _FL_SHADOW_BOX
see figure Standard Box Types, use FL_SHADOW_BOX
Definition Enumerations.H:661
_FL_GLEAM_DOWN_FRAME
@ _FL_GLEAM_DOWN_FRAME
gleam version of FL_DOWN_FRAME, use FL_GLEAM_DOWN_FRAME
Definition Enumerations.H:697
_FL_PLASTIC_DOWN_BOX
@ _FL_PLASTIC_DOWN_BOX
plastic version of FL_DOWN_BOX, use FL_PLASTIC_DOWN_BOX
Definition Enumerations.H:677
_FL_OXY_THIN_UP_FRAME
@ _FL_OXY_THIN_UP_FRAME
oxy version of FL_THIN_UP_FRAME, use FL_OXY_THIN_UP_FRAME
Definition Enumerations.H:708
_FL_OXY_DOWN_FRAME
@ _FL_OXY_DOWN_FRAME
oxy version of FL_DOWN_FRAME, use FL_OXY_DOWN_FRAME
Definition Enumerations.H:705
_FL_OXY_THIN_DOWN_FRAME
@ _FL_OXY_THIN_DOWN_FRAME
oxy version of FL_THIN_DOWN_FRAME, use FL_OXY_THIN_DOWN_FRAME
Definition Enumerations.H:709
_FL_GLEAM_DOWN_BOX
@ _FL_GLEAM_DOWN_BOX
gleam version of FL_DOWN_BOX, use FL_GLEAM_DOWN_BOX
Definition Enumerations.H:695
FL_DOWN_BOX
@ FL_DOWN_BOX
see figure Standard Box Types
Definition Enumerations.H:649
FL_ENGRAVED_FRAME
@ FL_ENGRAVED_FRAME
see figure Standard Box Types
Definition Enumerations.H:658
_FL_GTK_ROUND_UP_BOX
@ _FL_GTK_ROUND_UP_BOX
gtk+ version of FL_ROUND_UP_BOX, use FL_GTK_ROUND_UP_BOX
Definition Enumerations.H:692
_FL_GLEAM_ROUND_DOWN_BOX
@ _FL_GLEAM_ROUND_DOWN_BOX
gleam version of FL_ROUND_DOWN_BOX, use FL_GLEAM_ROUND_DOWN_BOX
Definition Enumerations.H:701
FL_FREE_BOXTYPE
@ FL_FREE_BOXTYPE
the first free box type for creation of new box types
Definition Enumerations.H:714
FL_UP_FRAME
@ FL_UP_FRAME
see figure Standard Box Types
Definition Enumerations.H:650
_FL_ROUND_UP_BOX
@ _FL_ROUND_UP_BOX
see figure Standard Box Types, use FL_ROUND_UP_BOX
Definition Enumerations.H:668
_FL_GTK_UP_BOX
@ _FL_GTK_UP_BOX
gtk+ version of FL_UP_BOX, use FL_GTK_UP_BOX
Definition Enumerations.H:684
FL_UP_BOX
@ FL_UP_BOX
see figure Standard Box Types
Definition Enumerations.H:648
FL_ENGRAVED_BOX
@ FL_ENGRAVED_BOX
see figure Standard Box Types
Definition Enumerations.H:656
_FL_OXY_DOWN_BOX
@ _FL_OXY_DOWN_BOX
oxy version of FL_DOWN_BOX, use FL_OXY_DOWN_BOX
Definition Enumerations.H:703
_FL_OXY_ROUND_UP_BOX
@ _FL_OXY_ROUND_UP_BOX
oxy version of FL_ROUND_UP_BOX, use FL_OXY_ROUND_UP_BOX
Definition Enumerations.H:710
_FL_OVAL_BOX
@ _FL_OVAL_BOX
see figure Standard Box Types, use FL_OVAL_BOX
Definition Enumerations.H:672
_FL_PLASTIC_THIN_UP_BOX
@ _FL_PLASTIC_THIN_UP_BOX
plastic version of FL_THIN_UP_BOX, use FL_PLASTIC_THIN_UP_BOX
Definition Enumerations.H:680
FL_THIN_DOWN_BOX
@ FL_THIN_DOWN_BOX
see figure Standard Box Types
Definition Enumerations.H:653
_FL_GLEAM_UP_FRAME
@ _FL_GLEAM_UP_FRAME
gleam version of FL_UP_FRAME, use FL_GLEAM_UP_FRAME
Definition Enumerations.H:696
_FL_GTK_DOWN_FRAME
@ _FL_GTK_DOWN_FRAME
gtk+ version of FL_DOWN_FRAME, use FL_GTK_DOWN_FRAME
Definition Enumerations.H:687
FL_EMBOSSED_FRAME
@ FL_EMBOSSED_FRAME
see figure Standard Box Types
Definition Enumerations.H:659
_FL_DIAMOND_DOWN_BOX
@ _FL_DIAMOND_DOWN_BOX
see figure Standard Box Types, use FL_DIAMOND_DOWN_BOX
Definition Enumerations.H:671
FL_DOWN_FRAME
@ FL_DOWN_FRAME
see figure Standard Box Types
Definition Enumerations.H:651
_FL_PLASTIC_DOWN_FRAME
@ _FL_PLASTIC_DOWN_FRAME
plastic version of FL_DOWN_FRAME, use FL_PLASTIC_DOWN_FRAME
Definition Enumerations.H:679
_FL_ROUNDED_BOX
@ _FL_ROUNDED_BOX
see figure Standard Box Types, use FL_ROUNDED_BOX
Definition Enumerations.H:664
_FL_ROUND_DOWN_BOX
@ _FL_ROUND_DOWN_BOX
see figure Standard Box Types, use FL_ROUND_DOWN_BOX
Definition Enumerations.H:669
_FL_DIAMOND_UP_BOX
@ _FL_DIAMOND_UP_BOX
see figure Standard Box Types, use FL_DIAMOND_UP_BOX
Definition Enumerations.H:670
_FL_PLASTIC_THIN_DOWN_BOX
@ _FL_PLASTIC_THIN_DOWN_BOX
plastic version of FL_THIN_DOWN_BOX, use FL_PLASTIC_THIN_DOWN_BOX
Definition Enumerations.H:681
FL_THIN_UP_FRAME
@ FL_THIN_UP_FRAME
see figure Standard Box Types
Definition Enumerations.H:654
_FL_GTK_THIN_DOWN_BOX
@ _FL_GTK_THIN_DOWN_BOX
gtk+ version of FL_THIN_DOWN_BOX, use FL_GTK_THIN_DOWN_BOX
Definition Enumerations.H:689
_FL_GLEAM_ROUND_UP_BOX
@ _FL_GLEAM_ROUND_UP_BOX
gleam version of FL_ROUND_UP_BOX, use FL_GLEAM_ROUND_UP_BOX
Definition Enumerations.H:700
_FL_OXY_UP_BOX
@ _FL_OXY_UP_BOX
oxy version of FL_UP_BOX, use FL_OXY_UP_BOX
Definition Enumerations.H:702
_FL_GLEAM_UP_BOX
@ _FL_GLEAM_UP_BOX
gleam version of FL_UP_BOX, use FL_GLEAM_UP_BOX
Definition Enumerations.H:694
_FL_GLEAM_THIN_UP_BOX
@ _FL_GLEAM_THIN_UP_BOX
gleam version of FL_THIN_UP_BOX, use FL_GLEAM_THIN_UP_BOX
Definition Enumerations.H:698
_FL_OXY_BUTTON_UP_BOX
@ _FL_OXY_BUTTON_UP_BOX
FL_OXY_BUTTON_UP_BOX (new boxtype ?), use FL_OXY_BUTTON_UP_BOX.
Definition Enumerations.H:712
FL_HELVETICA_BOLD
const Fl_Font FL_HELVETICA_BOLD
Helvetica (or Arial) bold.
Definition Enumerations.H:1066
FL_COURIER
const Fl_Font FL_COURIER
Courier normal.
Definition Enumerations.H:1069
FL_WRITE
@ FL_WRITE
Call the callback when data can be written without blocking.
Definition Enumerations.H:1314
FL_EXCEPT
@ FL_EXCEPT
Call the callback if an exception occurs on the file.
Definition Enumerations.H:1315
FL_READ
@ FL_READ
Call the callback when there is data to be read.
Definition Enumerations.H:1313
FL_ALIGN_LEFT
const Fl_Align FL_ALIGN_LEFT
Align the label at the left of the widget.
Definition Enumerations.H:1001
Fl_Callback_Reason
Fl_Callback_Reason
These constants describe why a callback is performed.
Definition Enumerations.H:455
FL_REASON_DESELECTED
@ FL_REASON_DESELECTED
an item was de-selected
Definition Enumerations.H:458
FL_REASON_CANCELLED
@ FL_REASON_CANCELLED
a dialog was cancelled
Definition Enumerations.H:463
FL_REASON_USER
@ FL_REASON_USER
user defined callback reasons
Definition Enumerations.H:469
FL_REASON_RELEASED
@ FL_REASON_RELEASED
the mouse button was released
Definition Enumerations.H:467
FL_REASON_GOT_FOCUS
@ FL_REASON_GOT_FOCUS
a widget received focus
Definition Enumerations.H:465
FL_REASON_LOST_FOCUS
@ FL_REASON_LOST_FOCUS
a widget lost focus
Definition Enumerations.H:466
FL_REASON_CLOSED
@ FL_REASON_CLOSED
an item was closed
Definition Enumerations.H:461
FL_REASON_OPENED
@ FL_REASON_OPENED
an item was opened
Definition Enumerations.H:460
FL_REASON_ENTER_KEY
@ FL_REASON_ENTER_KEY
user finished input pressing Enter
Definition Enumerations.H:468
FL_REASON_CHANGED
@ FL_REASON_CHANGED
the value of the widget was modified
Definition Enumerations.H:464
FL_REASON_UNKNOWN
@ FL_REASON_UNKNOWN
unknown or unset reason
Definition Enumerations.H:456
FL_REASON_SELECTED
@ FL_REASON_SELECTED
an item was selected
Definition Enumerations.H:457
FL_REASON_DRAGGED
@ FL_REASON_DRAGGED
an item was dragged into a new place
Definition Enumerations.H:462
FL_REASON_RESELECTED
@ FL_REASON_RESELECTED
an item was re-selected (double-clicked).
Definition Enumerations.H:459
fl_define_FL_EMBOSSED_LABEL
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:108
FL_ALIGN_IMAGE_MASK
const Fl_Align FL_ALIGN_IMAGE_MASK
Mask value to test for image alignment flags.
Definition Enumerations.H:1054
FL_COURIER_ITALIC
const Fl_Font FL_COURIER_ITALIC
Courier italic.
Definition Enumerations.H:1071
Fl_Contrast_Mode
Fl_Contrast_Mode
Define the possible modes to calculate fl_contrast().
Definition Enumerations.H:1203
FL_CONTRAST_LEGACY
@ FL_CONTRAST_LEGACY
legacy (FLTK 1.3.x) contrast function
Definition Enumerations.H:1205
FL_CONTRAST_LAST
@ FL_CONTRAST_LAST
internal use only (invalid contrast mode)
Definition Enumerations.H:1208
FL_CONTRAST_NONE
@ FL_CONTRAST_NONE
always return foreground color
Definition Enumerations.H:1204
FL_CONTRAST_CUSTOM
@ FL_CONTRAST_CUSTOM
optional custom contrast function
Definition Enumerations.H:1207
FL_CONTRAST_CIELAB
@ FL_CONTRAST_CIELAB
new (FLTK 1.4.0) default function
Definition Enumerations.H:1206
Fl_Orientation
Fl_Orientation
Fl_Orientation describes the orientation of a GUI element.
Definition Enumerations.H:1393
FL_ORIENT_UP
@ FL_ORIENT_UP
GUI element pointing up ( 90°)
Definition Enumerations.H:1397
FL_ORIENT_SE
@ FL_ORIENT_SE
GUI element pointing SE (315°)
Definition Enumerations.H:1402
FL_ORIENT_RIGHT
@ FL_ORIENT_RIGHT
GUI element pointing right ( 0°)
Definition Enumerations.H:1395
FL_ORIENT_LEFT
@ FL_ORIENT_LEFT
GUI element pointing left (180°)
Definition Enumerations.H:1399
FL_ORIENT_NONE
@ FL_ORIENT_NONE
GUI element direction is unspecified.
Definition Enumerations.H:1394
FL_ORIENT_DOWN
@ FL_ORIENT_DOWN
GUI element pointing down (270°)
Definition Enumerations.H:1401
FL_ORIENT_NE
@ FL_ORIENT_NE
GUI element pointing NE ( 45°)
Definition Enumerations.H:1396
FL_ORIENT_SW
@ FL_ORIENT_SW
GUI element pointing SW (225°)
Definition Enumerations.H:1400
FL_ORIENT_NW
@ FL_ORIENT_NW
GUI element pointing NW (135°)
Definition Enumerations.H:1398
fl_lighter
Fl_Color fl_lighter(Fl_Color c)
Returns a lighter version of the specified color.
Definition Enumerations.H:1228
fl_types.h
This file contains simple "C"-style type definitions.
uchar
unsigned char uchar
unsigned char
Definition fl_types.h:30
fl_inactive
Fl_Color fl_inactive(Fl_Color c)
Returns the inactive, dimmed version of the given color.
Definition fl_color.cxx:167
fl_contrast
Fl_Color fl_contrast(Fl_Color fg, Fl_Color bg, int context=0, int size=0)
Returns a color that contrasts with the background color.
Definition fl_contrast.cxx:506
fl_lightness
double fl_lightness(Fl_Color color)
Return the perceived lightness of a color.
Definition fl_contrast.cxx:122
fl_contrast_level
int fl_contrast_level()
Get the contrast level (sensitivity) of the fl_contrast() method.
Definition fl_contrast.cxx:201
fl_contrast_function
void fl_contrast_function(Fl_Contrast_Function *f)
Register a custom contrast function.
Definition fl_contrast.cxx:306
fl_color_average
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
fl_contrast_mode
int fl_contrast_mode()
Return the current contrast algorithm (mode).
Definition fl_contrast.cxx:272
fl_luminance
double fl_luminance(Fl_Color color)
Return the raw / physical luminance of a color.
Definition fl_contrast.cxx:90
platform_types.h
Definitions of platform-dependent types.