pub struct OverlayConfig {
pub position: OverlayPosition,
pub font_size: FontSize,
pub fg_color: Rgba,
pub bg_color: Rgba,
pub margin: u32,
pub show_df_indicator: bool,
pub show_background: bool,
pub prefix: Option<String>,
pub suffix: Option<String>,
pub show_field_indicator: bool,
pub current_field: u8,
}Expand description
Configuration for the timecode overlay.
Fields§
§position: OverlayPositionPosition of the overlay on screen.
font_size: FontSizeFont size.
fg_color: RgbaForeground (text) colour.
bg_color: RgbaBackground box colour (set alpha to 0 for no background).
margin: u32Margin in pixels from the edge of the frame.
show_df_indicator: boolWhether to show a drop-frame indicator (red dot or “DF” suffix).
show_background: boolWhether to render a background box behind the text.
prefix: Option<String>Optional prefix text (e.g., reel name or “REC”).
suffix: Option<String>Optional suffix text (e.g., scene/take number).
show_field_indicator: boolWhether to show field indicator (F1/F2) for interlaced content.
current_field: u8Current field (1 or 2) when show_field_indicator is true.
Implementations§
Source§impl OverlayConfig
impl OverlayConfig
Sourcepub fn monitoring() -> Self
pub fn monitoring() -> Self
Create a config for monitoring (small, bottom-left, semi-transparent BG).
Sourcepub fn no_background() -> Self
pub fn no_background() -> Self
Create a config with no background box.
Sourcepub fn with_prefix(self, prefix: impl Into<String>) -> Self
pub fn with_prefix(self, prefix: impl Into<String>) -> Self
Set a prefix string.
Sourcepub fn with_suffix(self, suffix: impl Into<String>) -> Self
pub fn with_suffix(self, suffix: impl Into<String>) -> Self
Set a suffix string.
Sourcepub fn with_field(self, field: u8) -> Self
pub fn with_field(self, field: u8) -> Self
Enable field indicator display.
Trait Implementations§
Source§impl Clone for OverlayConfig
impl Clone for OverlayConfig
Source§fn clone(&self) -> OverlayConfig
fn clone(&self) -> OverlayConfig
Returns a duplicate of the value. Read more
1.0.0 · 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 OverlayConfig
impl Debug for OverlayConfig
Source§impl Default for OverlayConfig
impl Default for OverlayConfig
Source§impl<'de> Deserialize<'de> for OverlayConfig
impl<'de> Deserialize<'de> for OverlayConfig
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
Auto Trait Implementations§
impl Freeze for OverlayConfig
impl RefUnwindSafe for OverlayConfig
impl Send for OverlayConfig
impl Sync for OverlayConfig
impl Unpin for OverlayConfig
impl UnsafeUnpin for OverlayConfig
impl UnwindSafe for OverlayConfig
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