pub struct Box {
pub x: u32,
pub y: u32,
pub w: u32,
pub h: u32,
}Expand description
Box used to describe an area of the tracked region to capture.
The coordinates are relative to the tracked region.
E.g., if the size of the X screen is 3520x1200 and the tracked RandR output scans a region of 1600x1200+1920+0, then setting a capture box of 800x600+100+50 effectively captures a region of 800x600+2020+50 relative to the X screen.
Fields§
§x: u32X offset of the box.
y: u32Y offset of the box.
w: u32Width of the box.
h: u32Height of the box.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Box
impl RefUnwindSafe for Box
impl Send for Box
impl Sync for Box
impl Unpin for Box
impl UnwindSafe for Box
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