]> Pileus Git - ~andy/gtk/blob - gtk/gtkenums.h
Now we return a GtkVisibility value, instead of a simple boolean. Also,
[~andy/gtk] / gtk / gtkenums.h
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 Free
16  * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
17  */
18 #ifndef __GTK_ENUMS_H__
19 #define __GTK_ENUMS_H__
20
21 #ifdef __cplusplus
22 extern "C" {
23 #endif /* __cplusplus */
24
25
26 /* Widget states */
27 typedef enum
28 {
29   GTK_STATE_NORMAL,
30   GTK_STATE_ACTIVE,
31   GTK_STATE_PRELIGHT,
32   GTK_STATE_SELECTED,
33   GTK_STATE_INSENSITIVE
34 } GtkStateType;
35
36 /* Window types */
37 typedef enum
38 {
39   GTK_WINDOW_TOPLEVEL,
40   GTK_WINDOW_DIALOG,
41   GTK_WINDOW_POPUP
42 } GtkWindowType;
43
44 /* Focus movement types */
45 typedef enum
46 {
47   GTK_DIR_TAB_FORWARD,
48   GTK_DIR_TAB_BACKWARD,
49   GTK_DIR_UP,
50   GTK_DIR_DOWN,
51   GTK_DIR_LEFT,
52   GTK_DIR_RIGHT
53 } GtkDirectionType;
54
55 /* Shadow types */
56 typedef enum
57 {
58   GTK_SHADOW_NONE,
59   GTK_SHADOW_IN,
60   GTK_SHADOW_OUT,
61   GTK_SHADOW_ETCHED_IN,
62   GTK_SHADOW_ETCHED_OUT
63 } GtkShadowType;
64
65 /* Arrow types */
66 typedef enum
67 {
68   GTK_ARROW_UP,
69   GTK_ARROW_DOWN,
70   GTK_ARROW_LEFT,
71   GTK_ARROW_RIGHT
72 } GtkArrowType;
73
74 /* Packing types (for boxes) */
75 typedef enum
76 {
77   GTK_PACK_START,
78   GTK_PACK_END
79 } GtkPackType;
80
81 /* Scrollbar policy types (for scrolled windows) */
82 typedef enum
83 {
84   GTK_POLICY_ALWAYS,
85   GTK_POLICY_AUTOMATIC
86 } GtkPolicyType;
87
88 /* Data update types (for ranges) */
89 typedef enum
90 {
91   GTK_UPDATE_CONTINUOUS,
92   GTK_UPDATE_DISCONTINUOUS,
93   GTK_UPDATE_DELAYED
94 } GtkUpdateType;
95
96 /* Attach options (for tables) */
97 typedef enum
98 {
99   GTK_EXPAND = 1 << 0,
100   GTK_SHRINK = 1 << 1,
101   GTK_FILL   = 1 << 2
102 } GtkAttachOptions;
103
104 typedef enum
105 {
106   GTK_RUN_FIRST      = 0x1,
107   GTK_RUN_LAST       = 0x2,
108   GTK_RUN_BOTH       = 0x3,
109   GTK_RUN_MASK       = 0xF,
110   GTK_RUN_NO_RECURSE = 0x10
111 } GtkSignalRunType;
112
113 typedef enum
114 {
115   GTK_WIN_POS_NONE,
116   GTK_WIN_POS_CENTER,
117   GTK_WIN_POS_MOUSE
118 } GtkWindowPosition;
119
120 typedef enum
121 {
122   GTK_DIRECTION_LEFT,
123   GTK_DIRECTION_RIGHT
124 } GtkSubmenuDirection;
125
126 typedef enum
127 {
128   GTK_TOP_BOTTOM,
129   GTK_LEFT_RIGHT
130 } GtkSubmenuPlacement;
131
132 typedef enum
133 {
134   GTK_MENU_FACTORY_MENU,
135   GTK_MENU_FACTORY_MENU_BAR,
136   GTK_MENU_FACTORY_OPTION_MENU
137 } GtkMenuFactoryType;
138
139 typedef enum
140 {
141   GTK_PIXELS,
142   GTK_INCHES,
143   GTK_CENTIMETERS
144 } GtkMetricType;
145
146 typedef enum
147 {
148   GTK_SCROLL_NONE,
149   GTK_SCROLL_STEP_BACKWARD,
150   GTK_SCROLL_STEP_FORWARD,
151   GTK_SCROLL_PAGE_BACKWARD,
152   GTK_SCROLL_PAGE_FORWARD,
153   GTK_SCROLL_JUMP
154 } GtkScrollType;
155
156 typedef enum
157 {
158   GTK_TROUGH_NONE,
159   GTK_TROUGH_START,
160   GTK_TROUGH_END,
161   GTK_TROUGH_JUMP
162 } GtkTroughType;
163
164 typedef enum
165 {
166   GTK_POS_LEFT,
167   GTK_POS_RIGHT,
168   GTK_POS_TOP,
169   GTK_POS_BOTTOM
170 } GtkPositionType;
171
172 typedef enum
173 {
174   GTK_PREVIEW_COLOR,
175   GTK_PREVIEW_GRAYSCALE
176 } GtkPreviewType;
177
178 /* justification for label and maybe other widgets (text?) */
179 typedef enum
180 {
181   GTK_JUSTIFY_LEFT,
182   GTK_JUSTIFY_RIGHT,
183   GTK_JUSTIFY_CENTER,
184   GTK_JUSTIFY_FILL
185 } GtkJustification;
186
187 /* list selection modes */
188 typedef enum
189 {
190   GTK_SELECTION_SINGLE,
191   GTK_SELECTION_BROWSE,
192   GTK_SELECTION_MULTIPLE,
193   GTK_SELECTION_EXTENDED
194 } GtkSelectionMode;
195
196 /* Orientation for toolbars, etc. */
197 typedef enum
198 {
199   GTK_ORIENTATION_HORIZONTAL,
200   GTK_ORIENTATION_VERTICAL
201 } GtkOrientation;
202
203 /* Style for toolbars */
204 typedef enum
205 {
206   GTK_TOOLBAR_ICONS,
207   GTK_TOOLBAR_TEXT,
208   GTK_TOOLBAR_BOTH
209 } GtkToolbarStyle;
210
211 /* Generic visibility flags */
212 typedef enum
213 {
214   GTK_VISIBILITY_NONE,
215   GTK_VISIBILITY_PARTIAL,
216   GTK_VISIBILITY_FULL
217 } GtkVisibility;
218
219 #ifdef __cplusplus
220 }
221 #endif /* __cplusplus */
222
223
224 #endif /* __GTK_ENUMS_H__ */