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_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,
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,
144 * GtkSensitivityType:
145 * @GTK_SENSITIVITY_AUTO: The arrow is made insensitive if the
146 * thumb is at the end
147 * @GTK_SENSITIVITY_ON: The arrow is always sensitive
148 * @GTK_SENSITIVITY_OFF: The arrow is always insensitive
150 * Determines how GTK+ handles the sensitivity of stepper arrows
151 * at the end of range widgets.
155 GTK_SENSITIVITY_AUTO,
158 } GtkSensitivityType;
160 /* Reading directions for text */
168 /* justification for label and maybe other widgets (text?) */
177 /* Menu keyboard movement types */
184 } GtkMenuDirectionType;
188 * @GTK_MESSAGE_INFO: Informational message
189 * @GTK_MESSAGE_WARNING: Nonfatal warning message
190 * @GTK_MESSAGE_QUESTION: Question requiring a choice
191 * @GTK_MESSAGE_ERROR: Fatal error message
192 * @GTK_MESSAGE_OTHER: None of the above, doesn't get an icon
194 * The type of message being displayed in the dialog.
200 GTK_MESSAGE_QUESTION,
214 GTK_MOVEMENT_LOGICAL_POSITIONS, /* move by forw/back graphemes */
215 GTK_MOVEMENT_VISUAL_POSITIONS, /* move by left/right graphemes */
216 GTK_MOVEMENT_WORDS, /* move by forward/back words */
217 GTK_MOVEMENT_DISPLAY_LINES, /* move up/down lines (wrapped lines) */
218 GTK_MOVEMENT_DISPLAY_LINE_ENDS, /* move to either end of a line */
219 GTK_MOVEMENT_PARAGRAPHS, /* move up/down paragraphs (newline-ended lines) */
220 GTK_MOVEMENT_PARAGRAPH_ENDS, /* move to either end of a paragraph */
221 GTK_MOVEMENT_PAGES, /* move by pages */
222 GTK_MOVEMENT_BUFFER_ENDS, /* move to ends of the buffer */
223 GTK_MOVEMENT_HORIZONTAL_PAGES /* move horizontally by pages */
231 GTK_SCROLL_HORIZONTAL_STEPS,
232 GTK_SCROLL_HORIZONTAL_PAGES,
233 GTK_SCROLL_HORIZONTAL_ENDS
236 /* Orientation for toolbars, etc. */
239 GTK_ORIENTATION_HORIZONTAL,
240 GTK_ORIENTATION_VERTICAL
243 /* Placement type for scrolled window */
247 GTK_CORNER_BOTTOM_LEFT,
248 GTK_CORNER_TOP_RIGHT,
249 GTK_CORNER_BOTTOM_RIGHT
252 /* Packing types (for boxes) */
259 /* priorities for path lookups */
262 GTK_PATH_PRIO_LOWEST = 0,
263 GTK_PATH_PRIO_GTK = 4,
264 GTK_PATH_PRIO_APPLICATION = 8,
265 GTK_PATH_PRIO_THEME = 10,
266 GTK_PATH_PRIO_RC = 12,
267 GTK_PATH_PRIO_HIGHEST = 15
268 } GtkPathPriorityType;
269 #define GTK_PATH_PRIO_MASK 0x0f
271 /* widget path types */
275 GTK_PATH_WIDGET_CLASS,
279 /* Scrollbar policy types (for scrolled windows) */
283 GTK_POLICY_AUTOMATIC,
295 /* Style for buttons */
306 GTK_RESIZE_PARENT, /* Pass resize request to the parent */
307 GTK_RESIZE_QUEUE, /* Queue resizes on this widget */
308 GTK_RESIZE_IMMEDIATE /* Perform the resizes now */
311 /* scrolling types */
316 GTK_SCROLL_STEP_BACKWARD,
317 GTK_SCROLL_STEP_FORWARD,
318 GTK_SCROLL_PAGE_BACKWARD,
319 GTK_SCROLL_PAGE_FORWARD,
321 GTK_SCROLL_STEP_DOWN,
323 GTK_SCROLL_PAGE_DOWN,
324 GTK_SCROLL_STEP_LEFT,
325 GTK_SCROLL_STEP_RIGHT,
326 GTK_SCROLL_PAGE_LEFT,
327 GTK_SCROLL_PAGE_RIGHT,
332 /* list selection modes */
335 GTK_SELECTION_NONE, /* Nothing can be selected */
336 GTK_SELECTION_SINGLE,
337 GTK_SELECTION_BROWSE,
338 GTK_SELECTION_MULTIPLE,
339 GTK_SELECTION_EXTENDED = GTK_SELECTION_MULTIPLE /* Deprecated */
348 GTK_SHADOW_ETCHED_IN,
349 GTK_SHADOW_ETCHED_OUT
359 GTK_STATE_INSENSITIVE
362 #if !defined(GTK_DISABLE_DEPRECATED) || defined (GTK_MENU_INTERNALS)
363 /* Directions for submenus */
368 } GtkSubmenuDirection;
370 /* Placement of submenus */
375 } GtkSubmenuPlacement;
376 #endif /* GTK_DISABLE_DEPRECATED */
378 /* Style for toolbars */
384 GTK_TOOLBAR_BOTH_HORIZ
387 /* Data update types (for ranges) */
390 GTK_UPDATE_CONTINUOUS,
391 GTK_UPDATE_DISCONTINUOUS,
395 /* Generic visibility flags */
399 GTK_VISIBILITY_PARTIAL,
403 /* Window position types */
409 GTK_WIN_POS_CENTER_ALWAYS,
410 GTK_WIN_POS_CENTER_ON_PARENT
436 /* Style for gtk input method preedit/status */
439 GTK_IM_PREEDIT_NOTHING,
440 GTK_IM_PREEDIT_CALLBACK,
446 GTK_IM_STATUS_NOTHING,
447 GTK_IM_STATUS_CALLBACK,
453 GTK_PACK_DIRECTION_LTR,
454 GTK_PACK_DIRECTION_RTL,
455 GTK_PACK_DIRECTION_TTB,
456 GTK_PACK_DIRECTION_BTT
462 GTK_PRINT_PAGES_CURRENT,
463 GTK_PRINT_PAGES_RANGES,
464 GTK_PRINT_PAGES_SELECTION
476 GTK_NUMBER_UP_LAYOUT_LEFT_TO_RIGHT_TOP_TO_BOTTOM, /*< nick=lrtb >*/
477 GTK_NUMBER_UP_LAYOUT_LEFT_TO_RIGHT_BOTTOM_TO_TOP, /*< nick=lrbt >*/
478 GTK_NUMBER_UP_LAYOUT_RIGHT_TO_LEFT_TOP_TO_BOTTOM, /*< nick=rltb >*/
479 GTK_NUMBER_UP_LAYOUT_RIGHT_TO_LEFT_BOTTOM_TO_TOP, /*< nick=rlbt >*/
480 GTK_NUMBER_UP_LAYOUT_TOP_TO_BOTTOM_LEFT_TO_RIGHT, /*< nick=tblr >*/
481 GTK_NUMBER_UP_LAYOUT_TOP_TO_BOTTOM_RIGHT_TO_LEFT, /*< nick=tbrl >*/
482 GTK_NUMBER_UP_LAYOUT_BOTTOM_TO_TOP_LEFT_TO_RIGHT, /*< nick=btlr >*/
483 GTK_NUMBER_UP_LAYOUT_BOTTOM_TO_TOP_RIGHT_TO_LEFT /*< nick=btrl >*/
488 GTK_PAGE_ORIENTATION_PORTRAIT,
489 GTK_PAGE_ORIENTATION_LANDSCAPE,
490 GTK_PAGE_ORIENTATION_REVERSE_PORTRAIT,
491 GTK_PAGE_ORIENTATION_REVERSE_LANDSCAPE
492 } GtkPageOrientation;
496 GTK_PRINT_QUALITY_LOW,
497 GTK_PRINT_QUALITY_NORMAL,
498 GTK_PRINT_QUALITY_HIGH,
499 GTK_PRINT_QUALITY_DRAFT
504 GTK_PRINT_DUPLEX_SIMPLEX,
505 GTK_PRINT_DUPLEX_HORIZONTAL,
506 GTK_PRINT_DUPLEX_VERTICAL
520 GTK_TREE_VIEW_GRID_LINES_NONE,
521 GTK_TREE_VIEW_GRID_LINES_HORIZONTAL,
522 GTK_TREE_VIEW_GRID_LINES_VERTICAL,
523 GTK_TREE_VIEW_GRID_LINES_BOTH
524 } GtkTreeViewGridLines;
528 GTK_DRAG_RESULT_SUCCESS,
529 GTK_DRAG_RESULT_NO_TARGET,
530 GTK_DRAG_RESULT_USER_CANCELLED,
531 GTK_DRAG_RESULT_TIMEOUT_EXPIRED,
532 GTK_DRAG_RESULT_GRAB_BROKEN,
533 GTK_DRAG_RESULT_ERROR
538 #endif /* __GTK_ENUMS_H__ */