pub struct MacStackUi<'a> {
pub ui: &'a mut Ui,
/* private fields */
}Expand description
Interactive stacking context passed to closures in MacStackView::show.
Fields§
§ui: &'a mut UiUnderlying egui Ui instance for embedding widgets inside the stack.
Implementations§
Source§impl<'a> MacStackUi<'a>
impl<'a> MacStackUi<'a>
Sourcepub fn add<R>(&mut self, item: impl FnOnce(&mut Ui) -> R) -> R
pub fn add<R>(&mut self, item: impl FnOnce(&mut Ui) -> R) -> R
Adds an item closure to the stack with automatic spacing and separators.
Sourcepub fn add_section<R>(
&mut self,
header: Option<&str>,
content: impl FnOnce(&mut Ui) -> R,
) -> R
pub fn add_section<R>( &mut self, header: Option<&str>, content: impl FnOnce(&mut Ui) -> R, ) -> R
Adds a grouped section with an optional section header label.
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for MacStackUi<'a>
impl<'a> !UnwindSafe for MacStackUi<'a>
impl<'a> Forget for MacStackUi<'a>
impl<'a> Freeze for MacStackUi<'a>
impl<'a> Send for MacStackUi<'a>
impl<'a> Sync for MacStackUi<'a>
impl<'a> Unpin for MacStackUi<'a>
impl<'a> UnsafeUnpin for MacStackUi<'a>
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more