gtk.types

D types for gtk4 library

var ACCESSIBLE_ATTRIBUTE_BACKGROUND ACCESSIBLE_ATTRIBUTE_FAMILY ACCESSIBLE_ATTRIBUTE_FOREGROUND ACCESSIBLE_ATTRIBUTE_OVERLINE ACCESSIBLE_ATTRIBUTE_OVERLINE_NONE ACCESSIBLE_ATTRIBUTE_OVERLINE_SINGLE ACCESSIBLE_ATTRIBUTE_SIZE ACCESSIBLE_ATTRIBUTE_STRETCH ACCESSIBLE_ATTRIBUTE_STRETCH_CONDENSED ACCESSIBLE_ATTRIBUTE_STRETCH_EXPANDED ACCESSIBLE_ATTRIBUTE_STRETCH_EXTRA_CONDENSED ACCESSIBLE_ATTRIBUTE_STRETCH_EXTRA_EXPANDED ACCESSIBLE_ATTRIBUTE_STRETCH_NORMAL ACCESSIBLE_ATTRIBUTE_STRETCH_SEMI_CONDENSED ACCESSIBLE_ATTRIBUTE_STRETCH_SEMI_EXPANDED ACCESSIBLE_ATTRIBUTE_STRETCH_ULTRA_CONDENSED ACCESSIBLE_ATTRIBUTE_STRETCH_ULTRA_EXPANDED ACCESSIBLE_ATTRIBUTE_STRIKETHROUGH ACCESSIBLE_ATTRIBUTE_STYLE ACCESSIBLE_ATTRIBUTE_STYLE_ITALIC ACCESSIBLE_ATTRIBUTE_STYLE_NORMAL ACCESSIBLE_ATTRIBUTE_STYLE_OBLIQUE ACCESSIBLE_ATTRIBUTE_UNDERLINE ACCESSIBLE_ATTRIBUTE_UNDERLINE_DOUBLE ACCESSIBLE_ATTRIBUTE_UNDERLINE_ERROR ACCESSIBLE_ATTRIBUTE_UNDERLINE_NONE ACCESSIBLE_ATTRIBUTE_UNDERLINE_SINGLE ACCESSIBLE_ATTRIBUTE_VARIANT ACCESSIBLE_ATTRIBUTE_VARIANT_ALL_PETITE_CAPS ACCESSIBLE_ATTRIBUTE_VARIANT_ALL_SMALL_CAPS ACCESSIBLE_ATTRIBUTE_VARIANT_PETITE_CAPS ACCESSIBLE_ATTRIBUTE_VARIANT_SMALL_CAPS ACCESSIBLE_ATTRIBUTE_VARIANT_TITLE_CAPS ACCESSIBLE_ATTRIBUTE_VARIANT_UNICASE ACCESSIBLE_ATTRIBUTE_WEIGHT ACCESSIBLE_VALUE_UNDEFINED BINARY_AGE IM_MODULE_EXTENSION_POINT_NAME INPUT_ERROR INTERFACE_AGE INVALID_LIST_POSITION LEVEL_BAR_OFFSET_FULL LEVEL_BAR_OFFSET_HIGH LEVEL_BAR_OFFSET_LOW MAJOR_VERSION MAX_COMPOSE_LEN MEDIA_FILE_EXTENSION_POINT_NAME 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 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 STYLE_PROVIDER_PRIORITY_APPLICATION STYLE_PROVIDER_PRIORITY_FALLBACK STYLE_PROVIDER_PRIORITY_SETTINGS STYLE_PROVIDER_PRIORITY_THEME STYLE_PROVIDER_PRIORITY_USER TEXT_VIEW_PRIORITY_VALIDATE TREE_SORTABLE_DEFAULT_SORT_COLUMN_ID TREE_SORTABLE_UNSORTED_SORT_COLUMN_ID
alias AccessibleAnnouncementPriority AccessibleAutocomplete AccessibleInvalidState AccessiblePlatformState AccessibleProperty AccessibleRelation AccessibleRole AccessibleSort AccessibleState AccessibleTextContentChange AccessibleTextGranularity AccessibleTextRange AccessibleTristate Align Allocation ApplicationInhibitFlags ArrowType AssistantPageFunc AssistantPageType BaselinePosition BorderStyle BuildableParser BuilderClosureFlags BuilderError ButtonsType CellAllocCallback CellCallback CellLayoutDataFunc CellRendererAccelMode CellRendererMode CellRendererState Collation ConstraintAttribute ConstraintRelation ConstraintStrength ConstraintVflParserError ContentFit CornerType CssLocation CssParserError CssParserWarning CssStyleChange CustomAllocateFunc CustomFilterFunc CustomMeasureFunc CustomRequestModeFunc DebugFlags DeleteType DialogError DialogFlags DirectionType DrawingAreaDrawFunc EditableProperties EntryCompletionMatchFunc EntryIconPosition EventControllerScrollFlags EventSequenceState ExpressionNotify FileChooserAction FileChooserError FilterChange FilterMatch FlowBoxCreateWidgetFunc FlowBoxFilterFunc FlowBoxForeachFunc FlowBoxSortFunc FontChooserLevel FontFilterFunc FontLevel GraphicsOffloadEnabled IconLookupFlags IconSize IconThemeError IconViewDropPosition IconViewForeachFunc ImageType InputHints InputPurpose InscriptionOverflow Justification LevelBarMode License ListBoxCreateWidgetFunc ListBoxFilterFunc ListBoxForeachFunc ListBoxSortFunc ListBoxUpdateHeaderFunc ListScrollFlags ListTabBehavior MapListModelMapFunc MenuButtonCreatePopupFunc MessageType MovementStep NaturalWrapMode NotebookTab NumberUpLayout Ordering Orientation Overflow PackType PadActionType PageOrientation PageRange PageSet PageSetupDoneFunc PanDirection PickFlags PolicyType PopoverMenuFlags PositionType PrintBackend PrintCapabilities PrintDuplex PrinterFunc PrintError PrintJobCompleteFunc PrintOperationAction PrintOperationResult PrintPages PrintQuality PrintSettingsFunc PrintStatus PropagationLimit PropagationPhase RecentManagerError RequestedSize ResponseType RevealerTransitionType ScaleFormatValueFunc ScrollablePolicy ScrollStep ScrollType SelectionMode SensitivityType ShortcutActionFlags ShortcutFunc ShortcutScope ShortcutType SizeGroupMode SizeRequestMode SorterChange SorterOrder SortType SpinButtonUpdatePolicy SpinType StackTransitionType StateFlags StringFilterMatchMode StyleContextPrintFlags SymbolicColor SystemSetting TextCharPredicate TextDirection TextExtendSelection TextSearchFlags TextTagTableForeach TextViewLayer TextWindowType TickCallback TreeCellDataFunc TreeIterCompareFunc TreeListModelCreateModelFunc TreeModelFilterModifyFunc TreeModelFilterVisibleFunc TreeModelFlags TreeModelForeachFunc TreeSelectionForeachFunc TreeSelectionFunc TreeViewColumnDropFunc TreeViewColumnSizing TreeViewDropPosition TreeViewGridLines TreeViewMappingFunc TreeViewRowSeparatorFunc TreeViewSearchEqualFunc Unit WidgetActionActivateFunc WrapMode

Types 178

aliasNumberUpLayout = GtkNumberUpLayout
aliasOrientation = GtkOrientation
aliasPageSet = GtkPageSet
aliasUnit = GtkUnit
aliasAssistantPageFunc = int delegate(int currentPage)

Type of callback used to calculate the next page in a [gtk.assistant.Assistant].

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.

See [gtk.assistant.Assistant.setForwardPageFunc].

Parameters

currentPageThe page number used to calculate the next page.

Returns

The next page number

The type of the callback functions used for iterating over the cell renderers and their allocated areas inside a [gtk.cell_area.CellArea], 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 [gtk.cell_area.CellArea], 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 [gtk.cell_layout.CellLayout]
cellthe cell renderer whose value is to be set
treeModelthe model
itera [gtk.tree_iter.TreeIter] indicating the row to set the value for
aliasCustomAllocateFunc = void delegate(gtk.widget.Widget widget, int width, int height, int baseline)

A function to be used by [gtk.custom_layout.CustomLayout] to allocate a widget.

Parameters

widgetthe widget to allocate
widththe new width of the widget
heightthe new height of the widget
baselinethe new baseline of the widget, or -1
aliasCustomFilterFunc = bool delegate(gobject.object.ObjectWrap item)

User function that is called to determine if the item should be matched.

If the filter matches the item, this function must return true. If the item should be filtered out, false must be returned.

Parameters

itemThe item to be matched

Returns

true to keep the item around
aliasCustomMeasureFunc = void delegate(gtk.widget.Widget widget, gtk.types.Orientation orientation, int forSize, out int minimum, out int natural, out int minimumBaseline, out int naturalBaseline)

A function to be used by [gtk.custom_layout.CustomLayout] to measure a widget.

Parameters

widgetthe widget to be measured
orientationthe direction to be measured
forSizethe size to be measured for
minimumthe measured minimum size of the widget
naturalthe measured natural size of the widget
minimumBaselinethe measured minimum baseline of the widget
naturalBaselinethe measured natural baseline of the widget

Queries a widget for its preferred size request mode.

Parameters

widgetthe widget to be queried

Returns

the size request mode
aliasDrawingAreaDrawFunc = void delegate(gtk.drawing_area.DrawingArea drawingArea, cairo.context.Context cr, int width, int height)

Whenever drawing_area needs to redraw, this function will be called.

This function should exclusively redraw the contents of the drawing area and must not call any widget functions that cause changes.

Parameters

drawingAreathe [gtk.drawing_area.DrawingArea] to redraw
crthe context to draw to
widththe actual width of the contents. This value will be at least as wide as GtkDrawingArea:width.
heightthe actual height of the contents. This value will be at least as wide as GtkDrawingArea:height.

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_editable_get_text (GTK_EDITABLE (gtk_entry_completion_get_entry ())).

Parameters

completionthe [gtk.entry_completion.EntryCompletion]
keythe string to match, normalized and case-folded
itera [gtk.tree_iter.TreeIter] indicating the row to match

Returns

true if iter should be displayed as a possible completion

for key

aliasExpressionNotify = void delegate()

Callback called by [gtk.expression.Expression.watch] when the expression value changes.

Called for flow boxes that are bound to a [gio.list_model.ListModel].

This function is called for each item that gets added to the model.

Parameters

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

Returns

a [gtk.widget.Widget] that represents item

A function that will be called whenever a child changes or is added.

It lets you control if the child should be visible or not.

Parameters

childa [gtk.flow_box_child.FlowBoxChild] 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 [gtk.flow_box.FlowBox]
childa [gtk.flow_box_child.FlowBoxChild]

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

they are equal, and > 0 otherwise

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

See [gtk.font_chooser.FontChooser.setFilterFunc].

Parameters

familya [pango.font_family.FontFamily]
facea [pango.font_face.FontFace] 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 [gtk.icon_view.IconView]
pathThe [gtk.tree_path.TreePath] of a selected row

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

If the widget returned is not a #GtkListBoxRow widget, then the widget will be inserted as the child of an intermediate #GtkListBoxRow.

Parameters

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

Returns

a [gtk.widget.Widget] 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 [gtk.list_box.ListBox]
rowa [gtk.list_box_row.ListBoxRow]

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

User function that is called to map an item of the original model to an item expected by the map model.

The returned items must conform to the item type of the model they are used with.

Parameters

itemThe item to map

Returns

The item to map to
aliasMenuButtonCreatePopupFunc = void delegate(gtk.menu_button.MenuButton menuButton)

User-provided callback function to create a popup for a [gtk.menu_button.MenuButton] on demand.

This function is called when the popup of menu_button is shown, but none has been provided via [gtk.menu_button.MenuButton.setPopover] or [gtk.menu_button.MenuButton.setMenuModel].

Parameters

menuButtonthe [gtk.menu_button.MenuButton]
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 [gtk.page_setup.PageSetup] that has been passed to [gtk.global.printRunPageSetupDialogAsync]

The type of callback that is passed to [gtk.print_job.PrintJob.send].

It is called when the print job has been completely sent.

Parameters

printJobthe [gtk.print_job.PrintJob]
errora [glib.error.ErrorWrap] that contains error information if the sending of the print job failed, otherwise null
aliasPrintSettingsFunc = void delegate(string key, string value)
aliasPrinterFunc = bool delegate(gtk.printer.Printer printer)

The type of function passed to [gtk.global.enumeratePrinters].

Note that you need to ref printer, if you want to keep a reference to it after the function has returned.

Parameters

printera [gtk.printer.Printer]

Returns

true to stop the enumeration, false to continue
aliasScaleFormatValueFunc = string delegate(gtk.scale.Scale scale, double value)
aliasShortcutFunc = bool delegate(gtk.widget.Widget widget, glib.variant.Variant args)

Prototype for shortcuts based on user callbacks.

Parameters

widgetThe widget passed to the activation
argsThe arguments passed to the activation

Returns

true if the action was successful.
aliasTextCharPredicate = bool delegate(dchar ch)

The predicate function used by [gtk.text_iter.TextIter.forwardFindChar] and [gtk.text_iter.TextIter.backwardFindChar].

Parameters

cha Unicode code point

Returns

true if the predicate is satisfied, and the iteration should

stop, and false otherwise

aliasTextTagTableForeach = void delegate(gtk.text_tag.TextTag tag)

A function used with [gtk.text_tag_table.TextTagTable.foreach_], to iterate over every [gtk.text_tag.TextTag] inside a [gtk.text_tag_table.TextTagTable].

Parameters

tagthe [gtk.text_tag.TextTag]
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.

A function to set the properties of a cell instead of just using the straight mapping between the cell and the model.

This function 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.

See also: [gtk.tree_view_column.TreeViewColumn.setCellDataFunc]

Parameters

treeColumnA [gtk.tree_view_column.TreeViewColumn]
cellThe [gtk.cell_renderer.CellRenderer] that is being rendered by tree_column
treeModelThe [gtk.tree_model.TreeModel] being rendered
iterA [gtk.tree_iter.TreeIter] of the current row rendered

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 [gtk.tree_sortable.TreeSortable] 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 [gtk.tree_model.TreeModel] the comparison is within
aA [gtk.tree_iter.TreeIter] in model
bAnother [gtk.tree_iter.TreeIter] in model

Returns

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

a sorts before, with or after b

Prototype of the function called to create new child models when [gtk.tree_list_row.TreeListRow.setExpanded] is called.

This function can return null to indicate that item is guaranteed to be a leaf node and will never have children. If it does not have children but may get children later, it should return an empty model that is filled once children arrive.

Parameters

itemThe item that is being expanded

Returns

The model tracking the children of

item or null if item can never have children

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 [gtk.tree_model_filter.TreeModelFilter]
itera [gtk.tree_iter.TreeIter] pointing to the row whose display values are determined
valueA [gobject.value.Value] 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 [gtk.tree_model_filter.TreeModelFilter]
itera [gtk.tree_iter.TreeIter] 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 [gtk.tree_model.TreeModel] being iterated
paththe current [gtk.tree_path.TreePath]
iterthe current [gtk.tree_iter.TreeIter]

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 [gtk.tree_model.TreeModel] being viewed
pathThe [gtk.tree_path.TreePath] of a selected row
iterA [gtk.tree_iter.TreeIter] 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 [gtk.tree_selection.TreeSelection]
modelA [gtk.tree_model.TreeModel] being viewed
pathThe [gtk.tree_path.TreePath] 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 [gtk.tree_view.TreeView]
columnThe [gtk.tree_view_column.TreeViewColumn] being dragged
prevColumnA [gtk.tree_view_column.TreeViewColumn] on one side of column
nextColumnA [gtk.tree_view_column.TreeViewColumn] 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 [gtk.tree_view.TreeView]
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 [gtk.types.TreeViewRowSeparatorFunc] returns.

Parameters

modelthe [gtk.tree_model.TreeModel]
itera [gtk.tree_iter.TreeIter] 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 [gtk.tree_model.TreeModel] being searched
columnthe search column set by [gtk.tree_view.TreeView.setSearchColumn]
keythe key string to compare with
itera [gtk.tree_iter.TreeIter] pointing the row of model that should be compared with key.

Returns

false if the row matches, true otherwise.
aliasWidgetActionActivateFunc = void delegate(gtk.widget.Widget widget, string actionName, glib.variant.Variant parameter)

The type of the callback functions used for activating actions installed with [gtk.widget_class.WidgetClass.installAction].

The parameter must match the parameter_type of the action.

Parameters

widgetthe widget to which the action belongs
actionNamethe action name
parameterparameter for activation

Variables 97

enumvarACCESSIBLE_ATTRIBUTE_BACKGROUND = "bg-color"

An attribute for the background color, expressed as an RGB value encoded in a string using the format: {r8},{g8},{b8}.

enumvarACCESSIBLE_ATTRIBUTE_FAMILY = "family-name"

An attribute for the font family name.

enumvarACCESSIBLE_ATTRIBUTE_FOREGROUND = "fg-color"

An attribute for the foreground color, expressed as an RGB value encoded in a string using the format: {r8},{g8},{b8}.

enumvarACCESSIBLE_ATTRIBUTE_OVERLINE = "overline"

An attribute for the overline style.

Possible values are:

  • [gtk.types.ACCESSIBLE_ATTRIBUTE_OVERLINE_NONE]
  • [gtk.types.ACCESSIBLE_ATTRIBUTE_OVERLINE_SINGLE]
enumvarACCESSIBLE_ATTRIBUTE_OVERLINE_NONE = "none"

The "none" overline value for [gtk.types.ACCESSIBLE_ATTRIBUTE_OVERLINE].

enumvarACCESSIBLE_ATTRIBUTE_OVERLINE_SINGLE = "single"

The "single" overline value for [gtk.types.ACCESSIBLE_ATTRIBUTE_OVERLINE].

enumvarACCESSIBLE_ATTRIBUTE_SIZE = "size"

An attribute for the font size, expressed in points.

enumvarACCESSIBLE_ATTRIBUTE_STRETCH = "stretch"

An attribute for the font stretch type.

Possible values are:

  • [gtk.types.ACCESSIBLE_ATTRIBUTE_STRETCH_ULTRA_CONDENSED]
  • [gtk.types.ACCESSIBLE_ATTRIBUTE_STRETCH_EXTRA_CONDENSED]
  • [gtk.types.ACCESSIBLE_ATTRIBUTE_STRETCH_CONDENSED]
  • [gtk.types.ACCESSIBLE_ATTRIBUTE_STRETCH_SEMI_CONDENSED]
enumvarACCESSIBLE_ATTRIBUTE_STRETCH_CONDENSED = "condensed"

The "condensed" stretch value for [gtk.types.ACCESSIBLE_ATTRIBUTE_STRETCH].

enumvarACCESSIBLE_ATTRIBUTE_STRETCH_EXPANDED = "expanded"

The "expanded" stretch value for [gtk.types.ACCESSIBLE_ATTRIBUTE_STRETCH].

enumvarACCESSIBLE_ATTRIBUTE_STRETCH_EXTRA_CONDENSED = "extra_condensed"

The "extra condensed" stretch value for [gtk.types.ACCESSIBLE_ATTRIBUTE_STRETCH].

enumvarACCESSIBLE_ATTRIBUTE_STRETCH_EXTRA_EXPANDED = "extra_expanded"

The "extra expanded" stretch value for [gtk.types.ACCESSIBLE_ATTRIBUTE_STRETCH].

enumvarACCESSIBLE_ATTRIBUTE_STRETCH_NORMAL = "normal"

The "normal" stretch value for [gtk.types.ACCESSIBLE_ATTRIBUTE_STRETCH].

enumvarACCESSIBLE_ATTRIBUTE_STRETCH_SEMI_CONDENSED = "semi_condensed"

The "semi condensed" stretch value for [gtk.types.ACCESSIBLE_ATTRIBUTE_STRETCH].

enumvarACCESSIBLE_ATTRIBUTE_STRETCH_SEMI_EXPANDED = "semi_expanded"

The "semi expanded" stretch value for [gtk.types.ACCESSIBLE_ATTRIBUTE_STRETCH].

enumvarACCESSIBLE_ATTRIBUTE_STRETCH_ULTRA_CONDENSED = "ultra_condensed"

The "ultra condensed" stretch value for [gtk.types.ACCESSIBLE_ATTRIBUTE_STRETCH].

enumvarACCESSIBLE_ATTRIBUTE_STRETCH_ULTRA_EXPANDED = "ultra_expanded"

The "ultra expanded" stretch value for [gtk.types.ACCESSIBLE_ATTRIBUTE_STRETCH].

enumvarACCESSIBLE_ATTRIBUTE_STRIKETHROUGH = "strikethrough"

An attribute for strikethrough text.

Possible values are true or false.

enumvarACCESSIBLE_ATTRIBUTE_STYLE = "style"

An attribute for the font style.

Possible values are:

  • [gtk.types.ACCESSIBLE_ATTRIBUTE_STYLE_NORMAL]
  • [gtk.types.ACCESSIBLE_ATTRIBUTE_STYLE_OBLIQUE]
  • [gtk.types.ACCESSIBLE_ATTRIBUTE_STYLE_ITALIC]
enumvarACCESSIBLE_ATTRIBUTE_STYLE_ITALIC = "italic"

The "italic" style value for [gtk.types.ACCESSIBLE_ATTRIBUTE_STYLE].

enumvarACCESSIBLE_ATTRIBUTE_STYLE_NORMAL = "normal"

The "normal" style value for [gtk.types.ACCESSIBLE_ATTRIBUTE_STYLE].

enumvarACCESSIBLE_ATTRIBUTE_STYLE_OBLIQUE = "oblique"

The "oblique" style value for [gtk.types.ACCESSIBLE_ATTRIBUTE_STYLE].

enumvarACCESSIBLE_ATTRIBUTE_UNDERLINE = "underline"

An attribute for the underline style.

Possible values are:

  • [gtk.types.ACCESSIBLE_ATTRIBUTE_UNDERLINE_NONE]
  • [gtk.types.ACCESSIBLE_ATTRIBUTE_UNDERLINE_SINGLE]
  • [gtk.types.ACCESSIBLE_ATTRIBUTE_UNDERLINE_DOUBLE]
  • [gtk.types.ACCESSIBLE_ATTRIBUTE_UNDERLINE_ERROR]
enumvarACCESSIBLE_ATTRIBUTE_UNDERLINE_DOUBLE = "double"

The "double" underline value for [gtk.types.ACCESSIBLE_ATTRIBUTE_UNDERLINE].

enumvarACCESSIBLE_ATTRIBUTE_UNDERLINE_ERROR = "error"

The "error" underline value for [gtk.types.ACCESSIBLE_ATTRIBUTE_UNDERLINE].

enumvarACCESSIBLE_ATTRIBUTE_UNDERLINE_NONE = "none"

The "none" underline value for [gtk.types.ACCESSIBLE_ATTRIBUTE_UNDERLINE].

enumvarACCESSIBLE_ATTRIBUTE_UNDERLINE_SINGLE = "single"

The "single" underline value for [gtk.types.ACCESSIBLE_ATTRIBUTE_UNDERLINE].

enumvarACCESSIBLE_ATTRIBUTE_VARIANT = "variant"

An attribute for the font variant.

Possible values are:

  • [gtk.types.ACCESSIBLE_ATTRIBUTE_VARIANT_SMALL_CAPS]
  • [gtk.types.ACCESSIBLE_ATTRIBUTE_VARIANT_ALL_SMALL_CAPS]
  • [gtk.types.ACCESSIBLE_ATTRIBUTE_VARIANT_PETITE_CAPS]
  • [gtk.types.ACCESSIBLE_ATTRIBUTE_VARIANT_ALL_PETITE_CAPS]
  • [gtk.types.ACCESSIBLE_ATTRIBUTE_VARIANT_UNICASE]
  • [gtk.types.ACCESSIBLE_ATTRIBUTE_VARIANT_TITLE_CAPS]
enumvarACCESSIBLE_ATTRIBUTE_VARIANT_ALL_PETITE_CAPS = "all-petite-caps"

The "all petite caps" variant value for [gtk.types.ACCESSIBLE_ATTRIBUTE_VARIANT].

enumvarACCESSIBLE_ATTRIBUTE_VARIANT_ALL_SMALL_CAPS = "all-small-caps"

The "all small caps" variant value for [gtk.types.ACCESSIBLE_ATTRIBUTE_VARIANT].

enumvarACCESSIBLE_ATTRIBUTE_VARIANT_PETITE_CAPS = "petite-caps"

The "petite caps" variant value for [gtk.types.ACCESSIBLE_ATTRIBUTE_VARIANT].

enumvarACCESSIBLE_ATTRIBUTE_VARIANT_SMALL_CAPS = "small-caps"

The "small caps" variant value for [gtk.types.ACCESSIBLE_ATTRIBUTE_VARIANT].

enumvarACCESSIBLE_ATTRIBUTE_VARIANT_TITLE_CAPS = "title-caps"

The "title caps" variant value for [gtk.types.ACCESSIBLE_ATTRIBUTE_VARIANT].

enumvarACCESSIBLE_ATTRIBUTE_VARIANT_UNICASE = "unicase"

The "unicase" variant value for [gtk.types.ACCESSIBLE_ATTRIBUTE_VARIANT].

enumvarACCESSIBLE_ATTRIBUTE_WEIGHT = "weight"

An attribute for the font weight.

enumvarACCESSIBLE_VALUE_UNDEFINED = - 1

An undefined value. The accessible attribute is either unset, or its value is undefined.

enumvarBINARY_AGE = 1402

Like func@get_binary_age, but from the headers used at application compile time, rather than from the library linked against at application run time.

enumvarIM_MODULE_EXTENSION_POINT_NAME = "gtk-im-module"
enumvarINPUT_ERROR = - 1

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

See [gtk.spin_button.SpinButton.input].

enumvarINTERFACE_AGE = 2

Like func@get_interface_age, but from the headers used at application compile time, rather than from the library linked against at application run time.

enumvarINVALID_LIST_POSITION = 4294967295

The value used to refer to a guaranteed invalid position in a [gio.list_model.ListModel].

This value may be returned from some functions, others may accept it as input. Its interpretation may differ for different functions.

Refer to each function's documentation for if this value is allowed and what it does.

enumvarLEVEL_BAR_OFFSET_FULL = "full"

The name used for the stock full offset included by [gtk.level_bar.LevelBar].

enumvarLEVEL_BAR_OFFSET_HIGH = "high"

The name used for the stock high offset included by [gtk.level_bar.LevelBar].

enumvarLEVEL_BAR_OFFSET_LOW = "low"

The name used for the stock low offset included by [gtk.level_bar.LevelBar].

enumvarMAJOR_VERSION = 4

Like func@get_major_version, but from the headers used at application compile time, rather than from the library linked against at application run time.

enumvarMAX_COMPOSE_LEN = 7
enumvarMEDIA_FILE_EXTENSION_POINT_NAME = "gtk-media-file"
enumvarMICRO_VERSION = 2

Like func@get_micro_version, but from the headers used at application compile time, rather than from the library linked against at application run time.

enumvarMINOR_VERSION = 14

Like func@get_minor_version, 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.

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.

enumvarSTYLE_PROVIDER_PRIORITY_APPLICATION = 600

A priority that can be used when adding a [gtk.style_provider.StyleProvider] 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 [gtk.settings.Settings].

This priority is higher than [gtk.types.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-4.0/gtk.css.

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

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

Uses the default sort function in a [gtk.tree_sortable.TreeSortable].

See also: [gtk.tree_sortable.TreeSortable.setSortColumnId]

enumvarTREE_SORTABLE_UNSORTED_SORT_COLUMN_ID = - 2

Disables sorting in a [gtk.tree_sortable.TreeSortable].

See also: [gtk.tree_sortable.TreeSortable.setSortColumnId]