enum Gtk::SelectionMode

Overview

Used to control what selections users are allowed to make.

Defined in:

lib/gi-crystal/src/auto/gtk-4.0/gtk.cr

Enum Members

None = 0_u32

No selection is possible.

Single = 1_u32

Zero or one element may be selected.

Browse = 2_u32

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.

Multiple = 3_u32

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.

Class Method Summary

Instance Method Summary

Class methods inherited from struct Enum

g_type : UInt64 g_type

Class Method Detail

def self.g_type : UInt64 #

Returns the type id (GType) registered in GLib type system.


Instance Method Detail

def browse? #

def multiple? #

def none? #

def single? #