Type Aliases
The following type aliases are available globally.
-
CSS Provider reference
Declaration
Swift
public typealias CSSProviderRef = CssProvider
-
CSS Provider class
Declaration
Swift
public typealias CSSProvider = CssProvider
-
The rectangle representing the area allocated for a widget by its parent.
Declaration
Swift
public typealias Allocation = GtkAllocation
-
Type of callback used to calculate the next page in a
GtkAssistant
.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 [method
Gtk.Assistant.set_forward_page_func
].Declaration
Swift
public typealias AssistantPageFunc = GtkAssistantPageFunc
-
The type of the callback functions used for iterating over the cell renderers and their allocated areas inside a
GtkCellArea
, seegtk_cell_area_foreach_alloc()
.Declaration
Swift
public typealias CellAllocCallback = GtkCellAllocCallback
-
The type of the callback functions used for iterating over the cell renderers of a
GtkCellArea
, seegtk_cell_area_foreach()
.Declaration
Swift
public typealias CellCallback = GtkCellCallback
-
A function which should set the value of
cell_layout
’s cellrenderer(s)
as appropriate.Declaration
Swift
public typealias CellLayoutDataFunc = GtkCellLayoutDataFunc
-
A function to be used by
GtkCustomLayout
to allocate a widget.Declaration
Swift
public typealias CustomAllocateFunc = GtkCustomAllocateFunc
-
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.Declaration
Swift
public typealias CustomFilterFunc = GtkCustomFilterFunc
-
A function to be used by
GtkCustomLayout
to measure a widget.Declaration
Swift
public typealias CustomMeasureFunc = GtkCustomMeasureFunc
-
Queries a widget for its preferred size request mode.
Declaration
Swift
public typealias CustomRequestModeFunc = GtkCustomRequestModeFunc
-
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.
Declaration
Swift
public typealias DrawingAreaDrawFunc = GtkDrawingAreaDrawFunc
-
A function which decides whether the row indicated by
iter
matches a givenkey
, and should be displayed as a possible completion forkey
.Note that
key
is normalized and case-folded (seeg_utf8_normalize()
andg_utf8_casefold()
). If this is not appropriate, match functions have access to the unmodified key viagtk_editable_get_text (GTK_EDITABLE (gtk_entry_completion_get_entry ()))
.Declaration
Swift
public typealias EntryCompletionMatchFunc = GtkEntryCompletionMatchFunc
-
Callback called by
gtk_expression_watch()
when the expression value changes.Declaration
Swift
public typealias ExpressionNotify = GtkExpressionNotify
-
Called for flow boxes that are bound to a
GListModel
.This function is called for each item that gets added to the model.
Declaration
Swift
public typealias FlowBoxCreateWidgetFunc = GtkFlowBoxCreateWidgetFunc
-
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.
Declaration
Swift
public typealias FlowBoxFilterFunc = GtkFlowBoxFilterFunc
-
A function used by
gtk_flow_box_selected_foreach()
.It will be called on every selected child of the
box
.Declaration
Swift
public typealias FlowBoxForeachFunc = GtkFlowBoxForeachFunc
-
A function to compare two children to determine which should come first.
Declaration
Swift
public typealias FlowBoxSortFunc = GtkFlowBoxSortFunc
-
The type of function that is used for deciding what fonts get shown in a
GtkFontChooser
.See [method
Gtk.FontChooser.set_filter_func
].Declaration
Swift
public typealias FontFilterFunc = GtkFontFilterFunc
-
A function used by
gtk_icon_view_selected_foreach()
to map all selected rows.It will be called on every selected row in the view.
Declaration
Swift
public typealias IconViewForeachFunc = GtkIconViewForeachFunc
-
Called for list boxes that are bound to a
GListModel
withgtk_list_box_bind_model()
for each item that gets added to the model.Declaration
Swift
public typealias ListBoxCreateWidgetFunc = GtkListBoxCreateWidgetFunc
-
Will be called whenever the row changes or is added and lets you control if the row should be visible or not.
Declaration
Swift
public typealias ListBoxFilterFunc = GtkListBoxFilterFunc
-
A function used by
gtk_list_box_selected_foreach()
.It will be called on every selected child of the
box
.Declaration
Swift
public typealias ListBoxForeachFunc = GtkListBoxForeachFunc
-
Compare two rows to determine which should be first.
Declaration
Swift
public typealias ListBoxSortFunc = GtkListBoxSortFunc
-
Whenever
row
changes or which row is beforerow
changes this is called, which lets you update the header onrow
.You may remove or set a new one via [method
Gtk.ListBoxRow.set_header
] or just change the state of the current header widget.Declaration
Swift
public typealias ListBoxUpdateHeaderFunc = GtkListBoxUpdateHeaderFunc
-
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.
Declaration
Swift
public typealias MapListModelMapFunc = GtkMapListModelMapFunc
-
User-provided callback function to create a popup for a
GtkMenuButton
on demand.This function is called when the popup of
menu_button
is shown, but none has been provided via [methodGtk.MenuButton.set_popover
] or [methodGtk.MenuButton.set_menu_model
].Declaration
Swift
public typealias MenuButtonCreatePopupFunc = GtkMenuButtonCreatePopupFunc
-
The type of function that is passed to
gtk_print_run_page_setup_dialog_async()
.This function will be called when the page setup dialog is dismissed, and also serves as destroy notify for
data
.Declaration
Swift
public typealias PageSetupDoneFunc = GtkPageSetupDoneFunc
-
The type of callback that is passed to
gtk_print_job_send()
.It is called when the print job has been completely sent.
Declaration
Swift
public typealias PrintJobCompleteFunc = GtkPrintJobCompleteFunc
-
Undocumented
Declaration
Swift
public typealias PrintSettingsFunc = GtkPrintSettingsFunc
-
The type of function passed to
gtk_enumerate_printers()
.Note that you need to ref
printer
, if you want to keep a reference to it after the function has returned.Declaration
Swift
public typealias PrinterFunc = GtkPrinterFunc
-
Undocumented
Declaration
Swift
public typealias ScaleFormatValueFunc = GtkScaleFormatValueFunc
-
Prototype for shortcuts based on user callbacks.
Declaration
Swift
public typealias ShortcutFunc = GtkShortcutFunc
-
The predicate function used by
gtk_text_iter_forward_find_char()
andgtk_text_iter_backward_find_char()
.Declaration
Swift
public typealias TextCharPredicate = GtkTextCharPredicate
-
A function used with
gtk_text_tag_table_foreach()
, to iterate over everyGtkTextTag
inside aGtkTextTagTable
.Declaration
Swift
public typealias TextTagTableForeach = GtkTextTagTableForeach
-
Callback type for adding a function to update animations. See
gtk_widget_add_tick_callback()
.Declaration
Swift
public typealias TickCallback = GtkTickCallback
-
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_set_cell_data_func()
Declaration
Swift
public typealias TreeCellDataFunc = GtkTreeCellDataFunc
-
A GtkTreeIterCompareFunc should return a negative integer, zero, or a positive integer if
a
sorts beforeb
,a
sorts withb
, ora
sorts afterb
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 returnsprice_of(@a)` - `price_of(@b)
.Declaration
Swift
public typealias TreeIterCompareFunc = GtkTreeIterCompareFunc
-
Prototype of the function called to create new child models when
gtk_tree_list_row_set_expanded()
is called.This function can return
nil
to indicate thatitem
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.Declaration
Swift
public typealias TreeListModelCreateModelFunc = GtkTreeListModelCreateModelFunc
-
A function which calculates display values from raw values in the model. It must fill
value
with the display value for the columncolumn
in the row indicated byiter
.Since this function is called for each data access, it’s not a particularly efficient operation.
Declaration
Swift
public typealias TreeModelFilterModifyFunc = GtkTreeModelFilterModifyFunc
-
A function which decides whether the row indicated by
iter
is visible.Declaration
Swift
public typealias TreeModelFilterVisibleFunc = GtkTreeModelFilterVisibleFunc
-
Type of the callback passed to
gtk_tree_model_foreach()
to iterate over the rows in a tree model.Declaration
Swift
public typealias TreeModelForeachFunc = GtkTreeModelForeachFunc
-
A function used by
gtk_tree_selection_selected_foreach()
to map all selected rows. It will be called on every selected row in the view.Declaration
Swift
public typealias TreeSelectionForeachFunc = GtkTreeSelectionForeachFunc
-
A function used by
gtk_tree_selection_set_select_function()
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 toselection
that it is okay to change the selection.Declaration
Swift
public typealias TreeSelectionFunc = GtkTreeSelectionFunc
-
Function type for determining whether
column
can be dropped in a particular spot (as determined byprev_column
andnext_column
). In left to right locales,prev_column
is on the left of the potential drop spot, andnext_column
is on the right. In right to left mode, this is reversed. This function should returntrue
if the spot is a valid drop spot. Please note that returningtrue
does not actually indicate that the column drop was made, but is meant only to indicate a possible drop spot to the user.Declaration
Swift
public typealias TreeViewColumnDropFunc = GtkTreeViewColumnDropFunc
-
Function used for
gtk_tree_view_map_expanded_rows()
.Declaration
Swift
public typealias TreeViewMappingFunc = GtkTreeViewMappingFunc
-
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 theGtkTreeViewRowSeparatorFunc
returns.Declaration
Swift
public typealias TreeViewRowSeparatorFunc = GtkTreeViewRowSeparatorFunc
-
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 tostrcmp()
returning 0 for equal strings.Declaration
Swift
public typealias TreeViewSearchEqualFunc = GtkTreeViewSearchEqualFunc
-
The type of the callback functions used for activating actions installed with
gtk_widget_class_install_action()
.The
parameter
must match theparameter_type
of the action.Declaration
Swift
public typealias WidgetActionActivateFunc = GtkWidgetActionActivateFunc
-
The possible values for the
GTK_ACCESSIBLE_PROPERTY_AUTOCOMPLETE
accessible property.Declaration
Swift
public typealias AccessibleAutocomplete = GtkAccessibleAutocomplete
-
The possible values for the
GTK_ACCESSIBLE_STATE_INVALID
accessible state.Note that the
GTK_ACCESSIBLE_INVALID_FALSE
andGTK_ACCESSIBLE_INVALID_TRUE
have the same values asfalse
andtrue
.Declaration
Swift
public typealias AccessibleInvalidState = GtkAccessibleInvalidState
-
The possible accessible properties of a
GtkAccessible
.Declaration
Swift
public typealias AccessibleProperty = GtkAccessibleProperty
-
The possible accessible relations of a
GtkAccessible
.Accessible relations can be references to other widgets, integers or strings.
Declaration
Swift
public typealias AccessibleRelation = GtkAccessibleRelation
-
The accessible role for a
GtkAccessible
implementation.Abstract roles are only used as part of the ontology; application developers must not use abstract roles in their code.
Declaration
Swift
public typealias AccessibleRole = GtkAccessibleRole
-
The possible values for the
GTK_ACCESSIBLE_PROPERTY_SORT
accessible property.Declaration
Swift
public typealias AccessibleSort = GtkAccessibleSort
-
The possible accessible states of a
GtkAccessible
.Declaration
Swift
public typealias AccessibleState = GtkAccessibleState
-
The possible values for the
GTK_ACCESSIBLE_STATE_PRESSED
accessible state.Note that the
GTK_ACCESSIBLE_TRISTATE_FALSE
andGTK_ACCESSIBLE_TRISTATE_TRUE
have the same values asfalse
andtrue
.Declaration
Swift
public typealias AccessibleTristate = GtkAccessibleTristate
-
Controls how a widget deals with extra space in a single dimension.
Alignment only matters if the widget receives a “too large” allocation, for example if you packed the widget with the [property
Gtk.Widget:hexpand
] property inside aGtkBox
, then the widget might get extra space. If you have for example a 16x16 icon inside a 32x32 space, the icon could be scaled and stretched, it could be centered, or it could be positioned to one side of the space.Note that in horizontal context
GTK_ALIGN_START
andGTK_ALIGN_END
are interpreted relative to text direction.GTK_ALIGN_BASELINE
support is optional for containers and widgets, and it is only supported for vertical alignment. When it’s not supported by a child or a container it is treated asGTK_ALIGN_FILL
.Declaration
Swift
public typealias Align = GtkAlign
-
Used to indicate the direction in which an arrow should point.
Declaration
Swift
public typealias ArrowType = GtkArrowType
-
Determines the page role inside a
GtkAssistant
.The role is used to handle buttons sensitivity and visibility.
Note that an assistant needs to end its page flow with a page of type
GTK_ASSISTANT_PAGE_CONFIRM
,GTK_ASSISTANT_PAGE_SUMMARY
orGTK_ASSISTANT_PAGE_PROGRESS
to be correct.The Cancel button will only be shown if the page isn’t “committed”. See
gtk_assistant_commit()
for details.Declaration
Swift
public typealias AssistantPageType = GtkAssistantPageType
-
Baseline position in a row of widgets.
Whenever a container has some form of natural row it may align children in that row along a common typographical baseline. If the amount of vertical space in the row is taller than the total requested height of the baseline-aligned children then it can use a
GtkBaselinePosition
to select where to put the baseline inside the extra available space.Declaration
Swift
public typealias BaselinePosition = GtkBaselinePosition
-
Describes how the border of a UI element should be rendered.
Declaration
Swift
public typealias BorderStyle = GtkBorderStyle
-
Error codes that identify various errors that can occur while using
GtkBuilder
.Declaration
Swift
public typealias BuilderError = GtkBuilderError
-
Prebuilt sets of buttons for
GtkDialog
.If none of these choices are appropriate, simply use
GTK_BUTTONS_NONE
and call [methodGtk.Dialog.add_buttons
].> Please note that
GTK_BUTTONS_OK
,GTK_BUTTONS_YES_NO
> andGTK_BUTTONS_OK_CANCEL
are discouraged by the > GNOME Human Interface Guidelines.Declaration
Swift
public typealias ButtonsType = GtkButtonsType
-
Determines if the edited accelerators are GTK accelerators. If they are, consumed modifiers are suppressed, only accelerators accepted by GTK are allowed, and the accelerators are rendered in the same way as they are in menus.
Declaration
Swift
public typealias CellRendererAccelMode = GtkCellRendererAccelMode
-
Identifies how the user can interact with a particular cell.
Declaration
Swift
public typealias CellRendererMode = GtkCellRendererMode
-
The widget attributes that can be used when creating a
GtkConstraint
.Declaration
Swift
public typealias ConstraintAttribute = GtkConstraintAttribute
-
The relation between two terms of a constraint.
Declaration
Swift
public typealias ConstraintRelation = GtkConstraintRelation
-
The strength of a constraint, expressed as a symbolic constant.
The strength of a
GtkConstraint
can be expressed with any positive integer; the values of this enumeration can be used for readability.Declaration
Swift
public typealias ConstraintStrength = GtkConstraintStrength
-
Domain for VFL parsing errors.
Declaration
Swift
public typealias ConstraintVflParserError = GtkConstraintVflParserError
-
Specifies which corner a child widget should be placed in when packed into a
GtkScrolledWindow.
This is effectively the opposite of where the scroll bars are placed.
Declaration
Swift
public typealias CornerType = GtkCornerType
-
Errors that can occur while parsing CSS.
These errors are unexpected and will cause parts of the given CSS to be ignored.
Declaration
Swift
public typealias CssParserError = GtkCssParserError
-
Warnings that can occur while parsing CSS.
Unlike
GtkCssParserError
s, warnings do not cause the parser to skip any input, but they indicate issues that should be fixed.Declaration
Swift
public typealias CssParserWarning = GtkCssParserWarning
-
Passed to various keybinding signals for deleting text.
Declaration
Swift
public typealias DeleteType = GtkDeleteType
-
Focus movement types.
Declaration
Swift
public typealias DirectionType = GtkDirectionType
-
Undocumented
Declaration
Swift
public typealias EditableProperties = GtkEditableProperties
-
Specifies the side of the entry at which an icon is placed.
Declaration
Swift
public typealias EntryIconPosition = GtkEntryIconPosition
-
Describes the state of a
GdkEventSequence
in aGtkGesture
.Declaration
Swift
public typealias EventSequenceState = GtkEventSequenceState
-
Describes whether a
GtkFileChooser
is being used to open existing files or to save to a possibly new file.Declaration
Swift
public typealias FileChooserAction = GtkFileChooserAction
-
These identify the various errors that can occur while calling
GtkFileChooser
functions.Declaration
Swift
public typealias FileChooserError = GtkFileChooserError
-
Describes changes in a filter in more detail and allows objects using the filter to optimize refiltering items.
If you are writing an implementation and are not sure which value to pass,
GTK_FILTER_CHANGE_DIFFERENT
is always a correct choice.Declaration
Swift
public typealias FilterChange = GtkFilterChange
-
Describes the known strictness of a filter.
Note that for filters where the strictness is not known,
GTK_FILTER_MATCH_SOME
is always an acceptable value, even if a filter does match all or no items.Declaration
Swift
public typealias FilterMatch = GtkFilterMatch
-
Built-in icon sizes.
Icon sizes default to being inherited. Where they cannot be inherited, text size is the default.
All widgets which use
GtkIconSize
set the normal-icons or large-icons style classes correspondingly, and let themes determine the actual size to be used with the-gtk-icon-size
CSS property.Declaration
Swift
public typealias IconSize = GtkIconSize
-
Error codes for
GtkIconTheme
operations.Declaration
Swift
public typealias IconThemeError = GtkIconThemeError
-
An enum for determining where a dropped item goes.
Declaration
Swift
public typealias IconViewDropPosition = GtkIconViewDropPosition
-
Describes the image data representation used by a [class
Gtk.Image
].If you want to get the image from the widget, you can only get the currently-stored representation; for instance, if the
gtk_image_get_storage_type()
returnsGTK_IMAGE_PAINTABLE
, then you can callgtk_image_get_paintable()
.For empty images, you can request any storage type (call any of the “get” functions), but they will all return
nil
values.Declaration
Swift
public typealias ImageType = GtkImageType
-
Describes primary purpose of the input widget.
This information is useful for on-screen keyboards and similar input methods to decide which keys should be presented to the user.
Note that the purpose is not meant to impose a totally strict rule about allowed characters, and does not replace input validation. It is fine for an on-screen keyboard to let the user override the character set restriction that is expressed by the purpose. The application is expected to validate the entry contents, even if it specified a purpose.
The difference between
GTK_INPUT_PURPOSE_DIGITS
andGTK_INPUT_PURPOSE_NUMBER
is that the former accepts only digits while the latter also some punctuation (like commas or points, plus, minus) and “e” or “E” as in 3.14E+000.This enumeration may be extended in the future; input methods should interpret unknown values as “free form”.
Declaration
Swift
public typealias InputPurpose = GtkInputPurpose
-
Used for justifying the text inside a
GtkLabel
widget.Declaration
Swift
public typealias Justification = GtkJustification
-
Describes how
GtkLevelBar
contents should be rendered.Note that this enumeration could be extended with additional modes in the future.
Declaration
Swift
public typealias LevelBarMode = GtkLevelBarMode
-
The type of license for an application.
This enumeration can be expanded at later date.
Declaration
Swift
public typealias License = GtkLicense
-
The type of message being displayed in a
GtkMessageDialog
.Declaration
Swift
public typealias MessageType = GtkMessageType
-
Passed as argument to various keybinding signals for moving the cursor position.
Declaration
Swift
public typealias MovementStep = GtkMovementStep
-
The parameter used in the action signals of
GtkNotebook
.Declaration
Swift
public typealias NotebookTab = GtkNotebookTab
-
Used to determine the layout of pages on a sheet when printing multiple pages per sheet.
Declaration
Swift
public typealias NumberUpLayout = GtkNumberUpLayout
-
Describes the way two values can be compared.
These values can be used with a
GCompareFunc
. However, aGCompareFunc
is allowed to return any integer values. For converting such a value to aGtkOrdering
value, use [funcGtk.Ordering.from_cmpfunc
].Declaration
Swift
public typealias Ordering = GtkOrdering
-
Represents the orientation of widgets and other objects.
Typical examples are
GtkBox or
GtkGesturePan`.Declaration
Swift
public typealias Orientation = GtkOrientation
-
Defines how content overflowing a given area should be handled.
This is used in [method
Gtk.Widget.set_overflow
]. The [propertyGtk.Widget:overflow
] property is modeled after the CSS overflow property, but implements it only partially.Declaration
Swift
public typealias Overflow = GtkOverflow
-
Represents the packing location of a children in its parent.
See
GtkWindowControls
for example.Declaration
Swift
public typealias PackType = GtkPackType
-
The type of a pad action.
Declaration
Swift
public typealias PadActionType = GtkPadActionType
-
See also
gtk_print_settings_set_orientation()
.Declaration
Swift
public typealias PageOrientation = GtkPageOrientation
-
See also
gtk_print_job_set_page_set()
.Declaration
Swift
public typealias PageSet = GtkPageSet
-
Describes the panning direction of a
GtkGesturePan
Declaration
Swift
public typealias PanDirection = GtkPanDirection
-
Determines how the size should be computed to achieve the one of the visibility mode for the scrollbars.
Declaration
Swift
public typealias PolicyType = GtkPolicyType
-
Describes which edge of a widget a certain feature is positioned at.
For examples, see the tabs of a
GtkNotebook
, or the label of aGtkScale
.Declaration
Swift
public typealias PositionType = GtkPositionType
-
See also
gtk_print_settings_set_duplex()
.Declaration
Swift
public typealias PrintDuplex = GtkPrintDuplex
-
Error codes that identify various errors that can occur while using the GTK printing support.
Declaration
Swift
public typealias PrintError = GtkPrintError
-
Determines what action the print operation should perform.
A parameter of this typs is passed to [method
Gtk.PrintOperation.run
].Declaration
Swift
public typealias PrintOperationAction = GtkPrintOperationAction
-
The result of a print operation.
A value of this type is returned by [method
Gtk.PrintOperation.run
].Declaration
Swift
public typealias PrintOperationResult = GtkPrintOperationResult
-
See also
gtk_print_job_set_pages()
Declaration
Swift
public typealias PrintPages = GtkPrintPages
-
See also
gtk_print_settings_set_quality()
.Declaration
Swift
public typealias PrintQuality = GtkPrintQuality
-
The status gives a rough indication of the completion of a running print operation.
Declaration
Swift
public typealias PrintStatus = GtkPrintStatus
-
Describes limits of a
GtkEventController
for handling events targeting other widgets.Declaration
Swift
public typealias PropagationLimit = GtkPropagationLimit
-
Describes the stage at which events are fed into a
GtkEventController
.Declaration
Swift
public typealias PropagationPhase = GtkPropagationPhase
-
Error codes for
GtkRecentManager
operationsDeclaration
Swift
public typealias RecentManagerError = GtkRecentManagerError
-
Predefined values for use as response ids in
gtk_dialog_add_button()
.All predefined values are negative; GTK leaves values of 0 or greater for application-defined response ids.
Declaration
Swift
public typealias ResponseType = GtkResponseType
-
These enumeration values describe the possible transitions when the child of a
GtkRevealer
widget is shown or hidden.Declaration
Swift
public typealias RevealerTransitionType = GtkRevealerTransitionType
-
Passed as argument to various keybinding signals.
Declaration
Swift
public typealias ScrollStep = GtkScrollStep
-
Scrolling types.
Declaration
Swift
public typealias ScrollType = GtkScrollType
-
Defines the policy to be used in a scrollable widget when updating the scrolled window adjustments in a given orientation.
Declaration
Swift
public typealias ScrollablePolicy = GtkScrollablePolicy
-
Used to control what selections users are allowed to make.
Declaration
Swift
public typealias SelectionMode = GtkSelectionMode
-
Determines how GTK handles the sensitivity of various controls, such as combo box buttons.
Declaration
Swift
public typealias SensitivityType = GtkSensitivityType
-
Describes where
GtkShortcut
s added to aGtkShortcutController
get handled.Declaration
Swift
public typealias ShortcutScope = GtkShortcutScope
-
GtkShortcutType specifies the kind of shortcut that is being described.
More values may be added to this enumeration over time.
Declaration
Swift
public typealias ShortcutType = GtkShortcutType
-
The mode of the size group determines the directions in which the size group affects the requested sizes of its component widgets.
Declaration
Swift
public typealias SizeGroupMode = GtkSizeGroupMode
-
Specifies a preference for height-for-width or width-for-height geometry management.
Declaration
Swift
public typealias SizeRequestMode = GtkSizeRequestMode
-
Determines the direction of a sort.
Declaration
Swift
public typealias SortType = GtkSortType
-
Describes changes in a sorter in more detail and allows users to optimize resorting.
Declaration
Swift
public typealias SorterChange = GtkSorterChange
-
Describes the type of order that a
GtkSorter
may produce.Declaration
Swift
public typealias SorterOrder = GtkSorterOrder
-
Determines whether the spin button displays values outside the adjustment bounds.
See [method
Gtk.SpinButton.set_update_policy
].Declaration
Swift
public typealias SpinButtonUpdatePolicy = GtkSpinButtonUpdatePolicy
-
The values of the GtkSpinType enumeration are used to specify the change to make in
gtk_spin_button_spin()
.Declaration
Swift
public typealias SpinType = GtkSpinType
-
Possible transitions between pages in a
GtkStack
widget.New values may be added to this enumeration over time.
Declaration
Swift
public typealias StackTransitionType = GtkStackTransitionType
-
Specifies how search strings are matched inside text.
Declaration
Swift
public typealias StringFilterMatchMode = GtkStringFilterMatchMode
-
Values that can be passed to the [vfunc
Gtk.Widget.system_setting_changed
] vfunc.The values indicate which system setting has changed. Widgets may need to drop caches, or react otherwise.
Most of the values correspond to
GtkSettings
properties.More values may be added over time.
Declaration
Swift
public typealias SystemSetting = GtkSystemSetting
-
Reading directions for text.
Declaration
Swift
public typealias TextDirection = GtkTextDirection
-
Granularity types that extend the text selection. Use the
GtkTextView
extend-selection`` signal to customize the selection.Declaration
Swift
public typealias TextExtendSelection = GtkTextExtendSelection
-
Used to reference the layers of
GtkTextView
for the purpose of customized drawing with thesnapshot_layer
vfunc.Declaration
Swift
public typealias TextViewLayer = GtkTextViewLayer
-
Used to reference the parts of
GtkTextView
.Declaration
Swift
public typealias TextWindowType = GtkTextWindowType
-
The sizing method the column uses to determine its width. Please note that
GTK_TREE_VIEW_COLUMN_AUTOSIZE
are inefficient for large views, and can make columns appear choppy.Declaration
Swift
public typealias TreeViewColumnSizing = GtkTreeViewColumnSizing
-
An enum for determining where a dropped row goes.
Declaration
Swift
public typealias TreeViewDropPosition = GtkTreeViewDropPosition
-
Used to indicate which grid lines to draw in a tree view.
Declaration
Swift
public typealias TreeViewGridLines = GtkTreeViewGridLines
-
See also
gtk_print_settings_set_paper_width()
.Declaration
Swift
public typealias Unit = GtkUnit
-
Describes a type of line wrapping.
Declaration
Swift
public typealias WrapMode = GtkWrapMode
-
Undocumented
Declaration
Swift
public typealias GtkArrowAccessiblePrivate = _GtkArrowAccessiblePrivate
-
Undocumented
Declaration
Swift
public typealias GtkBooleanCellAccessiblePrivate = _GtkBooleanCellAccessiblePrivate
-
Undocumented
Declaration
Swift
public typealias GtkButtonAccessiblePrivate = _GtkButtonAccessiblePrivate
-
Undocumented
Declaration
Swift
public typealias GtkCellAccessibleParent = _GtkCellAccessibleParent
-
Undocumented
Declaration
Swift
public typealias GtkCellAccessiblePrivate = _GtkCellAccessiblePrivate
-
Undocumented
Declaration
Swift
public typealias GtkCheckMenuItemAccessiblePrivate = _GtkCheckMenuItemAccessiblePrivate
-
Undocumented
Declaration
Swift
public typealias GtkComboBoxAccessiblePrivate = _GtkComboBoxAccessiblePrivate
-
Undocumented
Declaration
Swift
public typealias GtkContainerAccessiblePrivate = _GtkContainerAccessiblePrivate
-
Undocumented
Declaration
Swift
public typealias GtkContainerCellAccessiblePrivate = _GtkContainerCellAccessiblePrivate
-
Undocumented
Declaration
Swift
public typealias GtkEntryAccessiblePrivate = _GtkEntryAccessiblePrivate
-
Undocumented
Declaration
Swift
public typealias GtkEntryIconAccessible = _GtkEntryIconAccessible
-
Undocumented
Declaration
Swift
public typealias GtkExpanderAccessiblePrivate = _GtkExpanderAccessiblePrivate
-
Undocumented
Declaration
Swift
public typealias GtkFlowBoxAccessiblePrivate = _GtkFlowBoxAccessiblePrivate
-
Undocumented
Declaration
Swift
public typealias GtkFrameAccessiblePrivate = _GtkFrameAccessiblePrivate
-
Undocumented
Declaration
Swift
public typealias GtkIconViewAccessiblePrivate = _GtkIconViewAccessiblePrivate
-
Undocumented
Declaration
Swift
public typealias GtkImageAccessiblePrivate = _GtkImageAccessiblePrivate
-
Undocumented
Declaration
Swift
public typealias GtkImageCellAccessiblePrivate = _GtkImageCellAccessiblePrivate
-
Undocumented
Declaration
Swift
public typealias GtkLabelAccessiblePrivate = _GtkLabelAccessiblePrivate
-
Undocumented
Declaration
Swift
public typealias GtkLevelBarAccessiblePrivate = _GtkLevelBarAccessiblePrivate
-
Undocumented
Declaration
Swift
public typealias GtkLinkButtonAccessiblePrivate = _GtkLinkButtonAccessiblePrivate
-
Undocumented
Declaration
Swift
public typealias GtkListBoxAccessiblePrivate = _GtkListBoxAccessiblePrivate
-
Undocumented
Declaration
Swift
public typealias GtkLockButtonAccessiblePrivate = _GtkLockButtonAccessiblePrivate
-
Undocumented
Declaration
Swift
public typealias GtkMenuAccessiblePrivate = _GtkMenuAccessiblePrivate
-
Undocumented
Declaration
Swift
public typealias GtkMenuButtonAccessiblePrivate = _GtkMenuButtonAccessiblePrivate
-
Undocumented
Declaration
Swift
public typealias GtkMenuItemAccessiblePrivate = _GtkMenuItemAccessiblePrivate
-
Undocumented
Declaration
Swift
public typealias GtkMenuShellAccessiblePrivate = _GtkMenuShellAccessiblePrivate
-
Undocumented
Declaration
Swift
public typealias GtkNotebookAccessiblePrivate = _GtkNotebookAccessiblePrivate
-
Undocumented
Declaration
Swift
public typealias GtkPanedAccessiblePrivate = _GtkPanedAccessiblePrivate
-
Undocumented
Declaration
Swift
public typealias GtkProgressBarAccessiblePrivate = _GtkProgressBarAccessiblePrivate
-
Undocumented
Declaration
Swift
public typealias GtkRadioButtonAccessiblePrivate = _GtkRadioButtonAccessiblePrivate
-
Undocumented
Declaration
Swift
public typealias GtkRadioMenuItemAccessiblePrivate = _GtkRadioMenuItemAccessiblePrivate
-
Undocumented
Declaration
Swift
public typealias GtkRangeAccessiblePrivate = _GtkRangeAccessiblePrivate
-
Undocumented
Declaration
Swift
public typealias GtkRendererCellAccessiblePrivate = _GtkRendererCellAccessiblePrivate
-
Undocumented
Declaration
Swift
public typealias GtkScaleAccessiblePrivate = _GtkScaleAccessiblePrivate
-
Undocumented
Declaration
Swift
public typealias GtkScaleButtonAccessiblePrivate = _GtkScaleButtonAccessiblePrivate
-
Undocumented
Declaration
Swift
public typealias GtkScrolledWindowAccessiblePrivate = _GtkScrolledWindowAccessiblePrivate
-
Undocumented
Declaration
Swift
public typealias GtkSpinButtonAccessiblePrivate = _GtkSpinButtonAccessiblePrivate
-
Undocumented
Declaration
Swift
public typealias GtkSpinnerAccessiblePrivate = _GtkSpinnerAccessiblePrivate
-
Undocumented
Declaration
Swift
public typealias GtkStatusbarAccessiblePrivate = _GtkStatusbarAccessiblePrivate
-
Undocumented
Declaration
Swift
public typealias GtkSwitchAccessiblePrivate = _GtkSwitchAccessiblePrivate
-
Undocumented
Declaration
Swift
public typealias GtkTextCellAccessiblePrivate = _GtkTextCellAccessiblePrivate
-
Undocumented
Declaration
Swift
public typealias GtkTextViewAccessiblePrivate = _GtkTextViewAccessiblePrivate
-
Undocumented
Declaration
Swift
public typealias GtkThemingEnginePrivate = _GtkThemingEnginePrivate
-
Undocumented
Declaration
Swift
public typealias GtkToggleButtonAccessiblePrivate = _GtkToggleButtonAccessiblePrivate
-
Undocumented
Declaration
Swift
public typealias GtkToplevelAccessiblePrivate = _GtkToplevelAccessiblePrivate
-
Undocumented
Declaration
Swift
public typealias GtkTreeViewAccessiblePrivate = _GtkTreeViewAccessiblePrivate
-
Undocumented
Declaration
Swift
public typealias GtkWidgetAccessiblePrivate = _GtkWidgetAccessiblePrivate
-
Undocumented
Declaration
Swift
public typealias GtkWindowAccessiblePrivate = _GtkWindowAccessiblePrivate
-
A closure taking a reference to the current application as an argument
Declaration
Swift
public typealias ApplicationSignalHandler = (ApplicationRef) -> Void
-
A closure taking a reference to the current box and cairo_t as an argument
Declaration
Swift
public typealias BoxSignalHandler = (BoxRef, Cairo.ContextRef) -> Bool
-
A closure taking a reference to the current drawing area, a cairo context, and width and height as arguments
Declaration
Swift
public typealias DrawFunc = (DrawingAreaRef, Cairo.ContextRef, Int, Int) -> Void
-
Tree View row activation signal handler
Declaration
Swift
public typealias TreeViewRowActivatedSignalHandler = (TreeViewRef, TreePathRef, TreeViewColumnRef) -> Void
-
Closure holder for a Tree View row activation signal handler
Declaration
Swift
public typealias TreeViewRowActivatedSignalHandlerClosureHolder = Closure3Holder<TreeViewRef, TreePathRef, TreeViewColumnRef, Void>
-
A closure taking a reference to the current widget and cairo_t as an argument
Declaration
Swift
public typealias WidgetSignalHandler = (WidgetRef, Cairo.ContextRef) -> Bool
-
A closure taking a reference to the current widget and
Gdk.EventKeyRef
as an argumentDeclaration
Swift
public typealias KeySignalHandler = (WidgetRef, EventRef) -> Void
-
A closure taking a reference to the current widget and
Gdk.EventButtonRef
as an argumentDeclaration
Swift
public typealias ButtonSignalHandler = (WidgetRef, EventRef) -> Void
-
A closure taking a reference to the current widget and
Gdk.EventMotionRef
as an argumentDeclaration
Swift
public typealias MotionSignalHandler = (WidgetRef, EventRef) -> Void