Struct vulkano::pipeline::viewport::Scissor
[−]
[src]
pub struct Scissor { pub origin: [i32; 2], pub dimensions: [u32; 2], }
State of a single scissor box.
Fields
origin: [i32; 2]
Coordinates in pixels of the top-left hand corner of the box.
dimensions: [u32; 2]
Dimensions in pixels of the box.
Methods
impl Scissor
[src]
pub fn irrelevant() -> Scissor
[src]
Defines a scissor box that it outside of the image.
Trait Implementations
impl Debug for Scissor
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Copy for Scissor
[src]
impl Clone for Scissor
[src]
fn clone(&self) -> Scissor
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl PartialEq for Scissor
[src]
fn eq(&self, __arg_0: &Scissor) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Scissor) -> bool
[src]
This method tests for !=
.