pub struct Settings<Flags, T: TryInto<GraphicsCaptureItemType>> { /* private fields */ }展开描述
表示屏幕捕获会话的设置。
实现§
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
构造一个新的 Settings 配置。
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 实现§
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>
自动 trait 实现§
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 实现§
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
从拥有的值可变地借用。 了解更多
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>
当
into_left 为 true 时,将 self 转换为
Left 变体的
Either<Self, Self>;
否则将其转换为
Right 变体的
Either<Self, Self>。
了解更多Source§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
当
into_left(&self) 返回 true 时,将 self 转换为
Left 变体的
Either<Self, Self>;
否则将其转换为
Right 变体的
Either<Self, Self>。
了解更多