pub struct AbsoluteLayout;Expand description
Absolute positioning layout (items placed relative to parent edges/center).
Implementations§
Source§impl AbsoluteLayout
impl AbsoluteLayout
Sourcepub fn compute(parent: Rect, item: &AbsoluteItem) -> Rect
pub fn compute(parent: Rect, item: &AbsoluteItem) -> Rect
Compute rect for an absolutely positioned item within parent.
Sourcepub fn compute_all(parent: Rect, items: &[AbsoluteItem]) -> Vec<Rect>
pub fn compute_all(parent: Rect, items: &[AbsoluteItem]) -> Vec<Rect>
Compute multiple items.
Auto Trait Implementations§
impl Freeze for AbsoluteLayout
impl RefUnwindSafe for AbsoluteLayout
impl Send for AbsoluteLayout
impl Sync for AbsoluteLayout
impl Unpin for AbsoluteLayout
impl UnsafeUnpin for AbsoluteLayout
impl UnwindSafe for AbsoluteLayout
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