pub struct ActiveCaption<'a> {
pub track_id: &'a TrackId,
pub text: &'a TextContent,
pub local_time: MediaTime,
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 TextContentThe cue’s text.
local_time: MediaTimeTime since the cue started, which keys its style’s animators.
style: &'a TextStyleThe track style with the cue’s (or else its speaker’s) named style patch applied.
layers_below: usizeHow many FrameDesc::visual clips lie under the caption by track order, counting clips
the frame does not draw (FrameDesc::draws) so an undrawn clip never shifts a caption.
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