pub enum CaptionStyle {
Outline,
Boxed,
BarBottom,
BoldCenter,
Bold,
Karaoke,
Pop,
}Expand description
How captions look.
Variants§
Outline
Text with a dark band around the glyphs, near the bottom.
Boxed
Text on a panel behind each line, near the bottom.
BarBottom
Text centered on a translucent bar across the canvas near the bottom, shown as long as the captions.
BoldCenter
Larger outlined text a little below the middle, as short-form video draws it.
Bold
White text with a black stroke and a soft shadow, near the bottom.
Karaoke
bold, each word turning the highlight color as it is said. Needs word times (words
or WebVTT inline timestamps), else draws as bold.
Pop
bold, the word being said growing a little in the highlight color. Needs word times.
Trait Implementations§
Source§impl Clone for CaptionStyle
impl Clone for CaptionStyle
impl Copy for CaptionStyle
Source§impl Debug for CaptionStyle
impl Debug for CaptionStyle
Source§impl Default for CaptionStyle
impl Default for CaptionStyle
Source§impl<'de> Deserialize<'de> for CaptionStyle
impl<'de> Deserialize<'de> for CaptionStyle
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
impl Eq for CaptionStyle
Source§impl PartialEq for CaptionStyle
impl PartialEq for CaptionStyle
Source§impl Serialize for CaptionStyle
impl Serialize for CaptionStyle
impl StructuralPartialEq for CaptionStyle
Auto Trait Implementations§
impl Freeze for CaptionStyle
impl RefUnwindSafe for CaptionStyle
impl Send for CaptionStyle
impl Sync for CaptionStyle
impl Unpin for CaptionStyle
impl UnsafeUnpin for CaptionStyle
impl UnwindSafe for CaptionStyle
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