Struct webrender::gpu_types::ClipMaskInstance
source · #[repr(C)]pub struct ClipMaskInstance {
pub clip_transform_id: TransformPaletteId,
pub prim_transform_id: TransformPaletteId,
pub clip_data_address: GpuCacheAddress,
pub resource_address: GpuCacheAddress,
pub local_pos: LayoutPoint,
pub tile_rect: LayoutRect,
pub sub_rect: DeviceRect,
pub task_origin: DevicePoint,
pub screen_origin: DevicePoint,
pub device_pixel_scale: f32,
}
Expand description
A clipping primitive drawn into the clipping mask.
Could be an image or a rectangle, which defines the
way address
is treated.
Fields§
§clip_transform_id: TransformPaletteId
§prim_transform_id: TransformPaletteId
§clip_data_address: GpuCacheAddress
§resource_address: GpuCacheAddress
§local_pos: LayoutPoint
§tile_rect: LayoutRect
§sub_rect: DeviceRect
§task_origin: DevicePoint
§screen_origin: DevicePoint
§device_pixel_scale: f32
Trait Implementations§
source§impl Clone for ClipMaskInstance
impl Clone for ClipMaskInstance
source§fn clone(&self) -> ClipMaskInstance
fn clone(&self) -> ClipMaskInstance
Returns a copy 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 Debug for ClipMaskInstance
impl Debug for ClipMaskInstance
source§impl Serialize for ClipMaskInstance
impl Serialize for ClipMaskInstance
impl Copy for ClipMaskInstance
Auto Trait Implementations§
impl RefUnwindSafe for ClipMaskInstance
impl Send for ClipMaskInstance
impl Sync for ClipMaskInstance
impl Unpin for ClipMaskInstance
impl UnwindSafe for ClipMaskInstance
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>where
F: FnOnce(&Self) -> bool,
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>where F: FnOnce(&Self) -> bool,
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