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.
19 #ifndef __GTK_ENUMS_H__
20 #define __GTK_ENUMS_H__
25 #endif /* __cplusplus */
29 /* should the accelerator appear in
30 * the widget's display?
32 GTK_ACCEL_VISIBLE = 1 << 0,
33 /* should the signal associated with
34 * this accelerator be also visible?
36 GTK_ACCEL_SIGNAL_VISIBLE = 1 << 1,
37 /* may the accelerator be removed
40 GTK_ACCEL_LOCKED = 1 << 2,
53 /* Attach options (for tables) */
61 /* Button box styles */
64 GTK_BUTTONBOX_DEFAULT_STYLE,
74 GTK_CURVE_TYPE_LINEAR, /* linear interpolation */
75 GTK_CURVE_TYPE_SPLINE, /* spline interpolation */
76 GTK_CURVE_TYPE_FREE /* free form curve */
79 /* Focus movement types */
90 /* justification for label and maybe other widgets (text?) */
99 /* GtkPatternSpec match types */
102 GTK_MATCH_ALL, /* "*A?A*" */
103 GTK_MATCH_ALL_TAIL, /* "*A?AA" */
104 GTK_MATCH_HEAD, /* "AAAA*" */
105 GTK_MATCH_TAIL, /* "*AAAA" */
106 GTK_MATCH_EXACT, /* "AAAAA" */
110 /* Menu keyboard movement types */
117 } GtkMenuDirectionType;
121 GTK_MENU_FACTORY_MENU,
122 GTK_MENU_FACTORY_MENU_BAR,
123 GTK_MENU_FACTORY_OPTION_MENU
124 } GtkMenuFactoryType;
133 /* Orientation for toolbars, etc. */
136 GTK_ORIENTATION_HORIZONTAL,
137 GTK_ORIENTATION_VERTICAL
140 /* Packing types (for boxes) */
147 /* priorities for path lookups */
150 GTK_PATH_PRIO_LOWEST = 0,
151 GTK_PATH_PRIO_GTK = 4,
152 GTK_PATH_PRIO_APPLICATION = 8,
153 GTK_PATH_PRIO_RC = 12,
154 GTK_PATH_PRIO_HIGHEST = 15,
155 GTK_PATH_PRIO_MASK = 0x0f
156 } GtkPathPriorityType;
158 /* widget path types */
162 GTK_PATH_WIDGET_CLASS,
166 /* Scrollbar policy types (for scrolled windows) */
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 >*/
210 GTK_RUN_NO_RECURSE = 0x10,
211 GTK_RUN_ACTION = 0x20
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 */
276 /* Trough types for GtkRange */
285 /* Data update types (for ranges) */
288 GTK_UPDATE_CONTINUOUS,
289 GTK_UPDATE_DISCONTINUOUS,
293 /* Generic visibility flags */
297 GTK_VISIBILITY_PARTIAL,
301 /* Window position types */
326 #endif /* __cplusplus */
329 #endif /* __GTK_ENUMS_H__ */