pub struct Intersect {
pub x: f32,
pub y: f32,
pub width: f32,
pub height: f32,
pub with: Scissor,
pub transform: Option<Transform>,
}
Expand description
Define intersection scissor which gets intersected with ‘with’ Scissor. Pixels drawn outside of this intersection are clipped. When ‘with’ Scissor or this Intersection have rotation, the intersection will be an approximation.
Fields§
§x: f32
§y: f32
§width: f32
§height: f32
§with: Scissor
§transform: Option<Transform>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Intersect
impl RefUnwindSafe for Intersect
impl Send for Intersect
impl Sync for Intersect
impl Unpin for Intersect
impl UnwindSafe for Intersect
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