ImageTrack

Struct ImageTrack 

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

The ImageTrack class.

MDN Documentation

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

Source

pub fn animated(&self) -> bool

Getter for the animated field of this object.

MDN Documentation

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

Source

pub fn frame_count(&self) -> u32

Getter for the frameCount field of this object.

MDN Documentation

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

Source

pub fn repetition_count(&self) -> f32

Getter for the repetitionCount field of this object.

MDN Documentation

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

Source

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

Getter for the onchange field of this object.

MDN Documentation

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

Source

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

Setter for the onchange field of this object.

MDN Documentation

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

Source

pub fn selected(&self) -> bool

Getter for the selected field of this object.

MDN Documentation

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

Source

pub fn set_selected(&self, value: bool)

Setter for the selected field of this object.

MDN Documentation

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>§

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: &