pub struct CropConfig {
pub origin: (u16, u16),
pub size: (u16, u16),
}Expand description
Crop window. Coordinates and sizes are in pixels for Pipe1/Pipe2. On Pipe0 (raw word-aligned dump) the same struct is reused but values are interpreted as 32-bit words horizontally.
Fields§
§origin: (u16, u16)Top-left origin (x, y).
size: (u16, u16)Window (width, height).
Trait Implementations§
Source§impl Clone for CropConfig
impl Clone for CropConfig
Source§fn clone(&self) -> CropConfig
fn clone(&self) -> CropConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CropConfig
impl Debug for CropConfig
Source§impl Format for CropConfig
impl Format for CropConfig
Source§impl PartialEq for CropConfig
impl PartialEq for CropConfig
impl Copy for CropConfig
impl Eq for CropConfig
impl StructuralPartialEq for CropConfig
Auto Trait Implementations§
impl Freeze for CropConfig
impl RefUnwindSafe for CropConfig
impl Send for CropConfig
impl Sync for CropConfig
impl Unpin for CropConfig
impl UnwindSafe for CropConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more