HTMLImageElement
Generated.swift:7516class HTMLImageElement
class HTMLImageElement
import DOM
class HTMLElement
protocol ARIAMixin : JSBridgedClass
protocol Any_CSSPseudoElement_or_Element : ConvertibleToJSValue
protocol Any_CanvasImageSource : ConvertibleToJSValue
protocol Any_Element_or_HTMLCollection : ConvertibleToJSValue
protocol Any_Element_or_RadioNodeList : ConvertibleToJSValue
protocol Any_Element_or_Text : ConvertibleToJSValue
protocol Any_GeometryNode : ConvertibleToJSValue
protocol Any_HTMLElement_or_Int32 : ConvertibleToJSValue
protocol Any_Node_or_String : ConvertibleToJSValue
protocol ChildNode : JSBridgedClass
protocol ConstructibleFromJSValue
Types conforming to this protocol can be constructed from JSValue
.
protocol ConvertibleToJSValue
Objects that can be converted to a JavaScript value, preferably in a lossless manner.
protocol Copyable
A type whose values can be implicitly or explicitly copied.
protocol CustomStringConvertible
A type with a customized textual representation.
protocol ElementContentEditable : JSBridgedClass
protocol Escapable
protocol GeometryUtils : JSBridgedClass
protocol GlobalEventHandlers : JSBridgedClass
protocol HTMLOrSVGElement : JSBridgedClass
protocol JSBridgedClass : JSBridgedType
Conform to this protocol when your Swift class wraps a JavaScript class.
protocol JSBridgedType : ConstructibleFromJSValue, ConvertibleToJSValue, CustomStringConvertible
Use this protocol when your type has no single JavaScript class. For example, a union type of multiple classes or primitive values.
protocol NonDocumentTypeChildNode : JSBridgedClass
protocol ParentNode : JSBridgedClass
protocol Slottable : JSBridgedClass
convenience init()
required init(unsafelyWrapping jsObject: JSObject)
override class var constructor: JSFunction? { get }
@ReadWriteAttribute var align: String { get set }
@ReadWriteAttribute var alt: String { get set }
@ReadWriteAttribute var border: String { get set }
@ReadonlyAttribute var complete: Bool { get }
@ReadWriteAttribute var crossOrigin: String? { get set }
@ReadonlyAttribute var currentSrc: String { get }
@ReadWriteAttribute var decoding: String { get set }
@ReadWriteAttribute var fetchPriority: String { get set }
@ReadWriteAttribute var height: UInt32 { get set }
@ReadWriteAttribute var hspace: UInt32 { get set }
@ReadWriteAttribute var isMap: Bool { get set }
@ReadWriteAttribute var loading: String { get set }
@ReadWriteAttribute var longDesc: String { get set }
@ReadWriteAttribute var lowsrc: String { get set }
@ReadWriteAttribute var name: String { get set }
@ReadonlyAttribute var naturalHeight: UInt32 { get }
@ReadonlyAttribute var naturalWidth: UInt32 { get }
@ReadWriteAttribute var referrerPolicy: String { get set }
@ReadWriteAttribute var sizes: String { get set }
@ReadWriteAttribute var src: String { get set }
@ReadWriteAttribute var srcset: String { get set }
@ReadWriteAttribute var useMap: String { get set }
@ReadWriteAttribute var vspace: UInt32 { get set }
@ReadWriteAttribute var width: UInt32 { get set }
@ReadonlyAttribute var x: Int32 { get }
@ReadonlyAttribute var y: Int32 { get }
func decode() -> JSPromise
func decode() async throws
import WebGL1
protocol Any_TexImageSource : ConvertibleToJSValue