1 /* GTK - The GTK+ 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 #if defined(GTK_DISABLE_SINGLE_INCLUDES) && !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION)
28 #error "Only <gtk/gtk.h> can be included directly."
31 #ifndef __GTK_ENUMS_H__
32 #define __GTK_ENUMS_H__
34 #include <glib-object.h>
43 GTK_ANCHOR_NORTH_WEST,
44 GTK_ANCHOR_NORTH_EAST,
46 GTK_ANCHOR_SOUTH_WEST,
47 GTK_ANCHOR_SOUTH_EAST,
50 GTK_ANCHOR_N = GTK_ANCHOR_NORTH,
51 GTK_ANCHOR_NW = GTK_ANCHOR_NORTH_WEST,
52 GTK_ANCHOR_NE = GTK_ANCHOR_NORTH_EAST,
53 GTK_ANCHOR_S = GTK_ANCHOR_SOUTH,
54 GTK_ANCHOR_SW = GTK_ANCHOR_SOUTH_WEST,
55 GTK_ANCHOR_SE = GTK_ANCHOR_SOUTH_EAST,
56 GTK_ANCHOR_W = GTK_ANCHOR_WEST,
57 GTK_ANCHOR_E = GTK_ANCHOR_EAST
70 /* Attach options (for tables) */
78 /* Button box styles */
81 GTK_BUTTONBOX_DEFAULT_STYLE,
92 GTK_CURVE_TYPE_LINEAR, /* linear interpolation */
93 GTK_CURVE_TYPE_SPLINE, /* spline interpolation */
94 GTK_CURVE_TYPE_FREE /* free form curve */
100 GTK_DELETE_WORD_ENDS, /* delete only the portion of the word to the
101 * left/right of cursor if we're in the middle
104 GTK_DELETE_DISPLAY_LINES,
105 GTK_DELETE_DISPLAY_LINE_ENDS,
106 GTK_DELETE_PARAGRAPH_ENDS, /* like C-k in Emacs (or its reverse) */
107 GTK_DELETE_PARAGRAPHS, /* C-k in pico, kill whole line */
108 GTK_DELETE_WHITESPACE /* M-\ in Emacs */
111 /* Focus movement types */
115 GTK_DIR_TAB_BACKWARD,
122 /* Expander styles */
125 GTK_EXPANDER_COLLAPSED,
126 GTK_EXPANDER_SEMI_COLLAPSED,
127 GTK_EXPANDER_SEMI_EXPANDED,
128 GTK_EXPANDER_EXPANDED
131 /* Built-in stock icon sizes */
134 GTK_ICON_SIZE_INVALID,
136 GTK_ICON_SIZE_SMALL_TOOLBAR,
137 GTK_ICON_SIZE_LARGE_TOOLBAR,
138 GTK_ICON_SIZE_BUTTON,
143 /* automatic sensitivity */
146 GTK_SENSITIVITY_AUTO,
149 } GtkSensitivityType;
151 #ifndef GTK_DISABLE_DEPRECATED
160 #endif /* GTK_DISABLE_DEPRECATED */
162 /* Reading directions for text */
170 /* justification for label and maybe other widgets (text?) */
179 #ifndef GTK_DISABLE_DEPRECATED
180 /* GtkPatternSpec match types */
183 GTK_MATCH_ALL, /* "*A?A*" */
184 GTK_MATCH_ALL_TAIL, /* "*A?AA" */
185 GTK_MATCH_HEAD, /* "AAAA*" */
186 GTK_MATCH_TAIL, /* "*AAAA" */
187 GTK_MATCH_EXACT, /* "AAAAA" */
190 #endif /* GTK_DISABLE_DEPRECATED */
192 /* Menu keyboard movement types */
199 } GtkMenuDirectionType;
210 GTK_MOVEMENT_LOGICAL_POSITIONS, /* move by forw/back graphemes */
211 GTK_MOVEMENT_VISUAL_POSITIONS, /* move by left/right graphemes */
212 GTK_MOVEMENT_WORDS, /* move by forward/back words */
213 GTK_MOVEMENT_DISPLAY_LINES, /* move up/down lines (wrapped lines) */
214 GTK_MOVEMENT_DISPLAY_LINE_ENDS, /* move up/down lines (wrapped lines) */
215 GTK_MOVEMENT_PARAGRAPHS, /* move up/down paragraphs (newline-ended lines) */
216 GTK_MOVEMENT_PARAGRAPH_ENDS, /* move to either end of a paragraph */
217 GTK_MOVEMENT_PAGES, /* move by pages */
218 GTK_MOVEMENT_BUFFER_ENDS, /* move to ends of the buffer */
219 GTK_MOVEMENT_HORIZONTAL_PAGES /* move horizontally by pages */
227 GTK_SCROLL_HORIZONTAL_STEPS,
228 GTK_SCROLL_HORIZONTAL_PAGES,
229 GTK_SCROLL_HORIZONTAL_ENDS
232 /* Orientation for toolbars, etc. */
235 GTK_ORIENTATION_HORIZONTAL,
236 GTK_ORIENTATION_VERTICAL
239 /* Placement type for scrolled window */
243 GTK_CORNER_BOTTOM_LEFT,
244 GTK_CORNER_TOP_RIGHT,
245 GTK_CORNER_BOTTOM_RIGHT
248 /* Packing types (for boxes) */
255 /* priorities for path lookups */
258 GTK_PATH_PRIO_LOWEST = 0,
259 GTK_PATH_PRIO_GTK = 4,
260 GTK_PATH_PRIO_APPLICATION = 8,
261 GTK_PATH_PRIO_THEME = 10,
262 GTK_PATH_PRIO_RC = 12,
263 GTK_PATH_PRIO_HIGHEST = 15
264 } GtkPathPriorityType;
265 #define GTK_PATH_PRIO_MASK 0x0f
267 /* widget path types */
271 GTK_PATH_WIDGET_CLASS,
275 /* Scrollbar policy types (for scrolled windows) */
279 GTK_POLICY_AUTOMATIC,
291 #ifndef GTK_DISABLE_DEPRECATED
295 GTK_PREVIEW_GRAYSCALE
297 #endif /* GTK_DISABLE_DEPRECATED */
299 /* Style for buttons */
310 GTK_RESIZE_PARENT, /* Pass resize request to the parent */
311 GTK_RESIZE_QUEUE, /* Queue resizes on this widget */
312 GTK_RESIZE_IMMEDIATE /* Perform the resizes now */
315 #ifndef GTK_DISABLE_DEPRECATED
316 /* signal run types */
317 typedef enum /*< flags >*/
319 GTK_RUN_FIRST = G_SIGNAL_RUN_FIRST,
320 GTK_RUN_LAST = G_SIGNAL_RUN_LAST,
321 GTK_RUN_BOTH = (GTK_RUN_FIRST | GTK_RUN_LAST),
322 GTK_RUN_NO_RECURSE = G_SIGNAL_NO_RECURSE,
323 GTK_RUN_ACTION = G_SIGNAL_ACTION,
324 GTK_RUN_NO_HOOKS = G_SIGNAL_NO_HOOKS
326 #endif /* GTK_DISABLE_DEPRECATED */
328 /* scrolling types */
333 GTK_SCROLL_STEP_BACKWARD,
334 GTK_SCROLL_STEP_FORWARD,
335 GTK_SCROLL_PAGE_BACKWARD,
336 GTK_SCROLL_PAGE_FORWARD,
338 GTK_SCROLL_STEP_DOWN,
340 GTK_SCROLL_PAGE_DOWN,
341 GTK_SCROLL_STEP_LEFT,
342 GTK_SCROLL_STEP_RIGHT,
343 GTK_SCROLL_PAGE_LEFT,
344 GTK_SCROLL_PAGE_RIGHT,
349 /* list selection modes */
352 GTK_SELECTION_NONE, /* Nothing can be selected */
353 GTK_SELECTION_SINGLE,
354 GTK_SELECTION_BROWSE,
355 GTK_SELECTION_MULTIPLE,
356 GTK_SELECTION_EXTENDED = GTK_SELECTION_MULTIPLE /* Deprecated */
365 GTK_SHADOW_ETCHED_IN,
366 GTK_SHADOW_ETCHED_OUT
376 GTK_STATE_INSENSITIVE
379 #if !defined(GTK_DISABLE_DEPRECATED) || defined (GTK_MENU_INTERNALS)
380 /* Directions for submenus */
385 } GtkSubmenuDirection;
387 /* Placement of submenus */
392 } GtkSubmenuPlacement;
393 #endif /* GTK_DISABLE_DEPRECATED */
395 /* Style for toolbars */
401 GTK_TOOLBAR_BOTH_HORIZ
404 /* Data update types (for ranges) */
407 GTK_UPDATE_CONTINUOUS,
408 GTK_UPDATE_DISCONTINUOUS,
412 /* Generic visibility flags */
416 GTK_VISIBILITY_PARTIAL,
420 /* Window position types */
426 GTK_WIN_POS_CENTER_ALWAYS,
427 GTK_WIN_POS_CENTER_ON_PARENT
453 /* Style for gtk input method preedit/status */
456 GTK_IM_PREEDIT_NOTHING,
457 GTK_IM_PREEDIT_CALLBACK,
463 GTK_IM_STATUS_NOTHING,
464 GTK_IM_STATUS_CALLBACK,
470 GTK_PACK_DIRECTION_LTR,
471 GTK_PACK_DIRECTION_RTL,
472 GTK_PACK_DIRECTION_TTB,
473 GTK_PACK_DIRECTION_BTT
479 GTK_PRINT_PAGES_CURRENT,
480 GTK_PRINT_PAGES_RANGES
492 GTK_PAGE_ORIENTATION_PORTRAIT,
493 GTK_PAGE_ORIENTATION_LANDSCAPE,
494 GTK_PAGE_ORIENTATION_REVERSE_PORTRAIT,
495 GTK_PAGE_ORIENTATION_REVERSE_LANDSCAPE
496 } GtkPageOrientation;
500 GTK_PRINT_QUALITY_LOW,
501 GTK_PRINT_QUALITY_NORMAL,
502 GTK_PRINT_QUALITY_HIGH,
503 GTK_PRINT_QUALITY_DRAFT
508 GTK_PRINT_DUPLEX_SIMPLEX,
509 GTK_PRINT_DUPLEX_HORIZONTAL,
510 GTK_PRINT_DUPLEX_VERTICAL
524 GTK_TREE_VIEW_GRID_LINES_NONE,
525 GTK_TREE_VIEW_GRID_LINES_HORIZONTAL,
526 GTK_TREE_VIEW_GRID_LINES_VERTICAL,
527 GTK_TREE_VIEW_GRID_LINES_BOTH
528 } GtkTreeViewGridLines;
532 GTK_DRAG_RESULT_SUCCESS,
533 GTK_DRAG_RESULT_NO_TARGET,
534 GTK_DRAG_RESULT_USER_CANCELLED,
535 GTK_DRAG_RESULT_TIMEOUT_EXPIRED,
536 GTK_DRAG_RESULT_GRAB_BROKEN,
537 GTK_DRAG_RESULT_ERROR
542 #endif /* __GTK_ENUMS_H__ */