Top |
Types and Values
enum | GtkAccelFlags |
enum | GtkArrowPlacement |
enum | GtkArrowType |
enum | GtkAttachOptions |
enum | GtkBaselinePosition |
enum | GtkButtonBoxStyle |
enum | GtkCornerType |
enum | GtkDeleteType |
enum | GtkDirectionType |
enum | GtkExpanderStyle |
enum | GtkIMPreeditStyle |
enum | GtkIMStatusStyle |
enum | GtkJustification |
enum | GtkMovementStep |
enum | GtkOrientation |
enum | GtkPackType |
enum | GtkPathPriorityType |
enum | GtkPathType |
enum | GtkPolicyType |
enum | GtkPositionType |
enum | GtkReliefStyle |
enum | GtkResizeMode |
enum | GtkScrollStep |
enum | GtkScrollType |
enum | GtkSelectionMode |
enum | GtkShadowType |
enum | GtkStateType |
enum | GtkStateFlags |
enum | GtkToolbarStyle |
enum | GtkWindowPosition |
enum | GtkWindowType |
enum | GtkSortType |
enum | GtkDragResult |
enum | GtkJunctionSides |
enum | GtkBorderStyle |
enum | GtkRegionFlags |
Types and Values
enum GtkAttachOptions
Denotes the expansion properties that a widget will have when it (or its parent) is resized.
enum GtkBaselinePosition
Whenever a container has some form of natural row it may align children in that row along a common typographical baseline. If the amount of verical space in the row is taller than the total requested height of the baseline-aligned children then it can use a GtkBaselinePosition to select where to put the baseline inside the extra availible space.
Since 3.10
enum GtkButtonBoxStyle
Used to dictate the style that a GtkButtonBox uses to layout the buttons it contains. (See also: GtkVButtonBox and GtkHButtonBox).
Members
Buttons are evenly spread across the box. |
||
Buttons are placed at the edges of the box. |
||
Buttons are grouped towards the start of the box, (on the left for a HBox, or the top for a VBox). |
||
Buttons are grouped towards the end of the box, (on the right for a HBox, or the bottom for a VBox). |
||
Buttons are centered in the box. Since 2.12. |
||
Buttons expand to fill the box. Since 3.12. |
enum GtkCornerType
Specifies which corner a child widget should be placed in when packed into a GtkScrolledWindow. This is effectively the opposite of where the scroll bars are placed.
enum GtkDeleteType
See also: “delete-from-cursor”.
Members
Delete characters. |
||
Delete only the portion of the word to the left/right of cursor if we’re in the middle of a word. |
||
Delete words. |
||
Delete display-lines. Display-lines refers to the visible lines, with respect to to the current line breaks. As opposed to paragraphs, which are defined by line breaks in the input. |
||
Delete only the portion of the display-line to the left/right of cursor. |
||
Delete to the end of the paragraph. Like C-k in Emacs (or its reverse). |
||
Delete entire line. Like C-k in pico. |
||
Delete only whitespace. Like M-\ in Emacs. |
enum GtkIMPreeditStyle
GtkIMPreeditStyle
has been deprecated since version 3.10 and should not be used in newly-written code.
Style for input method preedit. See also “gtk-im-preedit-style”
enum GtkIMStatusStyle
GtkIMStatusStyle
has been deprecated since version 3.10 and should not be used in newly-written code.
Style for input method status. See also “gtk-im-status-style”
enum GtkJustification
Used for justifying the text inside a GtkLabel widget. (See also GtkAlignment).
enum GtkMovementStep
Members
Move forward or back by graphemes |
||
Move left or right by graphemes |
||
Move forward or back by words |
||
Move up or down lines (wrapped lines) |
||
Move to either end of a line |
||
Move up or down paragraphs (newline-ended lines) |
||
Move to either end of a paragraph |
||
Move by pages |
||
Move to ends of the buffer |
||
Move horizontally by pages |
enum GtkOrientation
Represents the orientation of widgets which can be switched between horizontal and vertical orientation on the fly, like GtkToolbar.
enum GtkPackType
Represents the packing location GtkBox children. (See: GtkVBox, GtkHBox, and GtkButtonBox).
enum GtkPathPriorityType
GtkPathPriorityType
has been deprecated since version 3.0 and should not be used in newly-written code.
Priorities for path lookups.
See also gtk_binding_set_add_path()
.
enum GtkPathType
GtkPathType
has been deprecated since version 3.0 and should not be used in newly-written code.
Widget path types.
See also gtk_binding_set_add_path()
.
enum GtkPolicyType
Determines when a scroll bar will be visible.
Members
The scrollbar is always visible. |
||
The scrollbar will appear and disappear as necessary. For example, when all of a GtkCList can not be seen. |
||
The scrollbar will never appear. |
enum GtkPositionType
Describes which edge of a widget a certain feature is positioned at, e.g. the tabs of a GtkNotebook, the handle of a GtkHandleBox or the label of a GtkScale.
enum GtkScrollType
Scrolling types.
enum GtkSelectionMode
Used to control what selections users are allowed to make.
Members
No selection is possible. |
||
Zero or one element may be selected. |
||
Exactly one element is selected.
In some circumstances, such as initially or during a search
operation, it’s possible for no element to be selected with
|
||
Any number of elements may be selected. The Ctrl key may be used to enlarge the selection, and Shift key to select between the focus and the child pointed to. Some widgets may also allow Click-drag to select a range of elements. |
enum GtkStateType
This type indicates the current state of a widget; the state determines how the widget is drawn. The GtkStateType enumeration is also used to identify different colors in a GtkStyle for drawing, so states can be used for subparts of a widget as well as entire widgets.
Members
State during normal operation. |
||
State of a currently active widget, such as a depressed button. |
||
State indicating that the mouse pointer is over the widget and the widget will respond to mouse clicks. |
||
State of a selected item, such the selected row in a list. |
||
State indicating that the widget is unresponsive to user actions. |
||
The widget is inconsistent, such as checkbuttons
or radiobuttons that aren’t either set to |
||
The widget has the keyboard focus. |
enum GtkStateFlags
Describes a widget state. Widget states are used to match the widget against CSS pseudo-classes. Note that GTK extends the regular CSS classes and sometimes uses different names.
Members
State during normal operation. |
||
Widget is active. |
||
Widget has a mouse pointer over it. |
||
Widget is selected. |
||
Widget is insensitive. |
||
Widget is inconsistent. |
||
Widget has the keyboard focus. |
||
Widget is in a background toplevel window. |
||
Widget is in left-to-right text direction. Since 3.8 |
||
Widget is in right-to-left text direction. Since 3.8 |
||
Widget is a link. Since 3.12 |
||
The location the widget points to has already been visited. Since 3.12 |
enum GtkToolbarStyle
Used to customize the appearance of a GtkToolbar. Note that setting the toolbar style overrides the user’s preferences for the default toolbar style. Note that if the button has only a label set and GTK_TOOLBAR_ICONS is used, the label will be visible, and vice versa.
enum GtkWindowPosition
Window placement can be influenced using this enumeration. Note that using GTK_WIN_POS_CENTER_ALWAYS is almost always a bad idea. It won’t necessarily work well with all window managers or on all windowing systems.
Members
No influence is made on placement. |
||
Windows should be placed in the center of the screen. |
||
Windows should be placed at the current mouse position. |
||
Keep window centered as it changes size, etc. |
||
Center the window on its transient
parent (see |
enum GtkWindowType
A GtkWindow can be one of these types. Most things you’d consider a
“window” should have type GTK_WINDOW_TOPLEVEL; windows with this type
are managed by the window manager and have a frame by default (call
gtk_window_set_decorated()
to toggle the frame). Windows with type
GTK_WINDOW_POPUP are ignored by the window manager; window manager
keybindings won’t work on them, the window manager won’t decorate the
window with a frame, many GTK+ features that rely on the window
manager will not work (e.g. resize grips and
maximization/minimization). GTK_WINDOW_POPUP is used to implement
widgets such as GtkMenu or tooltips that you normally don’t think of
as windows per se. Nearly all windows should be GTK_WINDOW_TOPLEVEL.
In particular, do not use GTK_WINDOW_POPUP just to turn off
the window borders; use gtk_window_set_decorated()
for that.
enum GtkDragResult
Gives an indication why a drag operation failed. The value can by obtained by connecting to the “drag-failed” signal.
enum GtkJunctionSides
Describes how a rendered element connects to adjacent elements.
Members
No junctions. |
||
Element connects on the top-left corner. |
||
Element connects on the top-right corner. |
||
Element connects on the bottom-left corner. |
||
Element connects on the bottom-right corner. |
||
Element connects on the top side. |
||
Element connects on the bottom side. |
||
Element connects on the left side. |
||
Element connects on the right side. |
enum GtkBorderStyle
Describes how the border of a UI element should be rendered.
Members
No visible border |
||
A single line segment |
||
Looks as if the content is sunken into the canvas |
||
Looks as if the content is coming out of the canvas |
||
Same as |
||
A series of round dots |
||
A series of square-ended dashes |
||
Two parallel lines with some space between them |
||
Looks as if it were carved in the canvas |
||
Looks as if it were coming out of the canvas |