[−][src]Struct imgui::CollapsingHeader
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(self, flags: TreeNodeFlags) -> Self
[src]
Replaces all current settings with the given flags.
pub fn allow_item_overlap(self, value: bool) -> Self
[src]
Enables/disables allowing the collapsing header to overlap subsequent widgets.
Disabled by default.
pub fn default_open(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(self, value: bool) -> Self
[src]
Only open when the collapsing header is double-clicked.
Disabled by default.
pub fn open_on_arrow(self, value: bool) -> Self
[src]
Only open when clicking the arrow part of the collapsing header.
Disabled by default.
pub fn leaf(self, value: bool) -> Self
[src]
Enable/disables leaf mode (no collapsing, no arrow).
Disabled by default.
pub fn bullet(self, value: bool) -> Self
[src]
Display a bullet instead of arrow.
Disabled by default.
pub fn frame_padding(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]
pub fn clone(&self) -> CollapsingHeader<'a>
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<'a> Copy for CollapsingHeader<'a>
[src]
impl<'a> Debug for CollapsingHeader<'a>
[src]
Auto Trait Implementations
impl<'a> RefUnwindSafe for CollapsingHeader<'a>
[src]
impl<'a> Send for CollapsingHeader<'a>
[src]
impl<'a> Sync for CollapsingHeader<'a>
[src]
impl<'a> Unpin for CollapsingHeader<'a>
[src]
impl<'a> UnwindSafe for CollapsingHeader<'a>
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,