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§
sourcefn with_scale_to_fit(self, scale_to_fit: bool) -> Self
fn with_scale_to_fit(self, scale_to_fit: bool) -> Self
Set whether or not to scale content to the output size
sourcefn with_maximum_fps(self, maximum_fps: Option<f32>) -> Self
fn with_maximum_fps(self, maximum_fps: Option<f32>) -> Self
Set the maximum capture frame-rate
sourcefn with_metal_device(self, metal_device: Device) -> Self
fn with_metal_device(self, metal_device: Device) -> Self
Set the metal device to use for texture creation
sourcefn with_resolution_type(
self,
resolution_type: MacosCaptureResolutionType
) -> Self
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.