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

Trait Implementations

impl Clone for Scissor
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for Scissor
[src]

impl Debug for Scissor
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl Send for Scissor

impl Sync for Scissor