Expand description
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.
Implementations
sourceimpl Scissor
impl Scissor
sourcepub fn irrelevant() -> Scissor
pub fn irrelevant() -> Scissor
Defines a scissor box that it outside of the image.
Trait Implementations
impl Copy for Scissor
impl Eq for Scissor
impl StructuralEq for Scissor
impl StructuralPartialEq for Scissor
Auto Trait Implementations
impl RefUnwindSafe for Scissor
impl Send for Scissor
impl Sync for Scissor
impl Unpin for Scissor
impl UnwindSafe for Scissor
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Content for T
impl<T> Content for T
sourcefn ref_from_ptr<'a>(ptr: *mut c_void, size: usize) -> Option<*mut T>
fn ref_from_ptr<'a>(ptr: *mut c_void, size: usize) -> Option<*mut T>
Builds a pointer to this type from a raw pointer.
sourcefn is_size_suitable(size: usize) -> bool
fn is_size_suitable(size: usize) -> bool
Returns true if the size is suitable to store a type like this.
sourcefn indiv_size() -> usize
fn indiv_size() -> usize
Returns the size of an individual element.