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__
24 #endif /* __cplusplus */
28 /* should the accelerator appear in
29 * the widget's display?
31 GTK_ACCEL_VISIBLE = 1 << 0,
32 /* should the signal associated with
33 * this accelerator be also visible?
35 GTK_ACCEL_SIGNAL_VISIBLE = 1 << 1,
36 /* may the accelerator be removed
39 GTK_ACCEL_LOCKED = 1 << 2,
52 /* Attach options (for tables) */
60 /* Button box styles */
63 GTK_BUTTONBOX_DEFAULT_STYLE,
73 GTK_CURVE_TYPE_LINEAR, /* linear interpolation */
74 GTK_CURVE_TYPE_SPLINE, /* spline interpolation */
75 GTK_CURVE_TYPE_FREE /* free form curve */
78 /* Focus movement types */
89 /* justification for label and maybe other widgets (text?) */
98 /* GtkPatternSpec match types */
101 GTK_MATCH_ALL, /* "*A?A*" */
102 GTK_MATCH_ALL_TAIL, /* "*A?AA" */
103 GTK_MATCH_HEAD, /* "AAAA*" */
104 GTK_MATCH_TAIL, /* "*AAAA" */
105 GTK_MATCH_EXACT, /* "AAAAA" */
109 /* Menu keyboard movement types */
116 } GtkMenuDirectionType;
120 GTK_MENU_FACTORY_MENU,
121 GTK_MENU_FACTORY_MENU_BAR,
122 GTK_MENU_FACTORY_OPTION_MENU
123 } GtkMenuFactoryType;
132 /* Orientation for toolbars, etc. */
135 GTK_ORIENTATION_HORIZONTAL,
136 GTK_ORIENTATION_VERTICAL
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) */
183 GTK_PREVIEW_GRAYSCALE
186 /* Style for buttons */
197 GTK_RESIZE_PARENT, /* Pass resize request to the parent */
198 GTK_RESIZE_QUEUE, /* Queue resizes on this widget */
199 GTK_RESIZE_IMMEDIATE /* Perform the resizes now */
202 /* signal run types */
203 typedef enum /*< flags >*/
209 GTK_RUN_NO_RECURSE = 0x10,
210 GTK_RUN_ACTION = 0x20
213 /* scrolling types */
217 GTK_SCROLL_STEP_BACKWARD,
218 GTK_SCROLL_STEP_FORWARD,
219 GTK_SCROLL_PAGE_BACKWARD,
220 GTK_SCROLL_PAGE_FORWARD,
224 /* list selection modes */
227 GTK_SELECTION_SINGLE,
228 GTK_SELECTION_BROWSE,
229 GTK_SELECTION_MULTIPLE,
230 GTK_SELECTION_EXTENDED
239 GTK_SHADOW_ETCHED_IN,
240 GTK_SHADOW_ETCHED_OUT
250 GTK_STATE_INSENSITIVE
253 /* Directions for submenus */
258 } GtkSubmenuDirection;
260 /* Placement of submenus */
265 } GtkSubmenuPlacement;
267 /* Style for toolbars */
275 /* Trough types for GtkRange */
284 /* Data update types (for ranges) */
287 GTK_UPDATE_CONTINUOUS,
288 GTK_UPDATE_DISCONTINUOUS,
292 /* Generic visibility flags */
296 GTK_VISIBILITY_PARTIAL,
300 /* Window position types */
325 #endif /* __cplusplus */
328 #endif /* __GTK_ENUMS_H__ */