Enum gtk4::SelectionMode [−][src]
#[non_exhaustive]
pub enum SelectionMode {
None,
Single,
Browse,
Multiple,
// some variants omitted
}
Expand description
Used to control what selections users are allowed to make.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
No selection is possible.
Zero or one element may be selected.
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
Browse
. What is really enforced is that the user
can’t deselect a currently selected element except by selecting
another element.
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.
Trait Implementations
type Checker = GenericValueTypeChecker<Self>
type Checker = GenericValueTypeChecker<Self>
Value type checker.
Get the contained value from a Value
. Read more
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Returns the type identifier of Self
.
Auto Trait Implementations
impl RefUnwindSafe for SelectionMode
impl Send for SelectionMode
impl Sync for SelectionMode
impl Unpin for SelectionMode
impl UnwindSafe for SelectionMode
Blanket Implementations
Mutably borrows from an owned value. Read more
Returns a SendValue
clone of self
.