Trait CaptureArea

Source
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§

Source

fn capture_width(&self) -> u32

Get the width of the available capture area in pixels.

Source

fn capture_height(&self) -> u32

Get the height of the available capture area in pixels.

Source

fn set_capture_width(&self, width: u32)

Set the width for the capture area.

Source

fn set_capture_height(&self, height: u32)

Set the height for the capture area.

Provided Methods§

Source

fn capture_size(&self) -> (u32, u32)

Get the size of the available capture area in pixels.

Source

fn capture_area(&self) -> u32

Get the capture area in pixels.

Source

fn set_capture_size(&self, width: u32, height: u32)

Set the size for the capture area.

Implementors§