[][src]Struct egui::containers::CollapsingHeader

pub struct CollapsingHeader { /* fields omitted */ }

A header which can be collapsed/expanded, revealing a contained Ui region.

Implementations

impl CollapsingHeader[src]

pub fn new(label: impl Into<String>) -> Self[src]

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

pub fn id_source(self, id_source: impl Hash) -> Self[src]

Explicitly set the source of the Id of this widget, instead of using title label. This is useful if the title label is dynamics.

impl CollapsingHeader[src]

pub fn show<R>(
    self,
    ui: &mut Ui,
    add_contents: impl FnOnce(&mut Ui) -> R
) -> Option<R>
[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, 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.