Struct nanovg::Intersect [−][src]
pub struct Intersect { pub x: f32, pub y: f32, pub width: f32, pub height: f32, pub with: Scissor, pub transform: Option<Transform>, }
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
impl Clone for Intersect
[src]
impl Clone for Intersect
fn clone(&self) -> Intersect
[src]
fn clone(&self) -> Intersect
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Copy for Intersect
[src]
impl Copy for Intersect
impl Debug for Intersect
[src]
impl Debug for Intersect