Skip to main content

HTMLVideoElementMethods

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§

Source

fn Width(&self) -> u32

Source

fn SetWidth(&self, cx: &mut JSContext, value: u32)

Source

fn Height(&self) -> u32

Source

fn SetHeight(&self, cx: &mut JSContext, value: u32)

Source

fn VideoWidth(&self) -> u32

Source

fn VideoHeight(&self) -> u32

Source

fn Poster(&self) -> USVString

Source

fn SetPoster(&self, cx: &mut JSContext, value: USVString)

Source

fn GetOnpostershown( &self, cx: &mut JSContext, ) -> Option<Rc<EventHandlerNonNull<D>>>

Source

fn SetOnpostershown( &self, cx: &mut JSContext, value: Option<Rc<EventHandlerNonNull<D>>>, )

Implementors§