VttCue

Struct VttCue 

Source
pub struct VttCue { /* private fields */ }
Expand description

The VttCue class.

MDN Documentation

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

Implementations§

Source§

impl VttCue

Source

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

Getter for the region field of this object.

MDN Documentation

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

Source§

impl VttCue

Source

pub fn set_region(&self, value: Option<&VttRegion>)

Setter for the region field of this object.

MDN Documentation

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

Source§

impl VttCue

Source

pub fn vertical(&self) -> DirectionSetting

Getter for the vertical field of this object.

MDN Documentation

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

Source§

impl VttCue

Source

pub fn set_vertical(&self, value: DirectionSetting)

Setter for the vertical field of this object.

MDN Documentation

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

Source§

impl VttCue

Source

pub fn snap_to_lines(&self) -> bool

Getter for the snapToLines field of this object.

MDN Documentation

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

Source§

impl VttCue

Source

pub fn set_snap_to_lines(&self, value: bool)

Setter for the snapToLines field of this object.

MDN Documentation

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

Source§

impl VttCue

Source

pub fn line(&self) -> JsValue

Getter for the line field of this object.

MDN Documentation

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

Source§

impl VttCue

Source

pub fn set_line(&self, value: &JsValue)

👎Deprecated

Setter for the line field of this object.

MDN Documentation

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

Source§

impl VttCue

Source

pub fn set_line_f64(&self, value: f64)

Setter for the line field of this object.

MDN Documentation

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

Source§

impl VttCue

Source

pub fn set_line_auto_keyword(&self, value: AutoKeyword)

Setter for the line field of this object.

MDN Documentation

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

Source§

impl VttCue

Source

pub fn line_align(&self) -> LineAlignSetting

Getter for the lineAlign field of this object.

MDN Documentation

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

Source§

impl VttCue

Source

pub fn set_line_align(&self, value: LineAlignSetting)

Setter for the lineAlign field of this object.

MDN Documentation

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

Source§

impl VttCue

Source

pub fn position(&self) -> JsValue

Getter for the position field of this object.

MDN Documentation

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

Source§

impl VttCue

Source

pub fn set_position(&self, value: &JsValue)

👎Deprecated

Setter for the position field of this object.

MDN Documentation

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

Source§

impl VttCue

Source

pub fn set_position_f64(&self, value: f64)

Setter for the position field of this object.

MDN Documentation

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

Source§

impl VttCue

Source

pub fn set_position_auto_keyword(&self, value: AutoKeyword)

Setter for the position field of this object.

MDN Documentation

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

Source§

impl VttCue

Source

pub fn position_align(&self) -> PositionAlignSetting

Getter for the positionAlign field of this object.

MDN Documentation

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

Source§

impl VttCue

Source

pub fn set_position_align(&self, value: PositionAlignSetting)

Setter for the positionAlign field of this object.

MDN Documentation

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

Source§

impl VttCue

Source

pub fn size(&self) -> f64

Getter for the size field of this object.

MDN Documentation

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

Source§

impl VttCue

Source

pub fn set_size(&self, value: f64)

Setter for the size field of this object.

MDN Documentation

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

Source§

impl VttCue

Source

pub fn align(&self) -> AlignSetting

Getter for the align field of this object.

MDN Documentation

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

Source§

impl VttCue

Source

pub fn set_align(&self, value: AlignSetting)

Setter for the align field of this object.

MDN Documentation

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

Source§

impl VttCue

Source

pub fn text(&self) -> String

Getter for the text field of this object.

MDN Documentation

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

Source§

impl VttCue

Source

pub fn set_text(&self, value: &str)

Setter for the text field of this object.

MDN Documentation

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

Source§

impl VttCue

Source

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

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

MDN Documentation

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

Source§

impl VttCue

Source

pub fn get_cue_as_html(&self) -> DocumentFragment

The getCueAsHTML() method.

MDN Documentation

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

Methods from Deref<Target = TextTrackCue>§

Source

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

Getter for the track field of this object.

MDN Documentation

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

Source

pub fn id(&self) -> String

Getter for the id field of this object.

MDN Documentation

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

Source

pub fn set_id(&self, value: &str)

Setter for the id field of this object.

MDN Documentation

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

Source

pub fn start_time(&self) -> f64

Getter for the startTime field of this object.

MDN Documentation

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

Source

pub fn set_start_time(&self, value: f64)

Setter for the startTime field of this object.

MDN Documentation

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

Source

pub fn end_time(&self) -> f64

Getter for the endTime field of this object.

MDN Documentation

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

Source

pub fn set_end_time(&self, value: f64)

Setter for the endTime field of this object.

MDN Documentation

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

Source

pub fn pause_on_exit(&self) -> bool

Getter for the pauseOnExit field of this object.

MDN Documentation

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

Source

pub fn set_pause_on_exit(&self, value: bool)

Setter for the pauseOnExit field of this object.

MDN Documentation

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

Source

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

Getter for the onenter field of this object.

MDN Documentation

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

Source

pub fn set_onenter(&self, value: Option<&Function>)

Setter for the onenter field of this object.

MDN Documentation

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

Source

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

Getter for the onexit field of this object.

MDN Documentation

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

Source

pub fn set_onexit(&self, value: Option<&Function>)

Setter for the onexit field of this object.

MDN Documentation

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

Methods from Deref<Target = EventTarget>§

Source

pub fn add_event_listener_with_callback( &self, type_: &str, listener: &Function, ) -> Result<(), JsValue>

The addEventListener() method.

MDN Documentation

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

Source

pub fn add_event_listener_with_event_listener( &self, type_: &str, listener: &EventListener, ) -> Result<(), JsValue>

The addEventListener() method.

MDN Documentation

This API requires the following crate features to be activated: EventListener, EventTarget

Source

pub fn add_event_listener_with_callback_and_add_event_listener_options( &self, type_: &str, listener: &Function, options: &AddEventListenerOptions, ) -> Result<(), JsValue>

The addEventListener() method.

MDN Documentation

This API requires the following crate features to be activated: AddEventListenerOptions, EventTarget

Source

pub fn add_event_listener_with_event_listener_and_add_event_listener_options( &self, type_: &str, listener: &EventListener, options: &AddEventListenerOptions, ) -> Result<(), JsValue>

The addEventListener() method.

MDN Documentation

This API requires the following crate features to be activated: AddEventListenerOptions, EventListener, EventTarget

Source

pub fn add_event_listener_with_callback_and_bool( &self, type_: &str, listener: &Function, options: bool, ) -> Result<(), JsValue>

The addEventListener() method.

MDN Documentation

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

Source

pub fn add_event_listener_with_event_listener_and_bool( &self, type_: &str, listener: &EventListener, options: bool, ) -> Result<(), JsValue>

The addEventListener() method.

MDN Documentation

This API requires the following crate features to be activated: EventListener, EventTarget

Source

pub fn add_event_listener_with_callback_and_add_event_listener_options_and_wants_untrusted( &self, type_: &str, listener: &Function, options: &AddEventListenerOptions, wants_untrusted: Option<bool>, ) -> Result<(), JsValue>

The addEventListener() method.

MDN Documentation

This API requires the following crate features to be activated: AddEventListenerOptions, EventTarget

Source

pub fn add_event_listener_with_event_listener_and_add_event_listener_options_and_wants_untrusted( &self, type_: &str, listener: &EventListener, options: &AddEventListenerOptions, wants_untrusted: Option<bool>, ) -> Result<(), JsValue>

The addEventListener() method.

MDN Documentation

This API requires the following crate features to be activated: AddEventListenerOptions, EventListener, EventTarget

Source

pub fn add_event_listener_with_callback_and_bool_and_wants_untrusted( &self, type_: &str, listener: &Function, options: bool, wants_untrusted: Option<bool>, ) -> Result<(), JsValue>

The addEventListener() method.

MDN Documentation

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

Source

pub fn add_event_listener_with_event_listener_and_bool_and_wants_untrusted( &self, type_: &str, listener: &EventListener, options: bool, wants_untrusted: Option<bool>, ) -> Result<(), JsValue>

The addEventListener() method.

MDN Documentation

This API requires the following crate features to be activated: EventListener, EventTarget

Source

pub fn dispatch_event(&self, event: &Event) -> Result<bool, JsValue>

The dispatchEvent() method.

MDN Documentation

This API requires the following crate features to be activated: Event, EventTarget

Source

pub fn remove_event_listener_with_callback( &self, type_: &str, listener: &Function, ) -> Result<(), JsValue>

The removeEventListener() method.

MDN Documentation

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

Source

pub fn remove_event_listener_with_event_listener( &self, type_: &str, listener: &EventListener, ) -> Result<(), JsValue>

The removeEventListener() method.

MDN Documentation

This API requires the following crate features to be activated: EventListener, EventTarget

Source

pub fn remove_event_listener_with_callback_and_event_listener_options( &self, type_: &str, listener: &Function, options: &EventListenerOptions, ) -> Result<(), JsValue>

The removeEventListener() method.

MDN Documentation

This API requires the following crate features to be activated: EventListenerOptions, EventTarget

Source

pub fn remove_event_listener_with_event_listener_and_event_listener_options( &self, type_: &