-
Cast constructor, converting any binary integer to a
SelectionMode
.Declaration
Swift
@inlinable init!<I>(_ raw: I) where I : BinaryInteger
Parameters
raw
The raw integer value to initialise the enum from
-
No selection is possible.
Declaration
Swift
static let none: GtkSelectionMode
-
Zero or one element may be selected.
Declaration
Swift
static let single: GtkSelectionMode
-
Exactly one element is selected. In some circumstances, such as initially or during a search operation, it’s possible for no element to be selected with
GTK_SELECTION_BROWSE
. What is really enforced is that the user can’t deselect a currently selected element except by selecting another element.Declaration
Swift
static let browse: GtkSelectionMode
-
Any number of elements may be selected. The Ctrl key may be used to enlarge the selection, and Shift key to select between the focus and the child pointed to. Some widgets may also allow Click-drag to select a range of elements.
Declaration
Swift
static let multiple: GtkSelectionMode