Struct easy_imgui::TabItem
source · pub struct TabItem<'o, S: IntoCStr, P: Pushable = ()> { /* private fields */ }
Implementations§
source§impl<'o, S: IntoCStr, P: Pushable> TabItem<'o, S, P>
impl<'o, S: IntoCStr, P: Pushable> TabItem<'o, S, P>
sourcepub fn push_for_begin<P2: Pushable>(self, push: P2) -> TabItem<'o, S, (P, P2)>
pub fn push_for_begin<P2: Pushable>(self, push: P2) -> TabItem<'o, 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: TabItemFlags) -> Self
pub fn opened(self, opened: &'o mut bool) -> Self
Auto Trait Implementations§
impl<'o, S, P> RefUnwindSafe for TabItem<'o, S, P>
impl<'o, S, P> Send for TabItem<'o, S, P>
impl<'o, S, P> Sync for TabItem<'o, S, P>
impl<'o, S, P> Unpin for TabItem<'o, S, P>
impl<'o, S, P = ()> !UnwindSafe for TabItem<'o, 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