pub trait CaptureArea {
// Required methods
fn capture_width(&self) -> u32;
fn capture_height(&self) -> u32;
fn set_capture_width(&self, width: u32);
fn set_capture_height(&self, height: u32);
// Provided methods
fn capture_size(&self) -> (u32, u32) { ... }
fn capture_area(&self) -> u32 { ... }
fn set_capture_size(&self, width: u32, height: u32) { ... }
}
Required Methods§
Sourcefn capture_width(&self) -> u32
fn capture_width(&self) -> u32
Get the width of the available capture area in pixels.
Sourcefn capture_height(&self) -> u32
fn capture_height(&self) -> u32
Get the height of the available capture area in pixels.
Sourcefn set_capture_width(&self, width: u32)
fn set_capture_width(&self, width: u32)
Set the width for the capture area.
Sourcefn set_capture_height(&self, height: u32)
fn set_capture_height(&self, height: u32)
Set the height for the capture area.
Provided Methods§
Sourcefn capture_size(&self) -> (u32, u32)
fn capture_size(&self) -> (u32, u32)
Get the size of the available capture area in pixels.
Sourcefn capture_area(&self) -> u32
fn capture_area(&self) -> u32
Get the capture area in pixels.
Sourcefn set_capture_size(&self, width: u32, height: u32)
fn set_capture_size(&self, width: u32, height: u32)
Set the size for the capture area.