1 <!-- ##### SECTION Title ##### -->
4 <!-- ##### SECTION Short_Description ##### -->
5 Public enumerated types used throughout GTK+
7 <!-- ##### SECTION Long_Description ##### -->
12 <!-- ##### SECTION See_Also ##### -->
17 <!-- ##### SECTION Stability_Level ##### -->
20 <!-- ##### SECTION Image ##### -->
23 <!-- ##### ENUM GtkAccelFlags ##### -->
32 <!-- ##### ENUM GtkArrowPlacement ##### -->
34 Used to specify the placement of scroll arrows in scrolling menus.
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.
41 <!-- ##### ENUM GtkArrowType ##### -->
43 Used to indicate the direction in which a #GtkArrow should point.
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.
52 <!-- ##### ENUM GtkAttachOptions ##### -->
54 Denotes the expansion properties that a widget will have when it (or its
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.
63 <!-- ##### ENUM GtkButtonBoxStyle ##### -->
65 Used to dictate the style that a #GtkButtonBox uses to layout the buttons it
66 contains. (See also: #GtkVButtonBox and #GtkHButtonBox).
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
77 <!-- ##### ENUM GtkCornerType ##### -->
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
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
88 @GTK_CORNER_TOP_RIGHT: Place the scrollbars on the left and bottom of the
90 @GTK_CORNER_BOTTOM_RIGHT: Place the scrollbars on the top and left of the
93 <!-- ##### ENUM GtkDeleteType ##### -->
99 @GTK_DELETE_WORD_ENDS:
101 @GTK_DELETE_DISPLAY_LINES:
102 @GTK_DELETE_DISPLAY_LINE_ENDS:
103 @GTK_DELETE_PARAGRAPH_ENDS:
104 @GTK_DELETE_PARAGRAPHS:
105 @GTK_DELETE_WHITESPACE:
107 <!-- ##### ENUM GtkDirectionType ##### -->
112 @GTK_DIR_TAB_FORWARD:
113 @GTK_DIR_TAB_BACKWARD:
119 <!-- ##### ENUM GtkExpanderStyle ##### -->
121 Used to specify the style of the expanders drawn by a #GtkTreeView.
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.
129 <!-- ##### ENUM GtkIMPreeditStyle ##### -->
134 @GTK_IM_PREEDIT_NOTHING:
135 @GTK_IM_PREEDIT_CALLBACK:
136 @GTK_IM_PREEDIT_NONE:
138 <!-- ##### ENUM GtkIMStatusStyle ##### -->
143 @GTK_IM_STATUS_NOTHING:
144 @GTK_IM_STATUS_CALLBACK:
147 <!-- ##### ENUM GtkJustification ##### -->
149 Used for justifying the text inside a #GtkLabel widget. (See also
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.
158 <!-- ##### ENUM GtkMovementStep ##### -->
163 @GTK_MOVEMENT_LOGICAL_POSITIONS:
164 @GTK_MOVEMENT_VISUAL_POSITIONS:
166 @GTK_MOVEMENT_DISPLAY_LINES:
167 @GTK_MOVEMENT_DISPLAY_LINE_ENDS:
168 @GTK_MOVEMENT_PARAGRAPHS:
169 @GTK_MOVEMENT_PARAGRAPH_ENDS:
171 @GTK_MOVEMENT_BUFFER_ENDS:
172 @GTK_MOVEMENT_HORIZONTAL_PAGES:
174 <!-- ##### ENUM GtkOrientation ##### -->
176 Represents the orientation of widgets which can be switched between horizontal
177 and vertical orientation on the fly, like #GtkToolbar.
180 @GTK_ORIENTATION_HORIZONTAL: The widget is in horizontal orientation.
181 @GTK_ORIENTATION_VERTICAL: The widget is in vertical orientation.
183 <!-- ##### ENUM GtkPackType ##### -->
185 Represents the packing location #GtkBox children. (See: #GtkVBox,
186 #GtkHBox, and #GtkButtonBox).
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
192 <!-- ##### ENUM GtkPathPriorityType ##### -->
197 @GTK_PATH_PRIO_LOWEST:
199 @GTK_PATH_PRIO_APPLICATION:
200 @GTK_PATH_PRIO_THEME:
202 @GTK_PATH_PRIO_HIGHEST:
204 <!-- ##### ENUM GtkPathType ##### -->
210 @GTK_PATH_WIDGET_CLASS:
213 <!-- ##### ENUM GtkPolicyType ##### -->
215 Determines when a scroll bar will be visible.
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.
223 <!-- ##### ENUM GtkPositionType ##### -->
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
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.
235 <!-- ##### ENUM GtkReliefStyle ##### -->
237 Indicated the relief to be drawn around a #GtkButton.
240 @GTK_RELIEF_NORMAL: Draw a normal relief.
241 @GTK_RELIEF_HALF: A half relief.
242 @GTK_RELIEF_NONE: No relief.
244 <!-- ##### ENUM GtkResizeMode ##### -->
251 @GTK_RESIZE_IMMEDIATE: Deprecated.
253 <!-- ##### ENUM GtkScrollStep ##### -->
261 @GTK_SCROLL_HORIZONTAL_STEPS:
262 @GTK_SCROLL_HORIZONTAL_PAGES:
263 @GTK_SCROLL_HORIZONTAL_ENDS:
265 <!-- ##### ENUM GtkScrollType ##### -->
272 @GTK_SCROLL_STEP_BACKWARD:
273 @GTK_SCROLL_STEP_FORWARD:
274 @GTK_SCROLL_PAGE_BACKWARD:
275 @GTK_SCROLL_PAGE_FORWARD:
277 @GTK_SCROLL_STEP_DOWN:
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:
287 <!-- ##### ENUM GtkSelectionMode ##### -->
289 Used to control what selections users are allowed to make.
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
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.
305 <!-- ##### ENUM GtkShadowType ##### -->
307 Used to change the appearance of an outline typically provided by a #GtkFrame.
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
316 <!-- ##### ENUM GtkStateType ##### -->
325 @GTK_STATE_INSENSITIVE:
326 @GTK_STATE_INCONSISTENT:
329 <!-- ##### ENUM GtkStateFlags ##### -->
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:
341 <!-- ##### ENUM GtkToolbarStyle ##### -->
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.
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
356 <!-- ##### ENUM GtkUpdateType ##### -->
358 Used by #GtkRange to control the policy for notifying value changes.
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
365 <!-- ##### ENUM GtkWindowPosition ##### -->
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.
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()).
379 <!-- ##### ENUM GtkWindowType ##### -->
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.
396 @GTK_WINDOW_TOPLEVEL: A regular window, such as a dialog.
397 @GTK_WINDOW_POPUP: A special window such as a tooltip.
399 <!-- ##### ENUM GtkSortType ##### -->
401 Determines the direction of a sort.
404 @GTK_SORT_ASCENDING: Sorting is in ascending order.
405 @GTK_SORT_DESCENDING: Sorting is in descending order.
407 <!-- ##### ENUM GtkDragResult ##### -->
409 Gives an indication why a drag operation failed.
410 The value can by obtained by connecting to the
411 #GtkWidget::drag-failed signal.
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
423 <!-- ##### ENUM GtkJunctionSides ##### -->
429 @GTK_JUNCTION_CORNER_TOPLEFT:
430 @GTK_JUNCTION_CORNER_TOPRIGHT:
431 @GTK_JUNCTION_CORNER_BOTTOMLEFT:
432 @GTK_JUNCTION_CORNER_BOTTOMRIGHT:
434 @GTK_JUNCTION_BOTTOM:
438 <!-- ##### ENUM GtkBorderStyle ##### -->
443 @GTK_BORDER_STYLE_NONE:
444 @GTK_BORDER_STYLE_SOLID:
445 @GTK_BORDER_STYLE_INSET:
446 @GTK_BORDER_STYLE_OUTSET:
448 <!-- ##### ENUM GtkRegionFlags ##### -->