pub struct Cue {
pub content: CueContent,
pub line: Option<CueLine>,
pub line_anchor: CueAnchor,
pub position: Option<f32>,
pub position_anchor: CueAnchor,
pub size: Option<f32>,
pub text_alignment: CueTextAlignment,
pub vertical: Option<CueVertical>,
pub window_color: Option<Color>,
}Expand description
One subtitle or caption to show: Media3’s Cue.
Fields§
§content: CueContent§line: Option<CueLine>Where its box sits from the top: a fraction of the picture’s height, or a line number;
None for the default, the bottom.
line_anchor: CueAnchorWhich side of its box line places.
position: Option<f32>Where its box sits across, as a fraction of the picture’s width; None for the default,
the centre.
position_anchor: CueAnchorWhich side of its box position places.
size: Option<f32>Its box’s width as a fraction of the picture’s; None to fit what it holds.
text_alignment: CueTextAlignment§vertical: Option<CueVertical>Whether its text runs in columns, and which way they follow each other; None for rows.
window_color: Option<Color>The colour of the box behind it; None where the media says none, Media3’s
windowColorSet false.
Implementations§
Trait Implementations§
impl StructuralPartialEq for Cue
Auto Trait Implementations§
impl Freeze for Cue
impl RefUnwindSafe for Cue
impl Send for Cue
impl Sync for Cue
impl Unpin for Cue
impl UnsafeUnpin for Cue
impl UnwindSafe for Cue
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