pub struct RectClip {
pub bounds: Rect,
pub transform: Transform,
}Expand description
A local rectangle whose transformed region intersects ancestor rectangles.
Unlike PathClip, nested rectangles intersect before coverage quantization. Raw bounds and transforms validate during authoring/DisplayList preflight.
Fields§
§bounds: RectOpposite local corners; zero area is an empty clipping region.
transform: TransformLocal mapping in authoring, device mapping in a DisplayList.
Implementations§
Trait Implementations§
impl Copy for RectClip
impl StructuralPartialEq for RectClip
Auto Trait Implementations§
impl Forget for RectClip
impl Freeze for RectClip
impl RefUnwindSafe for RectClip
impl Send for RectClip
impl Sync for RectClip
impl Unpin for RectClip
impl UnsafeUnpin for RectClip
impl UnwindSafe for RectClip
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