Trait script::dom::bindings::codegen::Bindings::HTMLImageElementBinding::HTMLImageElement_Binding::HTMLImageElementMethods
source · 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§
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>
Object Safety§
This trait is not object safe.