Struct windows_capture::settings::Settings
source ยท pub struct Settings<Flags, T: TryInto<GraphicsCaptureItem>> {
pub item: T,
pub cursor_capture: CursorCaptureSettings,
pub draw_border: DrawBorderSettings,
pub color_format: ColorFormat,
pub flags: Flags,
}Expand description
Represents the settings for screen capturing.
Fieldsยง
ยงitem: TThe graphics capture item to capture.
cursor_capture: CursorCaptureSettingsSpecifies whether to capture the cursor.
draw_border: DrawBorderSettingsSpecifies whether to draw a border around the captured region.
color_format: ColorFormatThe color format for the captured graphics.
flags: FlagsAdditional flags for capturing graphics.
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.
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> 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