pub struct CoverLayout {
pub size: Rc<RefCell<Option<Size>>>,
}Expand description
Fullscreen cover (docs/cover.md): the cover node occupies no space where it sits in the
tree (its native surface is presented over the window, outside the parent’s bounds), and
its content is laid out at the size the backend reported via Event::FrameChanged, the
same native-owned-frame contract as NavLayout pages.
Fields§
§size: Rc<RefCell<Option<Size>>>Trait Implementations§
Source§impl Layout for CoverLayout
impl Layout for CoverLayout
fn measure( &self, _cx: &mut dyn LayoutOps, _children: &[RNode], _p: Proposal, ) -> Size
fn place(&self, cx: &mut dyn LayoutOps, children: &[RNode], _bounds: Rect)
Source§fn baseline(
&self,
_cx: &mut dyn LayoutOps,
_children: &[RNode],
_size: Size,
) -> Option<f64>
fn baseline( &self, _cx: &mut dyn LayoutOps, _children: &[RNode], _size: Size, ) -> Option<f64>
Where this node’s own first text baseline falls, measured from the top of a box of
size (docs/baseline.md). None (the default) means the node has no baseline to
offer, so a baseline-aligned parent falls back to box alignment for it. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for CoverLayout
impl !Send for CoverLayout
impl !Sync for CoverLayout
impl !UnwindSafe for CoverLayout
impl Freeze for CoverLayout
impl Unpin for CoverLayout
impl UnsafeUnpin for CoverLayout
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
impl<T> ErasedDestructor for Twhere
T: 'static,
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