Struct cdp::layer_tree::StickyPositionConstraint
[−]
[src]
pub struct StickyPositionConstraint<'a> {
pub sticky_box_rect: Rect,
pub containing_block_rect: Rect,
pub nearest_layer_shifting_sticky_box: Option<LayerId<'a>>,
pub nearest_layer_shifting_containing_block: Option<LayerId<'a>>,
}[Experimental] Sticky position constraints.
Fields
sticky_box_rect: Rect
Layout rectangle of the sticky element before being shifted
containing_block_rect: Rect
Layout rectangle of the containing block of the sticky element
nearest_layer_shifting_sticky_box: Option<LayerId<'a>>
The nearest sticky layer that shifts the sticky box
nearest_layer_shifting_containing_block: Option<LayerId<'a>>
The nearest sticky layer that shifts the containing block
Trait Implementations
impl<'a> Clone for StickyPositionConstraint<'a>[src]
fn clone(&self) -> StickyPositionConstraint<'a>[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more
impl<'a> Debug for StickyPositionConstraint<'a>[src]
impl<'a> PartialEq for StickyPositionConstraint<'a>[src]
fn eq(&self, __arg_0: &StickyPositionConstraint<'a>) -> bool[src]
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, __arg_0: &StickyPositionConstraint<'a>) -> bool[src]
This method tests for !=.