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" */
112 GTK_MENU_FACTORY_MENU,
113 GTK_MENU_FACTORY_MENU_BAR,
114 GTK_MENU_FACTORY_OPTION_MENU
115 } GtkMenuFactoryType;
124 /* Orientation for toolbars, etc. */
127 GTK_ORIENTATION_HORIZONTAL,
128 GTK_ORIENTATION_VERTICAL
131 /* Packing types (for boxes) */
138 /* priorities for path lookups */
141 GTK_PATH_PRIO_LOWEST = 0,
142 GTK_PATH_PRIO_GTK = 4,
143 GTK_PATH_PRIO_APPLICATION = 8,
144 GTK_PATH_PRIO_RC = 12,
145 GTK_PATH_PRIO_HIGHEST = 15,
146 GTK_PATH_PRIO_MASK = 0x0f
147 } GtkPathPriorityType;
149 /* widget path types */
153 GTK_PATH_WIDGET_CLASS,
157 /* Scrollbar policy types (for scrolled windows) */
175 GTK_PREVIEW_GRAYSCALE
178 /* Style for buttons */
188 GTK_RESIZE_PARENT, /* Pass resize request to the parent */
189 GTK_RESIZE_QUEUE, /* Queue resizes on this widget */
190 GTK_RESIZE_IMMEDIATE /* Perform the resizes now */
193 /* signal run types */
194 typedef enum /*< flags >*/
200 GTK_RUN_NO_RECURSE = 0x10,
201 GTK_RUN_ACTION = 0x20
204 /* scrolling types */
208 GTK_SCROLL_STEP_BACKWARD,
209 GTK_SCROLL_STEP_FORWARD,
210 GTK_SCROLL_PAGE_BACKWARD,
211 GTK_SCROLL_PAGE_FORWARD,
215 /* list selection modes */
218 GTK_SELECTION_SINGLE,
219 GTK_SELECTION_BROWSE,
220 GTK_SELECTION_MULTIPLE,
221 GTK_SELECTION_EXTENDED
230 GTK_SHADOW_ETCHED_IN,
231 GTK_SHADOW_ETCHED_OUT
241 GTK_STATE_INSENSITIVE
244 /* Directions for submenus */
249 } GtkSubmenuDirection;
251 /* Placement of submenus */
256 } GtkSubmenuPlacement;
258 /* Style for toolbars */
266 /* Trough types for GtkRange */
275 /* Data update types (for ranges) */
278 GTK_UPDATE_CONTINUOUS,
279 GTK_UPDATE_DISCONTINUOUS,
283 /* Generic visibility flags */
287 GTK_VISIBILITY_PARTIAL,
291 /* Window position types */
309 #endif /* __cplusplus */
312 #endif /* __GTK_ENUMS_H__ */