Trait crabgrab::platform::macos::MacosCaptureConfigExt

source ·
pub trait MacosCaptureConfigExt {
    // Required methods
    fn with_scale_to_fit(self, scale_to_fit: bool) -> Self;
    fn with_maximum_fps(self, maximum_fps: Option<f32>) -> Self;
    fn with_metal_device(self, metal_device: Device) -> Self;
    fn with_resolution_type(
        self,
        resolution_type: MacosCaptureResolutionType
    ) -> Self;
}
Expand description

Mac OS specific extensions for capture configs

Required Methods§

source

fn with_scale_to_fit(self, scale_to_fit: bool) -> Self

Set whether or not to scale content to the output size

source

fn with_maximum_fps(self, maximum_fps: Option<f32>) -> Self

Set the maximum capture frame-rate

source

fn with_metal_device(self, metal_device: Device) -> Self

Set the metal device to use for texture creation

source

fn with_resolution_type( self, resolution_type: MacosCaptureResolutionType ) -> Self

Set the resolution type of the capture. Does nothing on macos before OS 14.0

Object Safety§

This trait is not object safe.

Implementors§