NTK 1.3.0
Enumerations.H
Go to the documentation of this file.
1//
2// "$Id: Enumerations.H 8710 2011-05-21 21:55:59Z manolo $"
3//
4// Enumerations for the Fast Light Tool Kit (FLTK).
5//
6// Copyright 1998-2011 by Bill Spitzak and others.
7//
8// This library is free software; you can redistribute it and/or
9// modify it under the terms of the GNU Library General Public
10// License as published by the Free Software Foundation; either
11// version 2 of the License, or (at your option) any later version.
12//
13// This library is distributed in the hope that it will be useful,
14// but WITHOUT ANY WARRANTY; without even the implied warranty of
15// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16// Library General Public License for more details.
17//
18// You should have received a copy of the GNU Library General Public
19// License along with this library; if not, write to the Free Software
20// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
21// USA.
22//
23// Please report all bugs and problems on the following page:
24//
25// http://www.fltk.org/str.php
26//
27
31
32#ifndef Fl_Enumerations_H
33#define Fl_Enumerations_H
34
35# include "Fl_Export.H"
36# include "fl_types.h"
37
46
47#define NTK_MAJOR_VERSION 1
48#define NTK_MINOR_VERSION 0
49#define NTK_PATCH_VERSION 0
50
51#define NTK_VERSION ((double)NTK_MAJOR_VERSION + \
52 (double)NTK_MINOR_VERSION * 0.01 + \
53 (double)NTK_PATCH_VERSION * 0.0001)
54
59#define FL_MAJOR_VERSION 1
60
66#define FL_MINOR_VERSION 3
67
73#define FL_PATCH_VERSION 0
74
86#define FL_VERSION ((double)FL_MAJOR_VERSION + \
87 (double)FL_MINOR_VERSION * 0.01 + \
88 (double)FL_PATCH_VERSION * 0.0001)
89 // group: Version Numbers
91
107enum Fl_Event { // events
110
123
131
140
146
155
170
175
197
202
207
214
222
236
243
248
256
264
270
277
282
288
294
298
304};
305
323 // group: When Conditions
325
336
338
339// FIXME: These codes collide with valid Unicode keys
340
341#define FL_Button 0xfee8
342#define FL_BackSpace 0xff08
343#define FL_Tab 0xff09
344#define FL_Enter 0xff0d
345#define FL_Pause 0xff13
346#define FL_Scroll_Lock 0xff14
347#define FL_Escape 0xff1b
348#define FL_Home 0xff50
349#define FL_Left 0xff51
350#define FL_Up 0xff52
351#define FL_Right 0xff53
352#define FL_Down 0xff54
353#define FL_Page_Up 0xff55
354#define FL_Page_Down 0xff56
355#define FL_End 0xff57
356#define FL_Print 0xff61
357#define FL_Insert 0xff63
358#define FL_Menu 0xff67
359#define FL_Help 0xff68
360#define FL_Num_Lock 0xff7f
361#define FL_KP 0xff80
362#define FL_KP_Enter 0xff8d
363#define FL_KP_Last 0xffbd
364#define FL_F 0xffbd
365#define FL_F_Last 0xffe0
366#define FL_Shift_L 0xffe1
367#define FL_Shift_R 0xffe2
368#define FL_Control_L 0xffe3
369#define FL_Control_R 0xffe4
370#define FL_Caps_Lock 0xffe5
371#define FL_Meta_L 0xffe7
372#define FL_Meta_R 0xffe8
373#define FL_Alt_L 0xffe9
374#define FL_Alt_R 0xffea
375#define FL_Delete 0xffff
376
377// These use the Private Use Area (PUA) of the Basic Multilingual Plane
378// of Unicode. Guaranteed not to conflict with a proper Unicode character.
379
380// These primarily map to the XFree86 keysym range
381#define FL_Volume_Down 0xEF11 /* Volume control down */
382#define FL_Volume_Mute 0xEF12 /* Mute sound from the system */
383#define FL_Volume_Up 0xEF13 /* Volume control up */
384#define FL_Media_Play 0xEF14 /* Start playing of audio */
385#define FL_Media_Stop 0xEF15 /* Stop playing audio */
386#define FL_Media_Prev 0xEF16 /* Previous track */
387#define FL_Media_Next 0xEF17 /* Next track */
388#define FL_Home_Page 0xEF18 /* Display user's home page */
389#define FL_Mail 0xEF19 /* Invoke user's mail program */
390#define FL_Search 0xEF1B /* Search */
391#define FL_Back 0xEF26 /* Like back on a browser */
392#define FL_Forward 0xEF27 /* Like forward on a browser */
393#define FL_Stop 0xEF28 /* Stop current operation */
394#define FL_Refresh 0xEF29 /* Refresh the page */
395#define FL_Sleep 0xEF2F /* Put system to sleep */
396#define FL_Favorites 0xEF30 /* Show favorite locations */
397 // group: Mouse and Keyboard Events
399
406
408
409#define FL_LEFT_MOUSE 1
410#define FL_MIDDLE_MOUSE 2
411#define FL_RIGHT_MOUSE 3
412 // group: Mouse Buttons
414
415
420 // group: Event States
422
423// FIXME: it would be nice to have the modifiers in the upper 8 bit so that
424// a unicode ke (24bit) can be sent as an unsigned with the modifiers.
425
426#define FL_SHIFT 0x00010000
427#define FL_CAPS_LOCK 0x00020000
428#define FL_CTRL 0x00040000
429#define FL_ALT 0x00080000
430#define FL_NUM_LOCK 0x00100000
431 // most X servers do this?
432#define FL_META 0x00400000
433 // correct for XFree86
434#define FL_SCROLL_LOCK 0x00800000
435 // correct for XFree86
436#define FL_BUTTON1 0x01000000
437#define FL_BUTTON2 0x02000000
438#define FL_BUTTON3 0x04000000
439#define FL_BUTTONS 0x7f000000
440#define FL_BUTTON(n) (0x00800000<<(n))
441
442#define FL_KEY_MASK 0x0000ffff
443 // FIXME: Unicode needs 24 bits!
444
445#ifdef __APPLE__
446# define FL_COMMAND FL_META
447# define FL_CONTROL FL_CTRL
448#else
449# define FL_COMMAND FL_CTRL
450# define FL_CONTROL FL_META
451#endif // __APPLE__
452 // group: Event States
454
509extern FL_EXPORT Fl_Boxtype fl_define_FL_ROUND_UP_BOX();
510#define FL_ROUND_UP_BOX fl_define_FL_ROUND_UP_BOX()
511#define FL_ROUND_DOWN_BOX (Fl_Boxtype)(fl_define_FL_ROUND_UP_BOX()+1)
512extern FL_EXPORT Fl_Boxtype fl_define_FL_SHADOW_BOX();
513#define FL_SHADOW_BOX fl_define_FL_SHADOW_BOX()
514#define FL_SHADOW_FRAME (Fl_Boxtype)(fl_define_FL_SHADOW_BOX()+2)
515extern FL_EXPORT Fl_Boxtype fl_define_FL_ROUNDED_BOX();
516#define FL_ROUNDED_BOX fl_define_FL_ROUNDED_BOX()
517#define FL_ROUNDED_FRAME (Fl_Boxtype)(fl_define_FL_ROUNDED_BOX()+2)
518extern FL_EXPORT Fl_Boxtype fl_define_FL_RFLAT_BOX();
519#define FL_RFLAT_BOX fl_define_FL_RFLAT_BOX()
520extern FL_EXPORT Fl_Boxtype fl_define_FL_RSHADOW_BOX();
521#define FL_RSHADOW_BOX fl_define_FL_RSHADOW_BOX()
522extern FL_EXPORT Fl_Boxtype fl_define_FL_DIAMOND_BOX();
523#define FL_DIAMOND_UP_BOX fl_define_FL_DIAMOND_BOX()
524#define FL_DIAMOND_DOWN_BOX (Fl_Boxtype)(fl_define_FL_DIAMOND_BOX()+1)
525extern FL_EXPORT Fl_Boxtype fl_define_FL_OVAL_BOX();
526#define FL_OVAL_BOX fl_define_FL_OVAL_BOX()
527#define FL_OSHADOW_BOX (Fl_Boxtype)(fl_define_FL_OVAL_BOX()+1)
528#define FL_OVAL_FRAME (Fl_Boxtype)(fl_define_FL_OVAL_BOX()+2)
529#define FL_OFLAT_BOX (Fl_Boxtype)(fl_define_FL_OVAL_BOX()+3)
530
531extern FL_EXPORT Fl_Boxtype fl_define_FL_ASYM_BOX();
532#define FL_ASYM_BOX fl_define_FL_ASYM_BOX()
533#define FL_ASYM_FLAT_BOX (Fl_Boxtype)(fl_define_FL_ASYM_BOX()+1)
534
535#define FL_PLASTIC_UP_BOX FL_UP_BOX
536#define FL_PLASTIC_DOWN_BOX FL_DOWN_BOX
537#define FL_PLASTIC_UP_FRAME FL_UP_FRAME
538#define FL_PLASTIC_DOWN_FRAME FL_DOWN_FRAME
539#define FL_PLASTIC_THIN_UP_BOX FL_THIN_UP_BOX
540#define FL_PLASTIC_THIN_DOWN_BOX FL_THIN_DOWN_BOX
541#define FL_PLASTIC_ROUND_UP_BOX FL_ROUND_UP_BOX
542#define FL_PLASTIC_ROUND_DOWN_BOX FL_ROUND_DOWN_BOX
543
544#define FL_GTK_UP_BOX FL_UP_BOX
545#define FL_GTK_DOWN_BOX FL_DOWN_BOX
546#define FL_GTK_UP_FRAME FL_UP_FRAME
547#define FL_GTK_DOWN_FRAME FL_DOWN_FRAME
548#define FL_GTK_THIN_UP_BOX FL_THIN_UP_BOX
549#define FL_GTK_THIN_UP_FRAME FL_THIN_UP_FRAME
550#define FL_GTK_THIN_DOWN_FRAME FL_THIN_DOWN_FRAME
551#define FL_GTK_THIN_DOWN_BOX FL_THIN_DOWN_BOX
552#define FL_GTK_ROUND_UP_BOX FL_ROUND_UP_BOX
553#define FL_GTK_ROUND_DOWN_BOX FL_ROUND_DOWN_BOX
554
555// conversions of box types to other boxtypes:
562 return (Fl_Boxtype)((b<FL_UP_BOX||b%4>1)?b:(b-2));
563}
564
570 return (Fl_Boxtype)((b<FL_UP_BOX)?b:(b|1));
571}
572
578 return (Fl_Boxtype)((b%4<2)?b:(b+2));
579}
580
581// back-compatibility box types:
582#define FL_FRAME FL_ENGRAVED_FRAME
583#define FL_FRAME_BOX FL_ENGRAVED_BOX
584#define FL_CIRCLE_BOX FL_ROUND_DOWN_BOX
585#define FL_DIAMOND_BOX FL_DIAMOND_DOWN_BOX
586 // group: Box Types
588
613
618#define FL_SYMBOL_LABEL FL_NORMAL_LABEL
619extern Fl_Labeltype FL_EXPORT fl_define_FL_SHADOW_LABEL();
620#define FL_SHADOW_LABEL fl_define_FL_SHADOW_LABEL()
621extern Fl_Labeltype FL_EXPORT fl_define_FL_ENGRAVED_LABEL();
622#define FL_ENGRAVED_LABEL fl_define_FL_ENGRAVED_LABEL()
623extern Fl_Labeltype FL_EXPORT fl_define_FL_EMBOSSED_LABEL();
624#define FL_EMBOSSED_LABEL fl_define_FL_EMBOSSED_LABEL()
626
658typedef unsigned Fl_Align;
688const Fl_Align FL_ALIGN_TOP_LEFT = FL_ALIGN_TOP | FL_ALIGN_LEFT;
689const Fl_Align FL_ALIGN_TOP_RIGHT = FL_ALIGN_TOP | FL_ALIGN_RIGHT;
690const Fl_Align FL_ALIGN_BOTTOM_LEFT = FL_ALIGN_BOTTOM | FL_ALIGN_LEFT;
691const Fl_Align FL_ALIGN_BOTTOM_RIGHT = FL_ALIGN_BOTTOM | FL_ALIGN_RIGHT;
692const Fl_Align FL_ALIGN_LEFT_TOP = 0x0007; // magic value
693const Fl_Align FL_ALIGN_RIGHT_TOP = 0x000b; // magic value
694const Fl_Align FL_ALIGN_LEFT_BOTTOM = 0x000d; // magic value
695const Fl_Align FL_ALIGN_RIGHT_BOTTOM = 0x000e; // magic value
696const Fl_Align FL_ALIGN_NOWRAP = (Fl_Align)0; // for back compatibility
697const Fl_Align FL_ALIGN_POSITION_MASK = 0x000f; // left, right, top, bottom
698const Fl_Align FL_ALIGN_IMAGE_MASK = 0x0320; // l/r, t/b, backdrop
700
701
707typedef int Fl_Font;
708
717const Fl_Font FL_TIMES = 8;
721const Fl_Font FL_SYMBOL = 12;
722const Fl_Font FL_SCREEN = 13;
725
727const Fl_Font FL_BOLD = 1;
730
732
736typedef int Fl_Fontsize;
737
738extern FL_EXPORT Fl_Fontsize FL_NORMAL_SIZE;
739
764typedef unsigned int Fl_Color;
765
766// Standard colors. These are used as default colors in widgets and altered as necessary
771
772 // boxtypes generally limit themselves to these colors so
773 // the whole ramp is not allocated:
774
775const Fl_Color FL_GRAY0 = 32; // 'A'
776const Fl_Color FL_DARK3 = 39; // 'H'
777const Fl_Color FL_DARK2 = 45; // 'N'
778const Fl_Color FL_DARK1 = 47; // 'P'
779const Fl_Color FL_BACKGROUND_COLOR = 49; // 'R' default background color
780const Fl_Color FL_LIGHT1 = 50; // 'S'
781const Fl_Color FL_LIGHT2 = 52; // 'U'
782const Fl_Color FL_LIGHT3 = 54; // 'W'
783
784 // FLTK provides a 5x8x5 color cube that is used with colormap visuals
785
786const Fl_Color FL_BLACK = 56;
787const Fl_Color FL_RED = 88;
788const Fl_Color FL_GREEN = 63;
789const Fl_Color FL_YELLOW = 95;
790const Fl_Color FL_BLUE = 216;
791const Fl_Color FL_MAGENTA = 248;
792const Fl_Color FL_CYAN = 223;
793const Fl_Color FL_DARK_RED = 72;
794
795const Fl_Color FL_DARK_GREEN = 60;
796const Fl_Color FL_DARK_YELLOW = 76;
797const Fl_Color FL_DARK_BLUE = 136;
798const Fl_Color FL_DARK_MAGENTA = 152;
799const Fl_Color FL_DARK_CYAN = 140;
800
801const Fl_Color FL_WHITE = 255;
802
803
804#define FL_FREE_COLOR (Fl_Color)16
805#define FL_NUM_FREE_COLOR 16
806#define FL_GRAY_RAMP (Fl_Color)32
807#define FL_NUM_GRAY 24
808#define FL_GRAY FL_BACKGROUND_COLOR
809#define FL_COLOR_CUBE (Fl_Color)56
810#define FL_NUM_RED 5
811#define FL_NUM_GREEN 8
812#define FL_NUM_BLUE 5
813
814FL_EXPORT Fl_Color fl_inactive(Fl_Color c);
815
816FL_EXPORT Fl_Color fl_contrast(Fl_Color fg, Fl_Color bg);
817
818FL_EXPORT Fl_Color fl_color_average(Fl_Color c1, Fl_Color c2, float weight);
819
820FL_EXPORT Fl_Color fl_color_add_alpha( Fl_Color c, uchar alpha );
821
823inline Fl_Color fl_lighter(Fl_Color c) { return fl_color_average(c, FL_WHITE, .67f); }
824
826inline Fl_Color fl_darker(Fl_Color c) { return fl_color_average(c, FL_BLACK, .67f); }
827
830 if (!r && !g && !b) return FL_BLACK;
831 else return (Fl_Color)(((((r << 8) | g) << 8) | b) << 8);
832}
833
836 if (!g) return FL_BLACK;
837 else return (Fl_Color)(((((g << 8) | g) << 8) | g) << 8);
838}
839
848inline Fl_Color fl_gray_ramp(int i) {return (Fl_Color)(i+FL_GRAY_RAMP);}
849
864inline Fl_Color fl_color_cube(int r, int g, int b) {
865 return (Fl_Color)((b*FL_NUM_RED + r) * FL_NUM_GREEN + g + FL_COLOR_CUBE);}
866 // group: Colors
868
871
904 // group: Cursors
905
907enum { // values for "when" passed to Fl::add_fd()
911};
912
914enum Fl_Mode {
915 FL_RGB = 0,
916 FL_INDEX = 1,
917 FL_SINGLE = 0,
918 FL_DOUBLE = 2,
919 FL_ACCUM = 4,
920 FL_ALPHA = 8,
921 FL_DEPTH = 16,
922 FL_STENCIL = 32,
923 FL_RGB8 = 64,
924 FL_MULTISAMPLE= 128,
925 FL_STEREO = 256,
926 FL_FAKE_SINGLE = 512 // Fake single buffered windows using double-buffer
927};
928
929// image alpha blending
930
931#define FL_IMAGE_WITH_ALPHA 0x40000000
932
943
944// FLTK 1.0.x compatibility definitions...
945# ifdef FLTK_1_0_COMPAT
946# define contrast fl_contrast
947# define down fl_down
948# define frame fl_frame
949# define inactive fl_inactive
950# endif // FLTK_1_0_COMPAT
951
952#endif
953
954//
955// End of "$Id: Enumerations.H 8710 2011-05-21 21:55:59Z manolo $".
956//
Fl_Boxtype fl_frame(Fl_Boxtype b)
Get the unfilled, frame only version of a box.
Definition Enumerations.H:577
const Fl_Font FL_TIMES_BOLD_ITALIC
Times roman bold-italic.
Definition Enumerations.H:720
const Fl_Align FL_ALIGN_RIGHT
Align the label to the right of the widget.
Definition Enumerations.H:671
const Fl_Align FL_ALIGN_IMAGE_BACKDROP
If the label contains an image, draw the image or deimage in the background.
Definition Enumerations.H:687
const Fl_Align FL_ALIGN_BOTTOM
Align the label at the bottom of the widget.
Definition Enumerations.H:665
FL_EXPORT Fl_Fontsize FL_NORMAL_SIZE
normal font size
Definition Fl_Widget.cxx:111
int Fl_Font
A font number is an index into the internal font table.
Definition Enumerations.H:707
const Fl_Font FL_SYMBOL
Standard symbol font.
Definition Enumerations.H:721
Fl_Color fl_color_cube(int r, int g, int b)
Returns a color out of the color cube.
Definition Enumerations.H:864
const Fl_Font FL_ZAPF_DINGBATS
Zapf-dingbats font.
Definition Enumerations.H:724
const Fl_Font FL_COURIER_BOLD
Courier bold.
Definition Enumerations.H:714
const Fl_Color FL_SELECTION_COLOR
the default selection/highlight color
Definition Enumerations.H:770
const Fl_Font FL_TIMES
Times roman.
Definition Enumerations.H:717
const Fl_Font FL_HELVETICA_ITALIC
Helvetica (or Arial) oblique.
Definition Enumerations.H:711
const Fl_Font FL_TIMES_BOLD
Times roman bold.
Definition Enumerations.H:718
const Fl_Align FL_ALIGN_CENTER
Align the label horizontally in the middle.
Definition Enumerations.H:660
unsigned Fl_Align
FLTK type for alignment control.
Definition Enumerations.H:658
const Fl_Align FL_ALIGN_IMAGE_OVER_TEXT
If the label contains an image, draw the text below the image.
Definition Enumerations.H:677
const Fl_Font FL_BOLD_ITALIC
add this to helvetica, courier, or times
Definition Enumerations.H:729
const Fl_Align FL_ALIGN_CLIP
All parts of the label that are lager than the widget will not be drawn .
Definition Enumerations.H:679
const Fl_Font FL_SCREEN
Default monospaced screen font.
Definition Enumerations.H:722
const Fl_Font FL_BOLD
add this to helvetica, courier, or times
Definition Enumerations.H:727
const Fl_Color FL_BACKGROUND2_COLOR
the default background color for text, list, and valuator widgets
Definition Enumerations.H:768
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:848
const Fl_Align FL_ALIGN_TOP
Align the label at the top of the widget.
Definition Enumerations.H:663
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:685
const Fl_Color FL_INACTIVE_COLOR
the inactive foreground color
Definition Enumerations.H:769
Fl_Boxtype fl_down(Fl_Boxtype b)
Get the "pressed" or "down" version of a box.
Definition Enumerations.H:569
Fl_Cursor
The following constants define the mouse cursors that are available in FLTK.
Definition Enumerations.H:879
@ FL_CURSOR_MOVE
4-pointed arrow.
Definition Enumerations.H:887
@ FL_CURSOR_DEFAULT
the default cursor, usually an arrow.
Definition Enumerations.H:880
@ FL_CURSOR_HAND
hand (uparrow on MSWindows).
Definition Enumerations.H:885
@ FL_CURSOR_WE
left/right arrow.
Definition Enumerations.H:890
@ FL_CURSOR_SE
for back compatibility.
Definition Enumerations.H:898
@ FL_CURSOR_W
for back compatibility.
Definition Enumerations.H:901
@ FL_CURSOR_NW
for back compatibility.
Definition Enumerations.H:902
@ FL_CURSOR_NONE
invisible.
Definition Enumerations.H:893
@ FL_CURSOR_E
for back compatibility.
Definition Enumerations.H:897
@ FL_CURSOR_CROSS
crosshair.
Definition Enumerations.H:882
@ FL_CURSOR_WAIT
watch or hourglass.
Definition Enumerations.H:883
@ FL_CURSOR_NWSE
diagonal arrow.
Definition Enumerations.H:891
@ FL_CURSOR_HELP
question mark.
Definition Enumerations.H:886
@ FL_CURSOR_NS
up/down arrow.
Definition Enumerations.H:889
@ FL_CURSOR_INSERT
I-beam.
Definition Enumerations.H:884
@ FL_CURSOR_NESW
diagonal arrow.
Definition Enumerations.H:892
@ FL_CURSOR_SW
for back compatibility.
Definition Enumerations.H:900
@ FL_CURSOR_NE
for back compatibility.
Definition Enumerations.H:896
@ FL_CURSOR_S
for back compatibility.
Definition Enumerations.H:899
@ FL_CURSOR_ARROW
an arrow pointer.
Definition Enumerations.H:881
@ FL_CURSOR_N
for back compatibility.
Definition Enumerations.H:895
const Fl_Font FL_HELVETICA
Helvetica (or Arial) normal (0)
Definition Enumerations.H:709
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:829
const Fl_Font FL_COURIER_BOLD_ITALIC
Courier bold-italic.
Definition Enumerations.H:716
const Fl_Font FL_TIMES_ITALIC
Times roman italic.
Definition Enumerations.H:719
Fl_Color fl_darker(Fl_Color c)
Returns a darker version of the specified color.
Definition Enumerations.H:826
unsigned int Fl_Color
an FLTK color value
Definition Enumerations.H:764
const Fl_Color FL_FOREGROUND_COLOR
the default foreground color (0) used for labels and text
Definition Enumerations.H:767
const Fl_Font FL_HELVETICA_BOLD_ITALIC
Helvetica (or Arial) bold-oblique.
Definition Enumerations.H:712
Fl_Boxtype fl_box(Fl_Boxtype b)
Get the filled version of a frame.
Definition Enumerations.H:561
Fl_Damage
Damage masks.
Definition Enumerations.H:934
@ FL_DAMAGE_USER2
Second user-defined damage bit.
Definition Enumerations.H:940
@ FL_DAMAGE_EXPOSE
The window was exposed.
Definition Enumerations.H:936
@ FL_DAMAGE_USER1
First user-defined damage bit.
Definition Enumerations.H:939
@ FL_DAMAGE_OVERLAY
The overlay planes need to be redrawn.
Definition Enumerations.H:938
@ FL_DAMAGE_CHILD
A child needs to be redrawn.
Definition Enumerations.H:935
@ FL_DAMAGE_ALL
Everything needs to be redrawn.
Definition Enumerations.H:941
@ FL_DAMAGE_SCROLL
The Fl_Scroll widget was scrolled.
Definition Enumerations.H:937
Fl_Mode
visual types and Fl_Gl_Window::mode() (values match Glut)
Definition Enumerations.H:914
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:675
const Fl_Font FL_SCREEN_BOLD
Default monospaced bold screen font.
Definition Enumerations.H:723
const Fl_Font FL_ITALIC
add this to helvetica, courier, or times
Definition Enumerations.H:728
const Fl_Font FL_FREE_FONT
first one to allocate
Definition Enumerations.H:726
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:107
@ FL_DND_LEAVE
The mouse has moved out of the widget.
Definition Enumerations.H:297
@ FL_KEYBOARD
Equivalent to FL_KEYDOWN.
Definition Enumerations.H:201
@ FL_KEYDOWN
A key was pressed (FL_KEYDOWN) or released (FL_KEYUP).
Definition Enumerations.H:196
@ FL_ENTER
The mouse has been moved to point at this widget.
Definition Enumerations.H:139
@ FL_CLOSE
The user clicked the close button of a window.
Definition Enumerations.H:213
@ FL_PUSH
A mouse button has gone down with the mouse pointing at this widget.
Definition Enumerations.H:122
@ FL_ACTIVATE
This widget is now active, due to Fl_Widget::activate() being called on it or one of its parents.
Definition Enumerations.H:247
@ FL_RELEASE
A mouse button has been released.
Definition Enumerations.H:130
@ FL_PASTE
You should get this event some time after you call Fl::paste().
Definition Enumerations.H:269
@ FL_SHORTCUT
If the Fl::focus() widget is zero or ignores an FL_KEYBOARD event then FLTK tries sending this event ...
Definition Enumerations.H:235
@ FL_UNFOCUS
This event is sent to the previous Fl::focus() widget when another widget gets the focus or the windo...
Definition Enumerations.H:174
@ FL_DND_RELEASE
The user has released the mouse button dropping data into the widget.
Definition Enumerations.H:303
@ FL_SHOW
This widget is visible again, due to Fl_Widget::show() being called on it or one of its parents,...
Definition Enumerations.H:263
@ FL_SELECTIONCLEAR
The Fl::selection_owner() will get this event before the selection is moved to another widget.
Definition Enumerations.H:276
@ FL_LEAVE
The mouse has moved out of the widget.
Definition Enumerations.H:145
@ FL_DRAG
The mouse has moved with a button held down.
Definition Enumerations.H:154
@ FL_DND_DRAG
The mouse has been moved inside a widget while dragging data.
Definition Enumerations.H:293
@ FL_KEYUP
Key release event.
Definition Enumerations.H:206
@ FL_MOVE
The mouse has moved without any mouse buttons held down.
Definition Enumerations.H:221
@ FL_MOUSEWHEEL
The user has moved the mouse wheel.
Definition Enumerations.H:281
@ 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:242
@ FL_FOCUS
This indicates an attempt to give a widget the keyboard focus.
Definition Enumerations.H:169
@ 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:255
@ FL_NO_EVENT
No event.
Definition Enumerations.H:109
@ FL_DND_ENTER
The mouse has been moved to point at this widget.
Definition Enumerations.H:287
Fl_Labeltype
The labeltype() method sets the type of the label.
Definition Enumerations.H:601
@ _FL_EMBOSSED_LABEL
draws edges as though the text is raised
Definition Enumerations.H:606
@ _FL_SHADOW_LABEL
draws a drop shadow under the text
Definition Enumerations.H:604
@ _FL_IMAGE_LABEL
?
Definition Enumerations.H:609
@ _FL_ENGRAVED_LABEL
draws edges as though the text is engraved
Definition Enumerations.H:605
@ FL_NORMAL_LABEL
draws the text (0)
Definition Enumerations.H:602
@ _FL_MULTI_LABEL
?
Definition Enumerations.H:607
@ FL_NO_LABEL
does nothing
Definition Enumerations.H:603
@ FL_FREE_LABELTYPE
first free labeltype to use for creating own labeltypes
Definition Enumerations.H:611
@ _FL_ICON_LABEL
draws the icon associated with the text
Definition Enumerations.H:608
int Fl_Fontsize
Size of a font in pixels.
Definition Enumerations.H:736
const Fl_Align FL_ALIGN_WRAP
Wrap text that does not fit the width of the widget.
Definition Enumerations.H:681
Fl_When
These constants determine when a callback is performed.
Definition Enumerations.H:313
@ FL_WHEN_ENTER_KEY
Do the callback when the user presses the ENTER key and the value changes.
Definition Enumerations.H:319
@ FL_WHEN_RELEASE_ALWAYS
Do the callback when the button or key is released, even if the value doesn't change.
Definition Enumerations.H:318
@ FL_WHEN_ENTER_KEY_CHANGED
?
Definition Enumerations.H:321
@ 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:320
@ FL_WHEN_NOT_CHANGED
Do the callback whenever the user interacts with the widget.
Definition Enumerations.H:316
@ FL_WHEN_NEVER
Never call the callback.
Definition Enumerations.H:314
@ FL_WHEN_CHANGED
Do the callback only when the widget value changes.
Definition Enumerations.H:315
@ FL_WHEN_RELEASE
Do the callback when the button or key is released and the value changes.
Definition Enumerations.H:317
const Fl_Align FL_ALIGN_INSIDE
Draw the label inside of the widget.
Definition Enumerations.H:673
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:683
Fl_Boxtype
Definition Enumerations.H:472
@ _FL_RSHADOW_BOX
see figure 1
Definition Enumerations.H:493
@ FL_BORDER_BOX
see figure 1
Definition Enumerations.H:488
@ FL_THIN_UP_BOX
see figure 1
Definition Enumerations.H:480
@ FL_EMBOSSED_BOX
see figure 1
Definition Enumerations.H:485
@ _FL_OVAL_FRAME
see figure 1
Definition Enumerations.H:502
@ _FL_OFLAT_BOX
see figure 1
Definition Enumerations.H:503
@ _FL_RFLAT_BOX
see figure 1
Definition Enumerations.H:495
@ FL_NO_BOX
nothing is drawn at all, this box is invisible
Definition Enumerations.H:474
@ _FL_SHADOW_FRAME
see figure 1
Definition Enumerations.H:491
@ _FL_OSHADOW_BOX
see figure 1
Definition Enumerations.H:501
@ FL_BORDER_FRAME
see figure 1
Definition Enumerations.H:490
@ _FL_ROUNDED_FRAME
see figure 1
Definition Enumerations.H:494
@ FL_THIN_DOWN_FRAME
see figure 1
Definition Enumerations.H:483
@ FL_FLAT_BOX
a flat box
Definition Enumerations.H:475
@ _FL_SHADOW_BOX
see figure 1
Definition Enumerations.H:489
@ FL_DOWN_BOX
see figure 1
Definition Enumerations.H:477
@ FL_ENGRAVED_FRAME
see figure 1
Definition Enumerations.H:486
@ FL_FREE_BOXTYPE
the first free box type for creation of new box types
Definition Enumerations.H:507
@ FL_UP_FRAME
see figure 1
Definition Enumerations.H:478
@ _FL_ROUND_UP_BOX
see figure 1
Definition Enumerations.H:496
@ FL_UP_BOX
see figure 1
Definition Enumerations.H:476
@ FL_ENGRAVED_BOX
see figure 1
Definition Enumerations.H:484
@ _FL_OVAL_BOX
see figure 1
Definition Enumerations.H:500
@ FL_THIN_DOWN_BOX
see figure 1
Definition Enumerations.H:481
@ FL_EMBOSSED_FRAME
see figure 1
Definition Enumerations.H:487
@ _FL_DIAMOND_DOWN_BOX
see figure 1
Definition Enumerations.H:499
@ FL_DOWN_FRAME
see figure 1
Definition Enumerations.H:479
@ _FL_ROUNDED_BOX
see figure 1
Definition Enumerations.H:492
@ _FL_ROUND_DOWN_BOX
see figure 1
Definition Enumerations.H:497
@ _FL_DIAMOND_UP_BOX
see figure 1
Definition Enumerations.H:498
@ FL_THIN_UP_FRAME
see figure 1
Definition Enumerations.H:482
const Fl_Font FL_HELVETICA_BOLD
Helvetica (or Arial) bold.
Definition Enumerations.H:710
const Fl_Font FL_COURIER
Courier normal.
Definition Enumerations.H:713
const Fl_Align FL_ALIGN_LEFT
Align the label at the left of the widget.
Definition Enumerations.H:669
@ FL_WRITE
Call the callback when data can be written without blocking.
Definition Enumerations.H:909
@ FL_EXCEPT
Call the callback if an exception occurs on the file.
Definition Enumerations.H:910
@ FL_READ
Call the callback when there is data to be read.
Definition Enumerations.H:908
const Fl_Font FL_COURIER_ITALIC
Courier italic.
Definition Enumerations.H:715
Fl_Color fl_lighter(Fl_Color c)
Returns a lighter version of the specified color.
Definition Enumerations.H:823
This file contains simple "C"-style type definitions.
unsigned char uchar
unsigned char
Definition fl_types.h:39
FL_EXPORT Fl_Color fl_inactive(Fl_Color c)
Returns the inactive, dimmed version of the given color.
Definition fl_color.cxx:394
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:412
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:373