pub trait HTMLImageElementMethods {
Show 36 methods // Required methods fn Alt(&self) -> DOMString; fn SetAlt(&self, value: DOMString); fn Src(&self) -> USVString; fn SetSrc(&self, value: USVString); fn Srcset(&self) -> USVString; fn SetSrcset(&self, value: USVString); fn GetCrossOrigin(&self) -> Option<DOMString>; fn SetCrossOrigin(&self, value: Option<DOMString>, _can_gc: CanGc); fn UseMap(&self) -> DOMString; fn SetUseMap(&self, value: DOMString); fn IsMap(&self) -> bool; fn SetIsMap(&self, value: bool); fn Width(&self, _can_gc: CanGc) -> u32; fn SetWidth(&self, value: u32, _can_gc: CanGc); fn Height(&self, _can_gc: CanGc) -> u32; fn SetHeight(&self, value: u32, _can_gc: CanGc); fn NaturalWidth(&self) -> u32; fn NaturalHeight(&self) -> u32; fn Complete(&self) -> bool; fn CurrentSrc(&self) -> USVString; fn ReferrerPolicy(&self) -> DOMString; fn SetReferrerPolicy(&self, value: DOMString, _can_gc: CanGc); fn Decode(&self, _can_gc: CanGc) -> Rc<Promise>; fn Name(&self) -> DOMString; fn SetName(&self, value: DOMString); fn Align(&self) -> DOMString; fn SetAlign(&self, value: DOMString); fn Hspace(&self) -> u32; fn SetHspace(&self, value: u32); fn Vspace(&self) -> u32; fn SetVspace(&self, value: u32); fn LongDesc(&self) -> DOMString; fn SetLongDesc(&self, value: DOMString); fn Border(&self) -> DOMString; fn SetBorder(&self, value: DOMString); fn Image( global: &Window, proto: Option<HandleObject<'_>>, can_gc: CanGc, width: Option<u32>, height: Option<u32>, ) -> Result<Root<Dom<HTMLImageElement>>, Error>;
}

Required Methods§

source

fn Alt(&self) -> DOMString

source

fn SetAlt(&self, value: DOMString)

source

fn Src(&self) -> USVString

source

fn SetSrc(&self, value: USVString)

source

fn Srcset(&self) -> USVString

source

fn SetSrcset(&self, value: USVString)

source

fn GetCrossOrigin(&self) -> Option<DOMString>

source

fn SetCrossOrigin(&self, value: Option<DOMString>, _can_gc: CanGc)

source

fn UseMap(&self) -> DOMString

source

fn SetUseMap(&self, value: DOMString)

source

fn IsMap(&self) -> bool

source

fn SetIsMap(&self, value: bool)

source

fn Width(&self, _can_gc: CanGc) -> u32

source

fn SetWidth(&self, value: u32, _can_gc: CanGc)

source

fn Height(&self, _can_gc: CanGc) -> u32

source

fn SetHeight(&self, value: u32, _can_gc: CanGc)

source

fn NaturalWidth(&self) -> u32

source

fn NaturalHeight(&self) -> u32

source

fn Complete(&self) -> bool

source

fn CurrentSrc(&self) -> USVString

source

fn ReferrerPolicy(&self) -> DOMString

source

fn SetReferrerPolicy(&self, value: DOMString, _can_gc: CanGc)

source

fn Decode(&self, _can_gc: CanGc) -> Rc<Promise>

source

fn Name(&self) -> DOMString

source

fn SetName(&self, value: DOMString)

source

fn Align(&self) -> DOMString

source

fn SetAlign(&self, value: DOMString)

source

fn Hspace(&self) -> u32

source

fn SetHspace(&self, value: u32)

source

fn Vspace(&self) -> u32

source

fn SetVspace(&self, value: u32)

source

fn LongDesc(&self) -> DOMString

source

fn SetLongDesc(&self, value: DOMString)

source

fn Border(&self) -> DOMString

source

fn SetBorder(&self, value: DOMString)

source

fn Image( global: &Window, proto: Option<HandleObject<'_>>, can_gc: CanGc, width: Option<u32>, height: Option<u32>, ) -> Result<Root<Dom<HTMLImageElement>>, Error>

Object Safety§

This trait is not object safe.

Implementors§