#[non_exhaustive]pub enum OverlayKind {
Callout {
text: String,
region: Region,
style: CalloutStyle,
soft: bool,
},
Caption {
text: String,
},
Spotlight {
region: Region,
},
Hide {
region: Region,
},
Zoom {
region: Region,
},
FadeIn,
FadeOut,
PointerHighlight,
Hotspot {
region: Region,
title: String,
text: String,
stop: bool,
},
}Expand description
What an overlay does.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Callout
A balloon with text, placed on the film.
Fields
§
style: CalloutStyleHow it looks.
Caption
A line of text at the bottom, as subtitles.
Spotlight
Darkens everything but this region.
Hide
Covers this region, for what the film should not show.
Zoom
Zooms into this region and back out, sliding between them.
FadeIn
Comes in from black.
FadeOut
Goes out to black.
PointerHighlight
A soft circle follows the pointer, and clicks show bigger.
Hotspot
A spot that talks to whoever is watching.
Trait Implementations§
Source§impl Clone for OverlayKind
impl Clone for OverlayKind
Source§fn clone(&self) -> OverlayKind
fn clone(&self) -> OverlayKind
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for OverlayKind
impl Debug for OverlayKind
Source§impl<'de> Deserialize<'de> for OverlayKind
impl<'de> Deserialize<'de> for OverlayKind
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for OverlayKind
impl PartialEq for OverlayKind
Source§impl Serialize for OverlayKind
impl Serialize for OverlayKind
impl StructuralPartialEq for OverlayKind
Auto Trait Implementations§
impl Freeze for OverlayKind
impl RefUnwindSafe for OverlayKind
impl Send for OverlayKind
impl Sync for OverlayKind
impl Unpin for OverlayKind
impl UnsafeUnpin for OverlayKind
impl UnwindSafe for OverlayKind
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