pub struct Settings<Flags, T: TryIntoCaptureItemWithType> { /* private fields */ }Expand description
Represents the settings for a screen capture session.
Implementations§
Source§impl<Flags, T: TryIntoCaptureItemWithType> Settings<Flags, T>
impl<Flags, T: TryIntoCaptureItemWithType> Settings<Flags, T>
Sourcepub const fn new(
item: T,
cursor_capture_settings: CursorCaptureSettings,
draw_border_settings: DrawBorderSettings,
secondary_window_settings: SecondaryWindowSettings,
minimum_update_interval_settings: MinimumUpdateIntervalSettings,
dirty_region_settings: DirtyRegionSettings,
color_format: ColorFormat,
flags: Flags,
) -> Self
pub const fn new( item: T, cursor_capture_settings: CursorCaptureSettings, draw_border_settings: DrawBorderSettings, secondary_window_settings: SecondaryWindowSettings, minimum_update_interval_settings: MinimumUpdateIntervalSettings, dirty_region_settings: DirtyRegionSettings, color_format: ColorFormat, flags: Flags, ) -> Self
Creates a new Settings configuration.
§Arguments
item- The item to be captured (aWindoworMonitor).cursor_capture_settings- The desired cursor capture behavior.draw_border_settings- The desired border drawing behavior.secondary_window_settings- The desired behavior for capturing secondary windows.minimum_update_interval_settings- The desired minimum time between frame updates.dirty_region_settings- The desired behavior for handling dirty regions.color_format- The desired pixel format for the captured frames.flags- Custom flags to be passed to the capture implementation’snewfunction.
Sourcepub const fn cursor_capture(&self) -> CursorCaptureSettings
pub const fn cursor_capture(&self) -> CursorCaptureSettings
Sourcepub const fn draw_border(&self) -> DrawBorderSettings
pub const fn draw_border(&self) -> DrawBorderSettings
Sourcepub const fn color_format(&self) -> ColorFormat
pub const fn color_format(&self) -> ColorFormat
Trait Implementations§
Source§impl<Flags: PartialEq, T: PartialEq + TryIntoCaptureItemWithType> PartialEq for Settings<Flags, T>
impl<Flags: PartialEq, T: PartialEq + TryIntoCaptureItemWithType> PartialEq for Settings<Flags, T>
impl<Flags: Eq, T: Eq + TryIntoCaptureItemWithType> Eq for Settings<Flags, T>
impl<Flags, T: TryIntoCaptureItemWithType> StructuralPartialEq for Settings<Flags, T>
Auto Trait Implementations§
impl<Flags, T> Freeze for Settings<Flags, T>
impl<Flags, T> RefUnwindSafe for Settings<Flags, T>where
T: RefUnwindSafe,
Flags: RefUnwindSafe,
impl<Flags, T> Send for Settings<Flags, T>
impl<Flags, T> Sync for Settings<Flags, T>
impl<Flags, T> Unpin for Settings<Flags, T>
impl<Flags, T> UnwindSafe for Settings<Flags, T>where
T: UnwindSafe,
Flags: UnwindSafe,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more