pub struct CaptureRect {
pub x: i32,
pub y: i32,
pub width: u32,
pub height: u32,
}Available on Windows and crate feature
dxgi-capture and (crate features dxgi-capture or wasapi-capture) only.Expand description
A capture region in absolute virtual-desktop pixel coordinates — the
same origin/units Win32 itself uses for multi-monitor layout
(GetSystemMetrics(SM_XVIRTUALSCREEN), MONITORINFOEX::rcMonitor,
DXGI_OUTPUT_DESC::DesktopCoordinates), not local to any one monitor.
See CaptureArea::Region.
Fields§
§x: i32§y: i32§width: u32§height: u32Trait Implementations§
Source§impl Clone for CaptureRect
impl Clone for CaptureRect
Source§fn clone(&self) -> CaptureRect
fn clone(&self) -> CaptureRect
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for CaptureRect
Auto Trait Implementations§
impl Freeze for CaptureRect
impl RefUnwindSafe for CaptureRect
impl Send for CaptureRect
impl Sync for CaptureRect
impl Unpin for CaptureRect
impl UnsafeUnpin for CaptureRect
impl UnwindSafe for CaptureRect
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