Struct imgui::CollapsingHeader[][src]

pub struct CollapsingHeader<T> { /* fields omitted */ }
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

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.