Struct nanovg::Scissor [−][src]
pub struct Scissor { pub x: f32, pub y: f32, pub width: f32, pub height: f32, pub transform: Option<Transform>, }
A scissor defines a region on the screen in which drawing operations are allowed. Pixels drawn outside of this region are clipped.
Fields
x: f32
y: f32
width: f32
height: f32
transform: Option<Transform>
Trait Implementations
impl Clone for Scissor
[src]
impl Clone for Scissor
fn clone(&self) -> Scissor
[src]
fn clone(&self) -> Scissor
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 Scissor
[src]
impl Copy for Scissor
impl Debug for Scissor
[src]
impl Debug for Scissor