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>
39 GTK_ANCHOR_NORTH_WEST,
40 GTK_ANCHOR_NORTH_EAST,
42 GTK_ANCHOR_SOUTH_WEST,
43 GTK_ANCHOR_SOUTH_EAST,
46 GTK_ANCHOR_N = GTK_ANCHOR_NORTH,
47 GTK_ANCHOR_NW = GTK_ANCHOR_NORTH_WEST,
48 GTK_ANCHOR_NE = GTK_ANCHOR_NORTH_EAST,
49 GTK_ANCHOR_S = GTK_ANCHOR_SOUTH,
50 GTK_ANCHOR_SW = GTK_ANCHOR_SOUTH_WEST,
51 GTK_ANCHOR_SE = GTK_ANCHOR_SOUTH_EAST,
52 GTK_ANCHOR_W = GTK_ANCHOR_WEST,
53 GTK_ANCHOR_E = GTK_ANCHOR_EAST
65 /* Attach options (for tables) */
73 /* Button box styles */
76 GTK_BUTTONBOX_DEFAULT_STYLE,
86 GTK_CURVE_TYPE_LINEAR, /* linear interpolation */
87 GTK_CURVE_TYPE_SPLINE, /* spline interpolation */
88 GTK_CURVE_TYPE_FREE /* free form curve */
93 GTK_DELETE_WORD_ENDS, /* delete only the portion of the word to the
94 * left/right of cursor if we're in the middle
97 GTK_DELETE_DISPLAY_LINES,
98 GTK_DELETE_DISPLAY_LINE_ENDS,
99 GTK_DELETE_PARAGRAPH_ENDS, /* like C-k in Emacs (or its reverse) */
100 GTK_DELETE_PARAGRAPHS, /* C-k in pico, kill whole line */
101 GTK_DELETE_WHITESPACE /* M-\ in Emacs */
104 /* Focus movement types */
108 GTK_DIR_TAB_BACKWARD,
115 /* Expander styles */
118 GTK_EXPANDER_COLLAPSED,
119 GTK_EXPANDER_SEMI_COLLAPSED,
120 GTK_EXPANDER_SEMI_EXPANDED,
121 GTK_EXPANDER_EXPANDED
124 /* Built-in stock icon sizes */
127 GTK_ICON_SIZE_INVALID,
129 GTK_ICON_SIZE_SMALL_TOOLBAR,
130 GTK_ICON_SIZE_LARGE_TOOLBAR,
131 GTK_ICON_SIZE_BUTTON,
136 /* automatic sensitivity */
139 GTK_SENSITIVITY_AUTO,
142 } GtkSensitivityType;
144 #ifndef GTK_DISABLE_DEPRECATED
153 #endif /* GTK_DISABLE_DEPRECATED */
155 /* Reading directions for text */
163 /* justification for label and maybe other widgets (text?) */
172 #ifndef GTK_DISABLE_DEPRECATED
173 /* GtkPatternSpec match types */
176 GTK_MATCH_ALL, /* "*A?A*" */
177 GTK_MATCH_ALL_TAIL, /* "*A?AA" */
178 GTK_MATCH_HEAD, /* "AAAA*" */
179 GTK_MATCH_TAIL, /* "*AAAA" */
180 GTK_MATCH_EXACT, /* "AAAAA" */
183 #endif /* GTK_DISABLE_DEPRECATED */
185 /* Menu keyboard movement types */
192 } GtkMenuDirectionType;
203 GTK_MOVEMENT_LOGICAL_POSITIONS, /* move by forw/back graphemes */
204 GTK_MOVEMENT_VISUAL_POSITIONS, /* move by left/right graphemes */
205 GTK_MOVEMENT_WORDS, /* move by forward/back words */
206 GTK_MOVEMENT_DISPLAY_LINES, /* move up/down lines (wrapped lines) */
207 GTK_MOVEMENT_DISPLAY_LINE_ENDS, /* move up/down lines (wrapped lines) */
208 GTK_MOVEMENT_PARAGRAPHS, /* move up/down paragraphs (newline-ended lines) */
209 GTK_MOVEMENT_PARAGRAPH_ENDS, /* move to either end of a paragraph */
210 GTK_MOVEMENT_PAGES, /* move by pages */
211 GTK_MOVEMENT_BUFFER_ENDS, /* move to ends of the buffer */
212 GTK_MOVEMENT_HORIZONTAL_PAGES /* move horizontally by pages */
220 GTK_SCROLL_HORIZONTAL_STEPS,
221 GTK_SCROLL_HORIZONTAL_PAGES,
222 GTK_SCROLL_HORIZONTAL_ENDS
225 /* Orientation for toolbars, etc. */
228 GTK_ORIENTATION_HORIZONTAL,
229 GTK_ORIENTATION_VERTICAL
232 /* Placement type for scrolled window */
236 GTK_CORNER_BOTTOM_LEFT,
237 GTK_CORNER_TOP_RIGHT,
238 GTK_CORNER_BOTTOM_RIGHT
241 /* Packing types (for boxes) */
248 /* priorities for path lookups */
251 GTK_PATH_PRIO_LOWEST = 0,
252 GTK_PATH_PRIO_GTK = 4,
253 GTK_PATH_PRIO_APPLICATION = 8,
254 GTK_PATH_PRIO_THEME = 10,
255 GTK_PATH_PRIO_RC = 12,
256 GTK_PATH_PRIO_HIGHEST = 15
257 } GtkPathPriorityType;
258 #define GTK_PATH_PRIO_MASK 0x0f
260 /* widget path types */
264 GTK_PATH_WIDGET_CLASS,
268 /* Scrollbar policy types (for scrolled windows) */
272 GTK_POLICY_AUTOMATIC,
284 #ifndef GTK_DISABLE_DEPRECATED
288 GTK_PREVIEW_GRAYSCALE
290 #endif /* GTK_DISABLE_DEPRECATED */
292 /* Style for buttons */
303 GTK_RESIZE_PARENT, /* Pass resize request to the parent */
304 GTK_RESIZE_QUEUE, /* Queue resizes on this widget */
305 GTK_RESIZE_IMMEDIATE /* Perform the resizes now */
308 #ifndef GTK_DISABLE_DEPRECATED
309 /* signal run types */
310 typedef enum /*< flags >*/
312 GTK_RUN_FIRST = G_SIGNAL_RUN_FIRST,
313 GTK_RUN_LAST = G_SIGNAL_RUN_LAST,
314 GTK_RUN_BOTH = (GTK_RUN_FIRST | GTK_RUN_LAST),
315 GTK_RUN_NO_RECURSE = G_SIGNAL_NO_RECURSE,
316 GTK_RUN_ACTION = G_SIGNAL_ACTION,
317 GTK_RUN_NO_HOOKS = G_SIGNAL_NO_HOOKS
319 #endif /* GTK_DISABLE_DEPRECATED */
321 /* scrolling types */
326 GTK_SCROLL_STEP_BACKWARD,
327 GTK_SCROLL_STEP_FORWARD,
328 GTK_SCROLL_PAGE_BACKWARD,
329 GTK_SCROLL_PAGE_FORWARD,
331 GTK_SCROLL_STEP_DOWN,
333 GTK_SCROLL_PAGE_DOWN,
334 GTK_SCROLL_STEP_LEFT,
335 GTK_SCROLL_STEP_RIGHT,
336 GTK_SCROLL_PAGE_LEFT,
337 GTK_SCROLL_PAGE_RIGHT,
342 /* list selection modes */
345 GTK_SELECTION_NONE, /* Nothing can be selected */
346 GTK_SELECTION_SINGLE,
347 GTK_SELECTION_BROWSE,
348 GTK_SELECTION_MULTIPLE,
349 GTK_SELECTION_EXTENDED = GTK_SELECTION_MULTIPLE /* Deprecated */
358 GTK_SHADOW_ETCHED_IN,
359 GTK_SHADOW_ETCHED_OUT
369 GTK_STATE_INSENSITIVE
372 #if !defined(GTK_DISABLE_DEPRECATED) || defined (GTK_MENU_INTERNALS)
373 /* Directions for submenus */
378 } GtkSubmenuDirection;
380 /* Placement of submenus */
385 } GtkSubmenuPlacement;
386 #endif /* GTK_DISABLE_DEPRECATED */
388 /* Style for toolbars */
394 GTK_TOOLBAR_BOTH_HORIZ
397 /* Data update types (for ranges) */
400 GTK_UPDATE_CONTINUOUS,
401 GTK_UPDATE_DISCONTINUOUS,
405 /* Generic visibility flags */
409 GTK_VISIBILITY_PARTIAL,
413 /* Window position types */
419 GTK_WIN_POS_CENTER_ALWAYS,
420 GTK_WIN_POS_CENTER_ON_PARENT
446 /* Style for gtk input method preedit/status */
449 GTK_IM_PREEDIT_NOTHING,
450 GTK_IM_PREEDIT_CALLBACK,
456 GTK_IM_STATUS_NOTHING,
457 GTK_IM_STATUS_CALLBACK,
463 GTK_PACK_DIRECTION_LTR,
464 GTK_PACK_DIRECTION_RTL,
465 GTK_PACK_DIRECTION_TTB,
466 GTK_PACK_DIRECTION_BTT
471 #endif /* __GTK_ENUMS_H__ */