pub struct StackBox<H, F> { /* private fields */ }Expand description
A patchable stack layout constructor for authoring ergonomics.
The runtime Stack element is a positioned-container style layout: children can be absolutely
positioned, and non-absolute children are laid out against the same bounds.
Implementations§
Source§impl<H: UiHost, F, I> StackBox<H, F>
impl<H: UiHost, F, I> StackBox<H, F>
pub fn into_element(self, cx: &mut ElementContext<'_, H>) -> AnyElement
Trait Implementations§
Source§impl<H: UiHost, F, I> IntoUiElement<H> for StackBox<H, F>
impl<H: UiHost, F, I> IntoUiElement<H> for StackBox<H, F>
fn into_element(self, cx: &mut ElementContext<'_, H>) -> AnyElement
Source§impl<H, F> UiPatchTarget for StackBox<H, F>
impl<H, F> UiPatchTarget for StackBox<H, F>
Source§fn apply_ui_patch(self, patch: UiPatch) -> Self
fn apply_ui_patch(self, patch: UiPatch) -> Self
Applies an aggregated authoring patch (chrome + layout) and returns the refined value. Read more
impl<H, F> UiSupportsChrome for StackBox<H, F>
impl<H, F> UiSupportsLayout for StackBox<H, F>
Auto Trait Implementations§
impl<H, F> Freeze for StackBox<H, F>where
F: Freeze,
impl<H, F> RefUnwindSafe for StackBox<H, F>where
F: RefUnwindSafe,
impl<H, F> Send for StackBox<H, F>where
F: Send,
impl<H, F> Sync for StackBox<H, F>where
F: Sync,
impl<H, F> Unpin for StackBox<H, F>where
F: Unpin,
impl<H, F> UnsafeUnpin for StackBox<H, F>where
F: UnsafeUnpin,
impl<H, F> UnwindSafe for StackBox<H, F>where
F: UnwindSafe,
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