pub struct ImageTrack { /* private fields */ }
Expand description
The ImageTrack
class.
This API requires the following crate features to be activated: ImageTrack
This API is unstable and requires --cfg=web_sys_unstable_apis
to be activated, as
described in the wasm-bindgen
guide
Implementations§
Source§impl ImageTrack
impl ImageTrack
Sourcepub fn animated(&self) -> bool
pub fn animated(&self) -> bool
Getter for the animated
field of this object.
This API requires the following crate features to be activated: ImageTrack
This API is unstable and requires --cfg=web_sys_unstable_apis
to be activated, as
described in the wasm-bindgen
guide
Source§impl ImageTrack
impl ImageTrack
Sourcepub fn frame_count(&self) -> u32
pub fn frame_count(&self) -> u32
Getter for the frameCount
field of this object.
This API requires the following crate features to be activated: ImageTrack
This API is unstable and requires --cfg=web_sys_unstable_apis
to be activated, as
described in the wasm-bindgen
guide
Source§impl ImageTrack
impl ImageTrack
Sourcepub fn repetition_count(&self) -> f32
pub fn repetition_count(&self) -> f32
Getter for the repetitionCount
field of this object.
This API requires the following crate features to be activated: ImageTrack
This API is unstable and requires --cfg=web_sys_unstable_apis
to be activated, as
described in the wasm-bindgen
guide
Source§impl ImageTrack
impl ImageTrack
Sourcepub fn onchange(&self) -> Option<Function>
pub fn onchange(&self) -> Option<Function>
Getter for the onchange
field of this object.
This API requires the following crate features to be activated: ImageTrack
This API is unstable and requires --cfg=web_sys_unstable_apis
to be activated, as
described in the wasm-bindgen
guide
Source§impl ImageTrack
impl ImageTrack
Sourcepub fn set_onchange(&self, value: Option<&Function>)
pub fn set_onchange(&self, value: Option<&Function>)
Setter for the onchange
field of this object.
This API requires the following crate features to be activated: ImageTrack
This API is unstable and requires --cfg=web_sys_unstable_apis
to be activated, as
described in the wasm-bindgen
guide
Source§impl ImageTrack
impl ImageTrack
Sourcepub fn selected(&self) -> bool
pub fn selected(&self) -> bool
Getter for the selected
field of this object.
This API requires the following crate features to be activated: ImageTrack
This API is unstable and requires --cfg=web_sys_unstable_apis
to be activated, as
described in the wasm-bindgen
guide
Source§impl ImageTrack
impl ImageTrack
Sourcepub fn set_selected(&self, value: bool)
pub fn set_selected(&self, value: bool)
Setter for the selected
field of this object.
This API requires the following crate features to be activated: ImageTrack
This API is unstable and requires --cfg=web_sys_unstable_apis
to be activated, as
described in the wasm-bindgen
guide
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