pub struct CompositorTransform {
    local_to_raster: ScaleOffset,
    raster_to_device: ScaleOffset,
    local_to_device: ScaleOffset,
}Expand description
A transform for either a picture cache or external compositor surface, stored
in the CompositeState structure. This allows conversions from local rects
to raster or device rects, without access to the spatial tree (e.g. during
the render step where dirty rects are calculated). Since we know that we only
handle scale and offset transforms for these types, we can store a single
ScaleOffset rather than 4x4 matrix here for efficiency.
Fields§
§local_to_raster: ScaleOffset§raster_to_device: ScaleOffset§local_to_device: ScaleOffsetTrait Implementations§
Auto Trait Implementations§
impl Freeze for CompositorTransform
impl RefUnwindSafe for CompositorTransform
impl Send for CompositorTransform
impl Sync for CompositorTransform
impl Unpin for CompositorTransform
impl UnwindSafe for CompositorTransform
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
Source§impl<T> IntoEither for T
 
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
 
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts 
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
 
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts 
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more