pub enum CachedItemBoundingBoxAndTransform {
RegularItem {
bounding_rect: LogicalRect,
offset: LogicalVector,
},
ItemWithTransform {
bounding_rect: LogicalRect,
transform: Box<ItemTransform>,
},
ClipItem {
geometry: LogicalRect,
},
}Expand description
After rendering an item, we cache the geometry and the transform it applies to children.
Variants§
RegularItem
A regular item with a translation
Fields
§
bounding_rect: LogicalRectThe item’s bounding rect relative to its parent.
§
offset: LogicalVectorThe item’s offset relative to its parent.
ItemWithTransform
An item such as Rotate that defines an additional transformation
Fields
§
bounding_rect: LogicalRectThe item’s bounding rect relative to its parent.
§
transform: Box<ItemTransform>The item’s transform to apply to children.
ClipItem
A clip item.
Fields
§
geometry: LogicalRectThe item’s geometry relative to its parent.
Trait Implementations§
Source§impl Clone for CachedItemBoundingBoxAndTransform
impl Clone for CachedItemBoundingBoxAndTransform
Source§fn clone(&self) -> CachedItemBoundingBoxAndTransform
fn clone(&self) -> CachedItemBoundingBoxAndTransform
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl PartialEq for CachedItemBoundingBoxAndTransform
impl PartialEq for CachedItemBoundingBoxAndTransform
Source§fn eq(&self, other: &CachedItemBoundingBoxAndTransform) -> bool
fn eq(&self, other: &CachedItemBoundingBoxAndTransform) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for CachedItemBoundingBoxAndTransform
Auto Trait Implementations§
impl Freeze for CachedItemBoundingBoxAndTransform
impl RefUnwindSafe for CachedItemBoundingBoxAndTransform
impl Send for CachedItemBoundingBoxAndTransform
impl Sync for CachedItemBoundingBoxAndTransform
impl Unpin for CachedItemBoundingBoxAndTransform
impl UnwindSafe for CachedItemBoundingBoxAndTransform
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