pub struct Settings<Flags, T: TryInto<GraphicsCaptureItemType>> { /* private fields */ }Expand description
Represents the settings for a screen capture session.
Implementationsยง
Sourceยงimpl<Flags, T: TryInto<GraphicsCaptureItemType>> Settings<Flags, T>
impl<Flags, T: TryInto<GraphicsCaptureItemType>> 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
Constructs a new Settings configuration.
Sourcepub const fn cursor_capture(&self) -> CursorCaptureSettings
pub const fn cursor_capture(&self) -> CursorCaptureSettings
Returns the cursor capture settings.
Sourcepub const fn draw_border(&self) -> DrawBorderSettings
pub const fn draw_border(&self) -> DrawBorderSettings
Returns the draw border settings.
Sourcepub const fn color_format(&self) -> ColorFormat
pub const fn color_format(&self) -> ColorFormat
Returns the color format.
Trait Implementationsยง
Sourceยงimpl<Flags: Clone, T: Clone + TryInto<GraphicsCaptureItemType>> Clone for Settings<Flags, T>
impl<Flags: Clone, T: Clone + TryInto<GraphicsCaptureItemType>> Clone for Settings<Flags, T>
Sourceยงimpl<Flags: Debug, T: Debug + TryInto<GraphicsCaptureItemType>> Debug for Settings<Flags, T>
impl<Flags: Debug, T: Debug + TryInto<GraphicsCaptureItemType>> Debug for Settings<Flags, T>
Sourceยงimpl<Flags: PartialEq, T: PartialEq + TryInto<GraphicsCaptureItemType>> PartialEq for Settings<Flags, T>
impl<Flags: PartialEq, T: PartialEq + TryInto<GraphicsCaptureItemType>> PartialEq for Settings<Flags, T>
impl<Flags: Eq, T: Eq + TryInto<GraphicsCaptureItemType>> Eq for Settings<Flags, T>
impl<Flags, T: TryInto<GraphicsCaptureItemType>> 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> UnsafeUnpin for Settings<Flags, T>where
T: UnsafeUnpin,
Flags: UnsafeUnpin,
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