]> Pileus Git - ~andy/gtk/blob - gtk/gtkenums.h
add _gtk_tree_view_column_get_editable_cell and
[~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 <glib-object.h>
31
32 #ifdef __cplusplus
33 extern "C" {
34 #endif /* __cplusplus */
35
36
37 /* Anchor types */
38 typedef enum
39 {
40   GTK_ANCHOR_CENTER,
41   GTK_ANCHOR_NORTH,
42   GTK_ANCHOR_NORTH_WEST,
43   GTK_ANCHOR_NORTH_EAST,
44   GTK_ANCHOR_SOUTH,
45   GTK_ANCHOR_SOUTH_WEST,
46   GTK_ANCHOR_SOUTH_EAST,
47   GTK_ANCHOR_WEST,
48   GTK_ANCHOR_EAST,
49   GTK_ANCHOR_N          = GTK_ANCHOR_NORTH,
50   GTK_ANCHOR_NW         = GTK_ANCHOR_NORTH_WEST,
51   GTK_ANCHOR_NE         = GTK_ANCHOR_NORTH_EAST,
52   GTK_ANCHOR_S          = GTK_ANCHOR_SOUTH,
53   GTK_ANCHOR_SW         = GTK_ANCHOR_SOUTH_WEST,
54   GTK_ANCHOR_SE         = GTK_ANCHOR_SOUTH_EAST,
55   GTK_ANCHOR_W          = GTK_ANCHOR_WEST,
56   GTK_ANCHOR_E          = GTK_ANCHOR_EAST
57 } GtkAnchorType;
58
59 /* Arrow types */
60 typedef enum
61 {
62   GTK_ARROW_UP,
63   GTK_ARROW_DOWN,
64   GTK_ARROW_LEFT,
65   GTK_ARROW_RIGHT
66 } GtkArrowType;
67
68 /* Attach options (for tables) */
69 typedef enum
70 {
71   GTK_EXPAND = 1 << 0,
72   GTK_SHRINK = 1 << 1,
73   GTK_FILL   = 1 << 2
74 } GtkAttachOptions;
75
76 /* Button box styles */
77 typedef enum 
78 {
79   GTK_BUTTONBOX_DEFAULT_STYLE,
80   GTK_BUTTONBOX_SPREAD,
81   GTK_BUTTONBOX_EDGE,
82   GTK_BUTTONBOX_START,
83   GTK_BUTTONBOX_END
84 } GtkButtonBoxStyle;
85
86 /* Curve types */
87 typedef enum
88 {
89   GTK_CURVE_TYPE_LINEAR,       /* linear interpolation */
90   GTK_CURVE_TYPE_SPLINE,       /* spline interpolation */
91   GTK_CURVE_TYPE_FREE          /* free form curve */
92 } GtkCurveType;
93  
94 typedef enum {
95   GTK_DELETE_CHARS,
96   GTK_DELETE_WORD_ENDS,           /* delete only the portion of the word to the
97                                    * left/right of cursor if we're in the middle
98                                    * of a word */
99   GTK_DELETE_WORDS,
100   GTK_DELETE_DISPLAY_LINES,
101   GTK_DELETE_DISPLAY_LINE_ENDS,
102   GTK_DELETE_PARAGRAPH_ENDS,      /* like C-k in Emacs (or its reverse) */
103   GTK_DELETE_PARAGRAPHS,          /* C-k in pico, kill whole line */
104   GTK_DELETE_WHITESPACE           /* M-\ in Emacs */
105 } GtkDeleteType;
106
107 /* Focus movement types */
108 typedef enum
109 {
110   GTK_DIR_TAB_FORWARD,
111   GTK_DIR_TAB_BACKWARD,
112   GTK_DIR_UP,
113   GTK_DIR_DOWN,
114   GTK_DIR_LEFT,
115   GTK_DIR_RIGHT
116 } GtkDirectionType;
117
118 /* Expander styles */
119 typedef enum
120 {
121   GTK_EXPANDER_COLLAPSED,
122   GTK_EXPANDER_SEMI_COLLAPSED,
123   GTK_EXPANDER_SEMI_EXPANDED,
124   GTK_EXPANDER_EXPANDED
125 } GtkExpanderStyle;
126
127 /* Built-in stock icon sizes */
128 typedef enum
129 {
130   GTK_ICON_SIZE_INVALID,
131   GTK_ICON_SIZE_MENU,
132   GTK_ICON_SIZE_SMALL_TOOLBAR,
133   GTK_ICON_SIZE_LARGE_TOOLBAR,
134   GTK_ICON_SIZE_BUTTON,
135   GTK_ICON_SIZE_DND,
136   GTK_ICON_SIZE_DIALOG
137 } GtkIconSize;
138
139 #ifndef GTK_DISABLE_DEPRECATED
140 /* side types */
141 typedef enum
142 {
143   GTK_SIDE_TOP,
144   GTK_SIDE_BOTTOM,
145   GTK_SIDE_LEFT,
146   GTK_SIDE_RIGHT
147 } GtkSideType;
148 #endif /* GTK_DISABLE_DEPRECATED */
149
150 /* Reading directions for text */
151 typedef enum
152 {
153   GTK_TEXT_DIR_NONE,
154   GTK_TEXT_DIR_LTR,
155   GTK_TEXT_DIR_RTL
156 } GtkTextDirection;
157
158 /* justification for label and maybe other widgets (text?) */
159 typedef enum
160 {
161   GTK_JUSTIFY_LEFT,
162   GTK_JUSTIFY_RIGHT,
163   GTK_JUSTIFY_CENTER,
164   GTK_JUSTIFY_FILL
165 } GtkJustification;
166
167 #ifndef GTK_DISABLE_DEPRECATED
168 /* GtkPatternSpec match types */
169 typedef enum
170 {
171   GTK_MATCH_ALL,       /* "*A?A*" */
172   GTK_MATCH_ALL_TAIL,  /* "*A?AA" */
173   GTK_MATCH_HEAD,      /* "AAAA*" */
174   GTK_MATCH_TAIL,      /* "*AAAA" */
175   GTK_MATCH_EXACT,     /* "AAAAA" */
176   GTK_MATCH_LAST
177 } GtkMatchType;
178 #endif /* GTK_DISABLE_DEPRECATED */
179
180 /* Menu keyboard movement types */
181 typedef enum
182 {
183   GTK_MENU_DIR_PARENT,
184   GTK_MENU_DIR_CHILD,
185   GTK_MENU_DIR_NEXT,
186   GTK_MENU_DIR_PREV
187 } GtkMenuDirectionType;
188
189 typedef enum
190 {
191   GTK_PIXELS,
192   GTK_INCHES,
193   GTK_CENTIMETERS
194 } GtkMetricType;
195
196 typedef enum {
197   GTK_MOVEMENT_LOGICAL_POSITIONS, /* move by forw/back graphemes */
198   GTK_MOVEMENT_VISUAL_POSITIONS,  /* move by left/right graphemes */
199   GTK_MOVEMENT_WORDS,             /* move by forward/back words */
200   GTK_MOVEMENT_DISPLAY_LINES,     /* move up/down lines (wrapped lines) */
201   GTK_MOVEMENT_DISPLAY_LINE_ENDS, /* move up/down lines (wrapped lines) */
202   GTK_MOVEMENT_PARAGRAPHS,        /* move up/down paragraphs (newline-ended lines) */
203   GTK_MOVEMENT_PARAGRAPH_ENDS,    /* move to either end of a paragraph */
204   GTK_MOVEMENT_PAGES,             /* move by pages */
205   GTK_MOVEMENT_BUFFER_ENDS        /* move to ends of the buffer */
206 } GtkMovementStep;
207
208 /* Orientation for toolbars, etc. */
209 typedef enum
210 {
211   GTK_ORIENTATION_HORIZONTAL,
212   GTK_ORIENTATION_VERTICAL
213 } GtkOrientation;
214
215 /* Placement type for scrolled window */
216 typedef enum
217 {
218   GTK_CORNER_TOP_LEFT,
219   GTK_CORNER_BOTTOM_LEFT,
220   GTK_CORNER_TOP_RIGHT,
221   GTK_CORNER_BOTTOM_RIGHT
222 } GtkCornerType;
223
224 /* Packing types (for boxes) */
225 typedef enum
226 {
227   GTK_PACK_START,
228   GTK_PACK_END
229 } GtkPackType;
230
231 /* priorities for path lookups */
232 typedef enum
233 {
234   GTK_PATH_PRIO_LOWEST      = 0,
235   GTK_PATH_PRIO_GTK         = 4,
236   GTK_PATH_PRIO_APPLICATION = 8,
237   GTK_PATH_PRIO_THEME       = 10,
238   GTK_PATH_PRIO_RC          = 12,
239   GTK_PATH_PRIO_HIGHEST     = 15
240 } GtkPathPriorityType;
241 #define GTK_PATH_PRIO_MASK 0x0f
242
243 /* widget path types */
244 typedef enum
245 {
246   GTK_PATH_WIDGET,
247   GTK_PATH_WIDGET_CLASS,
248   GTK_PATH_CLASS
249 } GtkPathType;
250
251 /* Scrollbar policy types (for scrolled windows) */
252 typedef enum
253 {
254   GTK_POLICY_ALWAYS,
255   GTK_POLICY_AUTOMATIC,
256   GTK_POLICY_NEVER
257 } GtkPolicyType;
258
259 typedef enum
260 {
261   GTK_POS_LEFT,
262   GTK_POS_RIGHT,
263   GTK_POS_TOP,
264   GTK_POS_BOTTOM
265 } GtkPositionType;
266
267 #ifndef GTK_DISABLE_DEPRECATED
268 typedef enum
269 {
270   GTK_PREVIEW_COLOR,
271   GTK_PREVIEW_GRAYSCALE
272 } GtkPreviewType;
273 #endif /* GTK_DISABLE_DEPRECATED */
274
275 /* Style for buttons */
276 typedef enum
277 {
278   GTK_RELIEF_NORMAL,
279   GTK_RELIEF_HALF,
280   GTK_RELIEF_NONE
281 } GtkReliefStyle;
282
283 /* Resize type */
284 typedef enum
285 {
286   GTK_RESIZE_PARENT,            /* Pass resize request to the parent */
287   GTK_RESIZE_QUEUE,             /* Queue resizes on this widget */
288   GTK_RESIZE_IMMEDIATE          /* Perform the resizes now */
289 } GtkResizeMode;
290
291 #ifndef GTK_DISABLE_DEPRECATED
292 /* signal run types */
293 typedef enum                    /*< flags >*/
294 {
295   GTK_RUN_FIRST      = G_SIGNAL_RUN_FIRST,
296   GTK_RUN_LAST       = G_SIGNAL_RUN_LAST,
297   GTK_RUN_BOTH       = (GTK_RUN_FIRST | GTK_RUN_LAST),
298   GTK_RUN_NO_RECURSE = G_SIGNAL_NO_RECURSE,
299   GTK_RUN_ACTION     = G_SIGNAL_ACTION,
300   GTK_RUN_NO_HOOKS   = G_SIGNAL_NO_HOOKS
301 } GtkSignalRunType;
302 #endif /* GTK_DISABLE_DEPRECATED */
303
304 /* scrolling types */
305 typedef enum
306 {
307   GTK_SCROLL_NONE,
308   GTK_SCROLL_JUMP,
309   GTK_SCROLL_STEP_BACKWARD,
310   GTK_SCROLL_STEP_FORWARD,
311   GTK_SCROLL_PAGE_BACKWARD,
312   GTK_SCROLL_PAGE_FORWARD,
313   GTK_SCROLL_STEP_UP,
314   GTK_SCROLL_STEP_DOWN,
315   GTK_SCROLL_PAGE_UP,
316   GTK_SCROLL_PAGE_DOWN,
317   GTK_SCROLL_STEP_LEFT,
318   GTK_SCROLL_STEP_RIGHT,
319   GTK_SCROLL_PAGE_LEFT,
320   GTK_SCROLL_PAGE_RIGHT,
321   GTK_SCROLL_START,
322   GTK_SCROLL_END
323 } GtkScrollType;
324
325 /* list selection modes */
326 typedef enum
327 {
328   GTK_SELECTION_NONE,                             /* Nothing can be selected */
329   GTK_SELECTION_SINGLE,
330   GTK_SELECTION_BROWSE,
331   GTK_SELECTION_MULTIPLE,
332   GTK_SELECTION_EXTENDED = GTK_SELECTION_MULTIPLE /* Deprecated */
333 } GtkSelectionMode;
334
335 /* Shadow types */
336 typedef enum
337 {
338   GTK_SHADOW_NONE,
339   GTK_SHADOW_IN,
340   GTK_SHADOW_OUT,
341   GTK_SHADOW_ETCHED_IN,
342   GTK_SHADOW_ETCHED_OUT
343 } GtkShadowType;
344
345 /* Widget states */
346 typedef enum
347 {
348   GTK_STATE_NORMAL,
349   GTK_STATE_ACTIVE,
350   GTK_STATE_PRELIGHT,
351   GTK_STATE_SELECTED,
352   GTK_STATE_INSENSITIVE
353 } GtkStateType;
354
355 #if !defined(GTK_DISABLE_DEPRECATED) || defined (GTK_MENU_INTERNALS)
356 /* Directions for submenus */
357 typedef enum
358 {
359   GTK_DIRECTION_LEFT,
360   GTK_DIRECTION_RIGHT
361 } GtkSubmenuDirection;
362
363 /* Placement of submenus */
364 typedef enum
365 {
366   GTK_TOP_BOTTOM,
367   GTK_LEFT_RIGHT
368 } GtkSubmenuPlacement;
369 #endif /* GTK_DISABLE_DEPRECATED */
370
371 /* Style for toolbars */
372 typedef enum
373 {
374   GTK_TOOLBAR_ICONS,
375   GTK_TOOLBAR_TEXT,
376   GTK_TOOLBAR_BOTH,
377   GTK_TOOLBAR_BOTH_HORIZ
378 } GtkToolbarStyle;
379
380 /* Data update types (for ranges) */
381 typedef enum
382 {
383   GTK_UPDATE_CONTINUOUS,
384   GTK_UPDATE_DISCONTINUOUS,
385   GTK_UPDATE_DELAYED
386 } GtkUpdateType;
387
388 /* Generic visibility flags */
389 typedef enum
390 {
391   GTK_VISIBILITY_NONE,
392   GTK_VISIBILITY_PARTIAL,
393   GTK_VISIBILITY_FULL
394 } GtkVisibility;
395
396 /* Window position types */
397 typedef enum
398 {
399   GTK_WIN_POS_NONE,
400   GTK_WIN_POS_CENTER,
401   GTK_WIN_POS_MOUSE,
402   GTK_WIN_POS_CENTER_ALWAYS,
403   GTK_WIN_POS_CENTER_ON_PARENT
404 } GtkWindowPosition;
405
406 /* Window types */
407 typedef enum
408 {
409   GTK_WINDOW_TOPLEVEL,
410   GTK_WINDOW_POPUP
411 } GtkWindowType;
412
413 /* Text wrap */
414 typedef enum
415 {
416   GTK_WRAP_NONE,
417   GTK_WRAP_CHAR,
418   GTK_WRAP_WORD
419 } GtkWrapMode;
420
421 /* How to sort */
422 typedef enum
423 {
424   GTK_SORT_ASCENDING,
425   GTK_SORT_DESCENDING
426 } GtkSortType;
427
428 #ifdef __cplusplus
429 }
430 #endif /* __cplusplus */
431
432
433 #endif /* __GTK_ENUMS_H__ */