pub struct RenderedOverlay {
pub text: String,
pub position: OverlayPosition,
pub fg_color: Rgba,
pub bg_color: Rgba,
pub font_height: u32,
pub margin: u32,
pub show_background: bool,
pub text_char_width: usize,
}Expand description
Rendered overlay result containing text, position info, and styling.
Fields§
§text: StringThe formatted timecode text to display.
position: OverlayPositionThe overlay position.
fg_color: RgbaForeground colour.
bg_color: RgbaBackground colour.
font_height: u32Font pixel height (for a 1080p frame).
margin: u32Margin in pixels.
show_background: boolWhether a background box should be rendered.
text_char_width: usizeApproximate text width in characters.
Trait Implementations§
Source§impl Clone for RenderedOverlay
impl Clone for RenderedOverlay
Source§fn clone(&self) -> RenderedOverlay
fn clone(&self) -> RenderedOverlay
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 moreAuto Trait Implementations§
impl Freeze for RenderedOverlay
impl RefUnwindSafe for RenderedOverlay
impl Send for RenderedOverlay
impl Sync for RenderedOverlay
impl Unpin for RenderedOverlay
impl UnsafeUnpin for RenderedOverlay
impl UnwindSafe for RenderedOverlay
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