[−][src]Struct web_sys::VttCue
The VTTCue object
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]
start_time: f64,
end_time: f64,
text: &str
) -> Result<VttCue, JsValue>
The new VTTCue(..) constructor, creating a new instance of VTTCue
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
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
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
This API requires the following crate features to be activated: VttCue, VttRegion
impl VttCue[src]
pub fn vertical(&self) -> DirectionSetting[src]
The vertical getter
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
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
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
This API requires the following crate features to be activated: VttCue
impl VttCue[src]
pub fn line(&self) -> JsValue[src]
The line getter
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
This API requires the following crate features to be activated: VttCue
impl VttCue[src]
pub fn line_align(&self) -> LineAlignSetting[src]
The lineAlign getter
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
This API requires the following crate features to be activated: LineAlignSetting, VttCue
impl VttCue[src]
pub fn position(&self) -> JsValue[src]
The position getter
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
This API requires the following crate features to be activated: VttCue
impl VttCue[src]
pub fn position_align(&self) -> PositionAlignSetting[src]
The positionAlign getter
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
This API requires the following crate features to be activated: PositionAlignSetting, VttCue
impl VttCue[src]
pub fn size(&self) -> f64[src]
The size getter
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
This API requires the following crate features to be activated: VttCue
impl VttCue[src]
pub fn align(&self) -> AlignSetting[src]
The align getter
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
This API requires the following crate features to be activated: AlignSetting, VttCue
impl VttCue[src]
pub fn text(&self) -> String[src]
The text getter
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
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
This API requires the following crate features to be activated: TextTrack, TextTrackCue
pub fn id(&self) -> String[src]
The id getter
This API requires the following crate features to be activated: TextTrackCue
pub fn set_id(&self, id: &str)[src]
The id setter
This API requires the following crate features to be activated: TextTrackCue
pub fn start_time(&self) -> f64[src]
The startTime getter
This API requires the following crate features to be activated: TextTrackCue
pub fn set_start_time(&self, start_time: f64)[src]
The startTime setter
This API requires the following crate features to be activated: TextTrackCue
pub fn end_time(&self) -> f64[src]
The endTime getter
This API requires the following crate features to be activated: TextTrackCue
pub fn set_end_time(&self, end_time: f64)[src]
The endTime setter
This API requires the following crate features to be activated: TextTrackCue
pub fn pause_on_exit(&self) -> bool[src]
The pauseOnExit getter
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
This API requires the following crate features to be activated: TextTrackCue
pub fn onenter(&self) -> Option<Function>[src]
The onenter getter
This API requires the following crate features to be activated: TextTrackCue
pub fn set_onenter(&self, onenter: Option<&Function>)[src]
The onenter setter
This API requires the following crate features to be activated: TextTrackCue
pub fn onexit(&self) -> Option<Function>[src]
The onexit getter
This API requires the following crate features to be activated: TextTrackCue
pub fn set_onexit(&self, onexit: Option<&Function>)[src]
The onexit setter
This API requires the following crate features to be activated: TextTrackCue
Trait Implementations
impl Clone for VttCue[src]
fn clone(&self) -> VttCue[src]
fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more
impl AsRef<JsValue> for VttCue[src]
impl AsRef<TextTrackCue> for VttCue[src]
fn as_ref(&self) -> &TextTrackCue[src]
impl AsRef<EventTarget> for VttCue[src]
fn as_ref(&self) -> &EventTarget[src]
impl AsRef<Object> for VttCue[src]
impl From<JsValue> for VttCue[src]
impl From<VttCue> for JsValue[src]
impl From<VttCue> for TextTrackCue[src]
fn from(obj: VttCue) -> TextTrackCue[src]
impl From<VttCue> for EventTarget[src]
fn from(obj: VttCue) -> EventTarget[src]
impl From<VttCue> for Object[src]
impl Debug for VttCue[src]
impl Deref for VttCue[src]
type Target = TextTrackCue
The resulting type after dereferencing.
fn deref(&self) -> &TextTrackCue[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
unsafe fn from_abi(js: Self::Abi, extra: &mut dyn Stack) -> Self[src]
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
fn into_abi(self, extra: &mut dyn Stack) -> Self::Abi[src]
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
fn into_abi(self, extra: &mut dyn Stack) -> Self::Abi[src]
impl WasmDescribe for VttCue[src]
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
unsafe fn ref_from_abi(js: Self::Abi, extra: &mut dyn Stack) -> Self::Anchor[src]
impl JsCast for VttCue[src]
fn instanceof(val: &JsValue) -> bool[src]
fn unchecked_from_js(val: JsValue) -> Self[src]
fn unchecked_from_js_ref(val: &JsValue) -> &Self[src]
fn is_instance_of<T>(&self) -> bool where
T: JsCast, [src]
T: JsCast,
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]
T: JsCast,
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]
T: JsCast,
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]
T: JsCast,
Performs a zero-cost unchecked cast into the specified type. Read more
fn unchecked_ref<T>(&self) -> &T where
T: JsCast, [src]
T: JsCast,
Performs a zero-cost unchecked cast into a reference to the specified type. Read more
Auto Trait Implementations
Blanket Implementations
impl<T> From for T[src]
impl<T, U> Into for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
impl<T, U> TryFrom for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T> Borrow for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T, U> TryInto for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<T> ReturnWasmAbi for T where
T: IntoWasmAbi, [src]
T: IntoWasmAbi,
type Abi = <T as IntoWasmAbi>::Abi
Same as IntoWasmAbi::Abi