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 <gobject/gsignal.h>
34 #endif /* __cplusplus */
45 /* Attach options (for tables) */
53 /* Button box styles */
56 GTK_BUTTONBOX_DEFAULT_STYLE,
66 GTK_CURVE_TYPE_LINEAR, /* linear interpolation */
67 GTK_CURVE_TYPE_SPLINE, /* spline interpolation */
68 GTK_CURVE_TYPE_FREE /* free form curve */
73 GTK_DELETE_WORD_ENDS, /* delete only the portion of the word to the
74 * left/right of cursor if we're in the middle
77 GTK_DELETE_DISPLAY_LINES,
78 GTK_DELETE_DISPLAY_LINE_ENDS,
79 GTK_DELETE_PARAGRAPH_ENDS, /* like C-k in Emacs (or its reverse) */
80 GTK_DELETE_PARAGRAPHS, /* C-k in pico, kill whole line */
81 GTK_DELETE_WHITESPACE /* M-\ in Emacs */
84 /* Focus movement types */
95 /* Reading directions for text */
103 /* justification for label and maybe other widgets (text?) */
112 /* GtkPatternSpec match types */
115 GTK_MATCH_ALL, /* "*A?A*" */
116 GTK_MATCH_ALL_TAIL, /* "*A?AA" */
117 GTK_MATCH_HEAD, /* "AAAA*" */
118 GTK_MATCH_TAIL, /* "*AAAA" */
119 GTK_MATCH_EXACT, /* "AAAAA" */
123 /* Menu keyboard movement types */
130 } GtkMenuDirectionType;
134 GTK_MENU_FACTORY_MENU,
135 GTK_MENU_FACTORY_MENU_BAR,
136 GTK_MENU_FACTORY_OPTION_MENU
137 } GtkMenuFactoryType;
147 GTK_MOVEMENT_LOGICAL_POSITIONS, /* move by forw/back graphemes */
148 GTK_MOVEMENT_VISUAL_POSITIONS, /* move by left/right graphemes */
149 GTK_MOVEMENT_WORDS, /* move by forward/back words */
150 GTK_MOVEMENT_DISPLAY_LINES, /* move up/down lines (wrapped lines) */
151 GTK_MOVEMENT_DISPLAY_LINE_ENDS, /* move up/down lines (wrapped lines) */
152 GTK_MOVEMENT_PARAGRAPHS, /* move up/down paragraphs (newline-ended lines) */
153 GTK_MOVEMENT_PARAGRAPH_ENDS, /* move to either end of a paragraph */
154 GTK_MOVEMENT_PAGES, /* move by pages */
155 GTK_MOVEMENT_BUFFER_ENDS /* move to ends of the buffer */
158 /* Orientation for toolbars, etc. */
161 GTK_ORIENTATION_HORIZONTAL,
162 GTK_ORIENTATION_VERTICAL
165 /* Placement type for scrolled window */
169 GTK_CORNER_BOTTOM_LEFT,
170 GTK_CORNER_TOP_RIGHT,
171 GTK_CORNER_BOTTOM_RIGHT
174 /* Packing types (for boxes) */
181 /* priorities for path lookups */
184 GTK_PATH_PRIO_LOWEST = 0,
185 GTK_PATH_PRIO_GTK = 4,
186 GTK_PATH_PRIO_APPLICATION = 8,
187 GTK_PATH_PRIO_RC = 12,
188 GTK_PATH_PRIO_HIGHEST = 15,
189 GTK_PATH_PRIO_MASK = 0x0f
190 } GtkPathPriorityType;
192 /* widget path types */
196 GTK_PATH_WIDGET_CLASS,
200 /* Scrollbar policy types (for scrolled windows) */
204 GTK_POLICY_AUTOMATIC,
219 GTK_PREVIEW_GRAYSCALE
222 /* Style for buttons */
233 GTK_RESIZE_PARENT, /* Pass resize request to the parent */
234 GTK_RESIZE_QUEUE, /* Queue resizes on this widget */
235 GTK_RESIZE_IMMEDIATE /* Perform the resizes now */
238 /* signal run types */
239 typedef enum /*< flags >*/
241 GTK_RUN_FIRST = G_SIGNAL_RUN_FIRST,
242 GTK_RUN_LAST = G_SIGNAL_RUN_LAST,
243 GTK_RUN_BOTH = (GTK_RUN_FIRST | GTK_RUN_LAST),
244 GTK_RUN_NO_RECURSE = G_SIGNAL_NO_RECURSE,
245 GTK_RUN_ACTION = G_SIGNAL_ACTION,
246 GTK_RUN_NO_HOOKS = G_SIGNAL_NO_HOOKS
249 /* scrolling types */
253 GTK_SCROLL_STEP_BACKWARD,
254 GTK_SCROLL_STEP_FORWARD,
255 GTK_SCROLL_PAGE_BACKWARD,
256 GTK_SCROLL_PAGE_FORWARD,
259 GTK_SCROLL_STEP_DOWN,
261 GTK_SCROLL_PAGE_DOWN,
262 GTK_SCROLL_STEP_LEFT,
263 GTK_SCROLL_STEP_RIGHT,
264 GTK_SCROLL_PAGE_LEFT,
265 GTK_SCROLL_PAGE_RIGHT
268 /* list selection modes */
271 GTK_SELECTION_SINGLE,
272 GTK_SELECTION_BROWSE,
273 GTK_SELECTION_MULTIPLE,
274 GTK_SELECTION_EXTENDED
283 GTK_SHADOW_ETCHED_IN,
284 GTK_SHADOW_ETCHED_OUT
294 GTK_STATE_INSENSITIVE
297 /* Directions for submenus */
302 } GtkSubmenuDirection;
304 /* Placement of submenus */
309 } GtkSubmenuPlacement;
311 /* Style for toolbars */
317 GTK_TOOLBAR_BOTH_HORIZ
320 /* Trough types for GtkRange */
329 /* Data update types (for ranges) */
332 GTK_UPDATE_CONTINUOUS,
333 GTK_UPDATE_DISCONTINUOUS,
337 /* Generic visibility flags */
341 GTK_VISIBILITY_PARTIAL,
345 /* Window position types */
351 GTK_WIN_POS_CENTER_ALWAYS,
352 GTK_WIN_POS_CENTER_ON_PARENT
371 #endif /* __cplusplus */
374 #endif /* __GTK_ENUMS_H__ */