1 /* GTK - The GIMP Toolkit
2 * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2 of the License, or (at your option) any later version.
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the
16 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
17 * Boston, MA 02111-1307, USA.
21 * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS
22 * file for a list of people on the GTK+ Team. See the ChangeLog
23 * files for a list of changes. These files are distributed with
24 * GTK+ at ftp://ftp.gtk.org/pub/gtk/.
27 #ifndef __GTK_ENUMS_H__
28 #define __GTK_ENUMS_H__
30 #include <glib-object.h>
34 #endif /* __cplusplus */
42 GTK_ANCHOR_NORTH_WEST,
43 GTK_ANCHOR_NORTH_EAST,
45 GTK_ANCHOR_SOUTH_WEST,
46 GTK_ANCHOR_SOUTH_EAST,
49 GTK_ANCHOR_N = GTK_ANCHOR_NORTH,
50 GTK_ANCHOR_NW = GTK_ANCHOR_NORTH_WEST,
51 GTK_ANCHOR_NE = GTK_ANCHOR_NORTH_EAST,
52 GTK_ANCHOR_S = GTK_ANCHOR_SOUTH,
53 GTK_ANCHOR_SW = GTK_ANCHOR_SOUTH_WEST,
54 GTK_ANCHOR_SE = GTK_ANCHOR_SOUTH_EAST,
55 GTK_ANCHOR_W = GTK_ANCHOR_WEST,
56 GTK_ANCHOR_E = GTK_ANCHOR_EAST
68 /* Attach options (for tables) */
76 /* Button box styles */
79 GTK_BUTTONBOX_DEFAULT_STYLE,
89 GTK_CURVE_TYPE_LINEAR, /* linear interpolation */
90 GTK_CURVE_TYPE_SPLINE, /* spline interpolation */
91 GTK_CURVE_TYPE_FREE /* free form curve */
96 GTK_DELETE_WORD_ENDS, /* delete only the portion of the word to the
97 * left/right of cursor if we're in the middle
100 GTK_DELETE_DISPLAY_LINES,
101 GTK_DELETE_DISPLAY_LINE_ENDS,
102 GTK_DELETE_PARAGRAPH_ENDS, /* like C-k in Emacs (or its reverse) */
103 GTK_DELETE_PARAGRAPHS, /* C-k in pico, kill whole line */
104 GTK_DELETE_WHITESPACE /* M-\ in Emacs */
107 /* Focus movement types */
111 GTK_DIR_TAB_BACKWARD,
118 /* Expander styles */
121 GTK_EXPANDER_COLLAPSED,
122 GTK_EXPANDER_SEMI_COLLAPSED,
123 GTK_EXPANDER_SEMI_EXPANDED,
124 GTK_EXPANDER_EXPANDED
127 /* Built-in stock icon sizes */
130 GTK_ICON_SIZE_INVALID,
132 GTK_ICON_SIZE_SMALL_TOOLBAR,
133 GTK_ICON_SIZE_LARGE_TOOLBAR,
134 GTK_ICON_SIZE_BUTTON,
139 #ifndef GTK_DISABLE_DEPRECATED
148 #endif /* GTK_DISABLE_DEPRECATED */
150 /* Reading directions for text */
158 /* justification for label and maybe other widgets (text?) */
167 #ifndef GTK_DISABLE_DEPRECATED
168 /* GtkPatternSpec match types */
171 GTK_MATCH_ALL, /* "*A?A*" */
172 GTK_MATCH_ALL_TAIL, /* "*A?AA" */
173 GTK_MATCH_HEAD, /* "AAAA*" */
174 GTK_MATCH_TAIL, /* "*AAAA" */
175 GTK_MATCH_EXACT, /* "AAAAA" */
178 #endif /* GTK_DISABLE_DEPRECATED */
180 /* Menu keyboard movement types */
187 } GtkMenuDirectionType;
197 GTK_MOVEMENT_LOGICAL_POSITIONS, /* move by forw/back graphemes */
198 GTK_MOVEMENT_VISUAL_POSITIONS, /* move by left/right graphemes */
199 GTK_MOVEMENT_WORDS, /* move by forward/back words */
200 GTK_MOVEMENT_DISPLAY_LINES, /* move up/down lines (wrapped lines) */
201 GTK_MOVEMENT_DISPLAY_LINE_ENDS, /* move up/down lines (wrapped lines) */
202 GTK_MOVEMENT_PARAGRAPHS, /* move up/down paragraphs (newline-ended lines) */
203 GTK_MOVEMENT_PARAGRAPH_ENDS, /* move to either end of a paragraph */
204 GTK_MOVEMENT_PAGES, /* move by pages */
205 GTK_MOVEMENT_BUFFER_ENDS, /* move to ends of the buffer */
206 GTK_MOVEMENT_HORIZONTAL_PAGES /* move horizontally by pages */
209 /* Orientation for toolbars, etc. */
212 GTK_ORIENTATION_HORIZONTAL,
213 GTK_ORIENTATION_VERTICAL
216 /* Placement type for scrolled window */
220 GTK_CORNER_BOTTOM_LEFT,
221 GTK_CORNER_TOP_RIGHT,
222 GTK_CORNER_BOTTOM_RIGHT
225 /* Packing types (for boxes) */
232 /* priorities for path lookups */
235 GTK_PATH_PRIO_LOWEST = 0,
236 GTK_PATH_PRIO_GTK = 4,
237 GTK_PATH_PRIO_APPLICATION = 8,
238 GTK_PATH_PRIO_THEME = 10,
239 GTK_PATH_PRIO_RC = 12,
240 GTK_PATH_PRIO_HIGHEST = 15
241 } GtkPathPriorityType;
242 #define GTK_PATH_PRIO_MASK 0x0f
244 /* widget path types */
248 GTK_PATH_WIDGET_CLASS,
252 /* Scrollbar policy types (for scrolled windows) */
256 GTK_POLICY_AUTOMATIC,
268 #ifndef GTK_DISABLE_DEPRECATED
272 GTK_PREVIEW_GRAYSCALE
274 #endif /* GTK_DISABLE_DEPRECATED */
276 /* Style for buttons */
287 GTK_RESIZE_PARENT, /* Pass resize request to the parent */
288 GTK_RESIZE_QUEUE, /* Queue resizes on this widget */
289 GTK_RESIZE_IMMEDIATE /* Perform the resizes now */
292 #ifndef GTK_DISABLE_DEPRECATED
293 /* signal run types */
294 typedef enum /*< flags >*/
296 GTK_RUN_FIRST = G_SIGNAL_RUN_FIRST,
297 GTK_RUN_LAST = G_SIGNAL_RUN_LAST,
298 GTK_RUN_BOTH = (GTK_RUN_FIRST | GTK_RUN_LAST),
299 GTK_RUN_NO_RECURSE = G_SIGNAL_NO_RECURSE,
300 GTK_RUN_ACTION = G_SIGNAL_ACTION,
301 GTK_RUN_NO_HOOKS = G_SIGNAL_NO_HOOKS
303 #endif /* GTK_DISABLE_DEPRECATED */
305 /* scrolling types */
310 GTK_SCROLL_STEP_BACKWARD,
311 GTK_SCROLL_STEP_FORWARD,
312 GTK_SCROLL_PAGE_BACKWARD,
313 GTK_SCROLL_PAGE_FORWARD,
315 GTK_SCROLL_STEP_DOWN,
317 GTK_SCROLL_PAGE_DOWN,
318 GTK_SCROLL_STEP_LEFT,
319 GTK_SCROLL_STEP_RIGHT,
320 GTK_SCROLL_PAGE_LEFT,
321 GTK_SCROLL_PAGE_RIGHT,
326 /* list selection modes */
329 GTK_SELECTION_NONE, /* Nothing can be selected */
330 GTK_SELECTION_SINGLE,
331 GTK_SELECTION_BROWSE,
332 GTK_SELECTION_MULTIPLE,
333 GTK_SELECTION_EXTENDED = GTK_SELECTION_MULTIPLE /* Deprecated */
342 GTK_SHADOW_ETCHED_IN,
343 GTK_SHADOW_ETCHED_OUT
353 GTK_STATE_INSENSITIVE
356 #if !defined(GTK_DISABLE_DEPRECATED) || defined (GTK_MENU_INTERNALS)
357 /* Directions for submenus */
362 } GtkSubmenuDirection;
364 /* Placement of submenus */
369 } GtkSubmenuPlacement;
370 #endif /* GTK_DISABLE_DEPRECATED */
372 /* Style for toolbars */
378 GTK_TOOLBAR_BOTH_HORIZ
381 /* Data update types (for ranges) */
384 GTK_UPDATE_CONTINUOUS,
385 GTK_UPDATE_DISCONTINUOUS,
389 /* Generic visibility flags */
393 GTK_VISIBILITY_PARTIAL,
397 /* Window position types */
403 GTK_WIN_POS_CENTER_ALWAYS,
404 GTK_WIN_POS_CENTER_ON_PARENT
429 /* Style for gtk input method preedit/status */
432 GTK_IM_PREEDIT_NOTHING,
433 GTK_IM_PREEDIT_CALLBACK
438 GTK_IM_STATUS_NOTHING,
439 GTK_IM_STATUS_CALLBACK
444 #endif /* __cplusplus */
447 #endif /* __GTK_ENUMS_H__ */