pub struct Stack<State, Delegate> { /* private fields */ }
Expand description
A stack can be used to place multiple items after each other, e.g. horizontally, or vertically.
Implementations§
Source§impl<State, Delegate> Stack<State, Delegate>
impl<State, Delegate> Stack<State, Delegate>
Sourcepub fn new(direction: StackDirection) -> Self
pub fn new(direction: StackDirection) -> Self
A stack can be used to place multiple items after each other, e.g. horizontally, or vertically.
Sourcepub fn horizontal() -> Self
pub fn horizontal() -> Self
Align the items horizontally, i.e. left to right. This is the same as:
Stack::new(StackDirection::Horizontal);
Trait Implementations§
Source§impl<Delegate, State> From<Stack<State, Delegate>> for Box<dyn View<Delegate, State>>where
Delegate: AppDelegate<State> + 'static,
State: 'static,
impl<Delegate, State> From<Stack<State, Delegate>> for Box<dyn View<Delegate, State>>where
Delegate: AppDelegate<State> + 'static,
State: 'static,
impl<Delegate, State> View<Delegate, State> for Stack<State, Delegate>where
Delegate: 'static + AppDelegate<State>,
State: 'static,
Auto Trait Implementations§
impl<State, Delegate> Freeze for Stack<State, Delegate>
impl<State, Delegate> !RefUnwindSafe for Stack<State, Delegate>
impl<State, Delegate> !Send for Stack<State, Delegate>
impl<State, Delegate> !Sync for Stack<State, Delegate>
impl<State, Delegate> Unpin for Stack<State, Delegate>where
Delegate: Unpin,
impl<State, Delegate> !UnwindSafe for Stack<State, Delegate>
Blanket Implementations§
Source§impl<T> BaseViewExt for Twhere
T: BaseView,
impl<T> BaseViewExt for Twhere
T: BaseView,
Source§fn set_tooltip(&mut self, tooltip: impl Into<StateOrRaw<String>>)
fn set_tooltip(&mut self, tooltip: impl Into<StateOrRaw<String>>)
Set the tooltip of the view, which is text that is commonly displayed
when hovering over a component (such as a button). This is used to
provide the user with more context, or to let them know what the action
will do.
Source§fn with_tooltip(self, tooltip: impl Into<StateOrRaw<String>>) -> T
fn with_tooltip(self, tooltip: impl Into<StateOrRaw<String>>) -> T
Set the tooltip of the view, which is text that is commonly displayed
when hovering over a component (such as a button). This is used to
provide the user with more context, or to let them know what the action
will do.
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