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>
40 * @GTK_ALIGN_FILL: stretch to fill all space if possible, center if
41 * no meaningful way to stretch
42 * @GTK_ALIGN_START: snap to left or top side, leaving space on right
44 * @GTK_ALIGN_END: snap to right or bottom side, leaving space on left
46 * @GTK_ALIGN_CENTER: center natural width of widget inside the
49 * Controls how a widget deals with extra space in a single (x or y)
52 * Alignment only matters if the widget receives a "too large" allocation,
53 * for example if you packed the widget with the #GtkWidget:expand
54 * flag inside a #GtkBox, then the widget might get extra space. If
55 * you have for example a 16x16 icon inside a 32x32 space, the icon
56 * could be scaled and stretched, it could be centered, or it could be
57 * positioned to one side of the space.
85 /* Attach options (for tables) */
93 /* Button box styles */
96 GTK_BUTTONBOX_SPREAD = 1,
106 GTK_DELETE_WORD_ENDS, /* delete only the portion of the word to the
107 * left/right of cursor if we're in the middle
110 GTK_DELETE_DISPLAY_LINES,
111 GTK_DELETE_DISPLAY_LINE_ENDS,
112 GTK_DELETE_PARAGRAPH_ENDS, /* like C-k in Emacs (or its reverse) */
113 GTK_DELETE_PARAGRAPHS, /* C-k in pico, kill whole line */
114 GTK_DELETE_WHITESPACE /* M-\ in Emacs */
117 /* Focus movement types */
121 GTK_DIR_TAB_BACKWARD,
128 /* Expander styles */
131 GTK_EXPANDER_COLLAPSED,
132 GTK_EXPANDER_SEMI_COLLAPSED,
133 GTK_EXPANDER_SEMI_EXPANDED,
134 GTK_EXPANDER_EXPANDED
137 /* Built-in stock icon sizes */
140 GTK_ICON_SIZE_INVALID,
142 GTK_ICON_SIZE_SMALL_TOOLBAR,
143 GTK_ICON_SIZE_LARGE_TOOLBAR,
144 GTK_ICON_SIZE_BUTTON,
150 * GtkSensitivityType:
151 * @GTK_SENSITIVITY_AUTO: The arrow is made insensitive if the
152 * thumb is at the end
153 * @GTK_SENSITIVITY_ON: The arrow is always sensitive
154 * @GTK_SENSITIVITY_OFF: The arrow is always insensitive
156 * Determines how GTK+ handles the sensitivity of stepper arrows
157 * at the end of range widgets.
161 GTK_SENSITIVITY_AUTO,
164 } GtkSensitivityType;
166 /* Reading directions for text */
174 /* justification for label and maybe other widgets (text?) */
183 /* Menu keyboard movement types */
190 } GtkMenuDirectionType;
194 * @GTK_MESSAGE_INFO: Informational message
195 * @GTK_MESSAGE_WARNING: Nonfatal warning message
196 * @GTK_MESSAGE_QUESTION: Question requiring a choice
197 * @GTK_MESSAGE_ERROR: Fatal error message
198 * @GTK_MESSAGE_OTHER: None of the above, doesn't get an icon
200 * The type of message being displayed in the dialog.
206 GTK_MESSAGE_QUESTION,
213 * @GTK_MOVEMENT_LOGICAL_POSITIONS: Move forward or back by graphemes
214 * @GTK_MOVEMENT_VISUAL_POSITIONS: Move left or right by graphemes
215 * @GTK_MOVEMENT_WORDS: Move forward or back by words
216 * @GTK_MOVEMENT_DISPLAY_LINES: Move up or down lines (wrapped lines)
217 * @GTK_MOVEMENT_DISPLAY_LINE_ENDS: Move to either end of a line
218 * @GTK_MOVEMENT_PARAGRAPHS: Move up or down paragraphs (newline-ended lines)
219 * @GTK_MOVEMENT_PARAGRAPH_ENDS: Move to either end of a paragraph
220 * @GTK_MOVEMENT_PAGES: Move by pages
221 * @GTK_MOVEMENT_BUFFER_ENDS: Move to ends of the buffer
222 * @GTK_MOVEMENT_HORIZONTAL_PAGES: Move horizontally by pages
226 GTK_MOVEMENT_LOGICAL_POSITIONS,
227 GTK_MOVEMENT_VISUAL_POSITIONS,
229 GTK_MOVEMENT_DISPLAY_LINES,
230 GTK_MOVEMENT_DISPLAY_LINE_ENDS,
231 GTK_MOVEMENT_PARAGRAPHS,
232 GTK_MOVEMENT_PARAGRAPH_ENDS,
234 GTK_MOVEMENT_BUFFER_ENDS,
235 GTK_MOVEMENT_HORIZONTAL_PAGES
243 GTK_SCROLL_HORIZONTAL_STEPS,
244 GTK_SCROLL_HORIZONTAL_PAGES,
245 GTK_SCROLL_HORIZONTAL_ENDS
248 /* Orientation for toolbars, etc. */
251 GTK_ORIENTATION_HORIZONTAL,
252 GTK_ORIENTATION_VERTICAL
255 /* Placement type for scrolled window */
259 GTK_CORNER_BOTTOM_LEFT,
260 GTK_CORNER_TOP_RIGHT,
261 GTK_CORNER_BOTTOM_RIGHT
264 /* Packing types (for boxes) */
271 /* priorities for path lookups */
274 GTK_PATH_PRIO_LOWEST = 0,
275 GTK_PATH_PRIO_GTK = 4,
276 GTK_PATH_PRIO_APPLICATION = 8,
277 GTK_PATH_PRIO_THEME = 10,
278 GTK_PATH_PRIO_RC = 12,
279 GTK_PATH_PRIO_HIGHEST = 15
280 } GtkPathPriorityType;
281 #define GTK_PATH_PRIO_MASK 0x0f
283 /* widget path types */
287 GTK_PATH_WIDGET_CLASS,
291 /* Scrollbar policy types (for scrolled windows) */
295 GTK_POLICY_AUTOMATIC,
307 /* Style for buttons */
318 GTK_RESIZE_PARENT, /* Pass resize request to the parent */
319 GTK_RESIZE_QUEUE, /* Queue resizes on this widget */
320 GTK_RESIZE_IMMEDIATE /* Perform the resizes now */
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
359 GTK_SHADOW_ETCHED_IN,
360 GTK_SHADOW_ETCHED_OUT
370 GTK_STATE_INSENSITIVE
373 /* Style for toolbars */
379 GTK_TOOLBAR_BOTH_HORIZ
382 /* Data update types (for ranges) */
385 GTK_UPDATE_CONTINUOUS,
386 GTK_UPDATE_DISCONTINUOUS,
390 /* Window position types */
396 GTK_WIN_POS_CENTER_ALWAYS,
397 GTK_WIN_POS_CENTER_ON_PARENT
423 /* Style for gtk input method preedit/status */
426 GTK_IM_PREEDIT_NOTHING,
427 GTK_IM_PREEDIT_CALLBACK,
433 GTK_IM_STATUS_NOTHING,
434 GTK_IM_STATUS_CALLBACK,
440 GTK_PACK_DIRECTION_LTR,
441 GTK_PACK_DIRECTION_RTL,
442 GTK_PACK_DIRECTION_TTB,
443 GTK_PACK_DIRECTION_BTT
449 GTK_PRINT_PAGES_CURRENT,
450 GTK_PRINT_PAGES_RANGES,
451 GTK_PRINT_PAGES_SELECTION
463 GTK_NUMBER_UP_LAYOUT_LEFT_TO_RIGHT_TOP_TO_BOTTOM, /*< nick=lrtb >*/
464 GTK_NUMBER_UP_LAYOUT_LEFT_TO_RIGHT_BOTTOM_TO_TOP, /*< nick=lrbt >*/
465 GTK_NUMBER_UP_LAYOUT_RIGHT_TO_LEFT_TOP_TO_BOTTOM, /*< nick=rltb >*/
466 GTK_NUMBER_UP_LAYOUT_RIGHT_TO_LEFT_BOTTOM_TO_TOP, /*< nick=rlbt >*/
467 GTK_NUMBER_UP_LAYOUT_TOP_TO_BOTTOM_LEFT_TO_RIGHT, /*< nick=tblr >*/
468 GTK_NUMBER_UP_LAYOUT_TOP_TO_BOTTOM_RIGHT_TO_LEFT, /*< nick=tbrl >*/
469 GTK_NUMBER_UP_LAYOUT_BOTTOM_TO_TOP_LEFT_TO_RIGHT, /*< nick=btlr >*/
470 GTK_NUMBER_UP_LAYOUT_BOTTOM_TO_TOP_RIGHT_TO_LEFT /*< nick=btrl >*/
475 GTK_PAGE_ORIENTATION_PORTRAIT,
476 GTK_PAGE_ORIENTATION_LANDSCAPE,
477 GTK_PAGE_ORIENTATION_REVERSE_PORTRAIT,
478 GTK_PAGE_ORIENTATION_REVERSE_LANDSCAPE
479 } GtkPageOrientation;
483 GTK_PRINT_QUALITY_LOW,
484 GTK_PRINT_QUALITY_NORMAL,
485 GTK_PRINT_QUALITY_HIGH,
486 GTK_PRINT_QUALITY_DRAFT
491 GTK_PRINT_DUPLEX_SIMPLEX,
492 GTK_PRINT_DUPLEX_HORIZONTAL,
493 GTK_PRINT_DUPLEX_VERTICAL
506 * GtkTreeViewGridLines:
507 * @GTK_TREE_VIEW_GRID_LINES_NONE: No grid lines.
508 * @GTK_TREE_VIEW_GRID_LINES_HORIZONTAL: Horizontal grid lines.
509 * @GTK_TREE_VIEW_GRID_LINES_VERTICAL: Vertical grid lines.
510 * @GTK_TREE_VIEW_GRID_LINES_BOTH: Horizontal and vertical grid lines.
512 * Used to indicate which grid lines to draw in a tree view.
516 GTK_TREE_VIEW_GRID_LINES_NONE,
517 GTK_TREE_VIEW_GRID_LINES_HORIZONTAL,
518 GTK_TREE_VIEW_GRID_LINES_VERTICAL,
519 GTK_TREE_VIEW_GRID_LINES_BOTH
520 } GtkTreeViewGridLines;
524 GTK_DRAG_RESULT_SUCCESS,
525 GTK_DRAG_RESULT_NO_TARGET,
526 GTK_DRAG_RESULT_USER_CANCELLED,
527 GTK_DRAG_RESULT_TIMEOUT_EXPIRED,
528 GTK_DRAG_RESULT_GRAB_BROKEN,
529 GTK_DRAG_RESULT_ERROR
533 * GtkSizeRequestMode:
534 * @GTK_SIZE_REQUEST_HEIGHT_FOR_WIDTH: Prefer height-for-width geometry management
535 * @GTK_SIZE_REQUEST_WIDTH_FOR_HEIGHT: Prefer width-for-height geometry management
537 * Specifies a preference for height-for-width or
538 * width-for-height geometry management.
542 GTK_SIZE_REQUEST_HEIGHT_FOR_WIDTH = 0,
543 GTK_SIZE_REQUEST_WIDTH_FOR_HEIGHT
544 } GtkSizeRequestMode;
547 * GtkScrollablePolicy:
548 * @GTK_SCROLL_MINIMUM: Scrollable adjustments are based on the minimum size
549 * @GTK_SCROLL_NATURAL: Scrollable adjustments are based on the natural size
551 * Defines the policy to be used in a scrollable widget when updating
552 * the scrolled window adjustments in a given orientation.
556 GTK_SCROLL_MINIMUM = 0,
558 } GtkScrollablePolicy;
564 #endif /* __GTK_ENUMS_H__ */