pub struct OofPositioningArea {
pub size: Size<f32>,
pub offset: Point<f32>,
}Expand description
The area of a container against which the insets of its out-of-flow (absolute/fixed) boxes are resolved: the container’s border box minus its borders and scrollbar gutters.
Container layout algorithms record this on LayoutOutput (for RunMode::PerformLayout runs)
so that the out-of-flow positioning pass (compute_oof_layout)
can run after the algorithm has finished. When the container is a grid, per-box grid areas are
resolved within this area by the positioning pass itself (from the container’s detailed grid
info).
Fields§
§size: Size<f32>The size of the area
offset: Point<f32>The offset of the area from the container’s border box origin
Trait Implementations§
Source§impl Clone for OofPositioningArea
impl Clone for OofPositioningArea
Source§fn clone(&self) -> OofPositioningArea
fn clone(&self) -> OofPositioningArea
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for OofPositioningArea
Source§impl Debug for OofPositioningArea
impl Debug for OofPositioningArea
Source§impl PartialEq for OofPositioningArea
impl PartialEq for OofPositioningArea
impl StructuralPartialEq for OofPositioningArea
Auto Trait Implementations§
impl Freeze for OofPositioningArea
impl RefUnwindSafe for OofPositioningArea
impl Send for OofPositioningArea
impl Sync for OofPositioningArea
impl Unpin for OofPositioningArea
impl UnsafeUnpin for OofPositioningArea
impl UnwindSafe for OofPositioningArea
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