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 #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
78 /* Attach options (for tables) */
86 /* Button box styles */
89 GTK_BUTTONBOX_DEFAULT_STYLE,
97 #ifndef GTK_DISABLE_DEPRECATED
101 GTK_CURVE_TYPE_LINEAR, /* linear interpolation */
102 GTK_CURVE_TYPE_SPLINE, /* spline interpolation */
103 GTK_CURVE_TYPE_FREE /* free form curve */
110 GTK_DELETE_WORD_ENDS, /* delete only the portion of the word to the
111 * left/right of cursor if we're in the middle
114 GTK_DELETE_DISPLAY_LINES,
115 GTK_DELETE_DISPLAY_LINE_ENDS,
116 GTK_DELETE_PARAGRAPH_ENDS, /* like C-k in Emacs (or its reverse) */
117 GTK_DELETE_PARAGRAPHS, /* C-k in pico, kill whole line */
118 GTK_DELETE_WHITESPACE /* M-\ in Emacs */
121 /* Focus movement types */
125 GTK_DIR_TAB_BACKWARD,
132 /* Expander styles */
135 GTK_EXPANDER_COLLAPSED,
136 GTK_EXPANDER_SEMI_COLLAPSED,
137 GTK_EXPANDER_SEMI_EXPANDED,
138 GTK_EXPANDER_EXPANDED
141 /* Built-in stock icon sizes */
144 GTK_ICON_SIZE_INVALID,
146 GTK_ICON_SIZE_SMALL_TOOLBAR,
147 GTK_ICON_SIZE_LARGE_TOOLBAR,
148 GTK_ICON_SIZE_BUTTON,
153 /* automatic sensitivity */
156 GTK_SENSITIVITY_AUTO,
159 } GtkSensitivityType;
161 #ifndef GTK_DISABLE_DEPRECATED
170 #endif /* GTK_DISABLE_DEPRECATED */
172 /* Reading directions for text */
180 /* justification for label and maybe other widgets (text?) */
189 #ifndef GTK_DISABLE_DEPRECATED
190 /* GtkPatternSpec match types */
193 GTK_MATCH_ALL, /* "*A?A*" */
194 GTK_MATCH_ALL_TAIL, /* "*A?AA" */
195 GTK_MATCH_HEAD, /* "AAAA*" */
196 GTK_MATCH_TAIL, /* "*AAAA" */
197 GTK_MATCH_EXACT, /* "AAAAA" */
200 #endif /* GTK_DISABLE_DEPRECATED */
202 /* Menu keyboard movement types */
209 } GtkMenuDirectionType;
213 * @GTK_MESSAGE_INFO: Informational message
214 * @GTK_MESSAGE_WARNING: Nonfatal warning message
215 * @GTK_MESSAGE_QUESTION: Question requiring a choice
216 * @GTK_MESSAGE_ERROR: Fatal error message
217 * @GTK_MESSAGE_OTHER: None of the above, doesn't get an icon
219 * The type of message being displayed in the dialog.
225 GTK_MESSAGE_QUESTION,
239 GTK_MOVEMENT_LOGICAL_POSITIONS, /* move by forw/back graphemes */
240 GTK_MOVEMENT_VISUAL_POSITIONS, /* move by left/right graphemes */
241 GTK_MOVEMENT_WORDS, /* move by forward/back words */
242 GTK_MOVEMENT_DISPLAY_LINES, /* move up/down lines (wrapped lines) */
243 GTK_MOVEMENT_DISPLAY_LINE_ENDS, /* move to either end of a line */
244 GTK_MOVEMENT_PARAGRAPHS, /* move up/down paragraphs (newline-ended lines) */
245 GTK_MOVEMENT_PARAGRAPH_ENDS, /* move to either end of a paragraph */
246 GTK_MOVEMENT_PAGES, /* move by pages */
247 GTK_MOVEMENT_BUFFER_ENDS, /* move to ends of the buffer */
248 GTK_MOVEMENT_HORIZONTAL_PAGES /* move horizontally by pages */
256 GTK_SCROLL_HORIZONTAL_STEPS,
257 GTK_SCROLL_HORIZONTAL_PAGES,
258 GTK_SCROLL_HORIZONTAL_ENDS
261 /* Orientation for toolbars, etc. */
264 GTK_ORIENTATION_HORIZONTAL,
265 GTK_ORIENTATION_VERTICAL
268 /* Placement type for scrolled window */
272 GTK_CORNER_BOTTOM_LEFT,
273 GTK_CORNER_TOP_RIGHT,
274 GTK_CORNER_BOTTOM_RIGHT
277 /* Packing types (for boxes) */
284 /* priorities for path lookups */
287 GTK_PATH_PRIO_LOWEST = 0,
288 GTK_PATH_PRIO_GTK = 4,
289 GTK_PATH_PRIO_APPLICATION = 8,
290 GTK_PATH_PRIO_THEME = 10,
291 GTK_PATH_PRIO_RC = 12,
292 GTK_PATH_PRIO_HIGHEST = 15
293 } GtkPathPriorityType;
294 #define GTK_PATH_PRIO_MASK 0x0f
296 /* widget path types */
300 GTK_PATH_WIDGET_CLASS,
304 /* Scrollbar policy types (for scrolled windows) */
308 GTK_POLICY_AUTOMATIC,
320 #ifndef GTK_DISABLE_DEPRECATED
324 GTK_PREVIEW_GRAYSCALE
326 #endif /* GTK_DISABLE_DEPRECATED */
328 /* Style for buttons */
339 GTK_RESIZE_PARENT, /* Pass resize request to the parent */
340 GTK_RESIZE_QUEUE, /* Queue resizes on this widget */
341 GTK_RESIZE_IMMEDIATE /* Perform the resizes now */
344 #ifndef GTK_DISABLE_DEPRECATED
345 /* signal run types */
346 typedef enum /*< flags >*/
348 GTK_RUN_FIRST = G_SIGNAL_RUN_FIRST,
349 GTK_RUN_LAST = G_SIGNAL_RUN_LAST,
350 GTK_RUN_BOTH = (GTK_RUN_FIRST | GTK_RUN_LAST),
351 GTK_RUN_NO_RECURSE = G_SIGNAL_NO_RECURSE,
352 GTK_RUN_ACTION = G_SIGNAL_ACTION,
353 GTK_RUN_NO_HOOKS = G_SIGNAL_NO_HOOKS
355 #endif /* GTK_DISABLE_DEPRECATED */
357 /* scrolling types */
362 GTK_SCROLL_STEP_BACKWARD,
363 GTK_SCROLL_STEP_FORWARD,
364 GTK_SCROLL_PAGE_BACKWARD,
365 GTK_SCROLL_PAGE_FORWARD,
367 GTK_SCROLL_STEP_DOWN,
369 GTK_SCROLL_PAGE_DOWN,
370 GTK_SCROLL_STEP_LEFT,
371 GTK_SCROLL_STEP_RIGHT,
372 GTK_SCROLL_PAGE_LEFT,
373 GTK_SCROLL_PAGE_RIGHT,
378 /* list selection modes */
381 GTK_SELECTION_NONE, /* Nothing can be selected */
382 GTK_SELECTION_SINGLE,
383 GTK_SELECTION_BROWSE,
384 GTK_SELECTION_MULTIPLE,
385 GTK_SELECTION_EXTENDED = GTK_SELECTION_MULTIPLE /* Deprecated */
394 GTK_SHADOW_ETCHED_IN,
395 GTK_SHADOW_ETCHED_OUT
405 GTK_STATE_INSENSITIVE
408 #if !defined(GTK_DISABLE_DEPRECATED) || defined (GTK_MENU_INTERNALS)
409 /* Directions for submenus */
414 } GtkSubmenuDirection;
416 /* Placement of submenus */
421 } GtkSubmenuPlacement;
422 #endif /* GTK_DISABLE_DEPRECATED */
424 /* Style for toolbars */
430 GTK_TOOLBAR_BOTH_HORIZ
433 /* Data update types (for ranges) */
436 GTK_UPDATE_CONTINUOUS,
437 GTK_UPDATE_DISCONTINUOUS,
441 /* Generic visibility flags */
445 GTK_VISIBILITY_PARTIAL,
449 /* Window position types */
455 GTK_WIN_POS_CENTER_ALWAYS,
456 GTK_WIN_POS_CENTER_ON_PARENT
482 /* Style for gtk input method preedit/status */
485 GTK_IM_PREEDIT_NOTHING,
486 GTK_IM_PREEDIT_CALLBACK,
492 GTK_IM_STATUS_NOTHING,
493 GTK_IM_STATUS_CALLBACK,
499 GTK_PACK_DIRECTION_LTR,
500 GTK_PACK_DIRECTION_RTL,
501 GTK_PACK_DIRECTION_TTB,
502 GTK_PACK_DIRECTION_BTT
508 GTK_PRINT_PAGES_CURRENT,
509 GTK_PRINT_PAGES_RANGES,
510 GTK_PRINT_PAGES_SELECTION
522 GTK_NUMBER_UP_LAYOUT_LEFT_TO_RIGHT_TOP_TO_BOTTOM, /*< nick=lrtb >*/
523 GTK_NUMBER_UP_LAYOUT_LEFT_TO_RIGHT_BOTTOM_TO_TOP, /*< nick=lrbt >*/
524 GTK_NUMBER_UP_LAYOUT_RIGHT_TO_LEFT_TOP_TO_BOTTOM, /*< nick=rltb >*/
525 GTK_NUMBER_UP_LAYOUT_RIGHT_TO_LEFT_BOTTOM_TO_TOP, /*< nick=rlbt >*/
526 GTK_NUMBER_UP_LAYOUT_TOP_TO_BOTTOM_LEFT_TO_RIGHT, /*< nick=tblr >*/
527 GTK_NUMBER_UP_LAYOUT_TOP_TO_BOTTOM_RIGHT_TO_LEFT, /*< nick=tbrl >*/
528 GTK_NUMBER_UP_LAYOUT_BOTTOM_TO_TOP_LEFT_TO_RIGHT, /*< nick=btlr >*/
529 GTK_NUMBER_UP_LAYOUT_BOTTOM_TO_TOP_RIGHT_TO_LEFT /*< nick=btrl >*/
534 GTK_PAGE_ORIENTATION_PORTRAIT,
535 GTK_PAGE_ORIENTATION_LANDSCAPE,
536 GTK_PAGE_ORIENTATION_REVERSE_PORTRAIT,
537 GTK_PAGE_ORIENTATION_REVERSE_LANDSCAPE
538 } GtkPageOrientation;
542 GTK_PRINT_QUALITY_LOW,
543 GTK_PRINT_QUALITY_NORMAL,
544 GTK_PRINT_QUALITY_HIGH,
545 GTK_PRINT_QUALITY_DRAFT
550 GTK_PRINT_DUPLEX_SIMPLEX,
551 GTK_PRINT_DUPLEX_HORIZONTAL,
552 GTK_PRINT_DUPLEX_VERTICAL
566 GTK_TREE_VIEW_GRID_LINES_NONE,
567 GTK_TREE_VIEW_GRID_LINES_HORIZONTAL,
568 GTK_TREE_VIEW_GRID_LINES_VERTICAL,
569 GTK_TREE_VIEW_GRID_LINES_BOTH
570 } GtkTreeViewGridLines;
574 GTK_DRAG_RESULT_SUCCESS,
575 GTK_DRAG_RESULT_NO_TARGET,
576 GTK_DRAG_RESULT_USER_CANCELLED,
577 GTK_DRAG_RESULT_TIMEOUT_EXPIRED,
578 GTK_DRAG_RESULT_GRAB_BROKEN,
579 GTK_DRAG_RESULT_ERROR
584 #endif /* __GTK_ENUMS_H__ */