Struct imgui::Selectable [−][src]
pub struct Selectable<T> { /* fields omitted */ }
Expand description
Builder for a selectable widget.
Implementations
Replaces all current settings with the given flags
Enables/disables closing parent popup window on click.
Default: enabled
Enables/disables full column span (text will still fit in the current column).
Default: disabled
Enables/disables click event generation on double clicks.
Default: disabled
Enables/disables the selectable.
When disabled, it cannot be selected and the text uses the disabled text color.
Default: disabled
Sets the size of the selectable.
For the X axis:
> 0.0
: use given width= 0.0
: use remaining width
For the Y axis:
> 0.0
: use given height= 0.0
: use label height
Builds the selectable.
Returns true if the selectable was clicked.
Builds the selectable using a mutable reference to selected state.
Trait Implementations
Auto Trait Implementations
impl<T> RefUnwindSafe for Selectable<T> where
T: RefUnwindSafe,
impl<T> Send for Selectable<T> where
T: Send,
impl<T> Sync for Selectable<T> where
T: Sync,
impl<T> Unpin for Selectable<T> where
T: Unpin,
impl<T> UnwindSafe for Selectable<T> where
T: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more