Enum zng_ext_window::FrameCaptureMode
source · 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 Twhere
T: VarValue,
impl<T> AnyVarValue for Twhere
T: VarValue,
source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
dyn Any
methods.source§fn clone_boxed(&self) -> Box<dyn AnyVarValue>
fn clone_boxed(&self) -> Box<dyn AnyVarValue>
source§fn clone_boxed_var(&self) -> Box<dyn AnyVar>
fn clone_boxed_var(&self) -> Box<dyn AnyVar>
LocalVar<Self>
.source§fn eq_any(&self, other: &(dyn AnyVarValue + 'static)) -> bool
fn eq_any(&self, other: &(dyn AnyVarValue + 'static)) -> bool
self
equals other
.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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)§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
key
and return true
if they are equal.§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