pub struct Settings<Flags, T: TryInto<GraphicsCaptureItem>> { /* private fields */ }Expand description
Represents the settings for screen capturing.
Implementationsยง
Sourceยงimpl<Flags, T: TryInto<GraphicsCaptureItem>> Settings<Flags, T>
impl<Flags, T: TryInto<GraphicsCaptureItem>> Settings<Flags, T>
Sourcepub const fn new(
item: T,
cursor_capture: CursorCaptureSettings,
draw_border: DrawBorderSettings,
color_format: ColorFormat,
flags: Flags,
) -> Self
pub const fn new( item: T, cursor_capture: CursorCaptureSettings, draw_border: DrawBorderSettings, color_format: ColorFormat, flags: Flags, ) -> Self
Create Capture Settings
ยงArguments
item- The graphics capture item.capture_cursor- Whether to capture the cursor or not.draw_border- Whether to draw a border around the captured region or not.color_format- The desired color format for the captured frame.flags- Additional flags for the capture settings that will be passed to user definednewfunction.
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 + TryInto<GraphicsCaptureItem>> PartialEq for Settings<Flags, T>
impl<Flags: PartialEq, T: PartialEq + TryInto<GraphicsCaptureItem>> PartialEq for Settings<Flags, T>
impl<Flags: Eq, T: Eq + TryInto<GraphicsCaptureItem>> Eq for Settings<Flags, T>
impl<Flags, T: TryInto<GraphicsCaptureItem>> 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