]> Pileus Git - ~andy/gtk/blob - docs/reference/gtk/tmpl/gtkenums.sgml
Merge branch 'master' into broadway
[~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 <!-- ##### SECTION Stability_Level ##### -->
18
19
20 <!-- ##### SECTION Image ##### -->
21
22
23 <!-- ##### ENUM GtkAccelFlags ##### -->
24 <para>
25
26 </para>
27
28 @GTK_ACCEL_VISIBLE: 
29 @GTK_ACCEL_LOCKED: 
30 @GTK_ACCEL_MASK: 
31
32 <!-- ##### ENUM GtkArrowPlacement ##### -->
33 <para>
34 Used to specify the placement of scroll arrows in scrolling menus.
35 </para>
36
37 @GTK_ARROWS_BOTH: Place one arrow on each end of the menu.
38 @GTK_ARROWS_START: Place both arrows at the top of the menu.
39 @GTK_ARROWS_END: Place both arrows at the bottom of the menu.
40
41 <!-- ##### ENUM GtkArrowType ##### -->
42 <para>
43 Used to indicate the direction in which a #GtkArrow should point.
44 </para>
45
46 @GTK_ARROW_UP: Represents an upward pointing arrow.
47 @GTK_ARROW_DOWN: Represents a downward pointing arrow.
48 @GTK_ARROW_LEFT: Represents a left pointing arrow.
49 @GTK_ARROW_RIGHT: Represents a right pointing arrow.
50 @GTK_ARROW_NONE: No arrow. Since 2.10.
51
52 <!-- ##### ENUM GtkAttachOptions ##### -->
53 <para>
54 Denotes the expansion properties that a widget will have when it (or its
55 parent) is resized.
56 </para>
57
58 @GTK_EXPAND: the widget should expand to take up any extra space in its
59 container that has been allocated.
60 @GTK_SHRINK: the widget should shrink as and when possible.
61 @GTK_FILL: the widget should fill the space allocated to it.
62
63 <!-- ##### ENUM GtkButtonBoxStyle ##### -->
64 <para>
65 Used to dictate the style that a #GtkButtonBox uses to layout the buttons it
66 contains. (See also: #GtkVButtonBox and #GtkHButtonBox).
67 </para>
68
69 @GTK_BUTTONBOX_SPREAD: Buttons are evenly spread across the box.
70 @GTK_BUTTONBOX_EDGE: Buttons are placed at the edges of the box.
71 @GTK_BUTTONBOX_START: Buttons are grouped towards the start of the box, 
72   (on the left for a HBox, or the top for a VBox).
73 @GTK_BUTTONBOX_END: Buttons are grouped towards the end of the box, 
74   (on the right for a HBox, or the bottom for a VBox).
75 @GTK_BUTTONBOX_CENTER: Buttons are centered in the box. Since 2.12
76
77 <!-- ##### ENUM GtkCornerType ##### -->
78 <para>
79 Specifies which corner a child widget should be placed in when packed into
80 a #GtkScrolledWindow. This is effectively the opposite of where the scroll
81 bars are placed.
82 </para>
83
84 @GTK_CORNER_TOP_LEFT: Place the scrollbars on the right and bottom of the
85 widget (default behaviour).
86 @GTK_CORNER_BOTTOM_LEFT: Place the scrollbars on the top and right of the
87 widget.
88 @GTK_CORNER_TOP_RIGHT: Place the scrollbars on the left and bottom of the
89 widget.
90 @GTK_CORNER_BOTTOM_RIGHT: Place the scrollbars on the top and left of the
91 widget.
92
93 <!-- ##### ENUM GtkDeleteType ##### -->
94 <para>
95
96 </para>
97
98 @GTK_DELETE_CHARS: 
99 @GTK_DELETE_WORD_ENDS: 
100 @GTK_DELETE_WORDS: 
101 @GTK_DELETE_DISPLAY_LINES: 
102 @GTK_DELETE_DISPLAY_LINE_ENDS: 
103 @GTK_DELETE_PARAGRAPH_ENDS: 
104 @GTK_DELETE_PARAGRAPHS: 
105 @GTK_DELETE_WHITESPACE: 
106
107 <!-- ##### ENUM GtkDirectionType ##### -->
108 <para>
109
110 </para>
111
112 @GTK_DIR_TAB_FORWARD: 
113 @GTK_DIR_TAB_BACKWARD: 
114 @GTK_DIR_UP: 
115 @GTK_DIR_DOWN: 
116 @GTK_DIR_LEFT: 
117 @GTK_DIR_RIGHT: 
118
119 <!-- ##### ENUM GtkExpanderStyle ##### -->
120 <para>
121 Used to specify the style of the expanders drawn by a #GtkTreeView.
122 </para>
123
124 @GTK_EXPANDER_COLLAPSED: The style used for a collapsed subtree.
125 @GTK_EXPANDER_SEMI_COLLAPSED: Intermediate style used during animation.
126 @GTK_EXPANDER_SEMI_EXPANDED: Intermediate style used during animation.
127 @GTK_EXPANDER_EXPANDED: The style used for an expanded subtree.
128
129 <!-- ##### ENUM GtkIMPreeditStyle ##### -->
130 <para>
131
132 </para>
133
134 @GTK_IM_PREEDIT_NOTHING: 
135 @GTK_IM_PREEDIT_CALLBACK: 
136 @GTK_IM_PREEDIT_NONE: 
137
138 <!-- ##### ENUM GtkIMStatusStyle ##### -->
139 <para>
140
141 </para>
142
143 @GTK_IM_STATUS_NOTHING: 
144 @GTK_IM_STATUS_CALLBACK: 
145 @GTK_IM_STATUS_NONE: 
146
147 <!-- ##### ENUM GtkJustification ##### -->
148 <para>
149 Used for justifying the text inside a #GtkLabel widget. (See also
150 #GtkAlignment).
151 </para>
152
153 @GTK_JUSTIFY_LEFT: The text is placed at the left edge of the label.
154 @GTK_JUSTIFY_RIGHT: The text is placed at the right edge of the label.
155 @GTK_JUSTIFY_CENTER: The text is placed in the center of the label.
156 @GTK_JUSTIFY_FILL: The text is placed is distributed across the label.
157
158 <!-- ##### ENUM GtkMovementStep ##### -->
159 <para>
160
161 </para>
162
163 @GTK_MOVEMENT_LOGICAL_POSITIONS: 
164 @GTK_MOVEMENT_VISUAL_POSITIONS: 
165 @GTK_MOVEMENT_WORDS: 
166 @GTK_MOVEMENT_DISPLAY_LINES: 
167 @GTK_MOVEMENT_DISPLAY_LINE_ENDS: 
168 @GTK_MOVEMENT_PARAGRAPHS: 
169 @GTK_MOVEMENT_PARAGRAPH_ENDS: 
170 @GTK_MOVEMENT_PAGES: 
171 @GTK_MOVEMENT_BUFFER_ENDS: 
172 @GTK_MOVEMENT_HORIZONTAL_PAGES: 
173
174 <!-- ##### ENUM GtkOrientation ##### -->
175 <para>
176 Represents the orientation of widgets which can be switched between horizontal
177 and vertical orientation on the fly, like #GtkToolbar.
178 </para>
179
180 @GTK_ORIENTATION_HORIZONTAL: The widget is in horizontal orientation.
181 @GTK_ORIENTATION_VERTICAL: The widget is in vertical orientation.
182
183 <!-- ##### ENUM GtkPackType ##### -->
184 <para>
185 Represents the packing location #GtkBox children. (See: #GtkVBox,
186 #GtkHBox, and #GtkButtonBox).
187 </para>
188
189 @GTK_PACK_START: The child is packed into the start of the box
190 @GTK_PACK_END: The child is packed into the end of the box
191
192 <!-- ##### ENUM GtkPathPriorityType ##### -->
193 <para>
194
195 </para>
196
197 @GTK_PATH_PRIO_LOWEST: 
198 @GTK_PATH_PRIO_GTK: 
199 @GTK_PATH_PRIO_APPLICATION: 
200 @GTK_PATH_PRIO_THEME: 
201 @GTK_PATH_PRIO_RC: 
202 @GTK_PATH_PRIO_HIGHEST: 
203
204 <!-- ##### ENUM GtkPathType ##### -->
205 <para>
206
207 </para>
208
209 @GTK_PATH_WIDGET: 
210 @GTK_PATH_WIDGET_CLASS: 
211 @GTK_PATH_CLASS: 
212
213 <!-- ##### ENUM GtkPolicyType ##### -->
214 <para>
215 Determines when a scroll bar will be visible. 
216 </para>
217
218 @GTK_POLICY_ALWAYS: The scrollbar is always visible.
219 @GTK_POLICY_AUTOMATIC: The scrollbar will appear and disappear as necessary. For example,
220 when all of a #GtkCList can not be seen.
221 @GTK_POLICY_NEVER: The scrollbar will never appear.
222
223 <!-- ##### ENUM GtkPositionType ##### -->
224 <para>
225 Describes which edge of a widget a certain feature is positioned at, e.g. the
226 tabs of a #GtkNotebook, the handle of a #GtkHandleBox or the label of a 
227 #GtkScale.
228 </para>
229
230 @GTK_POS_LEFT: The feature is at the left edge.
231 @GTK_POS_RIGHT: The feature is at the right edge.
232 @GTK_POS_TOP: The feature is at the top edge.
233 @GTK_POS_BOTTOM: The feature is at the bottom edge.
234
235 <!-- ##### ENUM GtkReliefStyle ##### -->
236 <para>
237 Indicated the relief to be drawn around a #GtkButton.
238 </para>
239
240 @GTK_RELIEF_NORMAL: Draw a normal relief.
241 @GTK_RELIEF_HALF: A half relief.
242 @GTK_RELIEF_NONE: No relief.
243
244 <!-- ##### ENUM GtkResizeMode ##### -->
245 <para>
246
247 </para>
248
249 @GTK_RESIZE_PARENT: 
250 @GTK_RESIZE_QUEUE: 
251 @GTK_RESIZE_IMMEDIATE: Deprecated.
252
253 <!-- ##### ENUM GtkScrollStep ##### -->
254 <para>
255
256 </para>
257
258 @GTK_SCROLL_STEPS: 
259 @GTK_SCROLL_PAGES: 
260 @GTK_SCROLL_ENDS: 
261 @GTK_SCROLL_HORIZONTAL_STEPS: 
262 @GTK_SCROLL_HORIZONTAL_PAGES: 
263 @GTK_SCROLL_HORIZONTAL_ENDS: 
264
265 <!-- ##### ENUM GtkScrollType ##### -->
266 <para>
267
268 </para>
269
270 @GTK_SCROLL_NONE: 
271 @GTK_SCROLL_JUMP: 
272 @GTK_SCROLL_STEP_BACKWARD: 
273 @GTK_SCROLL_STEP_FORWARD: 
274 @GTK_SCROLL_PAGE_BACKWARD: 
275 @GTK_SCROLL_PAGE_FORWARD: 
276 @GTK_SCROLL_STEP_UP: 
277 @GTK_SCROLL_STEP_DOWN: 
278 @GTK_SCROLL_PAGE_UP: 
279 @GTK_SCROLL_PAGE_DOWN: 
280 @GTK_SCROLL_STEP_LEFT: 
281 @GTK_SCROLL_STEP_RIGHT: 
282 @GTK_SCROLL_PAGE_LEFT: 
283 @GTK_SCROLL_PAGE_RIGHT: 
284 @GTK_SCROLL_START: 
285 @GTK_SCROLL_END: 
286
287 <!-- ##### ENUM GtkSelectionMode ##### -->
288 <para>
289 Used to control what selections users are allowed to make.
290 </para>
291
292 @GTK_SELECTION_NONE: No selection is possible.
293 @GTK_SELECTION_SINGLE: Zero or one element may be selected.
294 @GTK_SELECTION_BROWSE: Exactly one element is selected. In some circumstances,
295   such as initially or during a search operation, it's possible for no element 
296   to be selected with %GTK_SELECTION_BROWSE. What is really enforced is that 
297   the user can't deselect a currently selected element except by selecting 
298   another element.
299 @GTK_SELECTION_MULTIPLE: Any number of elements may be selected. 
300    Clicks toggle the state of an item. Any number of elements may be selected. 
301    The Ctrl key may be used to enlarge the selection, and Shift key to select 
302    between the focus and the child pointed to. Some widgets may also allow
303    Click-drag to select a range of elements.
304
305 <!-- ##### ENUM GtkShadowType ##### -->
306 <para>
307 Used to change the appearance of an outline typically provided by a #GtkFrame.
308 </para>
309
310 @GTK_SHADOW_NONE: No outline.
311 @GTK_SHADOW_IN: The outline is bevelled inwards.
312 @GTK_SHADOW_OUT: The outline is bevelled outwards like a button.
313 @GTK_SHADOW_ETCHED_IN: The outline has a sunken 3d appearance.
314 @GTK_SHADOW_ETCHED_OUT: The outline has a raised 3d appearance
315
316 <!-- ##### ENUM GtkStateType ##### -->
317 <para>
318
319 </para>
320
321 @GTK_STATE_NORMAL: 
322 @GTK_STATE_ACTIVE: 
323 @GTK_STATE_PRELIGHT: 
324 @GTK_STATE_SELECTED: 
325 @GTK_STATE_INSENSITIVE: 
326 @GTK_STATE_INCONSISTENT: 
327 @GTK_STATE_FOCUSED: 
328
329 <!-- ##### ENUM GtkStateFlags ##### -->
330 <para>
331
332 </para>
333
334 @GTK_STATE_FLAG_ACTIVE: 
335 @GTK_STATE_FLAG_PRELIGHT: 
336 @GTK_STATE_FLAG_SELECTED: 
337 @GTK_STATE_FLAG_INSENSITIVE: 
338 @GTK_STATE_FLAG_INCONSISTENT: 
339 @GTK_STATE_FLAG_FOCUSED: 
340
341 <!-- ##### ENUM GtkToolbarStyle ##### -->
342 <para>
343 Used to customize the appearance of a #GtkToolbar. Note that 
344 setting the toolbar style overrides the user's preferences
345 for the default toolbar style.  Note that if the button has only
346 a label set and GTK_TOOLBAR_ICONS is used, the label will be
347 visible, and vice versa.
348 </para>
349
350 @GTK_TOOLBAR_ICONS: Buttons display only icons in the toolbar.
351 @GTK_TOOLBAR_TEXT: Buttons display only text labels in the toolbar.
352 @GTK_TOOLBAR_BOTH: Buttons display text and icons in the toolbar.
353 @GTK_TOOLBAR_BOTH_HORIZ: Buttons display icons and text alongside each
354 other, rather than vertically stacked
355
356 <!-- ##### ENUM GtkUpdateType ##### -->
357 <para>
358 Used by #GtkRange to control the policy for notifying value changes.
359 </para>
360
361 @GTK_UPDATE_CONTINUOUS: Notify updates whenever the value changed
362 @GTK_UPDATE_DISCONTINUOUS: Notify updates when the mouse button has been released
363 @GTK_UPDATE_DELAYED: Space out updates with a small timeout
364
365 <!-- ##### ENUM GtkWindowPosition ##### -->
366 <para>
367 Window placement can be influenced using this enumeration. Note that
368 using #GTK_WIN_POS_CENTER_ALWAYS is almost always a bad idea. 
369 It won't necessarily work well with all window managers or on all windowing systems.
370 </para>
371
372 @GTK_WIN_POS_NONE: No influence is made on placement.
373 @GTK_WIN_POS_CENTER: Windows should be placed in the center of the screen.
374 @GTK_WIN_POS_MOUSE: Windows should be placed at the current mouse position.
375 @GTK_WIN_POS_CENTER_ALWAYS: Keep window centered as it changes size, etc.
376 @GTK_WIN_POS_CENTER_ON_PARENT: Center the window on its transient
377 parent (see gtk_window_set_transient_for()).
378
379 <!-- ##### ENUM GtkWindowType ##### -->
380 <para>
381 A #GtkWindow can be one of these types. Most things you'd consider a
382 "window" should have type #GTK_WINDOW_TOPLEVEL; windows with this type
383 are managed by the window manager and have a frame by default (call
384 gtk_window_set_decorated() to toggle the frame).  Windows with type
385 #GTK_WINDOW_POPUP are ignored by the window manager; window manager
386 keybindings won't work on them, the window manager won't decorate the
387 window with a frame, many GTK+ features that rely on the window
388 manager will not work (e.g. resize grips and
389 maximization/minimization). #GTK_WINDOW_POPUP is used to implement
390 widgets such as #GtkMenu or tooltips that you normally don't think of 
391 as windows per se. Nearly all windows should be #GTK_WINDOW_TOPLEVEL.
392 In particular, do not use #GTK_WINDOW_POPUP just to turn off
393 the window borders; use gtk_window_set_decorated() for that.
394 </para>
395
396 @GTK_WINDOW_TOPLEVEL: A regular window, such as a dialog.
397 @GTK_WINDOW_POPUP: A special window such as a tooltip.
398
399 <!-- ##### ENUM GtkSortType ##### -->
400 <para>
401 Determines the direction of a sort.
402 </para>
403
404 @GTK_SORT_ASCENDING: Sorting is in ascending order.
405 @GTK_SORT_DESCENDING: Sorting is in descending order.
406
407 <!-- ##### ENUM GtkDragResult ##### -->
408 <para>
409 Gives an indication why a drag operation failed. 
410 The value can by obtained by connecting to the
411 #GtkWidget::drag-failed signal.
412 </para>
413
414 @GTK_DRAG_RESULT_SUCCESS: The drag operation was successful
415 @GTK_DRAG_RESULT_NO_TARGET: No suitable drag target
416 @GTK_DRAG_RESULT_USER_CANCELLED: The user cancelled the drag operation
417 @GTK_DRAG_RESULT_TIMEOUT_EXPIRED: The drag operation timed out
418 @GTK_DRAG_RESULT_GRAB_BROKEN: The pointer or keyboard grab used
419    for the drag operation was broken
420 @GTK_DRAG_RESULT_ERROR: The drag operation failed due to some 
421    unspecified error
422
423 <!-- ##### ENUM GtkJunctionSides ##### -->
424 <para>
425
426 </para>
427
428 @GTK_JUNCTION_NONE: 
429 @GTK_JUNCTION_CORNER_TOPLEFT: 
430 @GTK_JUNCTION_CORNER_TOPRIGHT: 
431 @GTK_JUNCTION_CORNER_BOTTOMLEFT: 
432 @GTK_JUNCTION_CORNER_BOTTOMRIGHT: 
433 @GTK_JUNCTION_TOP: 
434 @GTK_JUNCTION_BOTTOM: 
435 @GTK_JUNCTION_LEFT: 
436 @GTK_JUNCTION_RIGHT: 
437
438 <!-- ##### ENUM GtkBorderStyle ##### -->
439 <para>
440
441 </para>
442
443 @GTK_BORDER_STYLE_NONE: 
444 @GTK_BORDER_STYLE_SOLID: 
445 @GTK_BORDER_STYLE_INSET: 
446 @GTK_BORDER_STYLE_OUTSET: 
447
448 <!-- ##### ENUM GtkRegionFlags ##### -->
449 <para>
450
451 </para>
452
453 @GTK_REGION_EVEN: 
454 @GTK_REGION_ODD: 
455 @GTK_REGION_FIRST: 
456 @GTK_REGION_LAST: 
457 @GTK_REGION_SORTED: 
458