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_SPREAD = 1,
99 GTK_DELETE_WORD_ENDS, /* delete only the portion of the word to the
100 * left/right of cursor if we're in the middle
103 GTK_DELETE_DISPLAY_LINES,
104 GTK_DELETE_DISPLAY_LINE_ENDS,
105 GTK_DELETE_PARAGRAPH_ENDS, /* like C-k in Emacs (or its reverse) */
106 GTK_DELETE_PARAGRAPHS, /* C-k in pico, kill whole line */
107 GTK_DELETE_WHITESPACE /* M-\ in Emacs */
110 /* Focus movement types */
114 GTK_DIR_TAB_BACKWARD,
121 /* Expander styles */
124 GTK_EXPANDER_COLLAPSED,
125 GTK_EXPANDER_SEMI_COLLAPSED,
126 GTK_EXPANDER_SEMI_EXPANDED,
127 GTK_EXPANDER_EXPANDED
130 /* Built-in stock icon sizes */
133 GTK_ICON_SIZE_INVALID,
135 GTK_ICON_SIZE_SMALL_TOOLBAR,
136 GTK_ICON_SIZE_LARGE_TOOLBAR,
137 GTK_ICON_SIZE_BUTTON,
143 * GtkSensitivityType:
144 * @GTK_SENSITIVITY_AUTO: The arrow is made insensitive if the
145 * thumb is at the end
146 * @GTK_SENSITIVITY_ON: The arrow is always sensitive
147 * @GTK_SENSITIVITY_OFF: The arrow is always insensitive
149 * Determines how GTK+ handles the sensitivity of stepper arrows
150 * at the end of range widgets.
154 GTK_SENSITIVITY_AUTO,
157 } GtkSensitivityType;
159 /* Reading directions for text */
167 /* justification for label and maybe other widgets (text?) */
176 /* Menu keyboard movement types */
183 } GtkMenuDirectionType;
187 * @GTK_MESSAGE_INFO: Informational message
188 * @GTK_MESSAGE_WARNING: Nonfatal warning message
189 * @GTK_MESSAGE_QUESTION: Question requiring a choice
190 * @GTK_MESSAGE_ERROR: Fatal error message
191 * @GTK_MESSAGE_OTHER: None of the above, doesn't get an icon
193 * The type of message being displayed in the dialog.
199 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 /* Generic visibility flags */
394 GTK_VISIBILITY_PARTIAL,
398 /* Window position types */
404 GTK_WIN_POS_CENTER_ALWAYS,
405 GTK_WIN_POS_CENTER_ON_PARENT
431 /* Style for gtk input method preedit/status */
434 GTK_IM_PREEDIT_NOTHING,
435 GTK_IM_PREEDIT_CALLBACK,
441 GTK_IM_STATUS_NOTHING,
442 GTK_IM_STATUS_CALLBACK,
448 GTK_PACK_DIRECTION_LTR,
449 GTK_PACK_DIRECTION_RTL,
450 GTK_PACK_DIRECTION_TTB,
451 GTK_PACK_DIRECTION_BTT
457 GTK_PRINT_PAGES_CURRENT,
458 GTK_PRINT_PAGES_RANGES,
459 GTK_PRINT_PAGES_SELECTION
471 GTK_NUMBER_UP_LAYOUT_LEFT_TO_RIGHT_TOP_TO_BOTTOM, /*< nick=lrtb >*/
472 GTK_NUMBER_UP_LAYOUT_LEFT_TO_RIGHT_BOTTOM_TO_TOP, /*< nick=lrbt >*/
473 GTK_NUMBER_UP_LAYOUT_RIGHT_TO_LEFT_TOP_TO_BOTTOM, /*< nick=rltb >*/
474 GTK_NUMBER_UP_LAYOUT_RIGHT_TO_LEFT_BOTTOM_TO_TOP, /*< nick=rlbt >*/
475 GTK_NUMBER_UP_LAYOUT_TOP_TO_BOTTOM_LEFT_TO_RIGHT, /*< nick=tblr >*/
476 GTK_NUMBER_UP_LAYOUT_TOP_TO_BOTTOM_RIGHT_TO_LEFT, /*< nick=tbrl >*/
477 GTK_NUMBER_UP_LAYOUT_BOTTOM_TO_TOP_LEFT_TO_RIGHT, /*< nick=btlr >*/
478 GTK_NUMBER_UP_LAYOUT_BOTTOM_TO_TOP_RIGHT_TO_LEFT /*< nick=btrl >*/
483 GTK_PAGE_ORIENTATION_PORTRAIT,
484 GTK_PAGE_ORIENTATION_LANDSCAPE,
485 GTK_PAGE_ORIENTATION_REVERSE_PORTRAIT,
486 GTK_PAGE_ORIENTATION_REVERSE_LANDSCAPE
487 } GtkPageOrientation;
491 GTK_PRINT_QUALITY_LOW,
492 GTK_PRINT_QUALITY_NORMAL,
493 GTK_PRINT_QUALITY_HIGH,
494 GTK_PRINT_QUALITY_DRAFT
499 GTK_PRINT_DUPLEX_SIMPLEX,
500 GTK_PRINT_DUPLEX_HORIZONTAL,
501 GTK_PRINT_DUPLEX_VERTICAL
515 GTK_TREE_VIEW_GRID_LINES_NONE,
516 GTK_TREE_VIEW_GRID_LINES_HORIZONTAL,
517 GTK_TREE_VIEW_GRID_LINES_VERTICAL,
518 GTK_TREE_VIEW_GRID_LINES_BOTH
519 } GtkTreeViewGridLines;
523 GTK_DRAG_RESULT_SUCCESS,
524 GTK_DRAG_RESULT_NO_TARGET,
525 GTK_DRAG_RESULT_USER_CANCELLED,
526 GTK_DRAG_RESULT_TIMEOUT_EXPIRED,
527 GTK_DRAG_RESULT_GRAB_BROKEN,
528 GTK_DRAG_RESULT_ERROR
532 * GtkSizeRequestMode:
533 * @GTK_SIZE_REQUEST_HEIGHT_FOR_WIDTH: Prefer height-for-width geometry management
534 * @GTK_SIZE_REQUEST_WIDTH_FOR_HEIGHT: Prefer width-for-height geometry management
536 * Specifies a preference for height-for-width or
537 * width-for-height geometry management.
541 GTK_SIZE_REQUEST_HEIGHT_FOR_WIDTH = 0,
542 GTK_SIZE_REQUEST_WIDTH_FOR_HEIGHT
543 } GtkSizeRequestMode;
547 * GtkWrapAllocationMode:
548 * @GTK_WRAP_ALLOCATE_FREE: Items wrap freely in the box's orientation
549 * @GTK_WRAP_ALLOCATE_ALIGNED: Items are aligned into rows and columns
550 * @GTK_WRAP_ALLOCATE_HOMOGENEOUS: Items are all allocated the same size
552 * Describes how an #GtkWrapBox positions its children.
555 GTK_WRAP_ALLOCATE_FREE = 0,
556 GTK_WRAP_ALLOCATE_ALIGNED,
557 GTK_WRAP_ALLOCATE_HOMOGENEOUS
558 } GtkWrapAllocationMode;
561 * GtkWrapBoxSpreading:
562 * @GTK_WRAP_BOX_SPREAD_START: Children are allocated no more than their natural size
563 * in the layout's orientation and any extra space is left trailing at
564 * the end of each line.
565 * @GTK_WRAP_BOX_SPREAD_END: Children are allocated no more than their natural size
566 * in the layout's orientation and any extra space skipped at the beginning
568 * @GTK_WRAP_BOX_SPREAD_EVEN: Children are allocated no more than their natural size
569 * in the layout's orientation and any extra space is evenly distributed
570 * as empty space between children.
571 * @GTK_WRAP_BOX_SPREAD_EXPAND: Items share the extra space evenly (or among children that 'expand' when
572 * in %GTK_WRAP_ALLOCATE_FREE mode.
574 * Describes how an #GtkWrapBox deals with extra space when allocating children.
576 * The box always tries to fit as many children at their natural size
577 * in the given orentation as possible with the exception of fitting "minimum-line-children"
578 * items into the available size. When the available size is larger than
579 * the size needed to fit a given number of children at their natural size
580 * then extra space is available to distribute among children. The
581 * #GtkWrapBoxSpreading option describes what to do with this space.
585 GTK_WRAP_BOX_SPREAD_START = 0,
586 GTK_WRAP_BOX_SPREAD_END,
587 GTK_WRAP_BOX_SPREAD_EVEN,
588 GTK_WRAP_BOX_SPREAD_EXPAND
589 } GtkWrapBoxSpreading;
593 * @GTK_WRAP_BOX_H_EXPAND: Whether the child expands horizontally.
594 * @GTK_WRAP_BOX_H_FILL: Whether the child fills its allocated horizontal space.
595 * @GTK_WRAP_BOX_V_EXPAND: Whether the child expands vertically.
596 * @GTK_WRAP_BOX_V_FILL: Whether the child fills its allocated vertical space.
598 * Specifies how widgets will expand/fill vertically and
599 * horizontally when placed inside a #GtkWrapBox.
603 GTK_WRAP_BOX_H_EXPAND = 1 << 0,
604 GTK_WRAP_BOX_H_FILL = 1 << 1,
605 GTK_WRAP_BOX_V_EXPAND = 1 << 2,
606 GTK_WRAP_BOX_V_FILL = 1 << 3
612 #endif /* __GTK_ENUMS_H__ */