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__
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 /* Reading directions for text */
88 /* justification for label and maybe other widgets (text?) */
97 /* GtkPatternSpec match types */
100 GTK_MATCH_ALL, /* "*A?A*" */
101 GTK_MATCH_ALL_TAIL, /* "*A?AA" */
102 GTK_MATCH_HEAD, /* "AAAA*" */
103 GTK_MATCH_TAIL, /* "*AAAA" */
104 GTK_MATCH_EXACT, /* "AAAAA" */
108 /* Menu keyboard movement types */
115 } GtkMenuDirectionType;
119 GTK_MENU_FACTORY_MENU,
120 GTK_MENU_FACTORY_MENU_BAR,
121 GTK_MENU_FACTORY_OPTION_MENU
122 } GtkMenuFactoryType;
131 /* Orientation for toolbars, etc. */
134 GTK_ORIENTATION_HORIZONTAL,
135 GTK_ORIENTATION_VERTICAL
138 /* Placement type for scrolled window */
142 GTK_CORNER_BOTTOM_LEFT,
143 GTK_CORNER_TOP_RIGHT,
144 GTK_CORNER_BOTTOM_RIGHT
147 /* Packing types (for boxes) */
154 /* priorities for path lookups */
157 GTK_PATH_PRIO_LOWEST = 0,
158 GTK_PATH_PRIO_GTK = 4,
159 GTK_PATH_PRIO_APPLICATION = 8,
160 GTK_PATH_PRIO_RC = 12,
161 GTK_PATH_PRIO_HIGHEST = 15,
162 GTK_PATH_PRIO_MASK = 0x0f
163 } GtkPathPriorityType;
165 /* widget path types */
169 GTK_PATH_WIDGET_CLASS,
173 /* Scrollbar policy types (for scrolled windows) */
177 GTK_POLICY_AUTOMATIC,
192 GTK_PREVIEW_GRAYSCALE
195 /* Style for buttons */
206 GTK_RESIZE_PARENT, /* Pass resize request to the parent */
207 GTK_RESIZE_QUEUE, /* Queue resizes on this widget */
208 GTK_RESIZE_IMMEDIATE /* Perform the resizes now */
211 /* signal run types */
212 typedef enum /*< flags >*/
214 GTK_RUN_FIRST = 1 << 0,
215 GTK_RUN_LAST = 1 << 1,
216 GTK_RUN_BOTH = (GTK_RUN_FIRST | GTK_RUN_LAST),
217 GTK_RUN_NO_RECURSE = 1 << 2,
218 GTK_RUN_ACTION = 1 << 3,
219 GTK_RUN_NO_HOOKS = 1 << 4
222 /* scrolling types */
226 GTK_SCROLL_STEP_BACKWARD,
227 GTK_SCROLL_STEP_FORWARD,
228 GTK_SCROLL_PAGE_BACKWARD,
229 GTK_SCROLL_PAGE_FORWARD,
233 /* list selection modes */
236 GTK_SELECTION_SINGLE,
237 GTK_SELECTION_BROWSE,
238 GTK_SELECTION_MULTIPLE,
239 GTK_SELECTION_EXTENDED
248 GTK_SHADOW_ETCHED_IN,
249 GTK_SHADOW_ETCHED_OUT
259 GTK_STATE_INSENSITIVE
262 /* Directions for submenus */
267 } GtkSubmenuDirection;
269 /* Placement of submenus */
274 } GtkSubmenuPlacement;
276 /* Style for toolbars */
282 GTK_TOOLBAR_BOTH_HORIZ
285 /* Trough types for GtkRange */
294 /* Data update types (for ranges) */
297 GTK_UPDATE_CONTINUOUS,
298 GTK_UPDATE_DISCONTINUOUS,
302 /* Generic visibility flags */
306 GTK_VISIBILITY_PARTIAL,
310 /* Window position types */
316 GTK_WIN_POS_CENTER_ALWAYS
336 #endif /* __cplusplus */
339 #endif /* __GTK_ENUMS_H__ */