Gtk

object Gtk

Skipped during bindings generation

  • class Snapshot: Missing cType on class

  • parameter accelerator_key: accelerator_key: Out parameter is not supported

  • parameter accelerator_key: accelerator_key: Out parameter is not supported

  • parameter value: value: Out parameter is not supported

  • parameter value: value: Out parameter is not supported

  • parameter value: value: Out parameter is not supported

  • parameter sizes: RequestedSize

  • function editable_install_properties: C function gtk_editable_install_properties is ignored

  • parameter r: r: Out parameter is not supported

  • parameter cr: cairo.Context

  • parameter cr: cairo.Context

  • parameter cr: cairo.Context

  • parameter cr: cairo.Context

  • parameter cr: cairo.Context

  • parameter cr: cairo.Context

  • parameter cr: cairo.Context

  • parameter cr: cairo.Context

  • parameter cr: cairo.Context

  • parameter cr: cairo.Context

  • parameter cr: cairo.Context

  • parameter cr: cairo.Context

  • parameter h: h: Out parameter is not supported

  • parameter n_types: n_types: Out parameter is not supported

  • parameter tree_model: tree_model: Out parameter is not supported

  • callback ScaleFormatValueFunc: Callback with String return value is not supported

  • record ATContextClass: glib type struct are ignored

  • record AccessibleInterface: glib type struct are ignored

  • record ActionableInterface: glib type struct are ignored

  • record ActivateActionClass: glib type struct are ignored

  • record AdjustmentClass: glib type struct are ignored

  • record AlternativeTriggerClass: glib type struct are ignored

  • record AnyFilterClass: glib type struct are ignored

  • record ApplicationClass: glib type struct are ignored

  • record ApplicationWindowClass: glib type struct are ignored

  • record BinLayoutClass: glib type struct are ignored

  • record BookmarkListClass: glib type struct are ignored

  • record BoolFilterClass: glib type struct are ignored

  • record BoxClass: glib type struct are ignored

  • record BoxLayoutClass: glib type struct are ignored

  • record BuildableIface: glib type struct are ignored

  • record BuildableParseContext: Disguised records are ignored

  • record BuilderCScopeClass: glib type struct are ignored

  • record BuilderClass: glib type struct are ignored

  • record BuilderListItemFactoryClass: glib type struct are ignored

  • record BuilderScopeInterface: glib type struct are ignored

  • record ButtonClass: glib type struct are ignored

  • record ButtonPrivate: Disguised records are ignored

  • record CallbackActionClass: glib type struct are ignored

  • record CellAreaClass: glib type struct are ignored

  • record CellAreaContextClass: glib type struct are ignored

  • record CellAreaContextPrivate: Disguised records are ignored

  • record CellEditableIface: glib type struct are ignored

  • record CellLayoutIface: glib type struct are ignored

  • record CellRendererClass: glib type struct are ignored

  • record CellRendererClassPrivate: Disguised records are ignored

  • record CellRendererPrivate: Disguised records are ignored

  • record CellRendererTextClass: glib type struct are ignored

  • record CenterBoxClass: glib type struct are ignored

  • record CenterLayoutClass: glib type struct are ignored

  • record CheckButtonClass: glib type struct are ignored

  • record ColorChooserInterface: glib type struct are ignored

  • record ColumnViewClass: glib type struct are ignored

  • record ColumnViewColumnClass: glib type struct are ignored

  • record ComboBoxClass: glib type struct are ignored

  • record ConstraintClass: glib type struct are ignored

  • record ConstraintGuideClass: glib type struct are ignored

  • record ConstraintLayoutChildClass: glib type struct are ignored

  • record ConstraintLayoutClass: glib type struct are ignored

  • record ConstraintTargetInterface: glib type struct are ignored

  • record CssProviderClass: glib type struct are ignored

  • record CssProviderPrivate: Disguised records are ignored

  • record CssStyleChange: Disguised records are ignored

  • record CustomFilterClass: glib type struct are ignored

  • record CustomLayoutClass: glib type struct are ignored

  • record CustomSorterClass: glib type struct are ignored

  • record DialogClass: glib type struct are ignored

  • record DirectoryListClass: glib type struct are ignored

  • record DragIconClass: glib type struct are ignored

  • record DragSourceClass: glib type struct are ignored

  • record DrawingAreaClass: glib type struct are ignored

  • record DropControllerMotionClass: glib type struct are ignored

  • record DropDownClass: glib type struct are ignored

  • record DropTargetAsyncClass: glib type struct are ignored

  • record DropTargetClass: glib type struct are ignored

  • record EditableInterface: glib type struct are ignored

  • record EditableLabelClass: glib type struct are ignored

  • record EmojiChooserClass: glib type struct are ignored

  • record EntryBufferClass: glib type struct are ignored

  • record EntryClass: glib type struct are ignored

  • record EventControllerClass: glib type struct are ignored

  • record EventControllerFocusClass: glib type struct are ignored

  • record EventControllerKeyClass: glib type struct are ignored

  • record EventControllerLegacyClass: glib type struct are ignored

  • record EventControllerMotionClass: glib type struct are ignored

  • record EventControllerScrollClass: glib type struct are ignored

  • record EveryFilterClass: glib type struct are ignored

  • record FileChooserNativeClass: glib type struct are ignored

  • record FilterClass: glib type struct are ignored

  • record FilterListModelClass: glib type struct are ignored

  • record FixedClass: glib type struct are ignored

  • record FixedLayoutChildClass: glib type struct are ignored

  • record FixedLayoutClass: glib type struct are ignored

  • record FlattenListModelClass: glib type struct are ignored

  • record FlowBoxChildClass: glib type struct are ignored

  • record FontChooserIface: glib type struct are ignored

  • record FrameClass: glib type struct are ignored

  • record GLAreaClass: glib type struct are ignored

  • record GestureClass: glib type struct are ignored

  • record GestureClickClass: glib type struct are ignored

  • record GestureDragClass: glib type struct are ignored

  • record GestureLongPressClass: glib type struct are ignored

  • record GesturePanClass: glib type struct are ignored

  • record GestureRotateClass: glib type struct are ignored

  • record GestureSingleClass: glib type struct are ignored

  • record GestureStylusClass: glib type struct are ignored

  • record GestureSwipeClass: glib type struct are ignored

  • record GestureZoomClass: glib type struct are ignored

  • record GridClass: glib type struct are ignored

  • record GridLayoutChildClass: glib type struct are ignored

  • record GridLayoutClass: glib type struct are ignored

  • record GridViewClass: glib type struct are ignored

  • record IMContextClass: glib type struct are ignored

  • record IMContextSimpleClass: glib type struct are ignored

  • record IMContextSimplePrivate: Disguised records are ignored

  • record IMMulticontextClass: glib type struct are ignored

  • record IMMulticontextPrivate: Disguised records are ignored

  • record KeyvalTriggerClass: glib type struct are ignored

  • record LayoutChildClass: glib type struct are ignored

  • record LayoutManagerClass: glib type struct are ignored

  • record ListBaseClass: glib type struct are ignored

  • record ListBoxRowClass: glib type struct are ignored

  • record ListItemClass: glib type struct are ignored

  • record ListItemFactoryClass: glib type struct are ignored

  • record ListStoreClass: glib type struct are ignored

  • record ListStorePrivate: Disguised records are ignored

  • record ListViewClass: glib type struct are ignored

  • record MapListModelClass: glib type struct are ignored

  • record MediaControlsClass: glib type struct are ignored

  • record MediaFileClass: glib type struct are ignored

  • record MediaStreamClass: glib type struct are ignored

  • record MessageDialogClass: glib type struct are ignored

  • record MnemonicActionClass: glib type struct are ignored

  • record MnemonicTriggerClass: glib type struct are ignored

  • record MountOperationClass: glib type struct are ignored

  • record MountOperationPrivate: Disguised records are ignored

  • record MultiFilterClass: glib type struct are ignored

  • record MultiSelectionClass: glib type struct are ignored

  • record MultiSorterClass: glib type struct are ignored

  • record NamedActionClass: glib type struct are ignored

  • record NativeDialogClass: glib type struct are ignored

  • record NativeInterface: glib type struct are ignored

  • record NeverTriggerClass: glib type struct are ignored

  • record NoSelectionClass: glib type struct are ignored

  • record NothingActionClass: glib type struct are ignored

  • record NumericSorterClass: glib type struct are ignored

  • record OrientableIface: glib type struct are ignored

  • record OverlayLayoutChildClass: glib type struct are ignored

  • record OverlayLayoutClass: glib type struct are ignored

  • record PadControllerClass: glib type struct are ignored

  • record PasswordEntryBufferClass: glib type struct are ignored

  • record PasswordEntryClass: glib type struct are ignored

  • record PictureClass: glib type struct are ignored

  • record PopoverClass: glib type struct are ignored

  • record PrintBackend: Disguised records are ignored

  • record PrintOperationClass: glib type struct are ignored

  • record PrintOperationPreviewIface: glib type struct are ignored

  • record PrintOperationPrivate: Disguised records are ignored

  • record RangeClass: glib type struct are ignored

  • record RecentManagerClass: glib type struct are ignored

  • record RecentManagerPrivate: Disguised records are ignored

  • record RootInterface: glib type struct are ignored

  • record ScaleButtonClass: glib type struct are ignored

  • record ScaleClass: glib type struct are ignored

  • record ScrollableInterface: glib type struct are ignored

  • record SelectionFilterModelClass: glib type struct are ignored

  • record SelectionModelInterface: glib type struct are ignored

  • record ShortcutActionClass: glib type struct are ignored

  • record ShortcutClass: glib type struct are ignored

  • record ShortcutControllerClass: glib type struct are ignored

  • record ShortcutLabelClass: glib type struct are ignored

  • record ShortcutManagerInterface: glib type struct are ignored

  • record ShortcutTriggerClass: glib type struct are ignored

  • record ShortcutsGroupClass: glib type struct are ignored

  • record ShortcutsSectionClass: glib type struct are ignored

  • record ShortcutsShortcutClass: glib type struct are ignored

  • record SignalActionClass: glib type struct are ignored

  • record SignalListItemFactoryClass: glib type struct are ignored

  • record SingleSelectionClass: glib type struct are ignored

  • record SliceListModelClass: glib type struct are ignored

  • record SnapshotClass: glib type struct are ignored

  • record SortListModelClass: glib type struct are ignored

  • record SorterClass: glib type struct are ignored

  • record StringFilterClass: glib type struct are ignored

  • record StringListClass: glib type struct are ignored

  • record StringObjectClass: glib type struct are ignored

  • record StringSorterClass: glib type struct are ignored

  • record StyleContextClass: glib type struct are ignored

  • record SymbolicPaintableInterface: glib type struct are ignored

  • record TextBufferClass: glib type struct are ignored

  • record TextBufferPrivate: Disguised records are ignored

  • record TextChildAnchorClass: glib type struct are ignored

  • record TextMarkClass: glib type struct are ignored

  • record TextTagClass: glib type struct are ignored

  • record TextTagPrivate: Disguised records are ignored

  • record TextViewClass: glib type struct are ignored

  • record TextViewPrivate: Disguised records are ignored

  • record ToggleButtonClass: glib type struct are ignored

  • record TreeDragDestIface: glib type struct are ignored

  • record TreeDragSourceIface: glib type struct are ignored

  • record TreeExpanderClass: glib type struct are ignored

  • record TreeListModelClass: glib type struct are ignored

  • record TreeListRowClass: glib type struct are ignored

  • record TreeListRowSorterClass: glib type struct are ignored

  • record TreeModelFilterClass: glib type struct are ignored

  • record TreeModelFilterPrivate: Disguised records are ignored

  • record TreeModelIface: glib type struct are ignored

  • record TreeModelSortClass: glib type struct are ignored

  • record TreeModelSortPrivate: Disguised records are ignored

  • record TreeSortableIface: glib type struct are ignored

  • record TreeStoreClass: glib type struct are ignored

  • record TreeStorePrivate: Disguised records are ignored

  • record TreeViewClass: glib type struct are ignored

  • record VideoClass: glib type struct are ignored

  • record WidgetClass: glib type struct are ignored

  • record WidgetClassPrivate: Disguised records are ignored

  • record WidgetPaintableClass: glib type struct are ignored

  • record WidgetPrivate: Disguised records are ignored

  • record WindowClass: glib type struct are ignored

  • record WindowControlsClass: glib type struct are ignored

  • record WindowGroupClass: glib type struct are ignored

  • record WindowGroupPrivate: Disguised records are ignored

  • record WindowHandleClass: glib type struct are ignored

Properties

Link copied to clipboard

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

Link copied to clipboard
const val BINARY_AGE: Int = 609

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.

Link copied to clipboard
const val INPUT_ERROR: Int

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

Link copied to clipboard
const val INTERFACE_AGE: Int = 9

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.

Link copied to clipboard
const val INVALID_LIST_POSITION: <Error class: unknown class>

The value used to refer to a guaranteed invalid position in a GListModel.

Link copied to clipboard

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

Link copied to clipboard

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

Link copied to clipboard

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

Link copied to clipboard
const val MAJOR_VERSION: Int = 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.

Link copied to clipboard
const val MAX_COMPOSE_LEN: Int = 7
Link copied to clipboard
const val MICRO_VERSION: Int = 9

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.

Link copied to clipboard
const val MINOR_VERSION: Int = 6

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.

Link copied to clipboard

Name for the A3 paper size.

Link copied to clipboard

Name for the A4 paper size.

Link copied to clipboard

Name for the A5 paper size.

Link copied to clipboard

Name for the B5 paper size.

Link copied to clipboard

Name for the Executive paper size.

Link copied to clipboard

Name for the Legal paper size.

Link copied to clipboard

Name for the Letter paper size.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

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.

Link copied to clipboard
Link copied to clipboard

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

Link copied to clipboard

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

Link copied to clipboard

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.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
const val PRIORITY_RESIZE: Int = 110

Use this priority for functionality related to size allocation.

Link copied to clipboard

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

Link copied to clipboard

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

Link copied to clipboard

The priority used for style information provided via GtkSettings.

Link copied to clipboard

The priority used for style information provided by themes.

Link copied to clipboard

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

Link copied to clipboard

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

Link copied to clipboard

Uses the default sort function in a iface@Gtk.TreeSortable.

Link copied to clipboard

Disables sorting in a iface@Gtk.TreeSortable.

Functions

Link copied to clipboard
fun acceleratorGetDefaultModMask(): <Error class: unknown class>

Gets the modifier mask.

Link copied to clipboard
fun acceleratorGetLabel(acceleratorKey: <Error class: unknown class>, acceleratorMods: <Error class: unknown class>): String

Converts an accelerator keyval and modifier mask into a string which can be used to represent the accelerator to the user.

Link copied to clipboard
fun acceleratorGetLabelWithKeycode(display: <Error class: unknown class>? = null, acceleratorKey: <Error class: unknown class>, keycode: <Error class: unknown class>, acceleratorMods: <Error class: unknown class>): String

Converts an accelerator keyval and modifier mask into a string that can be displayed to the user.

Link copied to clipboard
fun acceleratorName(acceleratorKey: <Error class: unknown class>, acceleratorMods: <Error class: unknown class>): String

Converts an accelerator keyval and modifier mask into a string parseable by gtk_accelerator_parse().

Link copied to clipboard
fun acceleratorNameWithKeycode(display: <Error class: unknown class>? = null, acceleratorKey: <Error class: unknown class>, keycode: <Error class: unknown class>, acceleratorMods: <Error class: unknown class>): String

Converts an accelerator keyval and modifier mask into a string parseable by gtk_accelerator_parse_with_keycode().

Link copied to clipboard
fun acceleratorValid(keyval: <Error class: unknown class>, modifiers: <Error class: unknown class>): Boolean

Determines whether a given keyval and modifier mask constitute a valid keyboard accelerator.

Link copied to clipboard
fun accessiblePropertyInitValue(property: AccessibleProperty, value: <Error class: unknown class>)
Link copied to clipboard
fun accessibleRelationInitValue(relation: AccessibleRelation, value: <Error class: unknown class>)
Link copied to clipboard
fun accessibleStateInitValue(state: AccessibleState, value: <Error class: unknown class>)
Link copied to clipboard
fun builderErrorQuark(): <Error class: unknown class>
Link copied to clipboard
fun checkVersion(requiredMajor: <Error class: unknown class>, requiredMinor: <Error class: unknown class>, requiredMicro: <Error class: unknown class>): String?

Checks that the GTK library in use is compatible with the given version.

Link copied to clipboard
fun constraintVflParserErrorQuark(): <Error class: unknown class>
Link copied to clipboard
fun cssParserErrorQuark(): <Error class: unknown class>
Link copied to clipboard
fun cssParserWarningQuark(): <Error class: unknown class>
Link copied to clipboard

Prevents id@gtk_init and id@gtk_init_check from automatically calling setlocale (LC_ALL, "").

Link copied to clipboard
fun editableDelegateGetProperty(object: <Error class: unknown class>, propId: <Error class: unknown class>, value: <Error class: unknown class>, pspec: <Error class: unknown class>): Boolean

Gets a property of the GtkEditable delegate for @object.

Link copied to clipboard
fun editableDelegateSetProperty(object: <Error class: unknown class>, propId: <Error class: unknown class>, value: <Error class: unknown class>, pspec: <Error class: unknown class>): Boolean

Sets a property on the GtkEditable delegate for @object.

Link copied to clipboard

Calls a function for all GtkPrinters.

Link copied to clipboard
fun fileChooserErrorQuark(): <Error class: unknown class>

Registers an error quark for GtkFileChooser errors.

Link copied to clipboard
fun getBinaryAge(): <Error class: unknown class>

Returns the binary age as passed to libtool.

Link copied to clipboard

Returns the GTK debug flags that are currently active.

Link copied to clipboard
fun getDefaultLanguage(): <Error class: unknown class>

Returns the PangoLanguage for the default language currently in effect.

Link copied to clipboard
fun getInterfaceAge(): <Error class: unknown class>

Returns the interface age as passed to libtool.

Link copied to clipboard

Get the direction of the current locale. This is the expected reading direction for text and UI.

Link copied to clipboard
fun getMajorVersion(): <Error class: unknown class>

Returns the major version number of the GTK library.

Link copied to clipboard
fun getMicroVersion(): <Error class: unknown class>

Returns the micro version number of the GTK library.

Link copied to clipboard
fun getMinorVersion(): <Error class: unknown class>

Returns the minor version number of the GTK library.

Link copied to clipboard
fun iconThemeErrorQuark(): <Error class: unknown class>
Link copied to clipboard
fun init()

Call this function before using any other GTK functions in your GUI applications. It will initialize everything needed to operate the toolkit.

Link copied to clipboard

This function does the same work as gtk_init() with only a single change: It does not terminate the program if the windowing system can’t be initialized. Instead it returns false on failure.

Link copied to clipboard

Use this function to check if GTK has been initialized with gtk_init() or gtk_init_check().

Link copied to clipboard
fun nativeGetForSurface(surface: <Error class: unknown class>): Native?

Finds the GtkNative associated with the surface.

Link copied to clipboard
fun orderingFromCmpfunc(cmpfuncResult: Int): Ordering

Converts the result of a GCompareFunc like strcmp() to a GtkOrdering value.

Link copied to clipboard

Returns the name of the default paper size, which depends on the current locale.

Link copied to clipboard
fun paperSizeGetPaperSizes(includeCustom: Boolean): <Error class: unknown class>

Creates a list of known paper sizes.

Link copied to clipboard
fun paramSpecExpression(name: String, nick: String, blurb: String, flags: <Error class: unknown class>): <Error class: unknown class>

Creates a new GParamSpec instance for a property holding a GtkExpression.

Link copied to clipboard
fun printErrorQuark(): <Error class: unknown class>

Registers an error quark for GtkPrintOperation if necessary.

Link copied to clipboard
fun printRunPageSetupDialog(parent: Window? = null, pageSetup: PageSetup? = null, settings: PrintSettings): PageSetup

Runs a page setup dialog, letting the user modify the values from

Link copied to clipboard
fun printRunPageSetupDialogAsync(parent: Window? = null, pageSetup: PageSetup? = null, settings: PrintSettings, doneCb: PageSetupDoneFunc)

Runs a page setup dialog, letting the user modify the values from @page_setup.

Link copied to clipboard
fun recentManagerErrorQuark(): <Error class: unknown class>
Link copied to clipboard
fun resolveException(error: <Error class: unknown class>): <Error class: unknown class>
Link copied to clipboard

Sets the GTK debug flags.

Link copied to clipboard
fun showUri(parent: Window? = null, uri: String, timestamp: <Error class: unknown class>)

This function launches the default application for showing a given uri, or shows an error dialog if that fails.

Link copied to clipboard
fun showUriFull(parent: Window? = null, uri: String, timestamp: <Error class: unknown class>, cancellable: <Error class: unknown class>? = null, callback: <Error class: unknown class>)

This function launches the default application for showing a given uri.

Link copied to clipboard
fun showUriFullFinish(parent: Window, result: <Error class: unknown class>): <Error class: unknown class><Boolean>

Finishes the gtk_show_uri() call and returns the result of the operation.

Link copied to clipboard
fun testAccessibleAssertionMessageRole(domain: String, file: String, line: Int, func: String, expr: String, accessible: Accessible, expectedRole: AccessibleRole, actualRole: AccessibleRole)
Link copied to clipboard

Checks whether the GtkAccessible has @property set.

Link copied to clipboard

Checks whether the GtkAccessible has @relation set.

Link copied to clipboard

Checks whether the GtkAccessible:accessible-role of the accessible is @role.

Link copied to clipboard

Checks whether the GtkAccessible has @state set.

Link copied to clipboard

Force registration of all core GTK object types.

Link copied to clipboard

Enters the main loop and waits for @widget to be “drawn”.

Link copied to clipboard
fun treeCreateRowDragContent(treeModel: TreeModel, path: TreePath): <Error class: unknown class>

Creates a content provider for dragging @path from @tree_model.

Link copied to clipboard
fun treeRowReferenceDeleted(proxy: <Error class: unknown class>, path: TreePath)

Lets a set of row reference created by gtk_tree_row_reference_new_proxy() know that the model emitted the ::row-deleted signal.

Link copied to clipboard
fun treeRowReferenceInserted(proxy: <Error class: unknown class>, path: TreePath)

Lets a set of row reference created by gtk_tree_row_reference_new_proxy() know that the model emitted the ::row-inserted signal.

Link copied to clipboard
fun valueDupExpression(value: <Error class: unknown class>): Expression?

Retrieves the GtkExpression stored inside the given value, and acquires a reference to it.

Link copied to clipboard
fun valueGetExpression(value: <Error class: unknown class>): Expression?

Retrieves the GtkExpression stored inside the given value.

Link copied to clipboard
fun valueSetExpression(value: <Error class: unknown class>, expression: Expression)

Stores the given GtkExpression inside value.

Link copied to clipboard
fun valueTakeExpression(value: <Error class: unknown class>, expression: Expression? = null)

Stores the given GtkExpression inside value.