pub struct OverlayLayout {
pub align: Alignment,
pub size_to_first: bool,
}Expand description
Z-layering (§overlay): children share the container bounds, stacked back-to-front in child
order (first child = bottom of the z-order), each positioned by a single Alignment.
size_to_first reports only the FIRST child’s natural size — the badge/annotation sizing of
overlay (the annotation does not grow the frame); otherwise the layout reports the
UNION (max) of all children’s natural sizes — the ZStack sizing of zstack. No native work:
the container is the same panel as column/row, so backends stack children by attach order.
Fields§
§align: Alignment§size_to_first: boolTrait Implementations§
Auto Trait Implementations§
impl Freeze for OverlayLayout
impl RefUnwindSafe for OverlayLayout
impl Send for OverlayLayout
impl Sync for OverlayLayout
impl Unpin for OverlayLayout
impl UnsafeUnpin for OverlayLayout
impl UnwindSafe for OverlayLayout
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
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