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 Library 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 * Library General Public License for more details.
14 * You should have received a copy of the GNU Library 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-1999. 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__
32 #endif /* __cplusplus */
43 /* Attach options (for tables) */
51 /* Button box styles */
54 GTK_BUTTONBOX_DEFAULT_STYLE,
64 GTK_CURVE_TYPE_LINEAR, /* linear interpolation */
65 GTK_CURVE_TYPE_SPLINE, /* spline interpolation */
66 GTK_CURVE_TYPE_FREE /* free form curve */
69 /* Focus movement types */
80 /* justification for label and maybe other widgets (text?) */
89 /* GtkPatternSpec match types */
92 GTK_MATCH_ALL, /* "*A?A*" */
93 GTK_MATCH_ALL_TAIL, /* "*A?AA" */
94 GTK_MATCH_HEAD, /* "AAAA*" */
95 GTK_MATCH_TAIL, /* "*AAAA" */
96 GTK_MATCH_EXACT, /* "AAAAA" */
100 /* Menu keyboard movement types */
107 } GtkMenuDirectionType;
111 GTK_MENU_FACTORY_MENU,
112 GTK_MENU_FACTORY_MENU_BAR,
113 GTK_MENU_FACTORY_OPTION_MENU
114 } GtkMenuFactoryType;
123 /* Orientation for toolbars, etc. */
126 GTK_ORIENTATION_HORIZONTAL,
127 GTK_ORIENTATION_VERTICAL
130 /* Placement type for scrolled window */
134 GTK_CORNER_BOTTOM_LEFT,
135 GTK_CORNER_TOP_RIGHT,
136 GTK_CORNER_BOTTOM_RIGHT
139 /* Packing types (for boxes) */
146 /* priorities for path lookups */
149 GTK_PATH_PRIO_LOWEST = 0,
150 GTK_PATH_PRIO_GTK = 4,
151 GTK_PATH_PRIO_APPLICATION = 8,
152 GTK_PATH_PRIO_RC = 12,
153 GTK_PATH_PRIO_HIGHEST = 15,
154 GTK_PATH_PRIO_MASK = 0x0f
155 } GtkPathPriorityType;
157 /* widget path types */
161 GTK_PATH_WIDGET_CLASS,
165 /* Scrollbar policy types (for scrolled windows) */
169 GTK_POLICY_AUTOMATIC,
184 GTK_PREVIEW_GRAYSCALE
187 /* Style for buttons */
198 GTK_RESIZE_PARENT, /* Pass resize request to the parent */
199 GTK_RESIZE_QUEUE, /* Queue resizes on this widget */
200 GTK_RESIZE_IMMEDIATE /* Perform the resizes now */
203 /* signal run types */
204 typedef enum /*< flags >*/
206 GTK_RUN_FIRST = 1 << 0,
207 GTK_RUN_LAST = 1 << 1,
208 GTK_RUN_BOTH = (GTK_RUN_FIRST | GTK_RUN_LAST),
209 GTK_RUN_NO_RECURSE = 1 << 2,
210 GTK_RUN_ACTION = 1 << 3,
211 GTK_RUN_NO_HOOKS = 1 << 4
214 /* scrolling types */
218 GTK_SCROLL_STEP_BACKWARD,
219 GTK_SCROLL_STEP_FORWARD,
220 GTK_SCROLL_PAGE_BACKWARD,
221 GTK_SCROLL_PAGE_FORWARD,
225 /* list selection modes */
228 GTK_SELECTION_SINGLE,
229 GTK_SELECTION_BROWSE,
230 GTK_SELECTION_MULTIPLE,
231 GTK_SELECTION_EXTENDED
240 GTK_SHADOW_ETCHED_IN,
241 GTK_SHADOW_ETCHED_OUT
251 GTK_STATE_INSENSITIVE
254 /* Directions for submenus */
259 } GtkSubmenuDirection;
261 /* Placement of submenus */
266 } GtkSubmenuPlacement;
268 /* Style for toolbars */
274 GTK_TOOLBAR_BOTH_HORIZ
277 /* Trough types for GtkRange */
286 /* Data update types (for ranges) */
289 GTK_UPDATE_CONTINUOUS,
290 GTK_UPDATE_DISCONTINUOUS,
294 /* Generic visibility flags */
298 GTK_VISIBILITY_PARTIAL,
302 /* Window position types */
308 GTK_WIN_POS_CENTER_ALWAYS
328 #endif /* __cplusplus */
331 #endif /* __GTK_ENUMS_H__ */