pub enum FrameCaptureMode {
Sporadic,
Next,
NextMask(ImageMaskMode),
All,
AllMask(ImageMaskMode),
}Expand description
Frame image capture mode in a window.
You can set the capture mode using WindowVars::frame_capture_mode.
Variants§
Sporadic
Frames are not automatically captured, but you can
use WINDOWS.frame_image to capture frames.
Next
The next rendered frame will be captured and available in FrameImageReadyArgs::frame_image
as a full BGRA8 image.
After the frame is captured the mode changes to Sporadic.
NextMask(ImageMaskMode)
The next rendered frame will be captured and available in FrameImageReadyArgs::frame_image
as an A8 mask image.
After the frame is captured the mode changes to Sporadic.
All
All subsequent frames rendered will be captured and available in FrameImageReadyArgs::frame_image
as full BGRA8 images.
AllMask(ImageMaskMode)
All subsequent frames rendered will be captured and available in FrameImageReadyArgs::frame_image
as A8 mask images.
Trait Implementations§
Source§impl Clone for FrameCaptureMode
impl Clone for FrameCaptureMode
Source§fn clone(&self) -> FrameCaptureMode
fn clone(&self) -> FrameCaptureMode
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for FrameCaptureMode
impl Debug for FrameCaptureMode
Source§impl<'de> Deserialize<'de> for FrameCaptureMode
impl<'de> Deserialize<'de> for FrameCaptureMode
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl PartialEq for FrameCaptureMode
impl PartialEq for FrameCaptureMode
Source§impl Serialize for FrameCaptureMode
impl Serialize for FrameCaptureMode
impl Copy for FrameCaptureMode
impl Eq for FrameCaptureMode
impl StructuralPartialEq for FrameCaptureMode
Auto Trait Implementations§
impl Freeze for FrameCaptureMode
impl RefUnwindSafe for FrameCaptureMode
impl Send for FrameCaptureMode
impl Sync for FrameCaptureMode
impl Unpin for FrameCaptureMode
impl UnwindSafe for FrameCaptureMode
Blanket Implementations§
Source§impl<T> AnyVarValue for T
impl<T> AnyVarValue for T
Source§fn clone_boxed(&self) -> BoxAnyVarValue
fn clone_boxed(&self) -> BoxAnyVarValue
Source§fn eq_any(&self, other: &(dyn AnyVarValue + 'static)) -> bool
fn eq_any(&self, other: &(dyn AnyVarValue + 'static)) -> bool
self and other are equal.Source§fn try_swap(&mut self, other: &mut (dyn AnyVarValue + 'static)) -> bool
fn try_swap(&mut self, other: &mut (dyn AnyVarValue + 'static)) -> bool
other if both are of the same type.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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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>
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>
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