#[non_exhaustive]pub struct Stack {}Expand description
A Stack widget. This widget does nothing interesting on its own, but when used “inside” other layouts, such as List, it will stacks its own children, rather than following the layout of its own parent. This internal layouting is just using yakui’s default layout algorithm.
Responds with StackResponse.
Shorthand:
yakui::column(|| {
yakui::label("on top");
yakui::stack(|| {
// this would compose, by being stacked,
// to appear like "hello world", barring issues from spacing,
// as opposed to continuing the columnar layout setup above.
yakui::text(12.0, "hello");
yakui::text(12.0, " world");
});
yakui::label("on bottom");
});Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Stack
impl RefUnwindSafe for Stack
impl Send for Stack
impl Sync for Stack
impl Unpin for Stack
impl UnwindSafe for Stack
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