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,
220 * @GTK_MOVEMENT_LOGICAL_POSITIONS: Move forward or back by graphemes
221 * @GTK_MOVEMENT_VISUAL_POSITIONS: Move left or right by graphemes
222 * @GTK_MOVEMENT_WORDS: Move forward or back by words
223 * @GTK_MOVEMENT_DISPLAY_LINES: Move up or down lines (wrapped lines)
224 * @GTK_MOVEMENT_DISPLAY_LINE_ENDS: Move to either end of a line
225 * @GTK_MOVEMENT_PARAGRAPHS: Move up or down paragraphs (newline-ended lines)
226 * @GTK_MOVEMENT_PARAGRAPH_ENDS: Move to either end of a paragraph
227 * @GTK_MOVEMENT_PAGES: Move by pages
228 * @GTK_MOVEMENT_BUFFER_ENDS: Move to ends of the buffer
229 * @GTK_MOVEMENT_HORIZONTAL_PAGES: Move horizontally by pages
233 GTK_MOVEMENT_LOGICAL_POSITIONS,
234 GTK_MOVEMENT_VISUAL_POSITIONS,
236 GTK_MOVEMENT_DISPLAY_LINES,
237 GTK_MOVEMENT_DISPLAY_LINE_ENDS,
238 GTK_MOVEMENT_PARAGRAPHS,
239 GTK_MOVEMENT_PARAGRAPH_ENDS,
241 GTK_MOVEMENT_BUFFER_ENDS,
242 GTK_MOVEMENT_HORIZONTAL_PAGES
250 GTK_SCROLL_HORIZONTAL_STEPS,
251 GTK_SCROLL_HORIZONTAL_PAGES,
252 GTK_SCROLL_HORIZONTAL_ENDS
255 /* Orientation for toolbars, etc. */
258 GTK_ORIENTATION_HORIZONTAL,
259 GTK_ORIENTATION_VERTICAL
262 /* Placement type for scrolled window */
266 GTK_CORNER_BOTTOM_LEFT,
267 GTK_CORNER_TOP_RIGHT,
268 GTK_CORNER_BOTTOM_RIGHT
271 /* Packing types (for boxes) */
278 /* priorities for path lookups */
281 GTK_PATH_PRIO_LOWEST = 0,
282 GTK_PATH_PRIO_GTK = 4,
283 GTK_PATH_PRIO_APPLICATION = 8,
284 GTK_PATH_PRIO_THEME = 10,
285 GTK_PATH_PRIO_RC = 12,
286 GTK_PATH_PRIO_HIGHEST = 15
287 } GtkPathPriorityType;
288 #define GTK_PATH_PRIO_MASK 0x0f
290 /* widget path types */
294 GTK_PATH_WIDGET_CLASS,
298 /* Scrollbar policy types (for scrolled windows) */
302 GTK_POLICY_AUTOMATIC,
314 /* Style for buttons */
325 GTK_RESIZE_PARENT, /* Pass resize request to the parent */
326 GTK_RESIZE_QUEUE, /* Queue resizes on this widget */
327 GTK_RESIZE_IMMEDIATE /* Perform the resizes now */
330 /* scrolling types */
335 GTK_SCROLL_STEP_BACKWARD,
336 GTK_SCROLL_STEP_FORWARD,
337 GTK_SCROLL_PAGE_BACKWARD,
338 GTK_SCROLL_PAGE_FORWARD,
340 GTK_SCROLL_STEP_DOWN,
342 GTK_SCROLL_PAGE_DOWN,
343 GTK_SCROLL_STEP_LEFT,
344 GTK_SCROLL_STEP_RIGHT,
345 GTK_SCROLL_PAGE_LEFT,
346 GTK_SCROLL_PAGE_RIGHT,
351 /* list selection modes */
354 GTK_SELECTION_NONE, /* Nothing can be selected */
355 GTK_SELECTION_SINGLE,
356 GTK_SELECTION_BROWSE,
357 GTK_SELECTION_MULTIPLE
366 GTK_SHADOW_ETCHED_IN,
367 GTK_SHADOW_ETCHED_OUT
377 GTK_STATE_INSENSITIVE
380 /* Style for toolbars */
386 GTK_TOOLBAR_BOTH_HORIZ
389 /* Data update types (for ranges) */
392 GTK_UPDATE_CONTINUOUS,
393 GTK_UPDATE_DISCONTINUOUS,
397 /* Window position types */
403 GTK_WIN_POS_CENTER_ALWAYS,
404 GTK_WIN_POS_CENTER_ON_PARENT
430 /* Style for gtk input method preedit/status */
433 GTK_IM_PREEDIT_NOTHING,
434 GTK_IM_PREEDIT_CALLBACK,
440 GTK_IM_STATUS_NOTHING,
441 GTK_IM_STATUS_CALLBACK,
447 GTK_PACK_DIRECTION_LTR,
448 GTK_PACK_DIRECTION_RTL,
449 GTK_PACK_DIRECTION_TTB,
450 GTK_PACK_DIRECTION_BTT
456 GTK_PRINT_PAGES_CURRENT,
457 GTK_PRINT_PAGES_RANGES,
458 GTK_PRINT_PAGES_SELECTION
470 GTK_NUMBER_UP_LAYOUT_LEFT_TO_RIGHT_TOP_TO_BOTTOM, /*< nick=lrtb >*/
471 GTK_NUMBER_UP_LAYOUT_LEFT_TO_RIGHT_BOTTOM_TO_TOP, /*< nick=lrbt >*/
472 GTK_NUMBER_UP_LAYOUT_RIGHT_TO_LEFT_TOP_TO_BOTTOM, /*< nick=rltb >*/
473 GTK_NUMBER_UP_LAYOUT_RIGHT_TO_LEFT_BOTTOM_TO_TOP, /*< nick=rlbt >*/
474 GTK_NUMBER_UP_LAYOUT_TOP_TO_BOTTOM_LEFT_TO_RIGHT, /*< nick=tblr >*/
475 GTK_NUMBER_UP_LAYOUT_TOP_TO_BOTTOM_RIGHT_TO_LEFT, /*< nick=tbrl >*/
476 GTK_NUMBER_UP_LAYOUT_BOTTOM_TO_TOP_LEFT_TO_RIGHT, /*< nick=btlr >*/
477 GTK_NUMBER_UP_LAYOUT_BOTTOM_TO_TOP_RIGHT_TO_LEFT /*< nick=btrl >*/
482 GTK_PAGE_ORIENTATION_PORTRAIT,
483 GTK_PAGE_ORIENTATION_LANDSCAPE,
484 GTK_PAGE_ORIENTATION_REVERSE_PORTRAIT,
485 GTK_PAGE_ORIENTATION_REVERSE_LANDSCAPE
486 } GtkPageOrientation;
490 GTK_PRINT_QUALITY_LOW,
491 GTK_PRINT_QUALITY_NORMAL,
492 GTK_PRINT_QUALITY_HIGH,
493 GTK_PRINT_QUALITY_DRAFT
498 GTK_PRINT_DUPLEX_SIMPLEX,
499 GTK_PRINT_DUPLEX_HORIZONTAL,
500 GTK_PRINT_DUPLEX_VERTICAL
513 * GtkTreeViewGridLines:
514 * @GTK_TREE_VIEW_GRID_LINES_NONE: No grid lines.
515 * @GTK_TREE_VIEW_GRID_LINES_HORIZONTAL: Horizontal grid lines.
516 * @GTK_TREE_VIEW_GRID_LINES_VERTICAL: Vertical grid lines.
517 * @GTK_TREE_VIEW_GRID_LINES_BOTH: Horizontal and vertical grid lines.
519 * Used to indicate which grid lines to draw in a tree view.
523 GTK_TREE_VIEW_GRID_LINES_NONE,
524 GTK_TREE_VIEW_GRID_LINES_HORIZONTAL,
525 GTK_TREE_VIEW_GRID_LINES_VERTICAL,
526 GTK_TREE_VIEW_GRID_LINES_BOTH
527 } GtkTreeViewGridLines;
531 GTK_DRAG_RESULT_SUCCESS,
532 GTK_DRAG_RESULT_NO_TARGET,
533 GTK_DRAG_RESULT_USER_CANCELLED,
534 GTK_DRAG_RESULT_TIMEOUT_EXPIRED,
535 GTK_DRAG_RESULT_GRAB_BROKEN,
536 GTK_DRAG_RESULT_ERROR
540 * GtkSizeRequestMode:
541 * @GTK_SIZE_REQUEST_HEIGHT_FOR_WIDTH: Prefer height-for-width geometry management
542 * @GTK_SIZE_REQUEST_WIDTH_FOR_HEIGHT: Prefer width-for-height geometry management
544 * Specifies a preference for height-for-width or
545 * width-for-height geometry management.
549 GTK_SIZE_REQUEST_HEIGHT_FOR_WIDTH = 0,
550 GTK_SIZE_REQUEST_WIDTH_FOR_HEIGHT
551 } GtkSizeRequestMode;
554 * GtkScrollablePolicy:
555 * @GTK_SCROLL_MINIMUM: Scrollable adjustments are based on the minimum size
556 * @GTK_SCROLL_NATURAL: Scrollable adjustments are based on the natural size
558 * Defines the policy to be used in a scrollable widget when updating
559 * the scrolled window adjustments in a given orientation.
563 GTK_SCROLL_MINIMUM = 0,
565 } GtkScrollablePolicy;
570 GTK_OPEN_WITH_WIDGET_SHOW_MODE_RECOMMENDED,
571 GTK_OPEN_WITH_WIDGET_SHOW_MODE_ALL,
572 GTK_OPEN_WITH_WIDGET_SHOW_MODE_HEADINGS
573 } GtkOpenWithWidgetShowMode;
578 #endif /* __GTK_ENUMS_H__ */