]> Pileus Git - ~andy/gtk/blob - gtk/gtkenums.h
new function, turns off decorations for a window.
[~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 Lesser 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  * Lesser General Public License for more details.
13  *
14  * You should have received a copy of the GNU Lesser 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-2000.  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 #include <gobject/gsignal.h>
31
32 #ifdef __cplusplus
33 extern "C" {
34 #endif /* __cplusplus */
35
36 /* Arrow types */
37 typedef enum
38 {
39   GTK_ARROW_UP,
40   GTK_ARROW_DOWN,
41   GTK_ARROW_LEFT,
42   GTK_ARROW_RIGHT
43 } GtkArrowType;
44
45 /* Attach options (for tables) */
46 typedef enum
47 {
48   GTK_EXPAND = 1 << 0,
49   GTK_SHRINK = 1 << 1,
50   GTK_FILL   = 1 << 2
51 } GtkAttachOptions;
52
53 /* Button box styles */
54 typedef enum 
55 {
56   GTK_BUTTONBOX_DEFAULT_STYLE,
57   GTK_BUTTONBOX_SPREAD,
58   GTK_BUTTONBOX_EDGE,
59   GTK_BUTTONBOX_START,
60   GTK_BUTTONBOX_END
61 } GtkButtonBoxStyle;
62
63 /* Curve types */
64 typedef enum
65 {
66   GTK_CURVE_TYPE_LINEAR,       /* linear interpolation */
67   GTK_CURVE_TYPE_SPLINE,       /* spline interpolation */
68   GTK_CURVE_TYPE_FREE          /* free form curve */
69 } GtkCurveType;
70  
71 typedef enum {
72   GTK_DELETE_CHARS,
73   GTK_DELETE_WORD_ENDS,           /* delete only the portion of the word to the
74                                    * left/right of cursor if we're in the middle
75                                    * of a word */
76   GTK_DELETE_WORDS,
77   GTK_DELETE_DISPLAY_LINES,
78   GTK_DELETE_DISPLAY_LINE_ENDS,
79   GTK_DELETE_PARAGRAPH_ENDS,      /* like C-k in Emacs (or its reverse) */
80   GTK_DELETE_PARAGRAPHS,          /* C-k in pico, kill whole line */
81   GTK_DELETE_WHITESPACE           /* M-\ in Emacs */
82 } GtkDeleteType;
83
84 /* Focus movement types */
85 typedef enum
86 {
87   GTK_DIR_TAB_FORWARD,
88   GTK_DIR_TAB_BACKWARD,
89   GTK_DIR_UP,
90   GTK_DIR_DOWN,
91   GTK_DIR_LEFT,
92   GTK_DIR_RIGHT
93 } GtkDirectionType;
94
95 /* Reading directions for text */
96 typedef enum
97 {
98   GTK_TEXT_DIR_NONE,
99   GTK_TEXT_DIR_LTR,
100   GTK_TEXT_DIR_RTL
101 } GtkTextDirection;
102
103 /* justification for label and maybe other widgets (text?) */
104 typedef enum
105 {
106   GTK_JUSTIFY_LEFT,
107   GTK_JUSTIFY_RIGHT,
108   GTK_JUSTIFY_CENTER,
109   GTK_JUSTIFY_FILL
110 } GtkJustification;
111
112 /* GtkPatternSpec match types */
113 typedef enum
114 {
115   GTK_MATCH_ALL,       /* "*A?A*" */
116   GTK_MATCH_ALL_TAIL,  /* "*A?AA" */
117   GTK_MATCH_HEAD,      /* "AAAA*" */
118   GTK_MATCH_TAIL,      /* "*AAAA" */
119   GTK_MATCH_EXACT,     /* "AAAAA" */
120   GTK_MATCH_LAST
121 } GtkMatchType;
122
123 /* Menu keyboard movement types */
124 typedef enum
125 {
126   GTK_MENU_DIR_PARENT,
127   GTK_MENU_DIR_CHILD,
128   GTK_MENU_DIR_NEXT,
129   GTK_MENU_DIR_PREV
130 } GtkMenuDirectionType;
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   GTK_MOVEMENT_LOGICAL_POSITIONS, /* move by forw/back graphemes */
148   GTK_MOVEMENT_VISUAL_POSITIONS,  /* move by left/right graphemes */
149   GTK_MOVEMENT_WORDS,             /* move by forward/back words */
150   GTK_MOVEMENT_DISPLAY_LINES,     /* move up/down lines (wrapped lines) */
151   GTK_MOVEMENT_DISPLAY_LINE_ENDS, /* move up/down lines (wrapped lines) */
152   GTK_MOVEMENT_PARAGRAPHS,        /* move up/down paragraphs (newline-ended lines) */
153   GTK_MOVEMENT_PARAGRAPH_ENDS,    /* move to either end of a paragraph */
154   GTK_MOVEMENT_PAGES,             /* move by pages */
155   GTK_MOVEMENT_BUFFER_ENDS        /* move to ends of the buffer */
156 } GtkMovementStep;
157
158 /* Orientation for toolbars, etc. */
159 typedef enum
160 {
161   GTK_ORIENTATION_HORIZONTAL,
162   GTK_ORIENTATION_VERTICAL
163 } GtkOrientation;
164
165 /* Placement type for scrolled window */
166 typedef enum
167 {
168   GTK_CORNER_TOP_LEFT,
169   GTK_CORNER_BOTTOM_LEFT,
170   GTK_CORNER_TOP_RIGHT,
171   GTK_CORNER_BOTTOM_RIGHT
172 } GtkCornerType;
173
174 /* Packing types (for boxes) */
175 typedef enum
176 {
177   GTK_PACK_START,
178   GTK_PACK_END
179 } GtkPackType;
180
181 /* priorities for path lookups */
182 typedef enum
183 {
184   GTK_PATH_PRIO_LOWEST      = 0,
185   GTK_PATH_PRIO_GTK         = 4,
186   GTK_PATH_PRIO_APPLICATION = 8,
187   GTK_PATH_PRIO_RC          = 12,
188   GTK_PATH_PRIO_HIGHEST     = 15,
189   GTK_PATH_PRIO_MASK        = 0x0f
190 } GtkPathPriorityType;
191
192 /* widget path types */
193 typedef enum
194 {
195   GTK_PATH_WIDGET,
196   GTK_PATH_WIDGET_CLASS,
197   GTK_PATH_CLASS
198 } GtkPathType;
199
200 /* Scrollbar policy types (for scrolled windows) */
201 typedef enum
202 {
203   GTK_POLICY_ALWAYS,
204   GTK_POLICY_AUTOMATIC,
205   GTK_POLICY_NEVER
206 } GtkPolicyType;
207
208 typedef enum
209 {
210   GTK_POS_LEFT,
211   GTK_POS_RIGHT,
212   GTK_POS_TOP,
213   GTK_POS_BOTTOM
214 } GtkPositionType;
215
216 typedef enum
217 {
218   GTK_PREVIEW_COLOR,
219   GTK_PREVIEW_GRAYSCALE
220 } GtkPreviewType;
221
222 /* Style for buttons */
223 typedef enum
224 {
225   GTK_RELIEF_NORMAL,
226   GTK_RELIEF_HALF,
227   GTK_RELIEF_NONE
228 } GtkReliefStyle;
229
230 /* Resize type */
231 typedef enum
232 {
233   GTK_RESIZE_PARENT,            /* Pass resize request to the parent */
234   GTK_RESIZE_QUEUE,             /* Queue resizes on this widget */
235   GTK_RESIZE_IMMEDIATE          /* Perform the resizes now */
236 } GtkResizeMode;
237
238 /* signal run types */
239 typedef enum                    /*< flags >*/
240 {
241   GTK_RUN_FIRST      = G_SIGNAL_RUN_FIRST,
242   GTK_RUN_LAST       = G_SIGNAL_RUN_LAST,
243   GTK_RUN_BOTH       = (GTK_RUN_FIRST | GTK_RUN_LAST),
244   GTK_RUN_NO_RECURSE = G_SIGNAL_NO_RECURSE,
245   GTK_RUN_ACTION     = G_SIGNAL_ACTION,
246   GTK_RUN_NO_HOOKS   = G_SIGNAL_NO_HOOKS
247 } GtkSignalRunType;
248
249 /* scrolling types */
250 typedef enum
251 {
252   GTK_SCROLL_NONE,
253   GTK_SCROLL_STEP_BACKWARD,
254   GTK_SCROLL_STEP_FORWARD,
255   GTK_SCROLL_PAGE_BACKWARD,
256   GTK_SCROLL_PAGE_FORWARD,
257   GTK_SCROLL_JUMP,
258   GTK_SCROLL_STEP_UP,
259   GTK_SCROLL_STEP_DOWN,
260   GTK_SCROLL_PAGE_UP,
261   GTK_SCROLL_PAGE_DOWN,
262   GTK_SCROLL_STEP_LEFT,
263   GTK_SCROLL_STEP_RIGHT,
264   GTK_SCROLL_PAGE_LEFT,
265   GTK_SCROLL_PAGE_RIGHT
266 } GtkScrollType;
267
268 /* list selection modes */
269 typedef enum
270 {
271   GTK_SELECTION_SINGLE,
272   GTK_SELECTION_BROWSE,
273   GTK_SELECTION_MULTIPLE,
274   GTK_SELECTION_EXTENDED
275 } GtkSelectionMode;
276
277 /* Shadow types */
278 typedef enum
279 {
280   GTK_SHADOW_NONE,
281   GTK_SHADOW_IN,
282   GTK_SHADOW_OUT,
283   GTK_SHADOW_ETCHED_IN,
284   GTK_SHADOW_ETCHED_OUT
285 } GtkShadowType;
286
287 /* Widget states */
288 typedef enum
289 {
290   GTK_STATE_NORMAL,
291   GTK_STATE_ACTIVE,
292   GTK_STATE_PRELIGHT,
293   GTK_STATE_SELECTED,
294   GTK_STATE_INSENSITIVE
295 } GtkStateType;
296
297 /* Directions for submenus */
298 typedef enum
299 {
300   GTK_DIRECTION_LEFT,
301   GTK_DIRECTION_RIGHT
302 } GtkSubmenuDirection;
303
304 /* Placement of submenus */
305 typedef enum
306 {
307   GTK_TOP_BOTTOM,
308   GTK_LEFT_RIGHT
309 } GtkSubmenuPlacement;
310
311 /* Style for toolbars */
312 typedef enum
313 {
314   GTK_TOOLBAR_ICONS,
315   GTK_TOOLBAR_TEXT,
316   GTK_TOOLBAR_BOTH,
317   GTK_TOOLBAR_BOTH_HORIZ
318 } GtkToolbarStyle;
319
320 /* Trough types for GtkRange */
321 typedef enum
322 {
323   GTK_TROUGH_NONE,
324   GTK_TROUGH_START,
325   GTK_TROUGH_END,
326   GTK_TROUGH_JUMP
327 } GtkTroughType;
328
329 /* Data update types (for ranges) */
330 typedef enum
331 {
332   GTK_UPDATE_CONTINUOUS,
333   GTK_UPDATE_DISCONTINUOUS,
334   GTK_UPDATE_DELAYED
335 } GtkUpdateType;
336
337 /* Generic visibility flags */
338 typedef enum
339 {
340   GTK_VISIBILITY_NONE,
341   GTK_VISIBILITY_PARTIAL,
342   GTK_VISIBILITY_FULL
343 } GtkVisibility;
344
345 /* Window position types */
346 typedef enum
347 {
348   GTK_WIN_POS_NONE,
349   GTK_WIN_POS_CENTER,
350   GTK_WIN_POS_MOUSE,
351   GTK_WIN_POS_CENTER_ALWAYS,
352   GTK_WIN_POS_CENTER_ON_PARENT
353 } GtkWindowPosition;
354
355 /* Window types */
356 typedef enum
357 {
358   GTK_WINDOW_TOPLEVEL,
359   GTK_WINDOW_POPUP
360 } GtkWindowType;
361
362 /* How to sort */
363 typedef enum
364 {
365   GTK_SORT_ASCENDING,
366   GTK_SORT_DESCENDING
367 } GtkSortType;
368
369 #ifdef __cplusplus
370 }
371 #endif /* __cplusplus */
372
373
374 #endif /* __GTK_ENUMS_H__ */