[][src]Struct web_sys::VttCue

#[repr(transparent)]
pub struct VttCue { /* fields omitted */ }

The VTTCue object

MDN Documentation

This API requires the following crate features to be activated: VttCue

Methods

impl VttCue[src]

pub fn new(
    start_time: f64,
    end_time: f64,
    text: &str
) -> Result<VttCue, JsValue>
[src]

The new VTTCue(..) constructor, creating a new instance of VTTCue

MDN Documentation

This API requires the following crate features to be activated: VttCue

impl VttCue[src]

pub fn get_cue_as_html(&self) -> DocumentFragment[src]

The getCueAsHTML() method

MDN Documentation

This API requires the following crate features to be activated: DocumentFragment, VttCue

impl VttCue[src]

pub fn region(&self) -> Option<VttRegion>[src]

The region getter

MDN Documentation

This API requires the following crate features to be activated: VttCue, VttRegion

impl VttCue[src]

pub fn set_region(&self, region: Option<&VttRegion>)[src]

The region setter

MDN Documentation

This API requires the following crate features to be activated: VttCue, VttRegion

impl VttCue[src]

pub fn vertical(&self) -> DirectionSetting[src]

The vertical getter

MDN Documentation

This API requires the following crate features to be activated: DirectionSetting, VttCue

impl VttCue[src]

pub fn set_vertical(&self, vertical: DirectionSetting)[src]

The vertical setter

MDN Documentation

This API requires the following crate features to be activated: DirectionSetting, VttCue

impl VttCue[src]

pub fn snap_to_lines(&self) -> bool[src]

The snapToLines getter

MDN Documentation

This API requires the following crate features to be activated: VttCue

impl VttCue[src]

pub fn set_snap_to_lines(&self, snap_to_lines: bool)[src]

The snapToLines setter

MDN Documentation

This API requires the following crate features to be activated: VttCue

impl VttCue[src]

pub fn line(&self) -> JsValue[src]

The line getter

MDN Documentation

This API requires the following crate features to be activated: VttCue

impl VttCue[src]

pub fn set_line(&self, line: &JsValue)[src]

The line setter

MDN Documentation

This API requires the following crate features to be activated: VttCue

impl VttCue[src]

pub fn line_align(&self) -> LineAlignSetting[src]

The lineAlign getter

MDN Documentation

This API requires the following crate features to be activated: LineAlignSetting, VttCue

impl VttCue[src]

pub fn set_line_align(&self, line_align: LineAlignSetting)[src]

The lineAlign setter

MDN Documentation

This API requires the following crate features to be activated: LineAlignSetting, VttCue

impl VttCue[src]

pub fn position(&self) -> JsValue[src]

The position getter

MDN Documentation

This API requires the following crate features to be activated: VttCue

impl VttCue[src]

pub fn set_position(&self, position: &JsValue)[src]

The position setter

MDN Documentation

This API requires the following crate features to be activated: VttCue

impl VttCue[src]

pub fn position_align(&self) -> PositionAlignSetting[src]

The positionAlign getter

MDN Documentation

This API requires the following crate features to be activated: PositionAlignSetting, VttCue

impl VttCue[src]

pub fn set_position_align(&self, position_align: PositionAlignSetting)[src]

The positionAlign setter

MDN Documentation

This API requires the following crate features to be activated: PositionAlignSetting, VttCue

impl VttCue[src]

pub fn size(&self) -> f64[src]

The size getter

MDN Documentation

This API requires the following crate features to be activated: VttCue

impl VttCue[src]

pub fn set_size(&self, size: f64)[src]

The size setter

MDN Documentation

This API requires the following crate features to be activated: VttCue

impl VttCue[src]

pub fn align(&self) -> AlignSetting[src]

The align getter

MDN Documentation

This API requires the following crate features to be activated: AlignSetting, VttCue

impl VttCue[src]

pub fn set_align(&self, align: AlignSetting)[src]

The align setter

MDN Documentation

This API requires the following crate features to be activated: AlignSetting, VttCue

impl VttCue[src]

pub fn text(&self) -> String[src]

The text getter

MDN Documentation

This API requires the following crate features to be activated: VttCue

impl VttCue[src]

pub fn set_text(&self, text: &str)[src]

The text setter

MDN Documentation

This API requires the following crate features to be activated: VttCue

Methods from Deref<Target = TextTrackCue>

pub fn track(&self) -> Option<TextTrack>[src]

The track getter

MDN Documentation

This API requires the following crate features to be activated: TextTrack, TextTrackCue

pub fn id(&self) -> String[src]

The id getter

MDN Documentation

This API requires the following crate features to be activated: TextTrackCue

pub fn set_id(&self, id: &str)[src]

The id setter

MDN Documentation

This API requires the following crate features to be activated: TextTrackCue

pub fn start_time(&self) -> f64[src]

The startTime getter

MDN Documentation

This API requires the following crate features to be activated: TextTrackCue

pub fn set_start_time(&self, start_time: f64)[src]

The startTime setter

MDN Documentation

This API requires the following crate features to be activated: TextTrackCue

pub fn end_time(&self) -> f64[src]

The endTime getter

MDN Documentation

This API requires the following crate features to be activated: TextTrackCue

pub fn set_end_time(&self, end_time: f64)[src]

The endTime setter

MDN Documentation

This API requires the following crate features to be activated: TextTrackCue

pub fn pause_on_exit(&self) -> bool[src]

The pauseOnExit getter

MDN Documentation

This API requires the following crate features to be activated: TextTrackCue

pub fn set_pause_on_exit(&self, pause_on_exit: bool)[src]

The pauseOnExit setter

MDN Documentation

This API requires the following crate features to be activated: TextTrackCue

pub fn onenter(&self) -> Option<Function>[src]

The onenter getter

MDN Documentation

This API requires the following crate features to be activated: TextTrackCue

pub fn set_onenter(&self, onenter: Option<&Function>)[src]

The onenter setter

MDN Documentation

This API requires the following crate features to be activated: TextTrackCue

pub fn onexit(&self) -> Option<Function>[src]

The onexit getter

MDN Documentation

This API requires the following crate features to be activated: TextTrackCue

pub fn set_onexit(&self, onexit: Option<&Function>)[src]

The onexit setter

MDN Documentation

This API requires the following crate features to be activated: TextTrackCue

Trait Implementations

impl From<JsValue> for VttCue[src]

impl From<VttCue> for JsValue[src]

impl From<VttCue> for TextTrackCue[src]

impl From<VttCue> for EventTarget[src]

impl From<VttCue> for Object[src]

impl AsRef<JsValue> for VttCue[src]

impl AsRef<TextTrackCue> for VttCue[src]

impl AsRef<EventTarget> for VttCue[src]

impl AsRef<Object> for VttCue[src]

impl Clone for VttCue[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for VttCue[src]

impl Deref for VttCue[src]

type Target = TextTrackCue

The resulting type after dereferencing.

impl JsCast for VttCue[src]

fn is_instance_of<T>(&self) -> bool where
    T: JsCast
[src]

Test whether this JS value is an instance of the type T. Read more

fn dyn_into<T>(self) -> Result<T, Self> where
    T: JsCast
[src]

Performs a dynamic cast (checked at runtime) of this value into the target type T. Read more

fn dyn_ref<T>(&self) -> Option<&T> where
    T: JsCast
[src]

Performs a dynamic cast (checked at runtime) of this value into the target type T. Read more

fn unchecked_into<T>(self) -> T where
    T: JsCast
[src]

Performs a zero-cost unchecked cast into the specified type. Read more

fn unchecked_ref<T>(&self) -> &T where
    T: JsCast
[src]

Performs a zero-cost unchecked cast into a reference to the specified type. Read more

impl WasmDescribe for VttCue[src]

impl FromWasmAbi for VttCue[src]

type Abi = <JsValue as FromWasmAbi>::Abi

The wasm ABI type that this converts from when coming back out from the ABI boundary. Read more

impl IntoWasmAbi for VttCue[src]

type Abi = <JsValue as IntoWasmAbi>::Abi

The wasm ABI type that this converts into when crossing the ABI boundary. Read more

impl<'a> IntoWasmAbi for &'a VttCue[src]

type Abi = <&'a JsValue as IntoWasmAbi>::Abi

The wasm ABI type that this converts into when crossing the ABI boundary. Read more

impl OptionFromWasmAbi for VttCue[src]

impl OptionIntoWasmAbi for VttCue[src]

impl<'a> OptionIntoWasmAbi for &'a VttCue[src]

impl RefFromWasmAbi for VttCue[src]

type Abi = <JsValue as RefFromWasmAbi>::Abi

The wasm ABI type references to Self are recovered from.

type Anchor = ManuallyDrop<VttCue>

The type that holds the reference to Self for the duration of the invocation of the function that has an &Self parameter. This is required to ensure that the lifetimes don't persist beyond one function call, and so that they remain anonymous. Read more

Auto Trait Implementations

impl !Send for VttCue

impl !Sync for VttCue

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> From for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> ReturnWasmAbi for T where
    T: IntoWasmAbi
[src]

type Abi = <T as IntoWasmAbi>::Abi

Same as IntoWasmAbi::Abi