pub struct StackPanel<'a> { /* private fields */ }Expand description
A stacked layout container.
Implementations§
Source§impl<'a> StackPanel<'a>
impl<'a> StackPanel<'a>
Sourcepub fn new(orient: Orient) -> Self
pub fn new(orient: Orient) -> Self
Create StackPanel with orientation.
Sourcepub fn push<'b>(
&'b mut self,
widget: &'a mut dyn Layoutable,
) -> StackPanelChildBuilder<'a, 'b>
pub fn push<'b>( &'b mut self, widget: &'a mut dyn Layoutable, ) -> StackPanelChildBuilder<'a, 'b>
Push a child into the panel.
Trait Implementations§
Source§impl Layoutable for StackPanel<'_>
impl Layoutable for StackPanel<'_>
Source§fn preferred_size(&self) -> Size
fn preferred_size(&self) -> Size
The preferred size.
Auto Trait Implementations§
impl<'a> Freeze for StackPanel<'a>
impl<'a> !RefUnwindSafe for StackPanel<'a>
impl<'a> !Send for StackPanel<'a>
impl<'a> !Sync for StackPanel<'a>
impl<'a> Unpin for StackPanel<'a>
impl<'a> !UnwindSafe for StackPanel<'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