htmlimageelement

package
v1.0.0-rc3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 8, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	//ErrNotImplemented ErrNotImplemented error
	ErrNotImplemented       = errors.New("Browser not implemented HtmlImageElement")
	ErrNotAnHtmImageElement = errors.New("Object is not an HtmlImageElement")
)

Functions

func GetInterface

func GetInterface() js.Value

Types

type HtmlImageElement

type HtmlImageElement struct {
	htmlelement.HtmlElement
}

HtmlImageElement struct

func NewFromElement

func NewFromElement(elem element.Element) (HtmlImageElement, error)

func NewFromJSObject

func NewFromJSObject(obj js.Value) (HtmlImageElement, error)

func (HtmlImageElement) Alt

func (h HtmlImageElement) Alt() (string, error)

func (HtmlImageElement) Complete

func (h HtmlImageElement) Complete() (bool, error)

func (HtmlImageElement) CrossOrigin

func (h HtmlImageElement) CrossOrigin() (string, error)

func (HtmlImageElement) CurrentSrc

func (h HtmlImageElement) CurrentSrc() (string, error)

func (HtmlImageElement) Decode

func (h HtmlImageElement) Decode() (promise.Promise, error)

func (HtmlImageElement) Decoding

func (h HtmlImageElement) Decoding() (string, error)

func (HtmlImageElement) HtmlImageElement_

func (h HtmlImageElement) HtmlImageElement_() HtmlImageElement

func (HtmlImageElement) Loading

func (h HtmlImageElement) Loading() (string, error)

func (HtmlImageElement) NaturalHeight

func (h HtmlImageElement) NaturalHeight() (int, error)

func (HtmlImageElement) NaturalWidth

func (h HtmlImageElement) NaturalWidth() (int, error)

func (HtmlImageElement) SetAlt

func (h HtmlImageElement) SetAlt(value string) error

func (HtmlImageElement) SetCrossOrigin

func (h HtmlImageElement) SetCrossOrigin(value string) error

func (HtmlImageElement) SetDecoding

func (h HtmlImageElement) SetDecoding(value string) error

func (HtmlImageElement) SetLoading

func (h HtmlImageElement) SetLoading(value string) error

func (HtmlImageElement) SetSrc

func (h HtmlImageElement) SetSrc(value string) error

func (HtmlImageElement) Src

func (h HtmlImageElement) Src() (string, error)

func (HtmlImageElement) X

func (h HtmlImageElement) X() (int, error)

func (HtmlImageElement) Y

func (h HtmlImageElement) Y() (int, error)

type HtmlImageElementFrom

type HtmlImageElementFrom interface {
	HtmlImageElement_() HtmlImageElement
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL