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