pub struct CollapsingHeader<S: IntoCStr, P: Pushable = ()> { /* private fields */ }
Implementations§
Source§impl<S: IntoCStr, P: Pushable> CollapsingHeader<S, P>
impl<S: IntoCStr, P: Pushable> CollapsingHeader<S, P>
Sourcepub fn push_for_begin<P2: Pushable>(
self,
push: P2,
) -> CollapsingHeader<S, (P, P2)>
pub fn push_for_begin<P2: Pushable>( self, push: P2, ) -> CollapsingHeader<S, (P, P2)>
Registers this Pushable
to be called only for the begin
part of this UI
element.
This is useful for example to modify the style of a window without changing the stily of its content.
Sourcepub fn with<R>(self, f: impl FnOnce() -> R) -> Option<R>
pub fn with<R>(self, f: impl FnOnce() -> R) -> Option<R>
Calls f
inside this UI element, but only if it is visible.
Sourcepub fn with_always<R>(self, f: impl FnOnce(bool) -> R) -> R
pub fn with_always<R>(self, f: impl FnOnce(bool) -> R) -> R
Calls f
inside this UI element, passing true
if the elements visible, false
if it is not.
pub fn flags(self, flags: TreeNodeFlags) -> Self
Auto Trait Implementations§
impl<S, P> Freeze for CollapsingHeader<S, P>
impl<S, P> RefUnwindSafe for CollapsingHeader<S, P>
impl<S, P> Send for CollapsingHeader<S, P>
impl<S, P> Sync for CollapsingHeader<S, P>
impl<S, P> Unpin for CollapsingHeader<S, P>
impl<S, P> UnwindSafe for CollapsingHeader<S, P>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more