pub struct ActiveCaption<'a> {
pub track_id: &'a TrackId,
pub text: &'a str,
pub style: &'a TextStyle,
pub layers_below: usize,
}Expand description
The cue one caption track shows at a timestamp.
Fields§
§track_id: &'a TrackIdThe caption track.
text: &'a strThe cue’s text.
style: &'a TextStyleThe track’s style.
layers_below: usizeHow many of the frame’s FrameDesc::visual clips lie under the
caption, by track order: those on tracks before the caption’s,
whether or not the frame draws them (FrameDesc::draws). It is
composited after the drawn clips among the first layers_below of
visual and before every drawn clip after them, so a clip that is
not drawn never moves a caption past a track.
Trait Implementations§
Source§impl<'a> Clone for ActiveCaption<'a>
impl<'a> Clone for ActiveCaption<'a>
impl<'a> Copy for ActiveCaption<'a>
Source§impl<'a> Debug for ActiveCaption<'a>
impl<'a> Debug for ActiveCaption<'a>
Source§impl<'a> PartialEq for ActiveCaption<'a>
impl<'a> PartialEq for ActiveCaption<'a>
impl<'a> StructuralPartialEq for ActiveCaption<'a>
Auto Trait Implementations§
impl<'a> Freeze for ActiveCaption<'a>
impl<'a> RefUnwindSafe for ActiveCaption<'a>
impl<'a> Send for ActiveCaption<'a>
impl<'a> Sync for ActiveCaption<'a>
impl<'a> Unpin for ActiveCaption<'a>
impl<'a> UnsafeUnpin for ActiveCaption<'a>
impl<'a> UnwindSafe for ActiveCaption<'a>
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