pub struct ContainingBlock {
pub padding_box: Rect,
pub viewport: Rect,
pub initial_viewport: Rect,
pub scroll_offset: (f32, f32),
}Expand description
Active containing block context propagated down the layout hierarchy.
Fields§
§padding_box: RectThe padding box of the containing block in global coordinates.
viewport: RectThe viewport bounds (for position: fixed, overridden by transform/filter ancestors).
initial_viewport: RectThe root initial containing block viewport (for Top-Layer <Portal> elements).
scroll_offset: (f32, f32)Scroll offset of the viewport or scroll container (scroll_x, scroll_y).
Implementations§
Trait Implementations§
Source§impl Clone for ContainingBlock
impl Clone for ContainingBlock
impl Copy for ContainingBlock
Source§impl Debug for ContainingBlock
impl Debug for ContainingBlock
Source§impl PartialEq for ContainingBlock
impl PartialEq for ContainingBlock
impl StructuralPartialEq for ContainingBlock
Auto Trait Implementations§
impl Forget for ContainingBlock
impl Freeze for ContainingBlock
impl Move for ContainingBlock
impl RefUnwindSafe for ContainingBlock
impl Send for ContainingBlock
impl Sync for ContainingBlock
impl Unpin for ContainingBlock
impl UnsafeUnpin for ContainingBlock
impl UnwindSafe for ContainingBlock
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