Struct imgui::CollapsingHeader

source ·
pub struct CollapsingHeader<T> { /* private fields */ }
Expand description

Builder for a collapsing header widget

Implementations§

Constructs a new collapsing header builder

Replaces all current settings with the given flags.

Enables/disables allowing the collapsing header to overlap subsequent widgets.

Disabled by default.

Sets the default open state for the collapsing header.

Collapsing headers are closed by default.

Only open when the collapsing header is double-clicked.

Disabled by default.

Only open when clicking the arrow part of the collapsing header.

Disabled by default.

Enable/disables leaf mode (no collapsing, no arrow).

Disabled by default.

Display a bullet instead of arrow.

Disabled by default.

Use frame_padding to vertically align text baseline to regular widget height.

Disabled by default.

Begins the collapsing header.

Returns true if the collapsing header is open and content should be rendered.

This is the same as build but is provided for consistent naming.

Begins the collapsing header.

Returns true if the collapsing header is open and content should be rendered.

This is the same as build_with_close_button but is provided for consistent naming.

Builds the collapsing header.

Returns true if the collapsing header is open and content should be rendered.

Builds the collapsing header, and adds an additional close button that changes the value of the given mutable reference when clicked.

Returns true if the collapsing header is open and content should be rendered.

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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
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.