pub(crate) trait HTMLImageElementMethods<D: DomTypes> {
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<D::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: &D::Window, proto: Option<HandleObject<'_>>, can_gc: CanGc, width: Option<u32>, height: Option<u32>, ) -> Fallible<DomRoot<D::HTMLImageElement>>;
}

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<D::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: &D::Window, proto: Option<HandleObject<'_>>, can_gc: CanGc, width: Option<u32>, height: Option<u32>, ) -> Fallible<DomRoot<D::HTMLImageElement>>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§