Struct snow2d::utils::inspect::imgui::CollapsingHeader [−]
pub struct CollapsingHeader<T> { /* fields omitted */ }
Expand description
Builder for a collapsing header widget
Implementations
impl<T> CollapsingHeader<T> where
T: AsRef<str>,
impl<T> CollapsingHeader<T> where
T: AsRef<str>,
pub fn new(label: T) -> CollapsingHeader<T>
pub fn new(label: T) -> CollapsingHeader<T>
Constructs a new collapsing header builder
pub fn flags(self, flags: TreeNodeFlags) -> CollapsingHeader<T>
pub fn flags(self, flags: TreeNodeFlags) -> CollapsingHeader<T>
Replaces all current settings with the given flags.
pub fn allow_item_overlap(self, value: bool) -> CollapsingHeader<T>
pub fn allow_item_overlap(self, value: bool) -> CollapsingHeader<T>
Enables/disables allowing the collapsing header to overlap subsequent widgets.
Disabled by default.
pub fn default_open(self, value: bool) -> CollapsingHeader<T>
pub fn default_open(self, value: bool) -> CollapsingHeader<T>
Sets the default open state for the collapsing header.
Collapsing headers are closed by default.
pub fn open_on_double_click(self, value: bool) -> CollapsingHeader<T>
pub fn open_on_double_click(self, value: bool) -> CollapsingHeader<T>
Only open when the collapsing header is double-clicked.
Disabled by default.
pub fn open_on_arrow(self, value: bool) -> CollapsingHeader<T>
pub fn open_on_arrow(self, value: bool) -> CollapsingHeader<T>
Only open when clicking the arrow part of the collapsing header.
Disabled by default.
pub fn leaf(self, value: bool) -> CollapsingHeader<T>
pub fn leaf(self, value: bool) -> CollapsingHeader<T>
Enable/disables leaf mode (no collapsing, no arrow).
Disabled by default.
pub fn bullet(self, value: bool) -> CollapsingHeader<T>
pub fn bullet(self, value: bool) -> CollapsingHeader<T>
Display a bullet instead of arrow.
Disabled by default.
pub fn frame_padding(self, value: bool) -> CollapsingHeader<T>
pub fn frame_padding(self, value: bool) -> CollapsingHeader<T>
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
impl<T> Clone for CollapsingHeader<T> where
T: Clone,
impl<T> Clone for CollapsingHeader<T> where
T: Clone,
pub fn clone(&self) -> CollapsingHeader<T>
pub fn clone(&self) -> CollapsingHeader<T>
Returns a copy of the value. Read more
Performs copy-assignment from source
. Read more
impl<T> Debug for CollapsingHeader<T> where
T: Debug,
impl<T> Debug for CollapsingHeader<T> where
T: Debug,
impl<T> Copy for CollapsingHeader<T> where
T: Copy,
Auto Trait Implementations
impl<T> RefUnwindSafe for CollapsingHeader<T> where
T: RefUnwindSafe,
impl<T> Send for CollapsingHeader<T> where
T: Send,
impl<T> Sync for CollapsingHeader<T> where
T: Sync,
impl<T> Unpin for CollapsingHeader<T> where
T: Unpin,
impl<T> UnwindSafe for CollapsingHeader<T> where
T: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
impl<T> Downcast for T where
T: Any,
impl<T> Downcast for T where
T: Any,
Convert Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
. Read more
pub fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
pub fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
Convert Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
. Read more
Convert &Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s. Read more
pub fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
pub fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert &mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s. Read more