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
66 /* Attach options (for tables) */
74 /* Button box styles */
77 GTK_BUTTONBOX_DEFAULT_STYLE,
88 GTK_CURVE_TYPE_LINEAR, /* linear interpolation */
89 GTK_CURVE_TYPE_SPLINE, /* spline interpolation */
90 GTK_CURVE_TYPE_FREE /* free form curve */
95 GTK_DELETE_WORD_ENDS, /* delete only the portion of the word to the
96 * left/right of cursor if we're in the middle
99 GTK_DELETE_DISPLAY_LINES,
100 GTK_DELETE_DISPLAY_LINE_ENDS,
101 GTK_DELETE_PARAGRAPH_ENDS, /* like C-k in Emacs (or its reverse) */
102 GTK_DELETE_PARAGRAPHS, /* C-k in pico, kill whole line */
103 GTK_DELETE_WHITESPACE /* M-\ in Emacs */
106 /* Focus movement types */
110 GTK_DIR_TAB_BACKWARD,
117 /* Expander styles */
120 GTK_EXPANDER_COLLAPSED,
121 GTK_EXPANDER_SEMI_COLLAPSED,
122 GTK_EXPANDER_SEMI_EXPANDED,
123 GTK_EXPANDER_EXPANDED
126 /* Built-in stock icon sizes */
129 GTK_ICON_SIZE_INVALID,
131 GTK_ICON_SIZE_SMALL_TOOLBAR,
132 GTK_ICON_SIZE_LARGE_TOOLBAR,
133 GTK_ICON_SIZE_BUTTON,
138 /* automatic sensitivity */
141 GTK_SENSITIVITY_AUTO,
144 } GtkSensitivityType;
146 #ifndef GTK_DISABLE_DEPRECATED
155 #endif /* GTK_DISABLE_DEPRECATED */
157 /* Reading directions for text */
165 /* justification for label and maybe other widgets (text?) */
174 #ifndef GTK_DISABLE_DEPRECATED
175 /* GtkPatternSpec match types */
178 GTK_MATCH_ALL, /* "*A?A*" */
179 GTK_MATCH_ALL_TAIL, /* "*A?AA" */
180 GTK_MATCH_HEAD, /* "AAAA*" */
181 GTK_MATCH_TAIL, /* "*AAAA" */
182 GTK_MATCH_EXACT, /* "AAAAA" */
185 #endif /* GTK_DISABLE_DEPRECATED */
187 /* Menu keyboard movement types */
194 } GtkMenuDirectionType;
205 GTK_MOVEMENT_LOGICAL_POSITIONS, /* move by forw/back graphemes */
206 GTK_MOVEMENT_VISUAL_POSITIONS, /* move by left/right graphemes */
207 GTK_MOVEMENT_WORDS, /* move by forward/back words */
208 GTK_MOVEMENT_DISPLAY_LINES, /* move up/down lines (wrapped lines) */
209 GTK_MOVEMENT_DISPLAY_LINE_ENDS, /* move up/down lines (wrapped lines) */
210 GTK_MOVEMENT_PARAGRAPHS, /* move up/down paragraphs (newline-ended lines) */
211 GTK_MOVEMENT_PARAGRAPH_ENDS, /* move to either end of a paragraph */
212 GTK_MOVEMENT_PAGES, /* move by pages */
213 GTK_MOVEMENT_BUFFER_ENDS, /* move to ends of the buffer */
214 GTK_MOVEMENT_HORIZONTAL_PAGES /* move horizontally by pages */
222 GTK_SCROLL_HORIZONTAL_STEPS,
223 GTK_SCROLL_HORIZONTAL_PAGES,
224 GTK_SCROLL_HORIZONTAL_ENDS
227 /* Orientation for toolbars, etc. */
230 GTK_ORIENTATION_HORIZONTAL,
231 GTK_ORIENTATION_VERTICAL
234 /* Placement type for scrolled window */
238 GTK_CORNER_BOTTOM_LEFT,
239 GTK_CORNER_TOP_RIGHT,
240 GTK_CORNER_BOTTOM_RIGHT
243 /* Packing types (for boxes) */
250 /* priorities for path lookups */
253 GTK_PATH_PRIO_LOWEST = 0,
254 GTK_PATH_PRIO_GTK = 4,
255 GTK_PATH_PRIO_APPLICATION = 8,
256 GTK_PATH_PRIO_THEME = 10,
257 GTK_PATH_PRIO_RC = 12,
258 GTK_PATH_PRIO_HIGHEST = 15
259 } GtkPathPriorityType;
260 #define GTK_PATH_PRIO_MASK 0x0f
262 /* widget path types */
266 GTK_PATH_WIDGET_CLASS,
270 /* Scrollbar policy types (for scrolled windows) */
274 GTK_POLICY_AUTOMATIC,
286 #ifndef GTK_DISABLE_DEPRECATED
290 GTK_PREVIEW_GRAYSCALE
292 #endif /* GTK_DISABLE_DEPRECATED */
294 /* Style for buttons */
305 GTK_RESIZE_PARENT, /* Pass resize request to the parent */
306 GTK_RESIZE_QUEUE, /* Queue resizes on this widget */
307 GTK_RESIZE_IMMEDIATE /* Perform the resizes now */
310 #ifndef GTK_DISABLE_DEPRECATED
311 /* signal run types */
312 typedef enum /*< flags >*/
314 GTK_RUN_FIRST = G_SIGNAL_RUN_FIRST,
315 GTK_RUN_LAST = G_SIGNAL_RUN_LAST,
316 GTK_RUN_BOTH = (GTK_RUN_FIRST | GTK_RUN_LAST),
317 GTK_RUN_NO_RECURSE = G_SIGNAL_NO_RECURSE,
318 GTK_RUN_ACTION = G_SIGNAL_ACTION,
319 GTK_RUN_NO_HOOKS = G_SIGNAL_NO_HOOKS
321 #endif /* GTK_DISABLE_DEPRECATED */
323 /* scrolling types */
328 GTK_SCROLL_STEP_BACKWARD,
329 GTK_SCROLL_STEP_FORWARD,
330 GTK_SCROLL_PAGE_BACKWARD,
331 GTK_SCROLL_PAGE_FORWARD,
333 GTK_SCROLL_STEP_DOWN,
335 GTK_SCROLL_PAGE_DOWN,
336 GTK_SCROLL_STEP_LEFT,
337 GTK_SCROLL_STEP_RIGHT,
338 GTK_SCROLL_PAGE_LEFT,
339 GTK_SCROLL_PAGE_RIGHT,
344 /* list selection modes */
347 GTK_SELECTION_NONE, /* Nothing can be selected */
348 GTK_SELECTION_SINGLE,
349 GTK_SELECTION_BROWSE,
350 GTK_SELECTION_MULTIPLE,
351 GTK_SELECTION_EXTENDED = GTK_SELECTION_MULTIPLE /* Deprecated */
360 GTK_SHADOW_ETCHED_IN,
361 GTK_SHADOW_ETCHED_OUT
371 GTK_STATE_INSENSITIVE
374 #if !defined(GTK_DISABLE_DEPRECATED) || defined (GTK_MENU_INTERNALS)
375 /* Directions for submenus */
380 } GtkSubmenuDirection;
382 /* Placement of submenus */
387 } GtkSubmenuPlacement;
388 #endif /* GTK_DISABLE_DEPRECATED */
390 /* Style for toolbars */
396 GTK_TOOLBAR_BOTH_HORIZ
399 /* Data update types (for ranges) */
402 GTK_UPDATE_CONTINUOUS,
403 GTK_UPDATE_DISCONTINUOUS,
407 /* Generic visibility flags */
411 GTK_VISIBILITY_PARTIAL,
415 /* Window position types */
421 GTK_WIN_POS_CENTER_ALWAYS,
422 GTK_WIN_POS_CENTER_ON_PARENT
448 /* Style for gtk input method preedit/status */
451 GTK_IM_PREEDIT_NOTHING,
452 GTK_IM_PREEDIT_CALLBACK,
458 GTK_IM_STATUS_NOTHING,
459 GTK_IM_STATUS_CALLBACK,
465 GTK_PACK_DIRECTION_LTR,
466 GTK_PACK_DIRECTION_RTL,
467 GTK_PACK_DIRECTION_TTB,
468 GTK_PACK_DIRECTION_BTT
473 GTK_PRINT_PAGES_CURRENT,
474 GTK_PRINT_PAGES_RANGES
484 GTK_PAGE_ORIENTATION_PORTRAIT,
485 GTK_PAGE_ORIENTATION_LANDSCAPE,
486 GTK_PAGE_ORIENTATION_REVERSE_PORTRAIT,
487 GTK_PAGE_ORIENTATION_REVERSE_LANDSCAPE
488 } GtkPageOrientation;
491 GTK_PRINT_QUALITY_LOW,
492 GTK_PRINT_QUALITY_NORMAL,
493 GTK_PRINT_QUALITY_HIGH,
494 GTK_PRINT_QUALITY_DRAFT
498 GTK_PRINT_DUPLEX_SIMPLEX,
499 GTK_PRINT_DUPLEX_HORIZONTAL,
500 GTK_PRINT_DUPLEX_VERTICAL
512 GTK_TREE_VIEW_GRID_LINES_NONE,
513 GTK_TREE_VIEW_GRID_LINES_HORIZONTAL,
514 GTK_TREE_VIEW_GRID_LINES_VERTICAL,
515 GTK_TREE_VIEW_GRID_LINES_BOTH
516 } GtkTreeViewGridLines;
519 GTK_DRAG_RESULT_SUCCESS,
520 GTK_DRAG_RESULT_NO_TARGET,
521 GTK_DRAG_RESULT_USER_CANCELLED,
522 GTK_DRAG_RESULT_TIMEOUT_EXPIRED,
523 GTK_DRAG_RESULT_GRAB_BROKEN,
524 GTK_DRAG_RESULT_ERROR
529 #endif /* __GTK_ENUMS_H__ */