pub struct VttCue { /* private fields */ }
Expand description
The VttCue
class.
This API requires the following crate features to be activated: VttCue
Implementations§
Source§impl VttCue
impl VttCue
Source§impl VttCue
impl VttCue
Sourcepub fn set_region(&self, value: Option<&VttRegion>)
pub fn set_region(&self, value: Option<&VttRegion>)
Setter for the region
field of this object.
This API requires the following crate features to be activated: VttCue
, VttRegion
Source§impl VttCue
impl VttCue
Sourcepub fn vertical(&self) -> DirectionSetting
pub fn vertical(&self) -> DirectionSetting
Getter for the vertical
field of this object.
This API requires the following crate features to be activated: DirectionSetting
, VttCue
Source§impl VttCue
impl VttCue
Sourcepub fn set_vertical(&self, value: DirectionSetting)
pub fn set_vertical(&self, value: DirectionSetting)
Setter for the vertical
field of this object.
This API requires the following crate features to be activated: DirectionSetting
, VttCue
Source§impl VttCue
impl VttCue
Sourcepub fn snap_to_lines(&self) -> bool
pub fn snap_to_lines(&self) -> bool
Getter for the snapToLines
field of this object.
This API requires the following crate features to be activated: VttCue
Source§impl VttCue
impl VttCue
Sourcepub fn set_snap_to_lines(&self, value: bool)
pub fn set_snap_to_lines(&self, value: bool)
Setter for the snapToLines
field of this object.
This API requires the following crate features to be activated: VttCue
Source§impl VttCue
impl VttCue
Source§impl VttCue
impl VttCue
Source§impl VttCue
impl VttCue
Sourcepub fn set_line_f64(&self, value: f64)
pub fn set_line_f64(&self, value: f64)
Setter for the line
field of this object.
This API requires the following crate features to be activated: VttCue
Source§impl VttCue
impl VttCue
Sourcepub fn set_line_auto_keyword(&self, value: AutoKeyword)
pub fn set_line_auto_keyword(&self, value: AutoKeyword)
Setter for the line
field of this object.
This API requires the following crate features to be activated: AutoKeyword
, VttCue
Source§impl VttCue
impl VttCue
Sourcepub fn line_align(&self) -> LineAlignSetting
pub fn line_align(&self) -> LineAlignSetting
Getter for the lineAlign
field of this object.
This API requires the following crate features to be activated: LineAlignSetting
, VttCue
Source§impl VttCue
impl VttCue
Sourcepub fn set_line_align(&self, value: LineAlignSetting)
pub fn set_line_align(&self, value: LineAlignSetting)
Setter for the lineAlign
field of this object.
This API requires the following crate features to be activated: LineAlignSetting
, VttCue
Source§impl VttCue
impl VttCue
Source§impl VttCue
impl VttCue
Sourcepub fn set_position(&self, value: &JsValue)
👎Deprecated
pub fn set_position(&self, value: &JsValue)
Setter for the position
field of this object.
This API requires the following crate features to be activated: VttCue
Source§impl VttCue
impl VttCue
Sourcepub fn set_position_f64(&self, value: f64)
pub fn set_position_f64(&self, value: f64)
Setter for the position
field of this object.
This API requires the following crate features to be activated: VttCue
Source§impl VttCue
impl VttCue
Sourcepub fn set_position_auto_keyword(&self, value: AutoKeyword)
pub fn set_position_auto_keyword(&self, value: AutoKeyword)
Setter for the position
field of this object.
This API requires the following crate features to be activated: AutoKeyword
, VttCue
Source§impl VttCue
impl VttCue
Sourcepub fn position_align(&self) -> PositionAlignSetting
pub fn position_align(&self) -> PositionAlignSetting
Getter for the positionAlign
field of this object.
This API requires the following crate features to be activated: PositionAlignSetting
, VttCue
Source§impl VttCue
impl VttCue
Sourcepub fn set_position_align(&self, value: PositionAlignSetting)
pub fn set_position_align(&self, value: PositionAlignSetting)
Setter for the positionAlign
field of this object.
This API requires the following crate features to be activated: PositionAlignSetting
, VttCue
Source§impl VttCue
impl VttCue
Source§impl VttCue
impl VttCue
Source§impl VttCue
impl VttCue
Sourcepub fn align(&self) -> AlignSetting
pub fn align(&self) -> AlignSetting
Getter for the align
field of this object.
This API requires the following crate features to be activated: AlignSetting
, VttCue
Source§impl VttCue
impl VttCue
Sourcepub fn set_align(&self, value: AlignSetting)
pub fn set_align(&self, value: AlignSetting)
Setter for the align
field of this object.
This API requires the following crate features to be activated: AlignSetting
, VttCue
Source§impl VttCue
impl VttCue
Source§impl VttCue
impl VttCue
Source§impl VttCue
impl VttCue
Sourcepub fn get_cue_as_html(&self) -> DocumentFragment
pub fn get_cue_as_html(&self) -> DocumentFragment
The getCueAsHTML()
method.
This API requires the following crate features to be activated: DocumentFragment
, VttCue
Methods from Deref<Target = TextTrackCue>§
Sourcepub fn track(&self) -> Option<TextTrack>
pub fn track(&self) -> Option<TextTrack>
Getter for the track
field of this object.
This API requires the following crate features to be activated: TextTrack
, TextTrackCue
Sourcepub fn id(&self) -> String
pub fn id(&self) -> String
Getter for the id
field of this object.
This API requires the following crate features to be activated: TextTrackCue
Sourcepub fn set_id(&self, value: &str)
pub fn set_id(&self, value: &str)
Setter for the id
field of this object.
This API requires the following crate features to be activated: TextTrackCue
Sourcepub fn start_time(&self) -> f64
pub fn start_time(&self) -> f64
Getter for the startTime
field of this object.
This API requires the following crate features to be activated: TextTrackCue
Sourcepub fn set_start_time(&self, value: f64)
pub fn set_start_time(&self, value: f64)
Setter for the startTime
field of this object.
This API requires the following crate features to be activated: TextTrackCue
Sourcepub fn end_time(&self) -> f64
pub fn end_time(&self) -> f64
Getter for the endTime
field of this object.
This API requires the following crate features to be activated: TextTrackCue
Sourcepub fn set_end_time(&self, value: f64)
pub fn set_end_time(&self, value: f64)
Setter for the endTime
field of this object.
This API requires the following crate features to be activated: TextTrackCue
Sourcepub fn pause_on_exit(&self) -> bool
pub fn pause_on_exit(&self) -> bool
Getter for the pauseOnExit
field of this object.
This API requires the following crate features to be activated: TextTrackCue
Sourcepub fn set_pause_on_exit(&self, value: bool)
pub fn set_pause_on_exit(&self, value: bool)
Setter for the pauseOnExit
field of this object.
This API requires the following crate features to be activated: TextTrackCue
Sourcepub fn onenter(&self) -> Option<Function>
pub fn onenter(&self) -> Option<Function>
Getter for the onenter
field of this object.
This API requires the following crate features to be activated: TextTrackCue
Sourcepub fn set_onenter(&self, value: Option<&Function>)
pub fn set_onenter(&self, value: Option<&Function>)
Setter for the onenter
field of this object.
This API requires the following crate features to be activated: TextTrackCue
Sourcepub fn onexit(&self) -> Option<Function>
pub fn onexit(&self) -> Option<Function>
Getter for the onexit
field of this object.
This API requires the following crate features to be activated: TextTrackCue
Sourcepub fn set_onexit(&self, value: Option<&Function>)
pub fn set_onexit(&self, value: Option<&Function>)
Setter for the onexit
field of this object.
This API requires the following crate features to be activated: TextTrackCue
Methods from Deref<Target = EventTarget>§
Sourcepub fn add_event_listener_with_callback(
&self,
type_: &str,
listener: &Function,
) -> Result<(), JsValue>
pub fn add_event_listener_with_callback( &self, type_: &str, listener: &Function, ) -> Result<(), JsValue>
The addEventListener()
method.
This API requires the following crate features to be activated: EventTarget
Sourcepub fn add_event_listener_with_event_listener(
&self,
type_: &str,
listener: &EventListener,
) -> Result<(), JsValue>
pub fn add_event_listener_with_event_listener( &self, type_: &str, listener: &EventListener, ) -> Result<(), JsValue>
The addEventListener()
method.
This API requires the following crate features to be activated: EventListener
, EventTarget
Sourcepub fn add_event_listener_with_callback_and_add_event_listener_options(
&self,
type_: &str,
listener: &Function,
options: &AddEventListenerOptions,
) -> Result<(), JsValue>
pub fn add_event_listener_with_callback_and_add_event_listener_options( &self, type_: &str, listener: &Function, options: &AddEventListenerOptions, ) -> Result<(), JsValue>
The addEventListener()
method.
This API requires the following crate features to be activated: AddEventListenerOptions
, EventTarget
Sourcepub fn add_event_listener_with_event_listener_and_add_event_listener_options(
&self,
type_: &str,
listener: &EventListener,
options: &AddEventListenerOptions,
) -> Result<(), JsValue>
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.
This API requires the following crate features to be activated: AddEventListenerOptions
, EventListener
, EventTarget
Sourcepub fn add_event_listener_with_callback_and_bool(
&self,
type_: &str,
listener: &Function,
options: bool,
) -> Result<(), JsValue>
pub fn add_event_listener_with_callback_and_bool( &self, type_: &str, listener: &Function, options: bool, ) -> Result<(), JsValue>
The addEventListener()
method.
This API requires the following crate features to be activated: EventTarget
Sourcepub fn add_event_listener_with_event_listener_and_bool(
&self,
type_: &str,
listener: &EventListener,
options: bool,
) -> Result<(), JsValue>
pub fn add_event_listener_with_event_listener_and_bool( &self, type_: &str, listener: &EventListener, options: bool, ) -> Result<(), JsValue>
The addEventListener()
method.
This API requires the following crate features to be activated: EventListener
, EventTarget
Sourcepub 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>
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.
This API requires the following crate features to be activated: AddEventListenerOptions
, EventTarget
Sourcepub 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>
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.
This API requires the following crate features to be activated: AddEventListenerOptions
, EventListener
, EventTarget
Sourcepub fn add_event_listener_with_callback_and_bool_and_wants_untrusted(
&self,
type_: &str,
listener: &Function,
options: bool,
wants_untrusted: Option<bool>,
) -> Result<(), JsValue>
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.
This API requires the following crate features to be activated: EventTarget
Sourcepub 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>
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.
This API requires the following crate features to be activated: EventListener
, EventTarget
Sourcepub fn dispatch_event(&self, event: &Event) -> Result<bool, JsValue>
pub fn dispatch_event(&self, event: &Event) -> Result<bool, JsValue>
The dispatchEvent()
method.
This API requires the following crate features to be activated: Event
, EventTarget
Sourcepub fn remove_event_listener_with_callback(
&self,
type_: &str,
listener: &Function,
) -> Result<(), JsValue>
pub fn remove_event_listener_with_callback( &self, type_: &str, listener: &Function, ) -> Result<(), JsValue>
The removeEventListener()
method.
This API requires the following crate features to be activated: EventTarget
Sourcepub fn remove_event_listener_with_event_listener(
&self,
type_: &str,
listener: &EventListener,
) -> Result<(), JsValue>
pub fn remove_event_listener_with_event_listener( &self, type_: &str, listener: &EventListener, ) -> Result<(), JsValue>
The removeEventListener()
method.
This API requires the following crate features to be activated: EventListener
, EventTarget
Sourcepub fn remove_event_listener_with_callback_and_event_listener_options(
&self,
type_: &str,
listener: &Function,
options: &EventListenerOptions,
) -> Result<(), JsValue>
pub fn remove_event_listener_with_callback_and_event_listener_options( &self, type_: &str, listener: &Function, options: &EventListenerOptions, ) -> Result<(), JsValue>
The removeEventListener()
method.
This API requires the following crate features to be activated: EventListenerOptions
, EventTarget