source: trunk/third/gtk/gtk/gtkenums.h @ 14482

Revision 14482, 6.3 KB checked in by ghudson, 25 years ago (diff)
This commit was generated by cvs2svn to compensate for changes in r14481, which included commits to RCS files with non-trunk default branches.
RevLine 
[14481]1/* GTK - The GIMP Toolkit
2 * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald
3 *
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.
8 *
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.
13 *
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.
18 */
19
20/*
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/.
25 */
26
27#ifndef __GTK_ENUMS_H__
28#define __GTK_ENUMS_H__
29
30#ifdef __cplusplus
31extern "C" {
32#endif /* __cplusplus */
33
34/* Arrow types */
35typedef enum
36{
37  GTK_ARROW_UP,
38  GTK_ARROW_DOWN,
39  GTK_ARROW_LEFT,
40  GTK_ARROW_RIGHT
41} GtkArrowType;
42
43/* Attach options (for tables) */
44typedef enum
45{
46  GTK_EXPAND = 1 << 0,
47  GTK_SHRINK = 1 << 1,
48  GTK_FILL   = 1 << 2
49} GtkAttachOptions;
50
51/* Button box styles */
52typedef enum
53{
54  GTK_BUTTONBOX_DEFAULT_STYLE,
55  GTK_BUTTONBOX_SPREAD,
56  GTK_BUTTONBOX_EDGE,
57  GTK_BUTTONBOX_START,
58  GTK_BUTTONBOX_END
59} GtkButtonBoxStyle;
60
61/* Curve types */
62typedef enum
63{
64  GTK_CURVE_TYPE_LINEAR,       /* linear interpolation */
65  GTK_CURVE_TYPE_SPLINE,       /* spline interpolation */
66  GTK_CURVE_TYPE_FREE          /* free form curve */
67} GtkCurveType;
68 
69/* Focus movement types */
70typedef enum
71{
72  GTK_DIR_TAB_FORWARD,
73  GTK_DIR_TAB_BACKWARD,
74  GTK_DIR_UP,
75  GTK_DIR_DOWN,
76  GTK_DIR_LEFT,
77  GTK_DIR_RIGHT
78} GtkDirectionType;
79
80/* justification for label and maybe other widgets (text?) */
81typedef enum
82{
83  GTK_JUSTIFY_LEFT,
84  GTK_JUSTIFY_RIGHT,
85  GTK_JUSTIFY_CENTER,
86  GTK_JUSTIFY_FILL
87} GtkJustification;
88
89/* GtkPatternSpec match types */
90typedef enum
91{
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" */
97  GTK_MATCH_LAST
98} GtkMatchType;
99
100/* Menu keyboard movement types */
101typedef enum
102{
103  GTK_MENU_DIR_PARENT,
104  GTK_MENU_DIR_CHILD,
105  GTK_MENU_DIR_NEXT,
106  GTK_MENU_DIR_PREV
107} GtkMenuDirectionType;
108
109typedef enum
110{
111  GTK_MENU_FACTORY_MENU,
112  GTK_MENU_FACTORY_MENU_BAR,
113  GTK_MENU_FACTORY_OPTION_MENU
114} GtkMenuFactoryType;
115
116typedef enum
117{
118  GTK_PIXELS,
119  GTK_INCHES,
120  GTK_CENTIMETERS
121} GtkMetricType;
122
123/* Orientation for toolbars, etc. */
124typedef enum
125{
126  GTK_ORIENTATION_HORIZONTAL,
127  GTK_ORIENTATION_VERTICAL
128} GtkOrientation;
129
130/* Placement type for scrolled window */
131typedef enum
132{
133  GTK_CORNER_TOP_LEFT,
134  GTK_CORNER_BOTTOM_LEFT,
135  GTK_CORNER_TOP_RIGHT,
136  GTK_CORNER_BOTTOM_RIGHT
137} GtkCornerType;
138
139/* Packing types (for boxes) */
140typedef enum
141{
142  GTK_PACK_START,
143  GTK_PACK_END
144} GtkPackType;
145
146/* priorities for path lookups */
147typedef enum
148{
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;
156
157/* widget path types */
158typedef enum
159{
160  GTK_PATH_WIDGET,
161  GTK_PATH_WIDGET_CLASS,
162  GTK_PATH_CLASS
163} GtkPathType;
164
165/* Scrollbar policy types (for scrolled windows) */
166typedef enum
167{
168  GTK_POLICY_ALWAYS,
169  GTK_POLICY_AUTOMATIC,
170  GTK_POLICY_NEVER
171} GtkPolicyType;
172
173typedef enum
174{
175  GTK_POS_LEFT,
176  GTK_POS_RIGHT,
177  GTK_POS_TOP,
178  GTK_POS_BOTTOM
179} GtkPositionType;
180
181typedef enum
182{
183  GTK_PREVIEW_COLOR,
184  GTK_PREVIEW_GRAYSCALE
185} GtkPreviewType;
186
187/* Style for buttons */
188typedef enum
189{
190  GTK_RELIEF_NORMAL,
191  GTK_RELIEF_HALF,
192  GTK_RELIEF_NONE
193} GtkReliefStyle;
194
195/* Resize type */
196typedef enum
197{
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 */
201} GtkResizeMode;
202
203/* signal run types */
204typedef enum                    /*< flags >*/
205{
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
212} GtkSignalRunType;
213
214/* scrolling types */
215typedef enum
216{
217  GTK_SCROLL_NONE,
218  GTK_SCROLL_STEP_BACKWARD,
219  GTK_SCROLL_STEP_FORWARD,
220  GTK_SCROLL_PAGE_BACKWARD,
221  GTK_SCROLL_PAGE_FORWARD,
222  GTK_SCROLL_JUMP
223} GtkScrollType;
224
225/* list selection modes */
226typedef enum
227{
228  GTK_SELECTION_SINGLE,
229  GTK_SELECTION_BROWSE,
230  GTK_SELECTION_MULTIPLE,
231  GTK_SELECTION_EXTENDED
232} GtkSelectionMode;
233
234/* Shadow types */
235typedef enum
236{
237  GTK_SHADOW_NONE,
238  GTK_SHADOW_IN,
239  GTK_SHADOW_OUT,
240  GTK_SHADOW_ETCHED_IN,
241  GTK_SHADOW_ETCHED_OUT
242} GtkShadowType;
243
244/* Widget states */
245typedef enum
246{
247  GTK_STATE_NORMAL,
248  GTK_STATE_ACTIVE,
249  GTK_STATE_PRELIGHT,
250  GTK_STATE_SELECTED,
251  GTK_STATE_INSENSITIVE
252} GtkStateType;
253
254/* Directions for submenus */
255typedef enum
256{
257  GTK_DIRECTION_LEFT,
258  GTK_DIRECTION_RIGHT
259} GtkSubmenuDirection;
260
261/* Placement of submenus */
262typedef enum
263{
264  GTK_TOP_BOTTOM,
265  GTK_LEFT_RIGHT
266} GtkSubmenuPlacement;
267
268/* Style for toolbars */
269typedef enum
270{
271  GTK_TOOLBAR_ICONS,
272  GTK_TOOLBAR_TEXT,
273  GTK_TOOLBAR_BOTH
274} GtkToolbarStyle;
275
276/* Trough types for GtkRange */
277typedef enum
278{
279  GTK_TROUGH_NONE,
280  GTK_TROUGH_START,
281  GTK_TROUGH_END,
282  GTK_TROUGH_JUMP
283} GtkTroughType;
284
285/* Data update types (for ranges) */
286typedef enum
287{
288  GTK_UPDATE_CONTINUOUS,
289  GTK_UPDATE_DISCONTINUOUS,
290  GTK_UPDATE_DELAYED
291} GtkUpdateType;
292
293/* Generic visibility flags */
294typedef enum
295{
296  GTK_VISIBILITY_NONE,
297  GTK_VISIBILITY_PARTIAL,
298  GTK_VISIBILITY_FULL
299} GtkVisibility;
300
301/* Window position types */
302typedef enum
303{
304  GTK_WIN_POS_NONE,
305  GTK_WIN_POS_CENTER,
306  GTK_WIN_POS_MOUSE,
307  GTK_WIN_POS_CENTER_ALWAYS
308} GtkWindowPosition;
309
310/* Window types */
311typedef enum
312{
313  GTK_WINDOW_TOPLEVEL,
314  GTK_WINDOW_DIALOG,
315  GTK_WINDOW_POPUP
316} GtkWindowType;
317
318/* How to sort */
319typedef enum
320{
321  GTK_SORT_ASCENDING,
322  GTK_SORT_DESCENDING
323} GtkSortType;
324
325#ifdef __cplusplus
326}
327#endif /* __cplusplus */
328
329
330#endif /* __GTK_ENUMS_H__ */
Note: See TracBrowser for help on using the repository browser.