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;
198 GTK_MOVEMENT_LOGICAL_POSITIONS, /* move by forw/back graphemes */
199 GTK_MOVEMENT_VISUAL_POSITIONS, /* move by left/right graphemes */
200 GTK_MOVEMENT_WORDS, /* move by forward/back words */
201 GTK_MOVEMENT_DISPLAY_LINES, /* move up/down lines (wrapped lines) */
202 GTK_MOVEMENT_DISPLAY_LINE_ENDS, /* move up/down lines (wrapped lines) */
203 GTK_MOVEMENT_PARAGRAPHS, /* move up/down paragraphs (newline-ended lines) */
204 GTK_MOVEMENT_PARAGRAPH_ENDS, /* move to either end of a paragraph */
205 GTK_MOVEMENT_PAGES, /* move by pages */
206 GTK_MOVEMENT_BUFFER_ENDS, /* move to ends of the buffer */
207 GTK_MOVEMENT_HORIZONTAL_PAGES /* move horizontally by pages */
215 GTK_SCROLL_HORIZONTAL_STEPS,
216 GTK_SCROLL_HORIZONTAL_PAGES,
217 GTK_SCROLL_HORIZONTAL_ENDS
220 /* Orientation for toolbars, etc. */
223 GTK_ORIENTATION_HORIZONTAL,
224 GTK_ORIENTATION_VERTICAL
227 /* Placement type for scrolled window */
231 GTK_CORNER_BOTTOM_LEFT,
232 GTK_CORNER_TOP_RIGHT,
233 GTK_CORNER_BOTTOM_RIGHT
236 /* Packing types (for boxes) */
243 /* priorities for path lookups */
246 GTK_PATH_PRIO_LOWEST = 0,
247 GTK_PATH_PRIO_GTK = 4,
248 GTK_PATH_PRIO_APPLICATION = 8,
249 GTK_PATH_PRIO_THEME = 10,
250 GTK_PATH_PRIO_RC = 12,
251 GTK_PATH_PRIO_HIGHEST = 15
252 } GtkPathPriorityType;
253 #define GTK_PATH_PRIO_MASK 0x0f
255 /* widget path types */
259 GTK_PATH_WIDGET_CLASS,
263 /* Scrollbar policy types (for scrolled windows) */
267 GTK_POLICY_AUTOMATIC,
279 #ifndef GTK_DISABLE_DEPRECATED
283 GTK_PREVIEW_GRAYSCALE
285 #endif /* GTK_DISABLE_DEPRECATED */
287 /* Style for buttons */
298 GTK_RESIZE_PARENT, /* Pass resize request to the parent */
299 GTK_RESIZE_QUEUE, /* Queue resizes on this widget */
300 GTK_RESIZE_IMMEDIATE /* Perform the resizes now */
303 #ifndef GTK_DISABLE_DEPRECATED
304 /* signal run types */
305 typedef enum /*< flags >*/
307 GTK_RUN_FIRST = G_SIGNAL_RUN_FIRST,
308 GTK_RUN_LAST = G_SIGNAL_RUN_LAST,
309 GTK_RUN_BOTH = (GTK_RUN_FIRST | GTK_RUN_LAST),
310 GTK_RUN_NO_RECURSE = G_SIGNAL_NO_RECURSE,
311 GTK_RUN_ACTION = G_SIGNAL_ACTION,
312 GTK_RUN_NO_HOOKS = G_SIGNAL_NO_HOOKS
314 #endif /* GTK_DISABLE_DEPRECATED */
316 /* scrolling types */
321 GTK_SCROLL_STEP_BACKWARD,
322 GTK_SCROLL_STEP_FORWARD,
323 GTK_SCROLL_PAGE_BACKWARD,
324 GTK_SCROLL_PAGE_FORWARD,
326 GTK_SCROLL_STEP_DOWN,
328 GTK_SCROLL_PAGE_DOWN,
329 GTK_SCROLL_STEP_LEFT,
330 GTK_SCROLL_STEP_RIGHT,
331 GTK_SCROLL_PAGE_LEFT,
332 GTK_SCROLL_PAGE_RIGHT,
337 /* list selection modes */
340 GTK_SELECTION_NONE, /* Nothing can be selected */
341 GTK_SELECTION_SINGLE,
342 GTK_SELECTION_BROWSE,
343 GTK_SELECTION_MULTIPLE,
344 GTK_SELECTION_EXTENDED = GTK_SELECTION_MULTIPLE /* Deprecated */
353 GTK_SHADOW_ETCHED_IN,
354 GTK_SHADOW_ETCHED_OUT
364 GTK_STATE_INSENSITIVE
367 #if !defined(GTK_DISABLE_DEPRECATED) || defined (GTK_MENU_INTERNALS)
368 /* Directions for submenus */
373 } GtkSubmenuDirection;
375 /* Placement of submenus */
380 } GtkSubmenuPlacement;
381 #endif /* GTK_DISABLE_DEPRECATED */
383 /* Style for toolbars */
389 GTK_TOOLBAR_BOTH_HORIZ
392 /* Data update types (for ranges) */
395 GTK_UPDATE_CONTINUOUS,
396 GTK_UPDATE_DISCONTINUOUS,
400 /* Generic visibility flags */
404 GTK_VISIBILITY_PARTIAL,
408 /* Window position types */
414 GTK_WIN_POS_CENTER_ALWAYS,
415 GTK_WIN_POS_CENTER_ON_PARENT
441 /* Style for gtk input method preedit/status */
444 GTK_IM_PREEDIT_NOTHING,
445 GTK_IM_PREEDIT_CALLBACK,
451 GTK_IM_STATUS_NOTHING,
452 GTK_IM_STATUS_CALLBACK,
458 #endif /* __cplusplus */
461 #endif /* __GTK_ENUMS_H__ */