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;
215 GTK_MESSAGE_QUESTION,
229 GTK_MOVEMENT_LOGICAL_POSITIONS, /* move by forw/back graphemes */
230 GTK_MOVEMENT_VISUAL_POSITIONS, /* move by left/right graphemes */
231 GTK_MOVEMENT_WORDS, /* move by forward/back words */
232 GTK_MOVEMENT_DISPLAY_LINES, /* move up/down lines (wrapped lines) */
233 GTK_MOVEMENT_DISPLAY_LINE_ENDS, /* move to either end of a line */
234 GTK_MOVEMENT_PARAGRAPHS, /* move up/down paragraphs (newline-ended lines) */
235 GTK_MOVEMENT_PARAGRAPH_ENDS, /* move to either end of a paragraph */
236 GTK_MOVEMENT_PAGES, /* move by pages */
237 GTK_MOVEMENT_BUFFER_ENDS, /* move to ends of the buffer */
238 GTK_MOVEMENT_HORIZONTAL_PAGES /* move horizontally by pages */
246 GTK_SCROLL_HORIZONTAL_STEPS,
247 GTK_SCROLL_HORIZONTAL_PAGES,
248 GTK_SCROLL_HORIZONTAL_ENDS
251 /* Orientation for toolbars, etc. */
254 GTK_ORIENTATION_HORIZONTAL,
255 GTK_ORIENTATION_VERTICAL
258 /* Placement type for scrolled window */
262 GTK_CORNER_BOTTOM_LEFT,
263 GTK_CORNER_TOP_RIGHT,
264 GTK_CORNER_BOTTOM_RIGHT
267 /* Packing types (for boxes) */
274 /* priorities for path lookups */
277 GTK_PATH_PRIO_LOWEST = 0,
278 GTK_PATH_PRIO_GTK = 4,
279 GTK_PATH_PRIO_APPLICATION = 8,
280 GTK_PATH_PRIO_THEME = 10,
281 GTK_PATH_PRIO_RC = 12,
282 GTK_PATH_PRIO_HIGHEST = 15
283 } GtkPathPriorityType;
284 #define GTK_PATH_PRIO_MASK 0x0f
286 /* widget path types */
290 GTK_PATH_WIDGET_CLASS,
294 /* Scrollbar policy types (for scrolled windows) */
298 GTK_POLICY_AUTOMATIC,
310 #ifndef GTK_DISABLE_DEPRECATED
314 GTK_PREVIEW_GRAYSCALE
316 #endif /* GTK_DISABLE_DEPRECATED */
318 /* Style for buttons */
329 GTK_RESIZE_PARENT, /* Pass resize request to the parent */
330 GTK_RESIZE_QUEUE, /* Queue resizes on this widget */
331 GTK_RESIZE_IMMEDIATE /* Perform the resizes now */
334 #ifndef GTK_DISABLE_DEPRECATED
335 /* signal run types */
336 typedef enum /*< flags >*/
338 GTK_RUN_FIRST = G_SIGNAL_RUN_FIRST,
339 GTK_RUN_LAST = G_SIGNAL_RUN_LAST,
340 GTK_RUN_BOTH = (GTK_RUN_FIRST | GTK_RUN_LAST),
341 GTK_RUN_NO_RECURSE = G_SIGNAL_NO_RECURSE,
342 GTK_RUN_ACTION = G_SIGNAL_ACTION,
343 GTK_RUN_NO_HOOKS = G_SIGNAL_NO_HOOKS
345 #endif /* GTK_DISABLE_DEPRECATED */
347 /* scrolling types */
352 GTK_SCROLL_STEP_BACKWARD,
353 GTK_SCROLL_STEP_FORWARD,
354 GTK_SCROLL_PAGE_BACKWARD,
355 GTK_SCROLL_PAGE_FORWARD,
357 GTK_SCROLL_STEP_DOWN,
359 GTK_SCROLL_PAGE_DOWN,
360 GTK_SCROLL_STEP_LEFT,
361 GTK_SCROLL_STEP_RIGHT,
362 GTK_SCROLL_PAGE_LEFT,
363 GTK_SCROLL_PAGE_RIGHT,
368 /* list selection modes */
371 GTK_SELECTION_NONE, /* Nothing can be selected */
372 GTK_SELECTION_SINGLE,
373 GTK_SELECTION_BROWSE,
374 GTK_SELECTION_MULTIPLE,
375 GTK_SELECTION_EXTENDED = GTK_SELECTION_MULTIPLE /* Deprecated */
384 GTK_SHADOW_ETCHED_IN,
385 GTK_SHADOW_ETCHED_OUT
395 GTK_STATE_INSENSITIVE
398 #if !defined(GTK_DISABLE_DEPRECATED) || defined (GTK_MENU_INTERNALS)
399 /* Directions for submenus */
404 } GtkSubmenuDirection;
406 /* Placement of submenus */
411 } GtkSubmenuPlacement;
412 #endif /* GTK_DISABLE_DEPRECATED */
414 /* Style for toolbars */
420 GTK_TOOLBAR_BOTH_HORIZ
423 /* Data update types (for ranges) */
426 GTK_UPDATE_CONTINUOUS,
427 GTK_UPDATE_DISCONTINUOUS,
431 /* Generic visibility flags */
435 GTK_VISIBILITY_PARTIAL,
439 /* Window position types */
445 GTK_WIN_POS_CENTER_ALWAYS,
446 GTK_WIN_POS_CENTER_ON_PARENT
472 /* Style for gtk input method preedit/status */
475 GTK_IM_PREEDIT_NOTHING,
476 GTK_IM_PREEDIT_CALLBACK,
482 GTK_IM_STATUS_NOTHING,
483 GTK_IM_STATUS_CALLBACK,
489 GTK_PACK_DIRECTION_LTR,
490 GTK_PACK_DIRECTION_RTL,
491 GTK_PACK_DIRECTION_TTB,
492 GTK_PACK_DIRECTION_BTT
498 GTK_PRINT_PAGES_CURRENT,
499 GTK_PRINT_PAGES_RANGES,
500 GTK_PRINT_PAGES_SELECTION
512 GTK_NUMBER_UP_LAYOUT_LEFT_TO_RIGHT_TOP_TO_BOTTOM, /*< nick=lrtb >*/
513 GTK_NUMBER_UP_LAYOUT_LEFT_TO_RIGHT_BOTTOM_TO_TOP, /*< nick=lrbt >*/
514 GTK_NUMBER_UP_LAYOUT_RIGHT_TO_LEFT_TOP_TO_BOTTOM, /*< nick=rltb >*/
515 GTK_NUMBER_UP_LAYOUT_RIGHT_TO_LEFT_BOTTOM_TO_TOP, /*< nick=rlbt >*/
516 GTK_NUMBER_UP_LAYOUT_TOP_TO_BOTTOM_LEFT_TO_RIGHT, /*< nick=tblr >*/
517 GTK_NUMBER_UP_LAYOUT_TOP_TO_BOTTOM_RIGHT_TO_LEFT, /*< nick=tbrl >*/
518 GTK_NUMBER_UP_LAYOUT_BOTTOM_TO_TOP_LEFT_TO_RIGHT, /*< nick=btlr >*/
519 GTK_NUMBER_UP_LAYOUT_BOTTOM_TO_TOP_RIGHT_TO_LEFT /*< nick=btrl >*/
524 GTK_PAGE_ORIENTATION_PORTRAIT,
525 GTK_PAGE_ORIENTATION_LANDSCAPE,
526 GTK_PAGE_ORIENTATION_REVERSE_PORTRAIT,
527 GTK_PAGE_ORIENTATION_REVERSE_LANDSCAPE
528 } GtkPageOrientation;
532 GTK_PRINT_QUALITY_LOW,
533 GTK_PRINT_QUALITY_NORMAL,
534 GTK_PRINT_QUALITY_HIGH,
535 GTK_PRINT_QUALITY_DRAFT
540 GTK_PRINT_DUPLEX_SIMPLEX,
541 GTK_PRINT_DUPLEX_HORIZONTAL,
542 GTK_PRINT_DUPLEX_VERTICAL
556 GTK_TREE_VIEW_GRID_LINES_NONE,
557 GTK_TREE_VIEW_GRID_LINES_HORIZONTAL,
558 GTK_TREE_VIEW_GRID_LINES_VERTICAL,
559 GTK_TREE_VIEW_GRID_LINES_BOTH
560 } GtkTreeViewGridLines;
564 GTK_DRAG_RESULT_SUCCESS,
565 GTK_DRAG_RESULT_NO_TARGET,
566 GTK_DRAG_RESULT_USER_CANCELLED,
567 GTK_DRAG_RESULT_TIMEOUT_EXPIRED,
568 GTK_DRAG_RESULT_GRAB_BROKEN,
569 GTK_DRAG_RESULT_ERROR
574 #endif /* __GTK_ENUMS_H__ */