pub struct LinuxCapture { /* private fields */ }Available on Linux only.
Expand description
Linux screen capture implementation
Implementations§
Source§impl LinuxCapture
impl LinuxCapture
Sourcepub fn new() -> CaptureResult<Box<dyn ScreenCapture>>
pub fn new() -> CaptureResult<Box<dyn ScreenCapture>>
Create a new Linux capturer
Trait Implementations§
Source§impl ScreenCapture for LinuxCapture
impl ScreenCapture for LinuxCapture
Source§fn get_displays(&self) -> CaptureResult<Vec<DisplayInfo>>
fn get_displays(&self) -> CaptureResult<Vec<DisplayInfo>>
Get list of available displays
Source§fn capture_display(&self, display_index: usize) -> CaptureResult<RawImage>
fn capture_display(&self, display_index: usize) -> CaptureResult<RawImage>
Capture a screenshot from a specific display
Source§fn capture_region(&self, region: CaptureRegion) -> CaptureResult<RawImage>
fn capture_region(&self, region: CaptureRegion) -> CaptureResult<RawImage>
Capture a specific region of the screen
Source§fn implementation_name(&self) -> String
fn implementation_name(&self) -> String
Get the implementation name
Source§fn capabilities(&self) -> CaptureCapabilities
fn capabilities(&self) -> CaptureCapabilities
Get capabilities of the implementation
Source§fn is_hardware_accelerated(&self) -> bool
fn is_hardware_accelerated(&self) -> bool
Check if hardware acceleration is available
Source§fn is_available(&self) -> bool
fn is_available(&self) -> bool
Check if the implementation is available on the current system
Auto Trait Implementations§
impl !Freeze for LinuxCapture
impl RefUnwindSafe for LinuxCapture
impl Send for LinuxCapture
impl Sync for LinuxCapture
impl Unpin for LinuxCapture
impl UnsafeUnpin for LinuxCapture
impl UnwindSafe for LinuxCapture
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