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 */
208 /* Orientation for toolbars, etc. */
211 GTK_ORIENTATION_HORIZONTAL,
212 GTK_ORIENTATION_VERTICAL
215 /* Placement type for scrolled window */
219 GTK_CORNER_BOTTOM_LEFT,
220 GTK_CORNER_TOP_RIGHT,
221 GTK_CORNER_BOTTOM_RIGHT
224 /* Packing types (for boxes) */
231 /* priorities for path lookups */
234 GTK_PATH_PRIO_LOWEST = 0,
235 GTK_PATH_PRIO_GTK = 4,
236 GTK_PATH_PRIO_APPLICATION = 8,
237 GTK_PATH_PRIO_THEME = 10,
238 GTK_PATH_PRIO_RC = 12,
239 GTK_PATH_PRIO_HIGHEST = 15
240 } GtkPathPriorityType;
241 #define GTK_PATH_PRIO_MASK 0x0f
243 /* widget path types */
247 GTK_PATH_WIDGET_CLASS,
251 /* Scrollbar policy types (for scrolled windows) */
255 GTK_POLICY_AUTOMATIC,
267 #ifndef GTK_DISABLE_DEPRECATED
271 GTK_PREVIEW_GRAYSCALE
273 #endif /* GTK_DISABLE_DEPRECATED */
275 /* Style for buttons */
286 GTK_RESIZE_PARENT, /* Pass resize request to the parent */
287 GTK_RESIZE_QUEUE, /* Queue resizes on this widget */
288 GTK_RESIZE_IMMEDIATE /* Perform the resizes now */
291 #ifndef GTK_DISABLE_DEPRECATED
292 /* signal run types */
293 typedef enum /*< flags >*/
295 GTK_RUN_FIRST = G_SIGNAL_RUN_FIRST,
296 GTK_RUN_LAST = G_SIGNAL_RUN_LAST,
297 GTK_RUN_BOTH = (GTK_RUN_FIRST | GTK_RUN_LAST),
298 GTK_RUN_NO_RECURSE = G_SIGNAL_NO_RECURSE,
299 GTK_RUN_ACTION = G_SIGNAL_ACTION,
300 GTK_RUN_NO_HOOKS = G_SIGNAL_NO_HOOKS
302 #endif /* GTK_DISABLE_DEPRECATED */
304 /* scrolling types */
309 GTK_SCROLL_STEP_BACKWARD,
310 GTK_SCROLL_STEP_FORWARD,
311 GTK_SCROLL_PAGE_BACKWARD,
312 GTK_SCROLL_PAGE_FORWARD,
314 GTK_SCROLL_STEP_DOWN,
316 GTK_SCROLL_PAGE_DOWN,
317 GTK_SCROLL_STEP_LEFT,
318 GTK_SCROLL_STEP_RIGHT,
319 GTK_SCROLL_PAGE_LEFT,
320 GTK_SCROLL_PAGE_RIGHT,
325 /* list selection modes */
328 GTK_SELECTION_NONE, /* Nothing can be selected */
329 GTK_SELECTION_SINGLE,
330 GTK_SELECTION_BROWSE,
331 GTK_SELECTION_MULTIPLE,
332 GTK_SELECTION_EXTENDED = GTK_SELECTION_MULTIPLE /* Deprecated */
341 GTK_SHADOW_ETCHED_IN,
342 GTK_SHADOW_ETCHED_OUT
352 GTK_STATE_INSENSITIVE
355 #if !defined(GTK_DISABLE_DEPRECATED) || defined (GTK_MENU_INTERNALS)
356 /* Directions for submenus */
361 } GtkSubmenuDirection;
363 /* Placement of submenus */
368 } GtkSubmenuPlacement;
369 #endif /* GTK_DISABLE_DEPRECATED */
371 /* Style for toolbars */
377 GTK_TOOLBAR_BOTH_HORIZ
380 /* Data update types (for ranges) */
383 GTK_UPDATE_CONTINUOUS,
384 GTK_UPDATE_DISCONTINUOUS,
388 /* Generic visibility flags */
392 GTK_VISIBILITY_PARTIAL,
396 /* Window position types */
402 GTK_WIN_POS_CENTER_ALWAYS,
403 GTK_WIN_POS_CENTER_ON_PARENT
430 #endif /* __cplusplus */
433 #endif /* __GTK_ENUMS_H__ */