Struct imgui::Selectable[][src]

pub struct Selectable<T> { /* fields omitted */ }
Expand description

Builder for a selectable widget.

Implementations

Constructs a new selectable builder.

Replaces all current settings with the given flags

Sets the selected state of the selectable

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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.