]> Pileus Git - ~andy/gtk/blob - docs/reference/gtk/tmpl/gtkenums.sgml
6e2fcdcb145d248cbfab717fc5968f46977e33a0
[~andy/gtk] / docs / reference / gtk / tmpl / gtkenums.sgml
1 <!-- ##### SECTION Title ##### -->
2 Standard Enumerations
3
4 <!-- ##### SECTION Short_Description ##### -->
5 Public enumerated types used throughout GTK+
6
7 <!-- ##### SECTION Long_Description ##### -->
8 <para>
9
10 </para>
11
12 <!-- ##### SECTION See_Also ##### -->
13 <para>
14
15 </para>
16
17 <!-- ##### ENUM GtkAccelFlags ##### -->
18 <para>
19
20 </para>
21
22 @GTK_ACCEL_VISIBLE: 
23 @GTK_ACCEL_LOCKED: 
24 @GTK_ACCEL_MASK: 
25
26 <!-- ##### ENUM GtkAnchorType ##### -->
27 <para>
28
29 </para>
30
31 @GTK_ANCHOR_CENTER: 
32 @GTK_ANCHOR_NORTH: 
33 @GTK_ANCHOR_NORTH_WEST: 
34 @GTK_ANCHOR_NORTH_EAST: 
35 @GTK_ANCHOR_SOUTH: 
36 @GTK_ANCHOR_SOUTH_WEST: 
37 @GTK_ANCHOR_SOUTH_EAST: 
38 @GTK_ANCHOR_WEST: 
39 @GTK_ANCHOR_EAST: 
40 @GTK_ANCHOR_N: 
41 @GTK_ANCHOR_NW: 
42 @GTK_ANCHOR_NE: 
43 @GTK_ANCHOR_S: 
44 @GTK_ANCHOR_SW: 
45 @GTK_ANCHOR_SE: 
46 @GTK_ANCHOR_W: 
47 @GTK_ANCHOR_E: 
48
49 <!-- ##### ENUM GtkArrowType ##### -->
50 <para>
51 Used to indicate the direction in which a #GtkArrow should point.
52 </para>
53
54 @GTK_ARROW_UP: Represents an upward pointing arrow.
55 @GTK_ARROW_DOWN: Represents a downward pointing arrow.
56 @GTK_ARROW_LEFT: Represents a left pointing arrow.
57 @GTK_ARROW_RIGHT: Represents a right pointing arrow.
58
59 <!-- ##### ENUM GtkAttachOptions ##### -->
60 <para>
61 Denotes the expansion properties that a widget will have when it (or its
62 parent) is resized.
63 </para>
64
65 @GTK_EXPAND: the widget should expand to take up any extra space in its
66 container that has been allocated.
67 @GTK_SHRINK: the widget should shrink as and when possible.
68 @GTK_FILL: the widget should fill the space allocated to it.
69
70 <!-- ##### ENUM GtkButtonBoxStyle ##### -->
71 <para>
72 Used to dictate the style that a #GtkButtonBox uses to layout the buttons it
73 contains. (See also: #GtkVButtonBox and #GtkHButtonBox).
74 </para>
75
76 @GTK_BUTTONBOX_DEFAULT_STYLE: Default packing.
77 @GTK_BUTTONBOX_SPREAD: Buttons are evenly spread across the ButtonBox.
78 @GTK_BUTTONBOX_EDGE: Buttons are placed at the edges of the ButtonBox.
79 @GTK_BUTTONBOX_START: Buttons are grouped towards the start of box, (on the
80 left for a HBox, or the top for a VBox).
81 @GTK_BUTTONBOX_END: Buttons are grouped towards the end of a box, (on the
82 right for a HBox, or the bottom for a VBox).
83
84 <!-- ##### ENUM GtkCornerType ##### -->
85 <para>
86 Specifies which corner a child widget should be placed in when packed into
87 a #GtkScrolledWindow. This is effectively the opposite of where the scroll
88 bars are placed.
89 </para>
90
91 @GTK_CORNER_TOP_LEFT: Place the scrollbars on the right and bottom of the
92 widget (default behaviour).
93 @GTK_CORNER_BOTTOM_LEFT: Place the scrollbars on the top and right of the
94 widget.
95 @GTK_CORNER_TOP_RIGHT: Place the scrollbars on the left and bottom of the
96 widget.
97 @GTK_CORNER_BOTTOM_RIGHT: Place the scrollbars on the top and left of the
98 widget.
99
100 <!-- ##### ENUM GtkCurveType ##### -->
101 <para>
102
103 </para>
104
105 @GTK_CURVE_TYPE_LINEAR: 
106 @GTK_CURVE_TYPE_SPLINE: 
107 @GTK_CURVE_TYPE_FREE: 
108
109 <!-- ##### ENUM GtkDeleteType ##### -->
110 <para>
111
112 </para>
113
114 @GTK_DELETE_CHARS: 
115 @GTK_DELETE_WORD_ENDS: 
116 @GTK_DELETE_WORDS: 
117 @GTK_DELETE_DISPLAY_LINES: 
118 @GTK_DELETE_DISPLAY_LINE_ENDS: 
119 @GTK_DELETE_PARAGRAPH_ENDS: 
120 @GTK_DELETE_PARAGRAPHS: 
121 @GTK_DELETE_WHITESPACE: 
122
123 <!-- ##### ENUM GtkDirectionType ##### -->
124 <para>
125
126 </para>
127
128 @GTK_DIR_TAB_FORWARD: 
129 @GTK_DIR_TAB_BACKWARD: 
130 @GTK_DIR_UP: 
131 @GTK_DIR_DOWN: 
132 @GTK_DIR_LEFT: 
133 @GTK_DIR_RIGHT: 
134
135 <!-- ##### ENUM GtkExpanderStyle ##### -->
136 <para>
137
138 </para>
139
140 @GTK_EXPANDER_COLLAPSED: 
141 @GTK_EXPANDER_SEMI_COLLAPSED: 
142 @GTK_EXPANDER_SEMI_EXPANDED: 
143 @GTK_EXPANDER_EXPANDED: 
144
145 <!-- ##### ENUM GtkIMPreeditStyle ##### -->
146 <para>
147
148 </para>
149
150 @GTK_IM_PREEDIT_NOTHING: 
151 @GTK_IM_PREEDIT_CALLBACK: 
152
153 <!-- ##### ENUM GtkIMStatusStyle ##### -->
154 <para>
155
156 </para>
157
158 @GTK_IM_STATUS_NOTHING: 
159 @GTK_IM_STATUS_CALLBACK: 
160
161 <!-- ##### ENUM GtkJustification ##### -->
162 <para>
163 Used for justifying the text inside a #GtkLabel widget. (See also
164 #GtkAlignment).
165 </para>
166
167 @GTK_JUSTIFY_LEFT: The text is placed at the left edge of the label.
168 @GTK_JUSTIFY_RIGHT: The text is placed at the right edge of the label.
169 @GTK_JUSTIFY_CENTER: The text is placed in the center of the label.
170 @GTK_JUSTIFY_FILL: The text is placed is distributed across the label.
171
172 <!-- ##### ENUM GtkMatchType ##### -->
173 <para>
174
175 </para>
176
177 @GTK_MATCH_ALL: 
178 @GTK_MATCH_ALL_TAIL: 
179 @GTK_MATCH_HEAD: 
180 @GTK_MATCH_TAIL: 
181 @GTK_MATCH_EXACT: 
182 @GTK_MATCH_LAST: 
183
184 <!-- ##### ENUM GtkMetricType ##### -->
185 <para>
186
187 </para>
188
189 @GTK_PIXELS: 
190 @GTK_INCHES: 
191 @GTK_CENTIMETERS: 
192
193 <!-- ##### ENUM GtkMovementStep ##### -->
194 <para>
195
196 </para>
197
198 @GTK_MOVEMENT_LOGICAL_POSITIONS: 
199 @GTK_MOVEMENT_VISUAL_POSITIONS: 
200 @GTK_MOVEMENT_WORDS: 
201 @GTK_MOVEMENT_DISPLAY_LINES: 
202 @GTK_MOVEMENT_DISPLAY_LINE_ENDS: 
203 @GTK_MOVEMENT_PARAGRAPHS: 
204 @GTK_MOVEMENT_PARAGRAPH_ENDS: 
205 @GTK_MOVEMENT_PAGES: 
206 @GTK_MOVEMENT_BUFFER_ENDS: 
207 @GTK_MOVEMENT_HORIZONTAL_PAGES: 
208
209 <!-- ##### ENUM GtkOrientation ##### -->
210 <para>
211
212 </para>
213
214 @GTK_ORIENTATION_HORIZONTAL: 
215 @GTK_ORIENTATION_VERTICAL: 
216
217 <!-- ##### ENUM GtkPackType ##### -->
218 <para>
219 Represents the packing location #GtkBox children. (See: #GtkVBox,
220 #GtkHBox, and #GtkButtonBox).
221 </para>
222
223 @GTK_PACK_START: The child is packed into the start of the box
224 @GTK_PACK_END: The child is packed into the end of the box
225
226 <!-- ##### ENUM GtkPathPriorityType ##### -->
227 <para>
228
229 </para>
230
231 @GTK_PATH_PRIO_LOWEST: 
232 @GTK_PATH_PRIO_GTK: 
233 @GTK_PATH_PRIO_APPLICATION: 
234 @GTK_PATH_PRIO_THEME: 
235 @GTK_PATH_PRIO_RC: 
236 @GTK_PATH_PRIO_HIGHEST: 
237
238 <!-- ##### ENUM GtkPathType ##### -->
239 <para>
240
241 </para>
242
243 @GTK_PATH_WIDGET: 
244 @GTK_PATH_WIDGET_CLASS: 
245 @GTK_PATH_CLASS: 
246
247 <!-- ##### ENUM GtkPolicyType ##### -->
248 <para>
249 Determines when a scroll bar will be visible. 
250 </para>
251
252 @GTK_POLICY_ALWAYS: The scrollbar is always visible.
253 @GTK_POLICY_AUTOMATIC: The scrollbar will appear and disappear as necessary. For example,
254 when all of a #GtkCList can not be seen.
255 @GTK_POLICY_NEVER: The scrollbar will never appear.
256
257 <!-- ##### ENUM GtkPositionType ##### -->
258 <para>
259
260 </para>
261
262 @GTK_POS_LEFT: 
263 @GTK_POS_RIGHT: 
264 @GTK_POS_TOP: 
265 @GTK_POS_BOTTOM: 
266
267 <!-- ##### ENUM GtkPreviewType ##### -->
268 <para>
269 An enumeration which describes whether a preview
270 contains grayscale or red-green-blue data.
271 </para>
272
273 @GTK_PREVIEW_COLOR: the preview contains red-green-blue data.
274 @GTK_PREVIEW_GRAYSCALE: The preview contains grayscale data.
275
276 <!-- ##### ENUM GtkReliefStyle ##### -->
277 <para>
278
279 </para>
280
281 @GTK_RELIEF_NORMAL: 
282 @GTK_RELIEF_HALF: 
283 @GTK_RELIEF_NONE: 
284
285 <!-- ##### ENUM GtkResizeMode ##### -->
286 <para>
287
288 </para>
289
290 @GTK_RESIZE_PARENT: 
291 @GTK_RESIZE_QUEUE: 
292 @GTK_RESIZE_IMMEDIATE: 
293
294 <!-- ##### ENUM GtkScrollType ##### -->
295 <para>
296
297 </para>
298
299 @GTK_SCROLL_NONE: 
300 @GTK_SCROLL_JUMP: 
301 @GTK_SCROLL_STEP_BACKWARD: 
302 @GTK_SCROLL_STEP_FORWARD: 
303 @GTK_SCROLL_PAGE_BACKWARD: 
304 @GTK_SCROLL_PAGE_FORWARD: 
305 @GTK_SCROLL_STEP_UP: 
306 @GTK_SCROLL_STEP_DOWN: 
307 @GTK_SCROLL_PAGE_UP: 
308 @GTK_SCROLL_PAGE_DOWN: 
309 @GTK_SCROLL_STEP_LEFT: 
310 @GTK_SCROLL_STEP_RIGHT: 
311 @GTK_SCROLL_PAGE_LEFT: 
312 @GTK_SCROLL_PAGE_RIGHT: 
313 @GTK_SCROLL_START: 
314 @GTK_SCROLL_END: 
315
316 <!-- ##### ENUM GtkSelectionMode ##### -->
317 <para>
318
319 </para>
320
321 @GTK_SELECTION_NONE: 
322 @GTK_SELECTION_SINGLE: 
323 @GTK_SELECTION_BROWSE: 
324 @GTK_SELECTION_MULTIPLE: 
325 @GTK_SELECTION_EXTENDED: 
326
327 <!-- ##### ENUM GtkShadowType ##### -->
328 <para>
329 Used to change the appearance of an outline typically provided by a #GtkFrame.
330 </para>
331
332 @GTK_SHADOW_NONE: No outline.
333 @GTK_SHADOW_IN: The outline is bevelled inwards.
334 @GTK_SHADOW_OUT: The outline is bevelled outwards like a button.
335 @GTK_SHADOW_ETCHED_IN: The outline itself is an inward bevel, but the frame
336 does
337 @GTK_SHADOW_ETCHED_OUT: 
338
339 <!-- ##### ENUM GtkSideType ##### -->
340 <para>
341
342 </para>
343
344 @GTK_SIDE_TOP: 
345 @GTK_SIDE_BOTTOM: 
346 @GTK_SIDE_LEFT: 
347 @GTK_SIDE_RIGHT: 
348
349 <!-- ##### ENUM GtkStateType ##### -->
350 <para>
351 This type indicates the current state of a widget; the state determines how
352 the widget is drawn. The #GtkStateType enumeration is also used to
353 identify different colors in a #GtkStyle for drawing, so states can be
354 used for subparts of a widget as well as entire widgets.
355 </para>
356
357 @GTK_STATE_NORMAL: State during normal operation.
358 @GTK_STATE_ACTIVE: State of a currently active widget, such as a depressed button.
359 @GTK_STATE_PRELIGHT: State indicating that the mouse pointer is over
360 the widget and the widget will respond to mouse clicks.
361 @GTK_STATE_SELECTED: State of a selected item, such the selected row in a list.
362 @GTK_STATE_INSENSITIVE: State indicating that the widget is
363 unresponsive to user actions.
364
365 <!-- ##### ENUM GtkSubmenuDirection ##### -->
366 <para>
367 Indicates the direction a sub-menu will appear.
368 </para>
369
370 @GTK_DIRECTION_LEFT: A sub-menu will appear
371 @GTK_DIRECTION_RIGHT: 
372
373 <!-- ##### ENUM GtkSubmenuPlacement ##### -->
374 <para>
375
376 </para>
377
378 @GTK_TOP_BOTTOM: 
379 @GTK_LEFT_RIGHT: 
380
381 <!-- ##### ENUM GtkToolbarStyle ##### -->
382 <para>
383 Used to customize the appearance of a #GtkToolbar. Note that 
384 setting the toolbar style overrides the user's preferences
385 for the default toolbar style.
386 </para>
387
388 @GTK_TOOLBAR_ICONS: Buttons display only icons in the toolbar.
389 @GTK_TOOLBAR_TEXT: Buttons display only text labels in the toolbar.
390 @GTK_TOOLBAR_BOTH: Buttons display text and icons in the toolbar.
391 @GTK_TOOLBAR_BOTH_HORIZ: Buttons display icons and text alongside each
392 other, rather than vertically stacked
393
394 <!-- ##### ENUM GtkUpdateType ##### -->
395 <para>
396
397 </para>
398
399 @GTK_UPDATE_CONTINUOUS: 
400 @GTK_UPDATE_DISCONTINUOUS: 
401 @GTK_UPDATE_DELAYED: 
402
403 <!-- ##### ENUM GtkVisibility ##### -->
404 <para>
405
406 </para>
407
408 @GTK_VISIBILITY_NONE: 
409 @GTK_VISIBILITY_PARTIAL: 
410 @GTK_VISIBILITY_FULL: 
411
412 <!-- ##### ENUM GtkWindowPosition ##### -->
413 <para>
414 Window placement can be influenced using this enumeration.
415 </para>
416
417 @GTK_WIN_POS_NONE: No influence is made on placement.
418 @GTK_WIN_POS_CENTER: Windows should be placed in the center of the screen.
419 @GTK_WIN_POS_MOUSE: Windows should be placed at the current mouse position.
420 @GTK_WIN_POS_CENTER_ALWAYS: Keep window centered as it changes size, etc.
421 @GTK_WIN_POS_CENTER_ON_PARENT: Center the window on its transient
422 parent (see gtk_window_set_transient_for()).
423
424 <!-- ##### ENUM GtkWindowType ##### -->
425 <para>
426 A #GtkWindow can be one of these types. Most things you'd consider a
427 "window" should have type #GTK_WINDOW_TOPLEVEL; windows with this type
428 are managed by the window manager and have a frame by default (call
429 gtk_window_set_decorated() to toggle the frame).  Windows with type
430 #GTK_WINDOW_POPUP are ignored by the window manager; window manager
431 keybindings won't work on them, the window manager won't decorate the
432 window with a frame, many GTK+ features that rely on the window
433 manager will not work (e.g. resize grips and
434 maximization/minimization). #GTK_WINDOW_POPUP is used to implement
435 widgets such as #GtkMenu or tooltips that you normally don't think of 
436 as windows per se. Nearly all windows should be #GTK_WINDOW_TOPLEVEL.
437 In particular, do not use #GTK_WINDOW_POPUP just to turn off
438 the window borders; use gtk_window_set_decorated() for that.
439 </para>
440
441 @GTK_WINDOW_TOPLEVEL: A regular window, such as a dialog.
442 @GTK_WINDOW_POPUP: A special window such as a tooltip.
443
444 <!-- ##### ENUM GtkSortType ##### -->
445 <para>
446 Determines the direction of a sort.
447 </para>
448
449 @GTK_SORT_ASCENDING: Sorting is in ascending order.
450 @GTK_SORT_DESCENDING: Sorting is in descending order.
451