Struct imgui::CollapsingHeader[][src]

#[must_use]pub struct CollapsingHeader<'a> { /* fields omitted */ }

Builder for a collapsing header widget

Implementations

impl<'a> CollapsingHeader<'a>[src]

pub fn new(label: &ImStr) -> CollapsingHeader<'_>[src]

Constructs a new collapsing header builder

pub fn flags(mut self: Self, flags: TreeNodeFlags) -> Self[src]

Replaces all current settings with the given flags.

pub fn allow_item_overlap(mut self: Self, value: bool) -> Self[src]

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

Disabled by default.

pub fn default_open(mut self: Self, value: bool) -> Self[src]

Sets the default open state for the collapsing header.

Collapsing headers are closed by default.

pub fn open_on_double_click(mut self: Self, value: bool) -> Self[src]

Only open when the collapsing header is double-clicked.

Disabled by default.

pub fn open_on_arrow(mut self: Self, value: bool) -> Self[src]

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

Disabled by default.

pub fn leaf(mut self: Self, value: bool) -> Self[src]

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

Disabled by default.

pub fn bullet(mut self: Self, value: bool) -> Self[src]

Display a bullet instead of arrow.

Disabled by default.

pub fn frame_padding(mut self: Self, value: bool) -> Self[src]

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

Disabled by default.

#[must_use]pub fn build(self, _: &Ui<'_>) -> bool[src]

Builds the collapsing header.

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

#[must_use]pub fn build_with_close_button(self, _: &Ui<'_>, opened: &mut bool) -> bool[src]

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

impl<'a> Clone for CollapsingHeader<'a>[src]

impl<'a> Copy for CollapsingHeader<'a>[src]

impl<'a> Debug for CollapsingHeader<'a>[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.