]> Pileus Git - ~andy/gtk/blob - docs/reference/gtk/tmpl/gtkenums.sgml
Additions.
[~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
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 Used to indicate which metric is used by a #GtkRuler.
187 </para>
188
189 @GTK_PIXELS: Pixels.
190 @GTK_INCHES: Inches.
191 @GTK_CENTIMETERS: 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 Represents the orientation of widgets which can be switched between horizontal
212 and vertical orientation on the fly, like #GtkToolbar.
213 </para>
214
215 @GTK_ORIENTATION_HORIZONTAL: The widget is in horizontal orientation.
216 @GTK_ORIENTATION_VERTICAL: The widget is in vertical orientation.
217
218 <!-- ##### ENUM GtkPackType ##### -->
219 <para>
220 Represents the packing location #GtkBox children. (See: #GtkVBox,
221 #GtkHBox, and #GtkButtonBox).
222 </para>
223
224 @GTK_PACK_START: The child is packed into the start of the box
225 @GTK_PACK_END: The child is packed into the end of the box
226
227 <!-- ##### ENUM GtkPathPriorityType ##### -->
228 <para>
229
230 </para>
231
232 @GTK_PATH_PRIO_LOWEST: 
233 @GTK_PATH_PRIO_GTK: 
234 @GTK_PATH_PRIO_APPLICATION: 
235 @GTK_PATH_PRIO_THEME: 
236 @GTK_PATH_PRIO_RC: 
237 @GTK_PATH_PRIO_HIGHEST: 
238
239 <!-- ##### ENUM GtkPathType ##### -->
240 <para>
241
242 </para>
243
244 @GTK_PATH_WIDGET: 
245 @GTK_PATH_WIDGET_CLASS: 
246 @GTK_PATH_CLASS: 
247
248 <!-- ##### ENUM GtkPolicyType ##### -->
249 <para>
250 Determines when a scroll bar will be visible. 
251 </para>
252
253 @GTK_POLICY_ALWAYS: The scrollbar is always visible.
254 @GTK_POLICY_AUTOMATIC: The scrollbar will appear and disappear as necessary. For example,
255 when all of a #GtkCList can not be seen.
256 @GTK_POLICY_NEVER: The scrollbar will never appear.
257
258 <!-- ##### ENUM GtkPositionType ##### -->
259 <para>
260 Describes which edge of a widget a certain feature is positioned at, e.g. the
261 tabs of a #GtkNotebook, the handle of a #GtkHandleBox or the label of a 
262 #GtkScale.
263 </para>
264
265 @GTK_POS_LEFT: The feature is at the left edge.
266 @GTK_POS_RIGHT: The feature is at the right edge.
267 @GTK_POS_TOP: The feature is at the top edge.
268 @GTK_POS_BOTTOM: The feature is at the bottom edge.
269
270 <!-- ##### ENUM GtkPreviewType ##### -->
271 <para>
272 An enumeration which describes whether a preview
273 contains grayscale or red-green-blue data.
274 </para>
275
276 @GTK_PREVIEW_COLOR: the preview contains red-green-blue data.
277 @GTK_PREVIEW_GRAYSCALE: The preview contains grayscale data.
278
279 <!-- ##### ENUM GtkReliefStyle ##### -->
280 <para>
281 Indicated the relief to be drawn around a #GtkButton.
282 </para>
283
284 @GTK_RELIEF_NORMAL: Draw a normal relief.
285 @GTK_RELIEF_HALF: A half relief.
286 @GTK_RELIEF_NONE: No relief.
287
288 <!-- ##### ENUM GtkResizeMode ##### -->
289 <para>
290
291 </para>
292
293 @GTK_RESIZE_PARENT: 
294 @GTK_RESIZE_QUEUE: 
295 @GTK_RESIZE_IMMEDIATE: 
296
297 <!-- ##### ENUM GtkScrollType ##### -->
298 <para>
299
300 </para>
301
302 @GTK_SCROLL_NONE: 
303 @GTK_SCROLL_JUMP: 
304 @GTK_SCROLL_STEP_BACKWARD: 
305 @GTK_SCROLL_STEP_FORWARD: 
306 @GTK_SCROLL_PAGE_BACKWARD: 
307 @GTK_SCROLL_PAGE_FORWARD: 
308 @GTK_SCROLL_STEP_UP: 
309 @GTK_SCROLL_STEP_DOWN: 
310 @GTK_SCROLL_PAGE_UP: 
311 @GTK_SCROLL_PAGE_DOWN: 
312 @GTK_SCROLL_STEP_LEFT: 
313 @GTK_SCROLL_STEP_RIGHT: 
314 @GTK_SCROLL_PAGE_LEFT: 
315 @GTK_SCROLL_PAGE_RIGHT: 
316 @GTK_SCROLL_START: 
317 @GTK_SCROLL_END: 
318
319 <!-- ##### ENUM GtkSelectionMode ##### -->
320 <para>
321
322 </para>
323
324 @GTK_SELECTION_NONE: 
325 @GTK_SELECTION_SINGLE: 
326 @GTK_SELECTION_BROWSE: 
327 @GTK_SELECTION_MULTIPLE: 
328 @GTK_SELECTION_EXTENDED: 
329
330 <!-- ##### ENUM GtkShadowType ##### -->
331 <para>
332 Used to change the appearance of an outline typically provided by a #GtkFrame.
333 </para>
334
335 @GTK_SHADOW_NONE: No outline.
336 @GTK_SHADOW_IN: The outline is bevelled inwards.
337 @GTK_SHADOW_OUT: The outline is bevelled outwards like a button.
338 @GTK_SHADOW_ETCHED_IN: The outline itself is an inward bevel, but the frame
339 does
340 @GTK_SHADOW_ETCHED_OUT: 
341
342 <!-- ##### ENUM GtkSideType ##### -->
343 <para>
344
345 </para>
346
347 @GTK_SIDE_TOP: 
348 @GTK_SIDE_BOTTOM: 
349 @GTK_SIDE_LEFT: 
350 @GTK_SIDE_RIGHT: 
351
352 <!-- ##### ENUM GtkStateType ##### -->
353 <para>
354 This type indicates the current state of a widget; the state determines how
355 the widget is drawn. The #GtkStateType enumeration is also used to
356 identify different colors in a #GtkStyle for drawing, so states can be
357 used for subparts of a widget as well as entire widgets.
358 </para>
359
360 @GTK_STATE_NORMAL: State during normal operation.
361 @GTK_STATE_ACTIVE: State of a currently active widget, such as a depressed button.
362 @GTK_STATE_PRELIGHT: State indicating that the mouse pointer is over
363 the widget and the widget will respond to mouse clicks.
364 @GTK_STATE_SELECTED: State of a selected item, such the selected row in a list.
365 @GTK_STATE_INSENSITIVE: State indicating that the widget is
366 unresponsive to user actions.
367
368 <!-- ##### ENUM GtkSubmenuDirection ##### -->
369 <para>
370 Indicates the direction a sub-menu will appear.
371 </para>
372
373 @GTK_DIRECTION_LEFT: A sub-menu will appear
374 @GTK_DIRECTION_RIGHT: 
375
376 <!-- ##### ENUM GtkSubmenuPlacement ##### -->
377 <para>
378
379 </para>
380
381 @GTK_TOP_BOTTOM: 
382 @GTK_LEFT_RIGHT: 
383
384 <!-- ##### ENUM GtkToolbarStyle ##### -->
385 <para>
386 Used to customize the appearance of a #GtkToolbar. Note that 
387 setting the toolbar style overrides the user's preferences
388 for the default toolbar style.
389 </para>
390
391 @GTK_TOOLBAR_ICONS: Buttons display only icons in the toolbar.
392 @GTK_TOOLBAR_TEXT: Buttons display only text labels in the toolbar.
393 @GTK_TOOLBAR_BOTH: Buttons display text and icons in the toolbar.
394 @GTK_TOOLBAR_BOTH_HORIZ: Buttons display icons and text alongside each
395 other, rather than vertically stacked
396
397 <!-- ##### ENUM GtkUpdateType ##### -->
398 <para>
399
400 </para>
401
402 @GTK_UPDATE_CONTINUOUS: 
403 @GTK_UPDATE_DISCONTINUOUS: 
404 @GTK_UPDATE_DELAYED: 
405
406 <!-- ##### ENUM GtkVisibility ##### -->
407 <para>
408 Used by #GtkCList and #GtkCTree to indicate whether a row is visible.
409 </para>
410
411 @GTK_VISIBILITY_NONE: The row is not visible.
412 @GTK_VISIBILITY_PARTIAL: The row is partially visible.
413 @GTK_VISIBILITY_FULL: The row is fully visible.
414
415 <!-- ##### ENUM GtkWindowPosition ##### -->
416 <para>
417 Window placement can be influenced using this enumeration.
418 </para>
419
420 @GTK_WIN_POS_NONE: No influence is made on placement.
421 @GTK_WIN_POS_CENTER: Windows should be placed in the center of the screen.
422 @GTK_WIN_POS_MOUSE: Windows should be placed at the current mouse position.
423 @GTK_WIN_POS_CENTER_ALWAYS: Keep window centered as it changes size, etc.
424 @GTK_WIN_POS_CENTER_ON_PARENT: Center the window on its transient
425 parent (see gtk_window_set_transient_for()).
426
427 <!-- ##### ENUM GtkWindowType ##### -->
428 <para>
429 A #GtkWindow can be one of these types. Most things you'd consider a
430 "window" should have type #GTK_WINDOW_TOPLEVEL; windows with this type
431 are managed by the window manager and have a frame by default (call
432 gtk_window_set_decorated() to toggle the frame).  Windows with type
433 #GTK_WINDOW_POPUP are ignored by the window manager; window manager
434 keybindings won't work on them, the window manager won't decorate the
435 window with a frame, many GTK+ features that rely on the window
436 manager will not work (e.g. resize grips and
437 maximization/minimization). #GTK_WINDOW_POPUP is used to implement
438 widgets such as #GtkMenu or tooltips that you normally don't think of 
439 as windows per se. Nearly all windows should be #GTK_WINDOW_TOPLEVEL.
440 In particular, do not use #GTK_WINDOW_POPUP just to turn off
441 the window borders; use gtk_window_set_decorated() for that.
442 </para>
443
444 @GTK_WINDOW_TOPLEVEL: A regular window, such as a dialog.
445 @GTK_WINDOW_POPUP: A special window such as a tooltip.
446
447 <!-- ##### ENUM GtkSortType ##### -->
448 <para>
449 Determines the direction of a sort.
450 </para>
451
452 @GTK_SORT_ASCENDING: Sorting is in ascending order.
453 @GTK_SORT_DESCENDING: Sorting is in descending order.
454