pub trait HTMLVideoElementMethods<D: DomTypes> {
// Required methods
fn Width(&self) -> u32;
fn SetWidth(&self, cx: &mut JSContext, value: u32);
fn Height(&self) -> u32;
fn SetHeight(&self, cx: &mut JSContext, value: u32);
fn VideoWidth(&self) -> u32;
fn VideoHeight(&self) -> u32;
fn Poster(&self) -> USVString;
fn SetPoster(&self, cx: &mut JSContext, value: USVString);
fn GetOnpostershown(
&self,
cx: &mut JSContext,
) -> Option<Rc<EventHandlerNonNull<D>>>;
fn SetOnpostershown(
&self,
cx: &mut JSContext,
value: Option<Rc<EventHandlerNonNull<D>>>,
);
}Required Methods§
fn Width(&self) -> u32
fn SetWidth(&self, cx: &mut JSContext, value: u32)
fn Height(&self) -> u32
fn SetHeight(&self, cx: &mut JSContext, value: u32)
fn VideoWidth(&self) -> u32
fn VideoHeight(&self) -> u32
fn Poster(&self) -> USVString
fn SetPoster(&self, cx: &mut JSContext, value: USVString)
fn GetOnpostershown( &self, cx: &mut JSContext, ) -> Option<Rc<EventHandlerNonNull<D>>>
fn SetOnpostershown( &self, cx: &mut JSContext, value: Option<Rc<EventHandlerNonNull<D>>>, )
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".