gtk.types

D types for gtk3 library

var BINARY_AGE INPUT_ERROR INTERFACE_AGE LEVEL_BAR_OFFSET_FULL LEVEL_BAR_OFFSET_HIGH LEVEL_BAR_OFFSET_LOW MAJOR_VERSION MAX_COMPOSE_LEN MICRO_VERSION MINOR_VERSION PAPER_NAME_A3 PAPER_NAME_A4 PAPER_NAME_A5 PAPER_NAME_B5 PAPER_NAME_EXECUTIVE PAPER_NAME_LEGAL PAPER_NAME_LETTER PATH_PRIO_MASK PRINT_SETTINGS_COLLATE PRINT_SETTINGS_DEFAULT_SOURCE PRINT_SETTINGS_DITHER PRINT_SETTINGS_DUPLEX PRINT_SETTINGS_FINISHINGS PRINT_SETTINGS_MEDIA_TYPE PRINT_SETTINGS_N_COPIES PRINT_SETTINGS_NUMBER_UP PRINT_SETTINGS_NUMBER_UP_LAYOUT PRINT_SETTINGS_ORIENTATION PRINT_SETTINGS_OUTPUT_BASENAME PRINT_SETTINGS_OUTPUT_BIN PRINT_SETTINGS_OUTPUT_DIR PRINT_SETTINGS_OUTPUT_FILE_FORMAT PRINT_SETTINGS_OUTPUT_URI PRINT_SETTINGS_PAGE_RANGES PRINT_SETTINGS_PAGE_SET PRINT_SETTINGS_PAPER_FORMAT PRINT_SETTINGS_PAPER_HEIGHT PRINT_SETTINGS_PAPER_WIDTH PRINT_SETTINGS_PRINT_PAGES PRINT_SETTINGS_PRINTER PRINT_SETTINGS_PRINTER_LPI PRINT_SETTINGS_QUALITY PRINT_SETTINGS_RESOLUTION PRINT_SETTINGS_RESOLUTION_X PRINT_SETTINGS_RESOLUTION_Y PRINT_SETTINGS_REVERSE PRINT_SETTINGS_SCALE PRINT_SETTINGS_USE_COLOR PRINT_SETTINGS_WIN32_DRIVER_EXTRA PRINT_SETTINGS_WIN32_DRIVER_VERSION PRIORITY_RESIZE STOCK_ABOUT STOCK_ADD STOCK_APPLY STOCK_BOLD STOCK_CANCEL STOCK_CAPS_LOCK_WARNING STOCK_CDROM STOCK_CLEAR STOCK_CLOSE STOCK_COLOR_PICKER STOCK_CONNECT STOCK_CONVERT STOCK_COPY STOCK_CUT STOCK_DELETE STOCK_DIALOG_AUTHENTICATION STOCK_DIALOG_ERROR STOCK_DIALOG_INFO STOCK_DIALOG_QUESTION STOCK_DIALOG_WARNING STOCK_DIRECTORY STOCK_DISCARD STOCK_DISCONNECT STOCK_DND STOCK_DND_MULTIPLE STOCK_EDIT STOCK_EXECUTE STOCK_FILE STOCK_FIND STOCK_FIND_AND_REPLACE STOCK_FLOPPY STOCK_FULLSCREEN STOCK_GO_BACK STOCK_GO_DOWN STOCK_GO_FORWARD STOCK_GO_UP STOCK_GOTO_BOTTOM STOCK_GOTO_FIRST STOCK_GOTO_LAST STOCK_GOTO_TOP STOCK_HARDDISK STOCK_HELP STOCK_HOME STOCK_INDENT STOCK_INDEX STOCK_INFO STOCK_ITALIC STOCK_JUMP_TO STOCK_JUSTIFY_CENTER STOCK_JUSTIFY_FILL STOCK_JUSTIFY_LEFT STOCK_JUSTIFY_RIGHT STOCK_LEAVE_FULLSCREEN STOCK_MEDIA_FORWARD STOCK_MEDIA_NEXT STOCK_MEDIA_PAUSE STOCK_MEDIA_PLAY STOCK_MEDIA_PREVIOUS STOCK_MEDIA_RECORD STOCK_MEDIA_REWIND STOCK_MEDIA_STOP STOCK_MISSING_IMAGE STOCK_NETWORK STOCK_NEW STOCK_NO STOCK_OK STOCK_OPEN STOCK_ORIENTATION_LANDSCAPE STOCK_ORIENTATION_PORTRAIT STOCK_ORIENTATION_REVERSE_LANDSCAPE STOCK_ORIENTATION_REVERSE_PORTRAIT STOCK_PAGE_SETUP STOCK_PASTE STOCK_PREFERENCES STOCK_PRINT STOCK_PRINT_ERROR STOCK_PRINT_PAUSED STOCK_PRINT_PREVIEW STOCK_PRINT_REPORT STOCK_PRINT_WARNING STOCK_PROPERTIES STOCK_QUIT STOCK_REDO STOCK_REFRESH STOCK_REMOVE STOCK_REVERT_TO_SAVED STOCK_SAVE STOCK_SAVE_AS STOCK_SELECT_ALL STOCK_SELECT_COLOR STOCK_SELECT_FONT STOCK_SORT_ASCENDING STOCK_SORT_DESCENDING STOCK_SPELL_CHECK STOCK_STOP STOCK_STRIKETHROUGH STOCK_UNDELETE STOCK_UNDERLINE STOCK_UNDO STOCK_UNINDENT STOCK_YES STOCK_ZOOM_100 STOCK_ZOOM_FIT STOCK_ZOOM_IN STOCK_ZOOM_OUT STYLE_CLASS_ACCELERATOR STYLE_CLASS_ARROW STYLE_CLASS_BACKGROUND STYLE_CLASS_BOTTOM STYLE_CLASS_BUTTON STYLE_CLASS_CALENDAR STYLE_CLASS_CELL STYLE_CLASS_CHECK STYLE_CLASS_COMBOBOX_ENTRY STYLE_CLASS_CONTEXT_MENU STYLE_CLASS_CSD STYLE_CLASS_CURSOR_HANDLE STYLE_CLASS_DEFAULT STYLE_CLASS_DESTRUCTIVE_ACTION STYLE_CLASS_DIM_LABEL STYLE_CLASS_DND STYLE_CLASS_DOCK STYLE_CLASS_ENTRY STYLE_CLASS_ERROR STYLE_CLASS_EXPANDER STYLE_CLASS_FLAT STYLE_CLASS_FRAME STYLE_CLASS_GRIP STYLE_CLASS_HEADER STYLE_CLASS_HIGHLIGHT STYLE_CLASS_HORIZONTAL STYLE_CLASS_IMAGE STYLE_CLASS_INFO STYLE_CLASS_INLINE_TOOLBAR STYLE_CLASS_INSERTION_CURSOR STYLE_CLASS_LABEL STYLE_CLASS_LEFT STYLE_CLASS_LEVEL_BAR STYLE_CLASS_LINKED STYLE_CLASS_LIST STYLE_CLASS_LIST_ROW STYLE_CLASS_MARK STYLE_CLASS_MENU STYLE_CLASS_MENUBAR STYLE_CLASS_MENUITEM STYLE_CLASS_MESSAGE_DIALOG STYLE_CLASS_MONOSPACE STYLE_CLASS_NEEDS_ATTENTION STYLE_CLASS_NOTEBOOK STYLE_CLASS_OSD STYLE_CLASS_OVERSHOOT STYLE_CLASS_PANE_SEPARATOR STYLE_CLASS_PAPER STYLE_CLASS_POPOVER STYLE_CLASS_POPUP STYLE_CLASS_PRIMARY_TOOLBAR STYLE_CLASS_PROGRESSBAR STYLE_CLASS_PULSE STYLE_CLASS_QUESTION STYLE_CLASS_RADIO STYLE_CLASS_RAISED STYLE_CLASS_READ_ONLY STYLE_CLASS_RIGHT STYLE_CLASS_RUBBERBAND STYLE_CLASS_SCALE STYLE_CLASS_SCALE_HAS_MARKS_ABOVE STYLE_CLASS_SCALE_HAS_MARKS_BELOW STYLE_CLASS_SCROLLBAR STYLE_CLASS_SCROLLBARS_JUNCTION STYLE_CLASS_SEPARATOR STYLE_CLASS_SIDEBAR STYLE_CLASS_SLIDER STYLE_CLASS_SPINBUTTON STYLE_CLASS_SPINNER STYLE_CLASS_STATUSBAR STYLE_CLASS_SUBTITLE STYLE_CLASS_SUGGESTED_ACTION STYLE_CLASS_TITLE STYLE_CLASS_TITLEBAR STYLE_CLASS_TOOLBAR STYLE_CLASS_TOOLTIP STYLE_CLASS_TOP STYLE_CLASS_TOUCH_SELECTION STYLE_CLASS_TROUGH STYLE_CLASS_UNDERSHOOT STYLE_CLASS_VERTICAL STYLE_CLASS_VIEW STYLE_CLASS_WARNING STYLE_CLASS_WIDE STYLE_PROPERTY_BACKGROUND_COLOR STYLE_PROPERTY_BACKGROUND_IMAGE STYLE_PROPERTY_BORDER_COLOR STYLE_PROPERTY_BORDER_RADIUS STYLE_PROPERTY_BORDER_STYLE STYLE_PROPERTY_BORDER_WIDTH STYLE_PROPERTY_COLOR STYLE_PROPERTY_FONT STYLE_PROPERTY_MARGIN STYLE_PROPERTY_PADDING STYLE_PROVIDER_PRIORITY_APPLICATION STYLE_PROVIDER_PRIORITY_FALLBACK STYLE_PROVIDER_PRIORITY_SETTINGS STYLE_PROVIDER_PRIORITY_THEME STYLE_PROVIDER_PRIORITY_USER STYLE_REGION_COLUMN STYLE_REGION_COLUMN_HEADER STYLE_REGION_ROW STYLE_REGION_TAB TEXT_VIEW_PRIORITY_VALIDATE TREE_SORTABLE_DEFAULT_SORT_COLUMN_ID TREE_SORTABLE_UNSORTED_SORT_COLUMN_ID
alias _MountOperationHandler AccelFlags AccelGroupActivate AccelGroupFindFunc AccelKey AccelMapForeach Align Allocation ApplicationInhibitFlags ArrowPlacement ArrowType AssistantPageFunc AssistantPageType AttachOptions BaselinePosition BorderStyle BuilderConnectFunc BuilderError ButtonBoxStyle ButtonRole ButtonsType CalendarDetailFunc CalendarDisplayOptions Callback CellAllocCallback CellCallback CellLayoutDataFunc CellRendererAccelMode CellRendererMode CellRendererState ClipboardClearFunc ClipboardGetFunc ClipboardImageReceivedFunc ClipboardReceivedFunc ClipboardRichTextReceivedFunc ClipboardTextReceivedFunc ClipboardURIReceivedFunc ColorSelectionChangePaletteFunc ColorSelectionChangePaletteWithScreenFunc CornerType CssProviderError CssSectionType DebugFlag DeleteType DestDefaults DialogFlags DirectionType DragResult EntryCompletionMatchFunc EntryIconPosition EventControllerScrollFlags EventSequenceState ExpanderStyle FileChooserAction FileChooserConfirmation FileChooserError FileFilterFlags FileFilterFunc FlowBoxCreateWidgetFunc FlowBoxFilterFunc FlowBoxForeachFunc FlowBoxSortFunc FontChooserLevel FontFilterFunc IconLookupFlags IconSize IconThemeError IconViewDropPosition IconViewForeachFunc ImageType IMPreeditStyle IMStatusStyle InputHints InputPurpose JunctionSides Justification KeySnoopFunc LabelSelectionInfo LevelBarMode License ListBoxCreateWidgetFunc ListBoxFilterFunc ListBoxForeachFunc ListBoxSortFunc ListBoxUpdateHeaderFunc MenuDetachFunc MenuDirectionType MenuPositionFunc MessageType ModuleDisplayInitFunc MovementStep NotebookTab NumberUpLayout Orientation PackDirection PackType PadActionType PageOrientation PageRange PageSet PageSetupDoneFunc PanDirection PathPriorityType PathType PlacesOpenFlags PolicyType PopoverConstraint PositionType PrintDuplex PrintError PrintOperationAction PrintOperationResult PrintPages PrintQuality PrintSettingsFunc PrintStatus PropagationPhase RcContext RcFlags RcPropertyParser RcTokenType RecentChooserError RecentFilterFlags RecentFilterFunc RecentManagerError RecentSortFunc RecentSortType RegionFlags ReliefStyle RequestedSize ResizeMode ResponseType RevealerTransitionType ScrollablePolicy ScrollStep ScrollType SelectionMode SensitivityType ShadowType ShortcutType SizeGroupMode SizeRequestMode SortType SpinButtonUpdatePolicy SpinType StackTransitionType StateFlags StateType Stock StyleContextPrintFlags StylePropertyParser TableRowCol TargetFlags TextBTree TextBufferDeserializeFunc TextBufferSerializeFunc TextBufferTargetInfo TextCharPredicate TextDirection TextExtendSelection TextSearchFlags TextTagTableForeach TextViewLayer TextWindowType ThemeEngine TickCallback ToolbarSpaceStyle ToolbarStyle ToolPaletteDragTargets TranslateFunc TreeCellDataFunc TreeDestroyCountFunc TreeIterCompareFunc TreeModelFilterModifyFunc TreeModelFilterVisibleFunc TreeModelFlags TreeModelForeachFunc TreeSelectionForeachFunc TreeSelectionFunc TreeViewColumnDropFunc TreeViewColumnSizing TreeViewDropPosition TreeViewGridLines TreeViewMappingFunc TreeViewRowSeparatorFunc TreeViewSearchEqualFunc TreeViewSearchPositionFunc UIManagerItemType Unit WidgetHelpType WindowGeometryInfo WindowPosition WindowType WrapMode

Types 194

aliasStock = GtkStock
aliasUnit = GtkUnit
alias_MountOperationHandler = _GtkMountOperationHandler *
aliasAccelGroupActivate = bool delegate(gtk.accel_group.AccelGroup accelGroup, gobject.object.ObjectWrap acceleratable, uint keyval, gdk.types.ModifierType modifier)
aliasAccelMapForeach = void delegate(string accelPath, uint accelKey, gdk.types.ModifierType accelMods, bool changed)
aliasAssistantPageFunc = int delegate(int currentPage)

A function used by [gtk.assistant.Assistant.setForwardPageFunc] to know which is the next page given a current one. It’s called both for computing the next page when the user presses the “forward” button and for handling the behavior of the “last” button.

Parameters

currentPageThe page number used to calculate the next page.

Returns

The next page number.
aliasBuilderConnectFunc = void delegate(gtk.builder.Builder builder, gobject.object.ObjectWrap object, string signalName, string handlerName, gobject.object.ObjectWrap connectObject, gobject.types.ConnectFlags flags)

This is the signature of a function used to connect signals. It is used by the [gtk.builder.Builder.connectSignals] and [gtk.builder.Builder.connectSignalsFull] methods. It is mainly intended for interpreted language bindings, but could be useful where the programmer wants more control over the signal connection process. Note that this function can only be called once, subsequent calls will do nothing.

Parameters

buildera #GtkBuilder
objectobject to connect a signal to
signalNamename of the signal
handlerNamename of the handler
connectObjecta #GObject, if non-null, use [gobject.global.signalConnectObject]
flags#GConnectFlags to use
aliasCalendarDetailFunc = string delegate(gtk.calendar.Calendar calendar, uint year, uint month, uint day)

This kind of functions provide Pango markup with detail information for the specified day. Examples for such details are holidays or appointments. The function returns null when no information is available.

Parameters

calendara #GtkCalendar.
yearthe year for which details are needed.
monththe month for which details are needed.
daythe day of month for which details are needed.

Returns

Newly allocated string with Pango markup

with details for the specified day or null.

aliasCallback = void delegate(gtk.widget.Widget widget)

The type of the callback functions used for e.g. iterating over the children of a container, see [gtk.container.Container.foreach_].

Parameters

widgetthe widget to operate on

The type of the callback functions used for iterating over the cell renderers and their allocated areas inside a #GtkCellArea, see [gtk.cell_area.CellArea.foreachAlloc].

Parameters

rendererthe cell renderer to operate on
cellAreathe area allocated to renderer inside the rectangle provided to [gtk.cell_area.CellArea.foreachAlloc].
cellBackgroundthe background area for renderer inside the background area provided to [gtk.cell_area.CellArea.foreachAlloc].

Returns

true to stop iterating over cells.
aliasCellCallback = bool delegate(gtk.cell_renderer.CellRenderer renderer)

The type of the callback functions used for iterating over the cell renderers of a #GtkCellArea, see [gtk.cell_area.CellArea.foreach_].

Parameters

rendererthe cell renderer to operate on

Returns

true to stop iterating over cells.

A function which should set the value of cell_layout’s cell renderer(s) as appropriate.

Parameters

cellLayouta #GtkCellLayout
cellthe cell renderer whose value is to be set
treeModelthe model
itera #GtkTreeIter indicating the row to set the value for
aliasClipboardClearFunc = void delegate(gtk.clipboard.Clipboard clipboard)

A function that will be called when the contents of the clipboard are changed or cleared. Once this has called, the user_data_or_owner argument will not be used again.

Parameters

clipboardthe #GtkClipboard
aliasClipboardGetFunc = void delegate(gtk.clipboard.Clipboard clipboard, gtk.selection_data.SelectionData selectionData, uint info)

A function that will be called to provide the contents of the selection. If multiple types of data were advertised, the requested type can be determined from the info parameter or by checking the target field of selection_data. If the data could successfully be converted into then it should be stored into the selection_data object by calling [gtk.selection_data.SelectionData.set] (or related functions such as [gtk.selection_data.SelectionData.setText]). If no data is set, the requestor will be informed that the attempt to get the data failed.

Parameters

clipboardthe #GtkClipboard
selectionDataa #GtkSelectionData argument in which the requested data should be stored.
infothe info field corresponding to the requested target from the #GtkTargetEntry array passed to [gtk.clipboard.Clipboard.setWithData] or [gtk.clipboard.Clipboard.setWithOwner].

A function to be called when the results of [gtk.clipboard.Clipboard.requestImage] are received, or when the request fails.

Parameters

clipboardthe #GtkClipboard
pixbufthe received image

A function to be called when the results of [gtk.clipboard.Clipboard.requestContents] are received, or when the request fails.

Parameters

clipboardthe #GtkClipboard
selectionDataa #GtkSelectionData containing the data was received. If retrieving the data failed, then then length field of selection_data will be negative.
aliasClipboardRichTextReceivedFunc = void delegate(gtk.clipboard.Clipboard clipboard, gdk.atom.Atom format, char[] text)

A function to be called when the results of [gtk.clipboard.Clipboard.requestRichText] are received, or when the request fails.

Parameters

clipboardthe #GtkClipboard
formatThe format of the rich text
textthe rich text received, as a UTF-8 encoded string, or null if retrieving the data failed.
aliasClipboardTextReceivedFunc = void delegate(gtk.clipboard.Clipboard clipboard, string text)

A function to be called when the results of [gtk.clipboard.Clipboard.requestText] are received, or when the request fails.

Parameters

clipboardthe #GtkClipboard
textthe text received, as a UTF-8 encoded string, or null if retrieving the data failed.
aliasClipboardURIReceivedFunc = void delegate(gtk.clipboard.Clipboard clipboard, string[] uris)

A function to be called when the results of [gtk.clipboard.Clipboard.requestUris] are received, or when the request fails.

Parameters

clipboardthe #GtkClipboard
uristhe received URIs
aliasColorSelectionChangePaletteFunc = void delegate(gdk.color.Color[] colors)

A function which decides whether the row indicated by iter matches a given key, and should be displayed as a possible completion for key. Note that key is normalized and case-folded (see [glib.global.utf8Normalize] and [glib.global.utf8Casefold]). If this is not appropriate, match functions have access to the unmodified key via gtk_entry_get_text (GTK_ENTRY (gtk_entry_completion_get_entry ())).

Parameters

completionthe #GtkEntryCompletion
keythe string to match, normalized and case-folded
itera #GtkTreeIter indicating the row to match

Returns

true if iter should be displayed as a possible completion

for key

aliasFileFilterFunc = bool delegate(gtk.file_filter_info.FileFilterInfo filterInfo)

The type of function that is used with custom filters, see [gtk.file_filter.FileFilter.addCustom].

Parameters

filterInfoa #GtkFileFilterInfo that is filled according to the needed flags passed to [gtk.file_filter.FileFilter.addCustom]

Returns

true if the file should be displayed

Called for flow boxes that are bound to a #GListModel with [gtk.flow_box.FlowBox.bindModel] for each item that gets added to the model.

Parameters

itemthe item from the model for which to create a widget for

Returns

a #GtkWidget that represents item

A function that will be called whenrever a child changes or is added. It lets you control if the child should be visible or not.

Parameters

childa #GtkFlowBoxChild that may be filtered

Returns

true if the row should be visible, false otherwise

A function used by [gtk.flow_box.FlowBox.selectedForeach]. It will be called on every selected child of the box.

Parameters

boxa #GtkFlowBox
childa #GtkFlowBoxChild

A function to compare two children to determine which should come first.

Parameters

child1the first child
child2the second child

Returns

< 0 if child1 should be before child2, 0 if

the are equal, and > 0 otherwise

The type of function that is used for deciding what fonts get shown in a #GtkFontChooser. See [gtk.font_chooser.FontChooser.setFilterFunc].

Parameters

familya #PangoFontFamily
facea #PangoFontFace belonging to family

Returns

true if the font should be displayed

A function used by [gtk.icon_view.IconView.selectedForeach] to map all selected rows. It will be called on every selected row in the view.

Parameters

iconViewa #GtkIconView
pathThe #GtkTreePath of a selected row
aliasKeySnoopFunc = int delegate(gtk.widget.Widget grabWidget, gdk.event_key.EventKey event)

Key snooper functions are called before normal event delivery. They can be used to implement custom key event handling.

Parameters

grabWidgetthe widget to which the event will be delivered
eventthe key event

Returns

true to stop further processing of event, false to continue.

Called for list boxes that are bound to a #GListModel with [gtk.list_box.ListBox.bindModel] for each item that gets added to the model.

Versions of GTK+ prior to 3.18 called [gtk.widget.Widget.showAll] on the rows created by the GtkListBoxCreateWidgetFunc, but this forced all widgets inside the row to be shown, and is no longer the case. Applications should be updated to show the desired row widgets.

Parameters

itemthe item from the model for which to create a widget for

Returns

a #GtkWidget that represents item

Will be called whenever the row changes or is added and lets you control if the row should be visible or not.

Parameters

rowthe row that may be filtered

Returns

true if the row should be visible, false otherwise

A function used by [gtk.list_box.ListBox.selectedForeach]. It will be called on every selected child of the box.

Parameters

boxa #GtkListBox
rowa #GtkListBoxRow

Compare two rows to determine which should be first.

Parameters

row1the first row
row2the second row

Returns

< 0 if row1 should be before row2, 0 if they are

equal and > 0 otherwise

Whenever row changes or which row is before row changes this is called, which lets you update the header on row. You may remove or set a new one via [gtk.list_box_row.ListBoxRow.setHeader] or just change the state of the current header widget.

Parameters

rowthe row to update
beforethe row before row, or null if it is first
aliasMenuDetachFunc = void delegate(gtk.widget.Widget attachWidget, gtk.menu.Menu menu)

A user function supplied when calling [gtk.menu.Menu.attachToWidget] which will be called when the menu is later detached from the widget.

Parameters

attachWidgetthe #GtkWidget that the menu is being detached from.
menuthe #GtkMenu being detached.
aliasMenuPositionFunc = void delegate(gtk.menu.Menu menu, ref int x, ref int y, out bool pushIn)

A user function supplied when calling [gtk.menu.Menu.popup] which controls the positioning of the menu when it is displayed. The function sets the x and y parameters to the coordinates where the menu is to be drawn. To make the menu appear on a different monitor than the mouse pointer, [gtk.menu.Menu.setMonitor] must be called.

Parameters

menua #GtkMenu.
xaddress of the #gint representing the horizontal position where the menu shall be drawn.
yaddress of the #gint representing the vertical position where the menu shall be drawn. This is an output parameter.
pushInThis parameter controls how menus placed outside the monitor are handled. If this is set to true and part of the menu is outside the monitor then GTK+ pushes the window into the visible area, effectively modifying the popup position. Note that moving and possibly resizing the menu around will alter the scroll position to keep the menu items “in place”, i.e. at the same monitor position they would have been without resizing. In practice, this behavior is only useful for combobox popups or option menus and cannot be used to simply confine a menu to monitor boundaries. In that case, changing the scroll offset is not desirable.
aliasModuleDisplayInitFunc = void delegate(gdk.display.Display display)

A multihead-aware GTK+ module may have a gtk_module_display_init() function with this prototype. GTK+ calls this function for each opened display.

Parameters

displayan open #GdkDisplay
aliasPageSetupDoneFunc = void delegate(gtk.page_setup.PageSetup pageSetup)

The type of function that is passed to [gtk.global.printRunPageSetupDialogAsync].

This function will be called when the page setup dialog is dismissed, and also serves as destroy notify for data.

Parameters

pageSetupthe #GtkPageSetup that has been
aliasPrintSettingsFunc = void delegate(string key, string value)
aliasRcPropertyParser = bool delegate(gobject.param_spec.ParamSpec pspec, glib.string_.String rcString, gobject.value.Value propertyValue)

The type of function that is used with custom filters, see [gtk.recent_filter.RecentFilter.addCustom].

Parameters

filterInfoa #GtkRecentFilterInfo that is filled according to the needed flags passed to [gtk.recent_filter.RecentFilter.addCustom]

Returns

true if the file should be displayed
aliasStylePropertyParser = bool delegate(string string_, gobject.value.Value value, GError * * _err)
aliasTextBufferDeserializeFunc = bool delegate(gtk.text_buffer.TextBuffer registerBuffer, gtk.text_buffer.TextBuffer contentBuffer, gtk.text_iter.TextIter iter, ubyte[] data, bool createTags, GError * * _err)

A function that is called to deserialize rich text that has been serialized with [gtk.text_buffer.TextBuffer.serialize], and insert it at iter.

Parameters

registerBufferthe #GtkTextBuffer the format is registered with
contentBufferthe #GtkTextBuffer to deserialize into
iterinsertion point for the deserialized text
datadata to deserialize
createTagstrue if deserializing may create tags

Returns

true on success, false otherwise

Throws

[ErrorWrap]

A function that is called to serialize the content of a text buffer. It must return the serialized form of the content.

Parameters

registerBufferthe #GtkTextBuffer for which the format is registered
contentBufferthe #GtkTextBuffer to serialize
startstart of the block of text to serialize
endend of the block of text to serialize

Returns

a newly-allocated array of guint8

which contains the serialized data, or null if an error occurred

aliasTextCharPredicate = bool delegate(dchar ch)
aliasTextTagTableForeach = void delegate(gtk.text_tag.TextTag tag)
aliasTickCallback = bool delegate(gtk.widget.Widget widget, gdk.frame_clock.FrameClock frameClock)

Callback type for adding a function to update animations. See [gtk.widget.Widget.addTickCallback].

Parameters

widgetthe widget
frameClockthe frame clock for the widget (same as calling [gtk.widget.Widget.getFrameClock])

Returns

[glib.types.SOURCE_CONTINUE] if the tick callback should continue to be called,

[glib.types.SOURCE_REMOVE] if the tick callback should be removed.

aliasTranslateFunc = string delegate(string path)

The function used to translate messages in e.g. #GtkIconFactory and #GtkActionGroup.

Parameters

pathThe id of the message. In #GtkActionGroup this will be a label or tooltip from a #GtkActionEntry.

Returns

the translated message

A function to set the properties of a cell instead of just using the straight mapping between the cell and the model. This is useful for customizing the cell renderer. For example, a function might get an integer from the tree_model, and render it to the “text” attribute of “cell” by converting it to its written equivalent. This is set by calling [gtk.tree_view_column.TreeViewColumn.setCellDataFunc]

Parameters

treeColumnA #GtkTreeViewColumn
cellThe #GtkCellRenderer that is being rendered by tree_column
treeModelThe #GtkTreeModel being rendered
iterA #GtkTreeIter of the current row rendered
aliasTreeDestroyCountFunc = void delegate(gtk.tree_view.TreeView treeView, gtk.tree_path.TreePath path, int children)

A GtkTreeIterCompareFunc should return a negative integer, zero, or a positive integer if a sorts before b, a sorts with b, or a sorts after b respectively. If two iters compare as equal, their order in the sorted model is undefined. In order to ensure that the #GtkTreeSortable behaves as expected, the GtkTreeIterCompareFunc must define a partial order on the model, i.e. it must be reflexive, antisymmetric and transitive.

For example, if model is a product catalogue, then a compare function for the “price” column could be one which returns price_of(a) - price_of(b`)`.

Parameters

modelThe #GtkTreeModel the comparison is within
aA #GtkTreeIter in model
bAnother #GtkTreeIter in model

Returns

a negative integer, zero or a positive integer depending on whether

a sorts before, with or after b

aliasTreeModelFilterModifyFunc = void delegate(gtk.tree_model.TreeModel model, gtk.tree_iter.TreeIter iter, out gobject.value.Value value, int column)

A function which calculates display values from raw values in the model. It must fill value with the display value for the column column in the row indicated by iter.

Since this function is called for each data access, it’s not a particularly efficient operation.

Parameters

modelthe #GtkTreeModelFilter
itera #GtkTreeIter pointing to the row whose display values are determined
valueA #GValue which is already initialized for with the correct type for the column column.
columnthe column whose display value is determined

A function which decides whether the row indicated by iter is visible.

Parameters

modelthe child model of the #GtkTreeModelFilter
itera #GtkTreeIter pointing to the row in model whose visibility is determined

Returns

Whether the row indicated by iter is visible.

Type of the callback passed to [gtk.tree_model.TreeModel.foreach_] to iterate over the rows in a tree model.

Parameters

modelthe #GtkTreeModel being iterated
paththe current #GtkTreePath
iterthe current #GtkTreeIter

Returns

true to stop iterating, false to continue

A function used by [gtk.tree_selection.TreeSelection.selectedForeach] to map all selected rows. It will be called on every selected row in the view.

Parameters

modelThe #GtkTreeModel being viewed
pathThe #GtkTreePath of a selected row
iterA #GtkTreeIter pointing to a selected row
aliasTreeSelectionFunc = bool delegate(gtk.tree_selection.TreeSelection selection, gtk.tree_model.TreeModel model, gtk.tree_path.TreePath path, bool pathCurrentlySelected)

A function used by [gtk.tree_selection.TreeSelection.setSelectFunction] to filter whether or not a row may be selected. It is called whenever a row's state might change. A return value of true indicates to selection that it is okay to change the selection.

Parameters

selectionA #GtkTreeSelection
modelA #GtkTreeModel being viewed
pathThe #GtkTreePath of the row in question
pathCurrentlySelectedtrue, if the path is currently selected

Returns

true, if the selection state of the row can be toggled

Function type for determining whether column can be dropped in a particular spot (as determined by prev_column and next_column). In left to right locales, prev_column is on the left of the potential drop spot, and next_column is on the right. In right to left mode, this is reversed. This function should return true if the spot is a valid drop spot. Please note that returning true does not actually indicate that the column drop was made, but is meant only to indicate a possible drop spot to the user.

Parameters

treeViewA #GtkTreeView
columnThe #GtkTreeViewColumn being dragged
prevColumnA #GtkTreeViewColumn on one side of column
nextColumnA #GtkTreeViewColumn on the other side of column

Returns

true, if column can be dropped in this spot

Function used for [gtk.tree_view.TreeView.mapExpandedRows].

Parameters

treeViewA #GtkTreeView
pathThe path that’s expanded

Function type for determining whether the row pointed to by iter should be rendered as a separator. A common way to implement this is to have a boolean column in the model, whose values the #GtkTreeViewRowSeparatorFunc returns.

Parameters

modelthe #GtkTreeModel
itera #GtkTreeIter pointing at a row in model

Returns

true if the row is a separator
aliasTreeViewSearchEqualFunc = bool delegate(gtk.tree_model.TreeModel model, int column, string key, gtk.tree_iter.TreeIter iter)

A function used for checking whether a row in model matches a search key string entered by the user. Note the return value is reversed from what you would normally expect, though it has some similarity to strcmp() returning 0 for equal strings.

Parameters

modelthe #GtkTreeModel being searched
columnthe search column set by [gtk.tree_view.TreeView.setSearchColumn]
keythe key string to compare with
itera #GtkTreeIter pointing the row of model that should be compared with key.

Returns

false if the row matches, true otherwise.
aliasTreeViewSearchPositionFunc = void delegate(gtk.tree_view.TreeView treeView, gtk.widget.Widget searchDialog)

Variables 262

enumvarBINARY_AGE = 2443

Like [gtk.global.getBinaryAge], but from the headers used at application compile time, rather than from the library linked against at application run time.

enumvarINPUT_ERROR = - 1

Constant to return from a signal handler for the #GtkSpinButton::input signal in case of conversion failure.

enumvarINTERFACE_AGE = 32

Like [gtk.global.getInterfaceAge], but from the headers used at application compile time, rather than from the library linked against at application run time.

enumvarLEVEL_BAR_OFFSET_FULL = "full"

The name used for the stock full offset included by #GtkLevelBar.

enumvarLEVEL_BAR_OFFSET_HIGH = "high"

The name used for the stock high offset included by #GtkLevelBar.

enumvarLEVEL_BAR_OFFSET_LOW = "low"

The name used for the stock low offset included by #GtkLevelBar.

enumvarMAJOR_VERSION = 3

Like [gtk.global.getMajorVersion], but from the headers used at application compile time, rather than from the library linked against at application run time.

enumvarMAX_COMPOSE_LEN = 7

The maximum length of sequences in compose tables.

enumvarMICRO_VERSION = 43

Like [gtk.global.getMicroVersion], but from the headers used at application compile time, rather than from the library linked against at application run time.

enumvarMINOR_VERSION = 24

Like [gtk.global.getMinorVersion], but from the headers used at application compile time, rather than from the library linked against at application run time.

enumvarPAPER_NAME_A3 = "iso_a3"

Name for the A3 paper size.

enumvarPAPER_NAME_A4 = "iso_a4"

Name for the A4 paper size.

enumvarPAPER_NAME_A5 = "iso_a5"

Name for the A5 paper size.

enumvarPAPER_NAME_B5 = "iso_b5"

Name for the B5 paper size.

enumvarPAPER_NAME_EXECUTIVE = "na_executive"

Name for the Executive paper size.

enumvarPAPER_NAME_LEGAL = "na_legal"

Name for the Legal paper size.

enumvarPAPER_NAME_LETTER = "na_letter"

Name for the Letter paper size.

enumvarPATH_PRIO_MASK = 15
enumvarPRINT_SETTINGS_COLLATE = "collate"
enumvarPRINT_SETTINGS_DEFAULT_SOURCE = "default-source"
enumvarPRINT_SETTINGS_DITHER = "dither"
enumvarPRINT_SETTINGS_DUPLEX = "duplex"
enumvarPRINT_SETTINGS_FINISHINGS = "finishings"
enumvarPRINT_SETTINGS_MEDIA_TYPE = "media-type"
enumvarPRINT_SETTINGS_NUMBER_UP = "number-up"
enumvarPRINT_SETTINGS_NUMBER_UP_LAYOUT = "number-up-layout"
enumvarPRINT_SETTINGS_N_COPIES = "n-copies"
enumvarPRINT_SETTINGS_ORIENTATION = "orientation"
enumvarPRINT_SETTINGS_OUTPUT_BASENAME = "output-basename"

The key used by the “Print to file” printer to store the file name of the output without the path to the directory and the file extension.

enumvarPRINT_SETTINGS_OUTPUT_BIN = "output-bin"
enumvarPRINT_SETTINGS_OUTPUT_DIR = "output-dir"

The key used by the “Print to file” printer to store the directory to which the output should be written.

enumvarPRINT_SETTINGS_OUTPUT_FILE_FORMAT = "output-file-format"

The key used by the “Print to file” printer to store the format of the output. The supported values are “PS” and “PDF”.

enumvarPRINT_SETTINGS_OUTPUT_URI = "output-uri"

The key used by the “Print to file” printer to store the URI to which the output should be written. GTK+ itself supports only “file://” URIs.

enumvarPRINT_SETTINGS_PAGE_RANGES = "page-ranges"
enumvarPRINT_SETTINGS_PAGE_SET = "page-set"
enumvarPRINT_SETTINGS_PAPER_FORMAT = "paper-format"
enumvarPRINT_SETTINGS_PAPER_HEIGHT = "paper-height"
enumvarPRINT_SETTINGS_PAPER_WIDTH = "paper-width"
enumvarPRINT_SETTINGS_PRINTER = "printer"
enumvarPRINT_SETTINGS_PRINTER_LPI = "printer-lpi"
enumvarPRINT_SETTINGS_PRINT_PAGES = "print-pages"
enumvarPRINT_SETTINGS_QUALITY = "quality"
enumvarPRINT_SETTINGS_RESOLUTION = "resolution"
enumvarPRINT_SETTINGS_RESOLUTION_X = "resolution-x"
enumvarPRINT_SETTINGS_RESOLUTION_Y = "resolution-y"
enumvarPRINT_SETTINGS_REVERSE = "reverse"
enumvarPRINT_SETTINGS_SCALE = "scale"
enumvarPRINT_SETTINGS_USE_COLOR = "use-color"
enumvarPRINT_SETTINGS_WIN32_DRIVER_EXTRA = "win32-driver-extra"
enumvarPRINT_SETTINGS_WIN32_DRIVER_VERSION = "win32-driver-version"
enumvarPRIORITY_RESIZE = 110

Use this priority for functionality related to size allocation.

It is used internally by GTK+ to compute the sizes of widgets. This priority is higher than [gdk.types.PRIORITY_REDRAW] to avoid resizing a widget which was just redrawn.

enumvarSTOCK_ABOUT = "gtk-about"

The “About” item. ![](help-about.png)

Deprecated

Use named icon "help-about" or the label "_About".
enumvarSTOCK_ADD = "gtk-add"

The “Add” item and icon.

Deprecated

Use named icon "list-add" or the label "_Add".
enumvarSTOCK_APPLY = "gtk-apply"

The “Apply” item and icon.

Deprecated

Do not use an icon. Use label "_Apply".
enumvarSTOCK_BOLD = "gtk-bold"

The “Bold” item and icon.

Deprecated

Use named icon "format-text-bold".
enumvarSTOCK_CANCEL = "gtk-cancel"

The “Cancel” item and icon.

Deprecated

Do not use an icon. Use label "_Cancel".
enumvarSTOCK_CAPS_LOCK_WARNING = "gtk-caps-lock-warning"

The “Caps Lock Warning” icon.

Deprecated

Use named icon "dialog-warning-symbolic".
enumvarSTOCK_CDROM = "gtk-cdrom"

The “CD-Rom” item and icon.

Deprecated

Use named icon "media-optical".
enumvarSTOCK_CLEAR = "gtk-clear"

The “Clear” item and icon.

Deprecated

Use named icon "edit-clear".
enumvarSTOCK_CLOSE = "gtk-close"

The “Close” item and icon.

Deprecated

Use named icon "window-close" or the label "_Close".
enumvarSTOCK_COLOR_PICKER = "gtk-color-picker"

The “Color Picker” item and icon.

enumvarSTOCK_CONNECT = "gtk-connect"

The “Connect” icon.

enumvarSTOCK_CONVERT = "gtk-convert"

The “Convert” item and icon.

enumvarSTOCK_COPY = "gtk-copy"

The “Copy” item and icon.

Deprecated

Use the named icon "edit-copy" or the label "_Copy".
enumvarSTOCK_CUT = "gtk-cut"

The “Cut” item and icon.

Deprecated

Use the named icon "edit-cut" or the label "Cu_t".
enumvarSTOCK_DELETE = "gtk-delete"

The “Delete” item and icon.

Deprecated

Use the named icon "edit-delete" or the label "_Delete".
enumvarSTOCK_DIALOG_AUTHENTICATION = "gtk-dialog-authentication"

The “Authentication” item and icon.

Deprecated

Use named icon "dialog-password".
enumvarSTOCK_DIALOG_ERROR = "gtk-dialog-error"

The “Error” item and icon.

Deprecated

Use named icon "dialog-error".
enumvarSTOCK_DIALOG_INFO = "gtk-dialog-info"

The “Information” item and icon.

Deprecated

Use named icon "dialog-information".
enumvarSTOCK_DIALOG_QUESTION = "gtk-dialog-question"

The “Question” item and icon.

Deprecated

Use named icon "dialog-question".
enumvarSTOCK_DIALOG_WARNING = "gtk-dialog-warning"

The “Warning” item and icon.

Deprecated

Use named icon "dialog-warning".
enumvarSTOCK_DIRECTORY = "gtk-directory"

The “Directory” icon.

Deprecated

Use named icon "folder".
enumvarSTOCK_DISCARD = "gtk-discard"

The “Discard” item.

enumvarSTOCK_DISCONNECT = "gtk-disconnect"

The “Disconnect” icon.

enumvarSTOCK_DND = "gtk-dnd"

The “Drag-And-Drop” icon.

enumvarSTOCK_DND_MULTIPLE = "gtk-dnd-multiple"

The “Drag-And-Drop multiple” icon.

enumvarSTOCK_EDIT = "gtk-edit"

The “Edit” item and icon.

enumvarSTOCK_EXECUTE = "gtk-execute"

The “Execute” item and icon.

Deprecated

Use named icon "system-run".
enumvarSTOCK_FILE = "gtk-file"

The “File” item and icon.

Since 3.0, this item has a label, before it only had an icon.

Deprecated

Use named icon "text-x-generic".
enumvarSTOCK_FIND = "gtk-find"

The “Find” item and icon.

Deprecated

Use named icon "edit-find".
enumvarSTOCK_FIND_AND_REPLACE = "gtk-find-and-replace"

The “Find and Replace” item and icon.

Deprecated

Use named icon "edit-find-replace".
enumvarSTOCK_FLOPPY = "gtk-floppy"

The “Floppy” item and icon.

enumvarSTOCK_FULLSCREEN = "gtk-fullscreen"

The “Fullscreen” item and icon.

Deprecated

Use named icon "view-fullscreen".
enumvarSTOCK_GOTO_BOTTOM = "gtk-goto-bottom"

The “Bottom” item and icon.

Deprecated

Use named icon "go-bottom".
enumvarSTOCK_GOTO_FIRST = "gtk-goto-first"

The “First” item and icon. The icon has an RTL variant.

Deprecated

Use named icon "go-first".
enumvarSTOCK_GOTO_LAST = "gtk-goto-last"

The “Last” item and icon. The icon has an RTL variant.

Deprecated

Use named icon "go-last".
enumvarSTOCK_GOTO_TOP = "gtk-goto-top"

The “Top” item and icon.

Deprecated

Use named icon "go-top".
enumvarSTOCK_GO_BACK = "gtk-go-back"

The “Back” item and icon. The icon has an RTL variant.

Deprecated

Use named icon "go-previous".
enumvarSTOCK_GO_DOWN = "gtk-go-down"

The “Down” item and icon.

Deprecated

Use named icon "go-down".
enumvarSTOCK_GO_FORWARD = "gtk-go-forward"

The “Forward” item and icon. The icon has an RTL variant.

Deprecated

Use named icon "go-next".
enumvarSTOCK_GO_UP = "gtk-go-up"

The “Up” item and icon.

Deprecated

Use named icon "go-up".
enumvarSTOCK_HARDDISK = "gtk-harddisk"

The “Harddisk” item and icon.

Deprecated

Use named icon "drive-harddisk".
enumvarSTOCK_HELP = "gtk-help"

The “Help” item and icon.

Deprecated

Use named icon "help-browser".
enumvarSTOCK_HOME = "gtk-home"

The “Home” item and icon.

Deprecated

Use named icon "go-home".
enumvarSTOCK_INDENT = "gtk-indent"

The “Indent” item and icon. The icon has an RTL variant.

Deprecated

Use named icon "format-indent-more".
enumvarSTOCK_INDEX = "gtk-index"

The “Index” item and icon.

enumvarSTOCK_INFO = "gtk-info"

The “Info” item and icon.

Deprecated

Use named icon "dialog-information".
enumvarSTOCK_ITALIC = "gtk-italic"

The “Italic” item and icon.

Deprecated

Use named icon "format-text-italic".
enumvarSTOCK_JUMP_TO = "gtk-jump-to"

The “Jump to” item and icon. The icon has an RTL variant.

Deprecated

Use named icon "go-jump".
enumvarSTOCK_JUSTIFY_CENTER = "gtk-justify-center"

The “Center” item and icon.

Deprecated

Use named icon "format-justify-center".
enumvarSTOCK_JUSTIFY_FILL = "gtk-justify-fill"

The “Fill” item and icon.

Deprecated

Use named icon "format-justify-fill".
enumvarSTOCK_JUSTIFY_LEFT = "gtk-justify-left"

The “Left” item and icon.

Deprecated

Use named icon "format-justify-left".
enumvarSTOCK_JUSTIFY_RIGHT = "gtk-justify-right"

The “Right” item and icon.

Deprecated

Use named icon "format-justify-right".
enumvarSTOCK_LEAVE_FULLSCREEN = "gtk-leave-fullscreen"

The “Leave Fullscreen” item and icon.

Deprecated

Use named icon "view-restore".
enumvarSTOCK_MEDIA_FORWARD = "gtk-media-forward"

The “Media Forward” item and icon. The icon has an RTL variant.

Deprecated

Use named icon "media-seek-forward" or the label "_Forward".
enumvarSTOCK_MEDIA_NEXT = "gtk-media-next"

The “Media Next” item and icon. The icon has an RTL variant.

Deprecated

Use named icon "media-skip-forward" or the label "_Next".
enumvarSTOCK_MEDIA_PAUSE = "gtk-media-pause"

The “Media Pause” item and icon.

Deprecated

Use named icon "media-playback-pause" or the label "P_ause".
enumvarSTOCK_MEDIA_PLAY = "gtk-media-play"

The “Media Play” item and icon. The icon has an RTL variant.

Deprecated

Use named icon "media-playback-start" or the label "_Play".
enumvarSTOCK_MEDIA_PREVIOUS = "gtk-media-previous"

The “Media Previous” item and icon. The icon has an RTL variant.

Deprecated

Use named icon "media-skip-backward" or the label "Pre_vious".
enumvarSTOCK_MEDIA_RECORD = "gtk-media-record"

The “Media Record” item and icon.

Deprecated

Use named icon "media-record" or the label "_Record".
enumvarSTOCK_MEDIA_REWIND = "gtk-media-rewind"

The “Media Rewind” item and icon. The icon has an RTL variant.

Deprecated

Use named icon "media-seek-backward" or the label "R_ewind".
enumvarSTOCK_MEDIA_STOP = "gtk-media-stop"

The “Media Stop” item and icon.

Deprecated

Use named icon "media-playback-stop" or the label "_Stop".
enumvarSTOCK_MISSING_IMAGE = "gtk-missing-image"

The “Missing image” icon.

Deprecated

Use named icon "image-missing".
enumvarSTOCK_NETWORK = "gtk-network"

The “Network” item and icon.

Deprecated

Use named icon "network-workgroup".
enumvarSTOCK_NEW = "gtk-new"

The “New” item and icon.

Deprecated

Use named icon "document-new" or the label "_New".
enumvarSTOCK_NO = "gtk-no"

The “No” item and icon.

enumvarSTOCK_OK = "gtk-ok"

The “OK” item and icon.

Deprecated

Do not use an icon. Use label "_OK".
enumvarSTOCK_OPEN = "gtk-open"

The “Open” item and icon.

Deprecated

Use named icon "document-open" or the label "_Open".
enumvarSTOCK_ORIENTATION_LANDSCAPE = "gtk-orientation-landscape"

The “Landscape Orientation” item and icon.

enumvarSTOCK_ORIENTATION_PORTRAIT = "gtk-orientation-portrait"

The “Portrait Orientation” item and icon.

enumvarSTOCK_ORIENTATION_REVERSE_LANDSCAPE = "gtk-orientation-reverse-landscape"

The “Reverse Landscape Orientation” item and icon.

enumvarSTOCK_ORIENTATION_REVERSE_PORTRAIT = "gtk-orientation-reverse-portrait"

The “Reverse Portrait Orientation” item and icon.

enumvarSTOCK_PAGE_SETUP = "gtk-page-setup"

The “Page Setup” item and icon.

Deprecated

Use named icon "document-page-setup" or the label "Page Set_up".
enumvarSTOCK_PASTE = "gtk-paste"

The “Paste” item and icon.

Deprecated

Use named icon "edit-paste" or the label "_Paste".
enumvarSTOCK_PREFERENCES = "gtk-preferences"

The “Preferences” item and icon.

Deprecated

Use named icon "preferences-system" or the label "_Preferences".
enumvarSTOCK_PRINT = "gtk-print"

The “Print” item and icon.

Deprecated

Use named icon "document-print" or the label "_Print".
enumvarSTOCK_PRINT_ERROR = "gtk-print-error"

The “Print Error” icon.

Deprecated

Use named icon "printer-error".
enumvarSTOCK_PRINT_PAUSED = "gtk-print-paused"

The “Print Paused” icon.

enumvarSTOCK_PRINT_PREVIEW = "gtk-print-preview"

The “Print Preview” item and icon.

Deprecated

Use label "Pre_view".
enumvarSTOCK_PRINT_REPORT = "gtk-print-report"

The “Print Report” icon.

enumvarSTOCK_PRINT_WARNING = "gtk-print-warning"

The “Print Warning” icon.

enumvarSTOCK_PROPERTIES = "gtk-properties"

The “Properties” item and icon.

Deprecated

Use named icon "document-properties" or the label "_Properties".
enumvarSTOCK_QUIT = "gtk-quit"

The “Quit” item and icon.

Deprecated

Use named icon "application-exit" or the label "_Quit".
enumvarSTOCK_REDO = "gtk-redo"

The “Redo” item and icon. The icon has an RTL variant.

Deprecated

Use named icon "edit-redo" or the label "_Redo".
enumvarSTOCK_REFRESH = "gtk-refresh"

The “Refresh” item and icon.

Deprecated

Use named icon "view-refresh" or the label "_Refresh".
enumvarSTOCK_REMOVE = "gtk-remove"

The “Remove” item and icon.

Deprecated

Use named icon "list-remove" or the label "_Remove".
enumvarSTOCK_REVERT_TO_SAVED = "gtk-revert-to-saved"

The “Revert” item and icon. The icon has an RTL variant.

Deprecated

Use named icon "document-revert" or the label "_Revert".
enumvarSTOCK_SAVE = "gtk-save"

The “Save” item and icon.

Deprecated

Use named icon "document-save" or the label "_Save".
enumvarSTOCK_SAVE_AS = "gtk-save-as"

The “Save As” item and icon.

Deprecated

Use named icon "document-save-as" or the label "Save _As".
enumvarSTOCK_SELECT_ALL = "gtk-select-all"

The “Select All” item and icon.

Deprecated

Use named icon "edit-select-all" or the label "Select _All".
enumvarSTOCK_SELECT_COLOR = "gtk-select-color"

The “Color” item and icon.

enumvarSTOCK_SELECT_FONT = "gtk-select-font"

The “Font” item and icon.

enumvarSTOCK_SORT_ASCENDING = "gtk-sort-ascending"

The “Ascending” item and icon.

Deprecated

Use named icon "view-sort-ascending".
enumvarSTOCK_SORT_DESCENDING = "gtk-sort-descending"

The “Descending” item and icon.

Deprecated

Use named icon "view-sort-descending".
enumvarSTOCK_SPELL_CHECK = "gtk-spell-check"

The “Spell Check” item and icon.

Deprecated

Use named icon "tools-check-spelling".
enumvarSTOCK_STOP = "gtk-stop"

The “Stop” item and icon.

Deprecated

Use named icon "process-stop" or the label "_Stop".
enumvarSTOCK_STRIKETHROUGH = "gtk-strikethrough"

The “Strikethrough” item and icon.

Deprecated

Use named icon "format-text-strikethrough" or the label "_Strikethrough".
enumvarSTOCK_UNDELETE = "gtk-undelete"

The “Undelete” item and icon. The icon has an RTL variant.

enumvarSTOCK_UNDERLINE = "gtk-underline"

The “Underline” item and icon.

Deprecated

Use named icon "format-text-underline" or the label "_Underline".
enumvarSTOCK_UNDO = "gtk-undo"

The “Undo” item and icon. The icon has an RTL variant.

Deprecated

Use named icon "edit-undo" or the label "_Undo".
enumvarSTOCK_UNINDENT = "gtk-unindent"

The “Unindent” item and icon. The icon has an RTL variant.

Deprecated

Use named icon "format-indent-less".
enumvarSTOCK_YES = "gtk-yes"

The “Yes” item and icon.

enumvarSTOCK_ZOOM_100 = "gtk-zoom-100"

The “Zoom 100%” item and icon.

Deprecated

Use named icon "zoom-original" or the label "_Normal Size".
enumvarSTOCK_ZOOM_FIT = "gtk-zoom-fit"

The “Zoom to Fit” item and icon.

Deprecated

Use named icon "zoom-fit-best" or the label "Best _Fit".
enumvarSTOCK_ZOOM_IN = "gtk-zoom-in"

The “Zoom In” item and icon.

Deprecated

Use named icon "zoom-in" or the label "Zoom _In".
enumvarSTOCK_ZOOM_OUT = "gtk-zoom-out"

The “Zoom Out” item and icon.

Deprecated

Use named icon "zoom-out" or the label "Zoom _Out".
enumvarSTYLE_CLASS_ACCELERATOR = "accelerator"

A CSS class to match an accelerator.

Refer to individual widget documentation for used style classes.

enumvarSTYLE_CLASS_ARROW = "arrow"

A CSS class used when rendering an arrow element.

Refer to individual widget documentation for used style classes.

enumvarSTYLE_CLASS_BACKGROUND = "background"

A CSS class to match the window background.

Refer to individual widget documentation for used style classes.

enumvarSTYLE_CLASS_BOTTOM = "bottom"

A CSS class to indicate an area at the bottom of a widget.

Refer to individual widget documentation for used style classes.

enumvarSTYLE_CLASS_BUTTON = "button"

A CSS class to match buttons.

Refer to individual widget documentation for used style classes.

enumvarSTYLE_CLASS_CALENDAR = "calendar"

A CSS class to match calendars.

Refer to individual widget documentation for used style classes.

enumvarSTYLE_CLASS_CELL = "cell"

A CSS class to match content rendered in cell views.

Refer to individual widget documentation for used style classes.

enumvarSTYLE_CLASS_CHECK = "check"

A CSS class to match check boxes.

Refer to individual widget documentation for used style classes.

enumvarSTYLE_CLASS_COMBOBOX_ENTRY = "combobox-entry"

A CSS class to match combobox entries.

Refer to individual widget documentation for used style classes.

enumvarSTYLE_CLASS_CONTEXT_MENU = "context-menu"

A CSS class to match context menus.

Refer to individual widget documentation for used style classes.

enumvarSTYLE_CLASS_CSD = "csd"

A CSS class that gets added to windows which have client-side decorations.

Refer to individual widget documentation for used style classes.

enumvarSTYLE_CLASS_CURSOR_HANDLE = "cursor-handle"

A CSS class used when rendering a drag handle for text selection.

Refer to individual widget documentation for used style classes.

enumvarSTYLE_CLASS_DEFAULT = "default"

A CSS class to match the default widget.

Refer to individual widget documentation for used style classes.

enumvarSTYLE_CLASS_DESTRUCTIVE_ACTION = "destructive-action"

A CSS class used when an action (usually a button) is one that is expected to remove or destroy something visible to the user.

Refer to individual widget documentation for used style classes.

enumvarSTYLE_CLASS_DIM_LABEL = "dim-label"

A CSS class to match dimmed labels.

Refer to individual widget documentation for used style classes.

enumvarSTYLE_CLASS_DND = "dnd"

A CSS class for a drag-and-drop indicator.

Refer to individual widget documentation for used style classes.

enumvarSTYLE_CLASS_DOCK = "dock"

A CSS class defining a dock area.

Refer to individual widget documentation for used style classes.

enumvarSTYLE_CLASS_ENTRY = "entry"

A CSS class to match text entries.

Refer to individual widget documentation for used style classes.

enumvarSTYLE_CLASS_ERROR = "error"

A CSS class for an area displaying an error message, such as those in infobars.

Refer to individual widget documentation for used style classes.

enumvarSTYLE_CLASS_EXPANDER = "expander"

A CSS class defining an expander, such as those in treeviews.

Refer to individual widget documentation for used style classes.

enumvarSTYLE_CLASS_FLAT = "flat"

A CSS class that is added when widgets that usually have a frame or border (like buttons or entries) should appear without it.

Refer to individual widget documentation for used style classes.

enumvarSTYLE_CLASS_FRAME = "frame"

A CSS class defining a frame delimiting content, such as #GtkFrame or the scrolled window frame around the scrollable area.

Refer to individual widget documentation for used style classes.

enumvarSTYLE_CLASS_GRIP = "grip"

A CSS class defining a resize grip.

Refer to individual widget documentation for used style classes.

enumvarSTYLE_CLASS_HEADER = "header"

A CSS class to match a header element.

Refer to individual widget documentation for used style classes.

enumvarSTYLE_CLASS_HIGHLIGHT = "highlight"

A CSS class defining a highlighted area, such as headings in assistants and calendars.

Refer to individual widget documentation for used style classes.

enumvarSTYLE_CLASS_HORIZONTAL = "horizontal"

A CSS class for horizontally layered widgets.

Refer to individual widget documentation for used style classes.

enumvarSTYLE_CLASS_IMAGE = "image"

A CSS class defining an image, such as the icon in an entry.

Refer to individual widget documentation for used style classes.

enumvarSTYLE_CLASS_INFO = "info"

A CSS class for an area displaying an informational message, such as those in infobars.

Refer to individual widget documentation for used style classes.

enumvarSTYLE_CLASS_INLINE_TOOLBAR = "inline-toolbar"

A CSS class to match inline toolbars.

Refer to individual widget documentation for used style classes.

enumvarSTYLE_CLASS_INSERTION_CURSOR = "insertion-cursor"

A CSS class used when rendering a drag handle for the insertion cursor position.

Refer to individual widget documentation for used style classes.

enumvarSTYLE_CLASS_LABEL = "label"

A CSS class to match labels.

Refer to individual widget documentation for used style classes.

enumvarSTYLE_CLASS_LEFT = "left"

A CSS class to indicate an area at the left of a widget.

Refer to individual widget documentation for used style classes.

enumvarSTYLE_CLASS_LEVEL_BAR = "level-bar"

A CSS class used when rendering a level indicator, such as a battery charge level, or a password strength.

Refer to individual widget documentation for used style classes.

enumvarSTYLE_CLASS_LINKED = "linked"

A CSS class to match a linked area, such as a box containing buttons belonging to the same control.

Refer to individual widget documentation for used style classes.

enumvarSTYLE_CLASS_LIST = "list"

A CSS class to match lists.

Refer to individual widget documentation for used style classes.

enumvarSTYLE_CLASS_LIST_ROW = "list-row"

A CSS class to match list rows.

Refer to individual widget documentation for used style classes.

enumvarSTYLE_CLASS_MARK = "mark"

A CSS class defining marks in a widget, such as in scales.

Refer to individual widget documentation for used style classes.

enumvarSTYLE_CLASS_MENU = "menu"

A CSS class to match menus.

Refer to individual widget documentation for used style classes.

enumvarSTYLE_CLASS_MENUBAR = "menubar"

A CSS class to menubars.

Refer to individual widget documentation for used style classes.

enumvarSTYLE_CLASS_MENUITEM = "menuitem"

A CSS class to match menu items.

Refer to individual widget documentation for used style classes.

enumvarSTYLE_CLASS_MESSAGE_DIALOG = "message-dialog"

A CSS class that is added to message dialogs.

Refer to individual widget documentation for used style classes.

enumvarSTYLE_CLASS_MONOSPACE = "monospace"

A CSS class that is added to text view that should use a monospace font.

Refer to individual widget documentation for used style classes.

enumvarSTYLE_CLASS_NEEDS_ATTENTION = "needs-attention"

A CSS class used when an element needs the user attention, for instance a button in a stack switcher corresponding to a hidden page that changed state.

Refer to individual widget documentation for used style classes.

enumvarSTYLE_CLASS_NOTEBOOK = "notebook"

A CSS class defining a notebook.

Refer to individual widget documentation for used style classes.

enumvarSTYLE_CLASS_OSD = "osd"

A CSS class used when rendering an OSD (On Screen Display) element, on top of another container.

Refer to individual widget documentation for used style classes.

enumvarSTYLE_CLASS_OVERSHOOT = "overshoot"

A CSS class that is added on the visual hints that happen when scrolling is attempted past the limits of a scrollable area.

Refer to individual widget documentation for used style classes.

enumvarSTYLE_CLASS_PANE_SEPARATOR = "pane-separator"

A CSS class for a pane separator, such as those in #GtkPaned.

Refer to individual widget documentation for used style classes.

enumvarSTYLE_CLASS_PAPER = "paper"

A CSS class that is added to areas that should look like paper.

This is used in print previews and themes are encouraged to style it as black text on white background.

Refer to individual widget documentation for used style classes.

enumvarSTYLE_CLASS_POPOVER = "popover"

A CSS class that matches popovers.

Refer to individual widget documentation for used style classes.

enumvarSTYLE_CLASS_POPUP = "popup"

A CSS class that is added to the toplevel windows used for menus.

Refer to individual widget documentation for used style classes.

enumvarSTYLE_CLASS_PRIMARY_TOOLBAR = "primary-toolbar"

A CSS class to match primary toolbars.

Refer to individual widget documentation for used style classes.

enumvarSTYLE_CLASS_PROGRESSBAR = "progressbar"

A CSS class to use when rendering activity as a progressbar.

Refer to individual widget documentation for used style classes.

enumvarSTYLE_CLASS_PULSE = "pulse"

A CSS class to use when rendering a pulse in an indeterminate progress bar.

Refer to individual widget documentation for used style classes.

enumvarSTYLE_CLASS_QUESTION = "question"

A CSS class for an area displaying a question to the user, such as those in infobars.

Refer to individual widget documentation for used style classes.

enumvarSTYLE_CLASS_RADIO = "radio"

A CSS class to match radio buttons.

Refer to individual widget documentation for used style classes.

enumvarSTYLE_CLASS_RAISED = "raised"

A CSS class to match a raised control, such as a raised button on a toolbar.

Refer to individual widget documentation for used style classes.

enumvarSTYLE_CLASS_READ_ONLY = "read-only"

A CSS class used to indicate a read-only state.

Refer to individual widget documentation for used style classes.

enumvarSTYLE_CLASS_RIGHT = "right"

A CSS class to indicate an area at the right of a widget.

Refer to individual widget documentation for used style classes.

enumvarSTYLE_CLASS_RUBBERBAND = "rubberband"

A CSS class to match the rubberband selection rectangle.

Refer to individual widget documentation for used style classes.

enumvarSTYLE_CLASS_SCALE = "scale"

A CSS class to match scale widgets.

Refer to individual widget documentation for used style classes.

enumvarSTYLE_CLASS_SCALE_HAS_MARKS_ABOVE = "scale-has-marks-above"

A CSS class to match scale widgets with marks attached, all the marks are above for horizontal #GtkScale. left for vertical #GtkScale.

Refer to individual widget documentation for used style classes.

enumvarSTYLE_CLASS_SCALE_HAS_MARKS_BELOW = "scale-has-marks-below"

A CSS class to match scale widgets with marks attached, all the marks are below for horizontal #GtkScale, right for vertical #GtkScale.

Refer to individual widget documentation for used style classes.

enumvarSTYLE_CLASS_SCROLLBAR = "scrollbar"

A CSS class to match scrollbars.

Refer to individual widget documentation for used style classes.

enumvarSTYLE_CLASS_SCROLLBARS_JUNCTION = "scrollbars-junction"

A CSS class to match the junction area between an horizontal and vertical scrollbar, when they’re both shown.

Refer to individual widget documentation for used style classes.

enumvarSTYLE_CLASS_SEPARATOR = "separator"

A CSS class for a separator.

Refer to individual widget documentation for used style classes.

enumvarSTYLE_CLASS_SIDEBAR = "sidebar"

A CSS class defining a sidebar, such as the left side in a file chooser.

Refer to individual widget documentation for used style classes.

enumvarSTYLE_CLASS_SLIDER = "slider"

A CSS class to match sliders.

Refer to individual widget documentation for used style classes.

enumvarSTYLE_CLASS_SPINBUTTON = "spinbutton"

A CSS class defining an spinbutton.

Refer to individual widget documentation for used style classes.

enumvarSTYLE_CLASS_SPINNER = "spinner"

A CSS class to use when rendering activity as a “spinner”.

Refer to individual widget documentation for used style classes.

enumvarSTYLE_CLASS_STATUSBAR = "statusbar"

A CSS class to match statusbars.

Refer to individual widget documentation for used style classes.

enumvarSTYLE_CLASS_SUBTITLE = "subtitle"

A CSS class used for the subtitle label in a titlebar in a toplevel window.

Refer to individual widget documentation for used style classes.

enumvarSTYLE_CLASS_SUGGESTED_ACTION = "suggested-action"

A CSS class used when an action (usually a button) is the primary suggested action in a specific context.

Refer to individual widget documentation for used style classes.

enumvarSTYLE_CLASS_TITLE = "title"

A CSS class used for the title label in a titlebar in a toplevel window.

Refer to individual widget documentation for used style classes.

enumvarSTYLE_CLASS_TITLEBAR = "titlebar"

A CSS class used when rendering a titlebar in a toplevel window.

Refer to individual widget documentation for used style classes.

enumvarSTYLE_CLASS_TOOLBAR = "toolbar"

A CSS class to match toolbars.

Refer to individual widget documentation for used style classes.

enumvarSTYLE_CLASS_TOOLTIP = "tooltip"

A CSS class to match tooltip windows.

Refer to individual widget documentation for used style classes.

enumvarSTYLE_CLASS_TOP = "top"

A CSS class to indicate an area at the top of a widget.

Refer to individual widget documentation for used style classes.

enumvarSTYLE_CLASS_TOUCH_SELECTION = "touch-selection"

A CSS class for touch selection popups on entries and text views.

Refer to individual widget documentation for used style classes.

enumvarSTYLE_CLASS_TROUGH = "trough"

A CSS class to match troughs, as in scrollbars and progressbars.

Refer to individual widget documentation for used style classes.

enumvarSTYLE_CLASS_UNDERSHOOT = "undershoot"

A CSS class that is added on the visual hints that happen where content is 'scrolled off' and can be made visible by scrolling.

Refer to individual widget documentation for used style classes.

enumvarSTYLE_CLASS_VERTICAL = "vertical"

A CSS class for vertically layered widgets.

Refer to individual widget documentation for used style classes.

enumvarSTYLE_CLASS_VIEW = "view"

A CSS class defining a view, such as iconviews or treeviews.

Refer to individual widget documentation for used style classes.

enumvarSTYLE_CLASS_WARNING = "warning"

A CSS class for an area displaying a warning message, such as those in infobars.

Refer to individual widget documentation for used style classes.

enumvarSTYLE_CLASS_WIDE = "wide"

A CSS class to indicate that a UI element should be 'wide'. Used by #GtkPaned.

Refer to individual widget documentation for used style classes.

enumvarSTYLE_PROPERTY_BACKGROUND_COLOR = "background-color"

A property holding the background color of rendered elements as a #GdkRGBA.

enumvarSTYLE_PROPERTY_BACKGROUND_IMAGE = "background-image"

A property holding the element’s background as a #cairo_pattern_t.

enumvarSTYLE_PROPERTY_BORDER_COLOR = "border-color"

A property holding the element’s border color as a #GdkRGBA.

enumvarSTYLE_PROPERTY_BORDER_RADIUS = "border-radius"

A property holding the rendered element’s border radius in pixels as a #gint.

enumvarSTYLE_PROPERTY_BORDER_STYLE = "border-style"

A property holding the element’s border style as a #GtkBorderStyle.

enumvarSTYLE_PROPERTY_BORDER_WIDTH = "border-width"

A property holding the rendered element’s border width in pixels as a #GtkBorder. The border is the intermediary spacing property of the padding/border/margin series.

[gtk.global.renderFrame] uses this property to find out the frame line width, so #GtkWidgets rendering frames may need to add up this padding when requesting size

enumvarSTYLE_PROPERTY_COLOR = "color"

A property holding the foreground color of rendered elements as a #GdkRGBA.

enumvarSTYLE_PROPERTY_FONT = "font"

A property holding the font properties used when rendering text as a #PangoFontDescription.

enumvarSTYLE_PROPERTY_MARGIN = "margin"

A property holding the rendered element’s margin as a #GtkBorder. The margin is defined as the spacing between the border of the element and its surrounding elements. It is external to #GtkWidget's size allocations, and the most external spacing property of the padding/border/margin series.

enumvarSTYLE_PROPERTY_PADDING = "padding"

A property holding the rendered element’s padding as a #GtkBorder. The padding is defined as the spacing between the inner part of the element border and its child. It’s the innermost spacing property of the padding/border/margin series.

enumvarSTYLE_PROVIDER_PRIORITY_APPLICATION = 600

A priority that can be used when adding a #GtkStyleProvider for application-specific style information.

enumvarSTYLE_PROVIDER_PRIORITY_FALLBACK = 1

The priority used for default style information that is used in the absence of themes.

Note that this is not very useful for providing default styling for custom style classes - themes are likely to override styling provided at this priority with catch-all `* {...}` rules.

enumvarSTYLE_PROVIDER_PRIORITY_SETTINGS = 400

The priority used for style information provided via #GtkSettings.

This priority is higher than #GTK_STYLE_PROVIDER_PRIORITY_THEME to let settings override themes.

enumvarSTYLE_PROVIDER_PRIORITY_THEME = 200

The priority used for style information provided by themes.

enumvarSTYLE_PROVIDER_PRIORITY_USER = 800

The priority used for the style information from XDG_CONFIG_HOME/gtk-3.0/gtk.css.

You should not use priorities higher than this, to give the user the last word.

enumvarSTYLE_REGION_COLUMN = "column"

A widget region name to define a treeview column.

Deprecated

Don't use regions.
enumvarSTYLE_REGION_COLUMN_HEADER = "column-header"

A widget region name to define a treeview column header.

Deprecated

Don't use regions.
enumvarSTYLE_REGION_ROW = "row"

A widget region name to define a treeview row.

Deprecated

Don't use regions.
enumvarSTYLE_REGION_TAB = "tab"

A widget region name to define a notebook tab.

Deprecated

Don't use regions.
enumvarTEXT_VIEW_PRIORITY_VALIDATE = 125

The priority at which the text view validates onscreen lines in an idle job in the background.

enumvarTREE_SORTABLE_DEFAULT_SORT_COLUMN_ID = - 1

The GTK_TREE_SORTABLE_DEFAULT_SORT_COLUMN_ID can be used to make a #GtkTreeSortable use the default sort function.

See also [gtk.tree_sortable.TreeSortable.setSortColumnId]

enumvarTREE_SORTABLE_UNSORTED_SORT_COLUMN_ID = - 2

The GTK_TREE_SORTABLE_DEFAULT_SORT_COLUMN_ID can be used to make a #GtkTreeSortable use no sorting.

See also [gtk.tree_sortable.TreeSortable.setSortColumnId]