1999-01-13 22:28:54 +03:00
|
|
|
<HTML><BODY>
|
1999-01-31 10:43:16 +03:00
|
|
|
<H1 ALIGN=RIGHT><A NAME=Enumerations>C - FLTK Enumerations</A></H1>
|
2002-04-11 14:46:19 +04:00
|
|
|
|
|
|
|
<P>This appendix lists the enumerations provided in the
|
|
|
|
<TT><FL/Enumerations.H></TT> header file, organized by
|
|
|
|
section. Constants whose value is zero are marked with "(0)",
|
|
|
|
this is often useful to know when programming.
|
|
|
|
|
1999-01-07 19:36:11 +03:00
|
|
|
<H2>Version Numbers</H2>
|
2001-11-29 22:24:00 +03:00
|
|
|
The FLTK version number is stored in a number of compile-time
|
|
|
|
constants:
|
1999-01-13 22:28:54 +03:00
|
|
|
<UL>
|
|
|
|
<LI><TT>FL_MAJOR_VERSION</TT> - The major release number, currently 1. </LI>
|
2001-10-01 00:25:36 +04:00
|
|
|
<LI><TT>FL_MINOR_VERSION</TT> - The minor release number, currently 1. </LI>
|
1999-01-13 22:28:54 +03:00
|
|
|
<LI><TT>FL_PATCH_VERSION</TT> - The patch release number, currently 0. </LI>
|
2001-11-29 22:24:00 +03:00
|
|
|
<LI><TT>FL_VERSION</TT> - A combined floating-point version number for
|
2001-10-01 00:25:36 +04:00
|
|
|
the major, minor, and patch release numbers, currently 1.0100. </LI>
|
1999-01-13 22:28:54 +03:00
|
|
|
</UL>
|
2001-10-01 00:25:36 +04:00
|
|
|
<H2><A NAME="events">Events</A></H2>
|
2001-11-29 22:24:00 +03:00
|
|
|
Events are identified by an <TT>Fl_Event</TT> enumeration value. The
|
|
|
|
following events are currently defined:
|
1999-01-13 22:28:54 +03:00
|
|
|
<UL>
|
1999-01-27 11:45:11 +03:00
|
|
|
<LI><TT>FL_NO_EVENT</TT> - No event (or an event fltk does not
|
|
|
|
understand) occurred (0).</LI>
|
1999-01-13 22:28:54 +03:00
|
|
|
<LI><TT>FL_PUSH</TT> - A mouse button was pushed. </LI>
|
|
|
|
<LI><TT>FL_RELEASE</TT> - A mouse button was released. </LI>
|
|
|
|
<LI><TT>FL_ENTER</TT> - The mouse pointer entered a widget. </LI>
|
|
|
|
<LI><TT>FL_LEAVE</TT> - The mouse pointer left a widget. </LI>
|
2001-11-29 22:24:00 +03:00
|
|
|
<LI><TT>FL_DRAG</TT> - The mouse pointer was moved with a button
|
1999-01-13 22:28:54 +03:00
|
|
|
pressed. </LI>
|
|
|
|
<LI><TT>FL_FOCUS</TT> - A widget should receive keyboard focus. </LI>
|
|
|
|
<LI><TT>FL_UNFOCUS</TT> - A widget loses keyboard focus. </LI>
|
|
|
|
<LI><TT>FL_KEYBOARD</TT> - A key was pressed. </LI>
|
|
|
|
<LI><TT>FL_CLOSE</TT> - A window was closed. </LI>
|
2001-11-29 22:24:00 +03:00
|
|
|
<LI><TT>FL_MOVE</TT> - The mouse pointer was moved with no buttons
|
1999-01-13 22:28:54 +03:00
|
|
|
pressed. </LI>
|
|
|
|
<LI><TT>FL_SHORTCUT</TT> - The user pressed a shortcut key. </LI>
|
|
|
|
<LI><TT>FL_DEACTIVATE</TT> - The widget has been deactivated. </LI>
|
|
|
|
<LI><TT>FL_ACTIVATE</TT> - The widget has been activated. </LI>
|
|
|
|
<LI><TT>FL_HIDE</TT> - The widget has been hidden. </LI>
|
|
|
|
<LI><TT>FL_SHOW</TT> - The widget has been shown. </LI>
|
2001-11-29 22:24:00 +03:00
|
|
|
<LI><TT>FL_PASTE</TT> - The widget should paste the contents of the
|
1999-01-13 22:28:54 +03:00
|
|
|
clipboard. </LI>
|
2001-11-29 22:24:00 +03:00
|
|
|
<LI><TT>FL_SELECTIONCLEAR</TT> - The widget should clear any selections
|
1999-01-13 22:28:54 +03:00
|
|
|
made for the clipboard. </LI>
|
2002-02-25 00:09:51 +03:00
|
|
|
<LI><TT>FL_MOUSEWHEEL</TT> - The horizontal or vertical mousewheel was turned. </LI>
|
|
|
|
<LI><TT>FL_DND_ENTER</TT> - The mouse pointer entered a widget dragging data. </LI>
|
|
|
|
<LI><TT>FL_DND_DRAG</TT> - The mouse pointer was moved dragging data. </LI>
|
|
|
|
<LI><TT>FL_DND_LEAVE</TT> - The mouse pointer left a widget still dragging data. </LI>
|
|
|
|
<LI><TT>FL_DND_RELEASE</TT> - Dragged data is about to be dropped. </LI>
|
1999-01-13 22:28:54 +03:00
|
|
|
</UL>
|
2001-05-06 20:25:05 +04:00
|
|
|
<H2><a name=when>Callback "When" Conditions</A></H2>
|
2001-11-29 22:24:00 +03:00
|
|
|
The following constants determine when a callback is performed:
|
1999-01-13 22:28:54 +03:00
|
|
|
<UL>
|
1999-01-27 11:45:11 +03:00
|
|
|
<LI><TT>FL_WHEN_NEVER</TT> - Never call the callback (0). </LI>
|
2001-11-29 22:24:00 +03:00
|
|
|
<LI><TT>FL_WHEN_CHANGED</TT> - Do the callback only when the widget
|
1999-01-13 22:28:54 +03:00
|
|
|
value changes. </LI>
|
2001-11-29 22:24:00 +03:00
|
|
|
<LI><TT>FL_WHEN_NOT_CHANGED</TT> - Do the callback whenever the user
|
1999-01-13 22:28:54 +03:00
|
|
|
interacts with the widget. </LI>
|
2001-11-29 22:24:00 +03:00
|
|
|
<LI><TT>FL_WHEN_RELEASE</TT> - Do the callback when the button or key
|
1999-01-13 22:28:54 +03:00
|
|
|
is released and the value changes. </LI>
|
2001-11-29 22:24:00 +03:00
|
|
|
<LI><TT>FL_WHEN_ENTER_KEY</TT> - Do the callback when the user presses
|
1999-01-13 22:28:54 +03:00
|
|
|
the ENTER key and the value changes. </LI>
|
2001-11-29 22:24:00 +03:00
|
|
|
<LI><TT>FL_WHEN_RELEASE_ALWAYS</TT> - Do the callback when the button
|
1999-01-13 22:28:54 +03:00
|
|
|
or key is released, even if the value doesn't change. </LI>
|
2001-11-29 22:24:00 +03:00
|
|
|
<LI><TT>FL_WHEN_ENTER_KEY_ALWAYS</TT> - Do the callback when the user
|
1999-01-13 22:28:54 +03:00
|
|
|
presses the ENTER key, even if the value doesn't change. </LI>
|
|
|
|
</UL>
|
2000-04-28 22:15:26 +04:00
|
|
|
<H2><A NAME="button_values">Fl::event_button() Values</A></H2>
|
|
|
|
|
|
|
|
<P>The following constants define the button numbers for <TT>FL_PUSH</TT> and
|
|
|
|
<TT>FL_RELEASE</TT> events:
|
|
|
|
|
|
|
|
<UL>
|
|
|
|
<LI><TT>FL_LEFT_MOUSE</TT> - the left mouse button
|
|
|
|
<LI><TT>FL_MIDDLE_MOUSE</TT> - the middle mouse button
|
|
|
|
<LI><TT>FL_RIGHT_MOUSE</TT> - the right mouse button
|
|
|
|
</UL>
|
|
|
|
|
1999-01-19 23:53:39 +03:00
|
|
|
<H2><A NAME="key_values">Fl::event_key() Values</A></H2>
|
1999-01-13 22:28:54 +03:00
|
|
|
The following constants define the non-ASCII keys on the keyboard for <TT>
|
2001-11-29 22:24:00 +03:00
|
|
|
FL_KEYBOARD</TT> and <TT>FL_SHORTCUT</TT> events:
|
1999-01-13 22:28:54 +03:00
|
|
|
<UL>
|
|
|
|
<LI><TT>FL_Button</TT> - A mouse button; use <TT>Fl_Button + n</TT>
|
|
|
|
for mouse button <TT>n</TT>. </LI>
|
|
|
|
<LI><TT>FL_BackSpace</TT> - The backspace key. </LI>
|
|
|
|
<LI><TT>FL_Tab</TT> - The tab key. </LI>
|
|
|
|
<LI><TT>FL_Enter</TT> - The enter key. </LI>
|
|
|
|
<LI><TT>FL_Pause</TT> - The pause key. </LI>
|
|
|
|
<LI><TT>FL_Scroll_Lock</TT> - The scroll lock key. </LI>
|
|
|
|
<LI><TT>FL_Escape</TT> - The escape key. </LI>
|
|
|
|
<LI><TT>FL_Home</TT> - The home key. </LI>
|
|
|
|
<LI><TT>FL_Left</TT> - The left arrow key. </LI>
|
|
|
|
<LI><TT>FL_Up</TT> - The up arrow key. </LI>
|
|
|
|
<LI><TT>FL_Right</TT> - The right arrow key. </LI>
|
|
|
|
<LI><TT>FL_Down</TT> - The down arrow key. </LI>
|
|
|
|
<LI><TT>FL_Page_Up</TT> - The page-up key. </LI>
|
|
|
|
<LI><TT>FL_Page_Down</TT> - The page-down key. </LI>
|
|
|
|
<LI><TT>FL_End</TT> - The end key. </LI>
|
|
|
|
<LI><TT>FL_Print</TT> - The print (or print-screen) key. </LI>
|
|
|
|
<LI><TT>FL_Insert</TT> - The insert key. </LI>
|
|
|
|
<LI><TT>FL_Menu</TT> - The menu key. </LI>
|
|
|
|
<LI><TT>FL_Num_Lock</TT> - The num lock key. </LI>
|
|
|
|
<LI><TT>FL_KP</TT> - One of the keypad numbers; use <TT>FL_KP + n</TT>
|
|
|
|
for number <TT>n</TT>. </LI>
|
|
|
|
<LI><TT>FL_KP_Enter</TT> - The enter key on the keypad. </LI>
|
|
|
|
<LI><TT>FL_F</TT> - One of the function keys; use <TT>FL_F + n</TT>
|
|
|
|
for function key <TT>n</TT>. </LI>
|
|
|
|
<LI><TT>FL_Shift_L</TT> - The lefthand shift key. </LI>
|
|
|
|
<LI><TT>FL_Shift_R</TT> - The righthand shift key. </LI>
|
|
|
|
<LI><TT>FL_Control_L</TT> - The lefthand control key. </LI>
|
|
|
|
<LI><TT>FL_Control_R</TT> - The righthand control key. </LI>
|
|
|
|
<LI><TT>FL_Caps_Lock</TT> - The caps lock key. </LI>
|
|
|
|
<LI><TT>FL_Meta_L</TT> - The left meta/Windows key. </LI>
|
|
|
|
<LI><TT>FL_Meta_R</TT> - The right meta/Windows key. </LI>
|
|
|
|
<LI><TT>FL_Alt_L</TT> - The left alt key. </LI>
|
|
|
|
<LI><TT>FL_Alt_R</TT> - The right alt key. </LI>
|
|
|
|
<LI><TT>FL_Delete</TT> - The delete key. </LI>
|
|
|
|
</UL>
|
1999-01-07 19:36:11 +03:00
|
|
|
<H2>Fl::event_state() Values</H2>
|
1999-01-13 22:28:54 +03:00
|
|
|
The following constants define bits in the <TT>Fl::event_state()</TT>
|
2001-11-29 22:24:00 +03:00
|
|
|
value:
|
1999-01-13 22:28:54 +03:00
|
|
|
<UL>
|
|
|
|
<LI><TT>FL_SHIFT</TT> - One of the shift keys is down. </LI>
|
|
|
|
<LI><TT>FL_CAPS_LOCK</TT> - The caps lock is on. </LI>
|
|
|
|
<LI><TT>FL_CTRL</TT> - One of the ctrl keys is down. </LI>
|
|
|
|
<LI><TT>FL_ALT</TT> - One of the alt keys is down. </LI>
|
|
|
|
<LI><TT>FL_NUM_LOCK</TT> - The num lock is on. </LI>
|
|
|
|
<LI><TT>FL_META</TT> - One of the meta/Windows keys is down. </LI>
|
|
|
|
<LI><TT>FL_SCROLL_LOCK</TT> - The scroll lock is on. </LI>
|
|
|
|
<LI><TT>FL_BUTTON1</TT> - Mouse button 1 is pushed. </LI>
|
|
|
|
<LI><TT>FL_BUTTON2</TT> - Mouse button 2 is pushed. </LI>
|
|
|
|
<LI><TT>FL_BUTTON3</TT> - Mouse button 3 is pushed. </LI>
|
|
|
|
</UL>
|
2002-04-18 23:10:56 +04:00
|
|
|
<!-- NEED 4in -->
|
2001-05-06 20:25:05 +04:00
|
|
|
<H2><a name=align>Alignment Values</A></H2>
|
1999-01-13 22:28:54 +03:00
|
|
|
The following constants define bits that can be used with <A href=Fl_Widget.html#Fl_Widget.align>
|
2001-11-29 22:24:00 +03:00
|
|
|
<TT>Fl_Widget::align()</TT></A> to control the positioning of the
|
|
|
|
label:
|
1999-01-13 22:28:54 +03:00
|
|
|
<UL>
|
1999-01-27 11:45:11 +03:00
|
|
|
<LI><TT>FL_ALIGN_CENTER</TT> - The label is centered (0). </LI>
|
1999-01-13 22:28:54 +03:00
|
|
|
<LI><TT>FL_ALIGN_TOP</TT> - The label is top-aligned. </LI>
|
|
|
|
<LI><TT>FL_ALIGN_BOTTOM</TT> - The label is bottom-aligned. </LI>
|
|
|
|
<LI><TT>FL_ALIGN_LEFT</TT> - The label is left-aligned. </LI>
|
|
|
|
<LI><TT>FL_ALIGN_RIGHT</TT> - The label is right-aligned. </LI>
|
|
|
|
<LI><TT>FL_ALIGN_CLIP</TT> - The label is clipped to the widget. </LI>
|
|
|
|
<LI><TT>FL_ALIGN_WRAP</TT> - The label text is wrapped as needed. </LI>
|
1999-01-27 11:45:11 +03:00
|
|
|
<LI><TT>FL_ALIGN_TOP_LEFT</TT></LI>
|
|
|
|
<LI><TT>FL_ALIGN_TOP_RIGHT</TT></LI>
|
|
|
|
<LI><TT>FL_ALIGN_BOTTOM_LEFT</TT></LI>
|
|
|
|
<LI><TT>FL_ALIGN_BOTTOM_RIGHT</TT></LI>
|
|
|
|
<LI><TT>FL_ALIGN_LEFT_TOP</TT></LI>
|
|
|
|
<LI><TT>FL_ALIGN_RIGHT_TOP</TT></LI>
|
|
|
|
<LI><TT>FL_ALIGN_LEFT_BOTTOM</TT></LI>
|
|
|
|
<LI><TT>FL_ALIGN_RIGHT_BOTTOM</TT></LI>
|
|
|
|
<LI><TT>FL_ALIGN_INSIDE</TT> - 'or' this with other values to put
|
|
|
|
label inside the widget. </LI>
|
|
|
|
|
1999-01-13 22:28:54 +03:00
|
|
|
</UL>
|
2001-05-06 20:25:05 +04:00
|
|
|
<H2><a name=fonts>Fonts</A></H2>
|
2001-11-29 22:24:00 +03:00
|
|
|
The following constants define the standard FLTK fonts:
|
1999-01-27 11:45:11 +03:00
|
|
|
<ul>
|
|
|
|
<LI><TT>FL_HELVETICA</TT> - Helvetica (or Arial) normal (0). </LI>
|
1999-01-13 22:28:54 +03:00
|
|
|
<LI><TT>FL_HELVETICA_BOLD</TT> - Helvetica (or Arial) bold. </LI>
|
|
|
|
<LI><TT>FL_HELVETICA_ITALIC</TT> - Helvetica (or Arial) oblique. </LI>
|
2001-11-29 22:24:00 +03:00
|
|
|
<LI><TT>FL_HELVETICA_BOLD_ITALIC</TT> - Helvetica (or Arial)
|
1999-01-13 22:28:54 +03:00
|
|
|
bold-oblique. </LI>
|
|
|
|
<LI><TT>FL_COURIER</TT> - Courier normal. </LI>
|
|
|
|
<LI><TT>FL_COURIER_BOLD</TT> - Courier bold. </LI>
|
|
|
|
<LI><TT>FL_COURIER_ITALIC</TT> - Courier italic. </LI>
|
|
|
|
<LI><TT>FL_COURIER_BOLD_ITALIC</TT> - Courier bold-italic. </LI>
|
|
|
|
<LI><TT>FL_TIMES</TT> - Times roman. </LI>
|
|
|
|
<LI><TT>FL_TIMES_BOLD</TT> - Times bold. </LI>
|
|
|
|
<LI><TT>FL_TIMES_ITALIC</TT> - Times italic. </LI>
|
|
|
|
<LI><TT>FL_TIMES_BOLD_ITALIC</TT> - Times bold-italic. </LI>
|
|
|
|
<LI><TT>FL_SYMBOL</TT> - Standard symbol font. </LI>
|
|
|
|
<LI><TT>FL_SCREEN</TT> - Default monospaced screen font. </LI>
|
|
|
|
<LI><TT>FL_SCREEN_BOLD</TT> - Default monospaced bold screen font. </LI>
|
2001-11-29 22:24:00 +03:00
|
|
|
<LI><TT>FL_ZAPF_DINGBATS</TT> - Zapf-dingbats font.
|
1999-01-27 11:45:11 +03:00
|
|
|
</ul>
|
|
|
|
|
2001-05-06 20:25:05 +04:00
|
|
|
<H2><a name=colors>Colors</A></H2>
|
2002-04-11 14:46:19 +04:00
|
|
|
|
|
|
|
<P>The <TT>Fl_Color</TT> enumeration type holds a FLTK color value.
|
|
|
|
Colors are either 8-bit indexes into a virtual colormap or 24-bit RGB
|
|
|
|
color values. Color indices occupy the lower 8 bits of the value, while
|
|
|
|
RGB colors occupy the upper 24 bits, for a byte organization of RGBI.
|
|
|
|
|
|
|
|
<H3>Color Constants</H3>
|
|
|
|
|
|
|
|
<P>Constants are defined for the user-defined foreground and background
|
|
|
|
colors, as well as specific colors and the start of the grayscale ramp
|
|
|
|
and color cube in the virtual colormap. Inline functions are provided to
|
|
|
|
retrieve specific grayscale, color cube, or RGB color values.
|
|
|
|
|
|
|
|
<P>The following color constants can be used to access the user-defined
|
|
|
|
colors:
|
|
|
|
|
|
|
|
<UL>
|
|
|
|
|
|
|
|
<LI><TT>FL_BACKGROUND_COLOR</TT> - the default
|
|
|
|
background color</LI>
|
|
|
|
|
|
|
|
<LI><TT>FL_BACKGROUND2_COLOR</TT> - the default
|
|
|
|
background color for text, list, and valuator widgets</LI>
|
|
|
|
|
|
|
|
<LI><TT>FL_FOREGROUND_COLOR</TT> - the default
|
|
|
|
foreground color (0) used for labels and text</LI>
|
|
|
|
|
|
|
|
<LI><TT>FL_INACTIVE_COLOR</TT> - the inactive foreground
|
|
|
|
color</LI>
|
|
|
|
|
|
|
|
<LI><TT>FL_SELECTION_COLOR</TT> - the default selection/highlight
|
|
|
|
color</LI>
|
|
|
|
|
|
|
|
</UL>
|
|
|
|
|
|
|
|
<P>The following color constants can be used to access the colors from the
|
|
|
|
FLTK standard color cube:
|
|
|
|
|
1999-01-13 22:28:54 +03:00
|
|
|
<UL>
|
2002-04-11 14:46:19 +04:00
|
|
|
|
|
|
|
<LI><TT>FL_BLACK</TT></LI>
|
|
|
|
<LI><TT>FL_BLUE</TT></LI>
|
|
|
|
<LI><TT>FL_CYAN</TT></LI>
|
2002-06-09 17:35:49 +04:00
|
|
|
<LI><TT>FL_DARK_BLUE</TT></LI>
|
|
|
|
<LI><TT>FL_DARK_CYAN</TT></LI>
|
|
|
|
<LI><TT>FL_DARK_GREEN</TT></LI>
|
|
|
|
<LI><TT>FL_DARK_MAGENTA</TT></LI>
|
|
|
|
<LI><TT>FL_DARK_RED</TT></LI>
|
|
|
|
<LI><TT>FL_DARK_YELLOW</TT></LI>
|
|
|
|
<LI><TT>FL_GREEN</TT></LI>
|
|
|
|
<LI><TT>FL_MAGENTA</TT></LI>
|
|
|
|
<LI><TT>FL_RED</TT></LI>
|
2002-04-11 14:46:19 +04:00
|
|
|
<LI><TT>FL_WHITE</TT></LI>
|
2002-06-09 17:35:49 +04:00
|
|
|
<LI><TT>FL_YELLOW</TT></LI>
|
2002-04-11 14:46:19 +04:00
|
|
|
|
1999-01-13 22:28:54 +03:00
|
|
|
</UL>
|
1999-01-27 11:45:11 +03:00
|
|
|
|
2002-04-18 23:10:56 +04:00
|
|
|
<P>The inline methods for getting a grayscale, color cube, or
|
|
|
|
RGB color value are described in <A
|
|
|
|
HREF="functions.html#functions">Appendix B - Function
|
|
|
|
Reference</A>.
|
2002-01-15 05:17:19 +03:00
|
|
|
|
2001-05-06 20:25:05 +04:00
|
|
|
<H2><a name=cursor>Cursors</A></H2>
|
1999-01-31 10:43:16 +03:00
|
|
|
|
2001-11-29 22:24:00 +03:00
|
|
|
<P>The following constants define the mouse cursors that are available in
|
|
|
|
FLTK. The double-headed arrows are bitmaps
|
|
|
|
provided by FLTK on X, the others are provided by system-defined
|
1999-01-31 10:43:16 +03:00
|
|
|
cursors.</P>
|
2002-04-11 14:46:19 +04:00
|
|
|
|
1999-01-13 22:28:54 +03:00
|
|
|
<UL>
|
2002-04-11 14:46:19 +04:00
|
|
|
|
|
|
|
<LI><TT>FL_CURSOR_DEFAULT</TT> - the default cursor, usually an arrow (0)</LI>
|
|
|
|
<LI><TT>FL_CURSOR_ARROW</TT> - an arrow pointer </LI>
|
|
|
|
<LI><TT>FL_CURSOR_CROSS</TT> - crosshair </LI>
|
|
|
|
<LI><TT>FL_CURSOR_WAIT</TT> - watch or hourglass </LI>
|
|
|
|
<LI><TT>FL_CURSOR_INSERT</TT> - I-beam </LI>
|
|
|
|
<LI><TT>FL_CURSOR_HAND</TT> - hand (uparrow on MSWindows) </LI>
|
|
|
|
<LI><TT>FL_CURSOR_HELP</TT> - question mark </LI>
|
|
|
|
<LI><TT>FL_CURSOR_MOVE</TT> - 4-pointed arrow </LI>
|
|
|
|
<LI><TT>FL_CURSOR_NS</TT> - up/down arrow </LI>
|
|
|
|
<LI><TT>FL_CURSOR_WE</TT> - left/right arrow </LI>
|
|
|
|
<LI><TT>FL_CURSOR_NWSE</TT> - diagonal arrow </LI>
|
|
|
|
<LI><TT>FL_CURSOR_NESW</TT> - diagonal arrow </LI>
|
|
|
|
<LI><TT>FL_CURSOR_NONE</TT> - invisible </LI>
|
|
|
|
|
1999-01-13 22:28:54 +03:00
|
|
|
</UL>
|
2002-04-11 14:46:19 +04:00
|
|
|
|
1999-01-13 22:28:54 +03:00
|
|
|
<H2>FD "When" Conditions</H2>
|
2002-04-11 14:46:19 +04:00
|
|
|
|
1999-01-13 22:28:54 +03:00
|
|
|
<UL>
|
2002-04-11 14:46:19 +04:00
|
|
|
|
|
|
|
<LI><TT>FL_READ</TT> - Call the callback when there is data to be
|
|
|
|
read.</LI>
|
|
|
|
|
|
|
|
<LI><TT>FL_WRITE</TT> - Call the callback when data can be written
|
|
|
|
without blocking.</LI>
|
|
|
|
|
|
|
|
<LI><TT>FL_EXCEPT</TT> - Call the callback if an exception occurs on
|
|
|
|
the file.</LI>
|
|
|
|
|
1999-01-13 22:28:54 +03:00
|
|
|
</UL>
|
2002-04-11 14:46:19 +04:00
|
|
|
|
2001-05-06 20:25:05 +04:00
|
|
|
<H2><a name=damage>Damage Masks</A></H2>
|
2001-11-29 22:24:00 +03:00
|
|
|
The following damage mask bits are used by the standard FLTK widgets:
|
1999-01-13 22:28:54 +03:00
|
|
|
<UL>
|
|
|
|
<LI><TT>FL_DAMAGE_CHILD</TT> - A child needs to be redrawn. </LI>
|
|
|
|
<LI><TT>FL_DAMAGE_EXPOSE</TT> - The window was exposed. </LI>
|
2001-11-29 22:24:00 +03:00
|
|
|
<LI><TT>FL_DAMAGE_SCROLL</TT> - The <TT>Fl_Scroll</TT> widget was
|
1999-01-13 22:28:54 +03:00
|
|
|
scrolled. </LI>
|
|
|
|
<LI><TT>FL_DAMAGE_OVERLAY</TT> - The overlay planes need to be redrawn. </LI>
|
|
|
|
<LI><TT>FL_DAMAGE_ALL</TT> - Everything needs to be redrawn. </LI>
|
|
|
|
</UL>
|
1999-01-13 23:55:40 +03:00
|
|
|
</BODY></HTML>
|