]> Pileus Git - ~andy/gtk/blob - docs/reference/gtk/tmpl/gtkenums.sgml
Document the selection modes here, rather than in the docs of deprecated
[~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 Used to specify the style of the expanders drawn by a #GtkTreeView.
138 </para>
139
140 @GTK_EXPANDER_COLLAPSED: The style used for a collapsed subtree.
141 @GTK_EXPANDER_SEMI_COLLAPSED: Intermediate style used during animation.
142 @GTK_EXPANDER_SEMI_EXPANDED: Intermediate style used during animation.
143 @GTK_EXPANDER_EXPANDED: The style used for an expanded subtree.
144
145 <!-- ##### ENUM GtkIMPreeditStyle ##### -->
146 <para>
147
148 </para>
149
150 @GTK_IM_PREEDIT_NOTHING: 
151 @GTK_IM_PREEDIT_CALLBACK: 
152 @GTK_IM_PREEDIT_NONE: 
153
154 <!-- ##### ENUM GtkIMStatusStyle ##### -->
155 <para>
156
157 </para>
158
159 @GTK_IM_STATUS_NOTHING: 
160 @GTK_IM_STATUS_CALLBACK: 
161 @GTK_IM_STATUS_NONE: 
162
163 <!-- ##### ENUM GtkJustification ##### -->
164 <para>
165 Used for justifying the text inside a #GtkLabel widget. (See also
166 #GtkAlignment).
167 </para>
168
169 @GTK_JUSTIFY_LEFT: The text is placed at the left edge of the label.
170 @GTK_JUSTIFY_RIGHT: The text is placed at the right edge of the label.
171 @GTK_JUSTIFY_CENTER: The text is placed in the center of the label.
172 @GTK_JUSTIFY_FILL: The text is placed is distributed across the label.
173
174 <!-- ##### ENUM GtkMatchType ##### -->
175 <para>
176
177 </para>
178
179 @GTK_MATCH_ALL: 
180 @GTK_MATCH_ALL_TAIL: 
181 @GTK_MATCH_HEAD: 
182 @GTK_MATCH_TAIL: 
183 @GTK_MATCH_EXACT: 
184 @GTK_MATCH_LAST: 
185
186 <!-- ##### ENUM GtkMetricType ##### -->
187 <para>
188 Used to indicate which metric is used by a #GtkRuler.
189 </para>
190
191 @GTK_PIXELS: Pixels.
192 @GTK_INCHES: Inches.
193 @GTK_CENTIMETERS: Centimeters.
194
195 <!-- ##### ENUM GtkMovementStep ##### -->
196 <para>
197
198 </para>
199
200 @GTK_MOVEMENT_LOGICAL_POSITIONS: 
201 @GTK_MOVEMENT_VISUAL_POSITIONS: 
202 @GTK_MOVEMENT_WORDS: 
203 @GTK_MOVEMENT_DISPLAY_LINES: 
204 @GTK_MOVEMENT_DISPLAY_LINE_ENDS: 
205 @GTK_MOVEMENT_PARAGRAPHS: 
206 @GTK_MOVEMENT_PARAGRAPH_ENDS: 
207 @GTK_MOVEMENT_PAGES: 
208 @GTK_MOVEMENT_BUFFER_ENDS: 
209 @GTK_MOVEMENT_HORIZONTAL_PAGES: 
210
211 <!-- ##### ENUM GtkOrientation ##### -->
212 <para>
213 Represents the orientation of widgets which can be switched between horizontal
214 and vertical orientation on the fly, like #GtkToolbar.
215 </para>
216
217 @GTK_ORIENTATION_HORIZONTAL: The widget is in horizontal orientation.
218 @GTK_ORIENTATION_VERTICAL: The widget is in vertical orientation.
219
220 <!-- ##### ENUM GtkPackType ##### -->
221 <para>
222 Represents the packing location #GtkBox children. (See: #GtkVBox,
223 #GtkHBox, and #GtkButtonBox).
224 </para>
225
226 @GTK_PACK_START: The child is packed into the start of the box
227 @GTK_PACK_END: The child is packed into the end of the box
228
229 <!-- ##### ENUM GtkPathPriorityType ##### -->
230 <para>
231
232 </para>
233
234 @GTK_PATH_PRIO_LOWEST: 
235 @GTK_PATH_PRIO_GTK: 
236 @GTK_PATH_PRIO_APPLICATION: 
237 @GTK_PATH_PRIO_THEME: 
238 @GTK_PATH_PRIO_RC: 
239 @GTK_PATH_PRIO_HIGHEST: 
240
241 <!-- ##### ENUM GtkPathType ##### -->
242 <para>
243
244 </para>
245
246 @GTK_PATH_WIDGET: 
247 @GTK_PATH_WIDGET_CLASS: 
248 @GTK_PATH_CLASS: 
249
250 <!-- ##### ENUM GtkPolicyType ##### -->
251 <para>
252 Determines when a scroll bar will be visible. 
253 </para>
254
255 @GTK_POLICY_ALWAYS: The scrollbar is always visible.
256 @GTK_POLICY_AUTOMATIC: The scrollbar will appear and disappear as necessary. For example,
257 when all of a #GtkCList can not be seen.
258 @GTK_POLICY_NEVER: The scrollbar will never appear.
259
260 <!-- ##### ENUM GtkPositionType ##### -->
261 <para>
262 Describes which edge of a widget a certain feature is positioned at, e.g. the
263 tabs of a #GtkNotebook, the handle of a #GtkHandleBox or the label of a 
264 #GtkScale.
265 </para>
266
267 @GTK_POS_LEFT: The feature is at the left edge.
268 @GTK_POS_RIGHT: The feature is at the right edge.
269 @GTK_POS_TOP: The feature is at the top edge.
270 @GTK_POS_BOTTOM: The feature is at the bottom edge.
271
272 <!-- ##### ENUM GtkPreviewType ##### -->
273 <para>
274 An enumeration which describes whether a preview
275 contains grayscale or red-green-blue data.
276 </para>
277
278 @GTK_PREVIEW_COLOR: the preview contains red-green-blue data.
279 @GTK_PREVIEW_GRAYSCALE: The preview contains grayscale data.
280
281 <!-- ##### ENUM GtkReliefStyle ##### -->
282 <para>
283 Indicated the relief to be drawn around a #GtkButton.
284 </para>
285
286 @GTK_RELIEF_NORMAL: Draw a normal relief.
287 @GTK_RELIEF_HALF: A half relief.
288 @GTK_RELIEF_NONE: No relief.
289
290 <!-- ##### ENUM GtkResizeMode ##### -->
291 <para>
292
293 </para>
294
295 @GTK_RESIZE_PARENT: 
296 @GTK_RESIZE_QUEUE: 
297 @GTK_RESIZE_IMMEDIATE: 
298
299 <!-- ##### ENUM GtkScrollStep ##### -->
300 <para>
301
302 </para>
303
304 @GTK_SCROLL_STEPS: 
305 @GTK_SCROLL_PAGES: 
306 @GTK_SCROLL_ENDS: 
307 @GTK_SCROLL_HORIZONTAL_STEPS: 
308 @GTK_SCROLL_HORIZONTAL_PAGES: 
309 @GTK_SCROLL_HORIZONTAL_ENDS: 
310
311 <!-- ##### ENUM GtkScrollType ##### -->
312 <para>
313
314 </para>
315
316 @GTK_SCROLL_NONE: 
317 @GTK_SCROLL_JUMP: 
318 @GTK_SCROLL_STEP_BACKWARD: 
319 @GTK_SCROLL_STEP_FORWARD: 
320 @GTK_SCROLL_PAGE_BACKWARD: 
321 @GTK_SCROLL_PAGE_FORWARD: 
322 @GTK_SCROLL_STEP_UP: 
323 @GTK_SCROLL_STEP_DOWN: 
324 @GTK_SCROLL_PAGE_UP: 
325 @GTK_SCROLL_PAGE_DOWN: 
326 @GTK_SCROLL_STEP_LEFT: 
327 @GTK_SCROLL_STEP_RIGHT: 
328 @GTK_SCROLL_PAGE_LEFT: 
329 @GTK_SCROLL_PAGE_RIGHT: 
330 @GTK_SCROLL_START: 
331 @GTK_SCROLL_END: 
332
333 <!-- ##### ENUM GtkSelectionMode ##### -->
334 <para>
335
336 </para>
337
338 @GTK_SELECTION_NONE: No selection is possible.
339 @GTK_SELECTION_SINGLE: Zero or one element may be selected. 
340 @GTK_SELECTION_BROWSE: Exactly one element is always selected 
341    (this can be false after you have changed the selection mode).
342 @GTK_SELECTION_MULTIPLE: Any number of elements may be selected. 
343    Clicks toggle the state of an item. Any number of elements may be selected. 
344    Click-drag selects a range of elements; the Ctrl key may be used to enlarge 
345    the selection, and Shift key to select between the focus and the child 
346    pointed to. 
347 @GTK_SELECTION_EXTENDED: Deprecated, behaves identical to 
348    %GTK_SELECTION_MULTIPLE.
349
350 <!-- ##### ENUM GtkShadowType ##### -->
351 <para>
352 Used to change the appearance of an outline typically provided by a #GtkFrame.
353 </para>
354
355 @GTK_SHADOW_NONE: No outline.
356 @GTK_SHADOW_IN: The outline is bevelled inwards.
357 @GTK_SHADOW_OUT: The outline is bevelled outwards like a button.
358 @GTK_SHADOW_ETCHED_IN: The outline itself is an inward bevel, but the frame
359 does
360 @GTK_SHADOW_ETCHED_OUT: 
361
362 <!-- ##### ENUM GtkSideType ##### -->
363 <para>
364
365 </para>
366
367 @GTK_SIDE_TOP: 
368 @GTK_SIDE_BOTTOM: 
369 @GTK_SIDE_LEFT: 
370 @GTK_SIDE_RIGHT: 
371
372 <!-- ##### ENUM GtkStateType ##### -->
373 <para>
374 This type indicates the current state of a widget; the state determines how
375 the widget is drawn. The #GtkStateType enumeration is also used to
376 identify different colors in a #GtkStyle for drawing, so states can be
377 used for subparts of a widget as well as entire widgets.
378 </para>
379
380 @GTK_STATE_NORMAL: State during normal operation.
381 @GTK_STATE_ACTIVE: State of a currently active widget, such as a depressed button.
382 @GTK_STATE_PRELIGHT: State indicating that the mouse pointer is over
383 the widget and the widget will respond to mouse clicks.
384 @GTK_STATE_SELECTED: State of a selected item, such the selected row in a list.
385 @GTK_STATE_INSENSITIVE: State indicating that the widget is
386 unresponsive to user actions.
387
388 <!-- ##### ENUM GtkSubmenuDirection ##### -->
389 <para>
390 Indicates the direction a sub-menu will appear.
391 </para>
392
393 @GTK_DIRECTION_LEFT: A sub-menu will appear
394 @GTK_DIRECTION_RIGHT: 
395
396 <!-- ##### ENUM GtkSubmenuPlacement ##### -->
397 <para>
398
399 </para>
400
401 @GTK_TOP_BOTTOM: 
402 @GTK_LEFT_RIGHT: 
403
404 <!-- ##### ENUM GtkToolbarStyle ##### -->
405 <para>
406 Used to customize the appearance of a #GtkToolbar. Note that 
407 setting the toolbar style overrides the user's preferences
408 for the default toolbar style.
409 </para>
410
411 @GTK_TOOLBAR_ICONS: Buttons display only icons in the toolbar.
412 @GTK_TOOLBAR_TEXT: Buttons display only text labels in the toolbar.
413 @GTK_TOOLBAR_BOTH: Buttons display text and icons in the toolbar.
414 @GTK_TOOLBAR_BOTH_HORIZ: Buttons display icons and text alongside each
415 other, rather than vertically stacked
416
417 <!-- ##### ENUM GtkUpdateType ##### -->
418 <para>
419
420 </para>
421
422 @GTK_UPDATE_CONTINUOUS: 
423 @GTK_UPDATE_DISCONTINUOUS: 
424 @GTK_UPDATE_DELAYED: 
425
426 <!-- ##### ENUM GtkVisibility ##### -->
427 <para>
428 Used by #GtkCList and #GtkCTree to indicate whether a row is visible.
429 </para>
430
431 @GTK_VISIBILITY_NONE: The row is not visible.
432 @GTK_VISIBILITY_PARTIAL: The row is partially visible.
433 @GTK_VISIBILITY_FULL: The row is fully visible.
434
435 <!-- ##### ENUM GtkWindowPosition ##### -->
436 <para>
437 Window placement can be influenced using this enumeration.
438 </para>
439
440 @GTK_WIN_POS_NONE: No influence is made on placement.
441 @GTK_WIN_POS_CENTER: Windows should be placed in the center of the screen.
442 @GTK_WIN_POS_MOUSE: Windows should be placed at the current mouse position.
443 @GTK_WIN_POS_CENTER_ALWAYS: Keep window centered as it changes size, etc.
444 @GTK_WIN_POS_CENTER_ON_PARENT: Center the window on its transient
445 parent (see gtk_window_set_transient_for()).
446
447 <!-- ##### ENUM GtkWindowType ##### -->
448 <para>
449 A #GtkWindow can be one of these types. Most things you'd consider a
450 "window" should have type #GTK_WINDOW_TOPLEVEL; windows with this type
451 are managed by the window manager and have a frame by default (call
452 gtk_window_set_decorated() to toggle the frame).  Windows with type
453 #GTK_WINDOW_POPUP are ignored by the window manager; window manager
454 keybindings won't work on them, the window manager won't decorate the
455 window with a frame, many GTK+ features that rely on the window
456 manager will not work (e.g. resize grips and
457 maximization/minimization). #GTK_WINDOW_POPUP is used to implement
458 widgets such as #GtkMenu or tooltips that you normally don't think of 
459 as windows per se. Nearly all windows should be #GTK_WINDOW_TOPLEVEL.
460 In particular, do not use #GTK_WINDOW_POPUP just to turn off
461 the window borders; use gtk_window_set_decorated() for that.
462 </para>
463
464 @GTK_WINDOW_TOPLEVEL: A regular window, such as a dialog.
465 @GTK_WINDOW_POPUP: A special window such as a tooltip.
466
467 <!-- ##### ENUM GtkSortType ##### -->
468 <para>
469 Determines the direction of a sort.
470 </para>
471
472 @GTK_SORT_ASCENDING: Sorting is in ascending order.
473 @GTK_SORT_DESCENDING: Sorting is in descending order.
474