Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
11025 lines (9932 sloc) 375 KB
// Code generated by webidl-bind. DO NOT EDIT.
// +build !js
package webapi
import js "github.com/gowebapi/webapi/core/js"
import (
"github.com/gowebapi/webapi/appmanifest"
"github.com/gowebapi/webapi/backgroundtask"
"github.com/gowebapi/webapi/clipboard"
"github.com/gowebapi/webapi/communication/xhr"
"github.com/gowebapi/webapi/cookie"
"github.com/gowebapi/webapi/crypto"
"github.com/gowebapi/webapi/csp"
"github.com/gowebapi/webapi/css/animations"
"github.com/gowebapi/webapi/css/animations/webani"
"github.com/gowebapi/webapi/css/cssom"
"github.com/gowebapi/webapi/css/cssom/view"
"github.com/gowebapi/webapi/css/pseudo"
"github.com/gowebapi/webapi/css/regions"
"github.com/gowebapi/webapi/css/transitions"
"github.com/gowebapi/webapi/css/typedom"
"github.com/gowebapi/webapi/device/sensor"
"github.com/gowebapi/webapi/device/touchevents"
"github.com/gowebapi/webapi/device/webvr"
"github.com/gowebapi/webapi/dom"
"github.com/gowebapi/webapi/dom/domcore"
"github.com/gowebapi/webapi/dom/geometry"
"github.com/gowebapi/webapi/featurepolicy"
"github.com/gowebapi/webapi/fetch"
"github.com/gowebapi/webapi/fetch/corsrfc1918"
"github.com/gowebapi/webapi/graphics/fontmetrics"
"github.com/gowebapi/webapi/graphics/svg"
"github.com/gowebapi/webapi/html"
"github.com/gowebapi/webapi/html/canvas"
"github.com/gowebapi/webapi/html/channel"
"github.com/gowebapi/webapi/html/htmlcommon"
"github.com/gowebapi/webapi/html/htmlevent"
"github.com/gowebapi/webapi/html/htmlmisc"
"github.com/gowebapi/webapi/html/selection"
"github.com/gowebapi/webapi/indexeddb"
"github.com/gowebapi/webapi/javascript"
"github.com/gowebapi/webapi/media/speech"
"github.com/gowebapi/webapi/patch"
"github.com/gowebapi/webapi/performance"
"github.com/gowebapi/webapi/serviceworker"
"github.com/gowebapi/webapi/webidl"
)
// using following types:
// animations.AnimationEvent
// appmanifest.BeforeInstallPromptEvent
// backgroundtask.IdleRequestCallback
// backgroundtask.IdleRequestOptions
// canvas.ImageBitmapOptions
// canvas.PromiseImageBitmap
// channel.MessageEvent
// clipboard.ClipboardEvent
// cookie.CookieStore
// corsrfc1918.AddressSpace
// crypto.Crypto
// csp.SecurityPolicyViolationEvent
// cssom.CSSStyleDeclaration
// cssom.StyleSheetList
// dom.Attr
// dom.CDATASection
// dom.Comment
// dom.DocumentFragment
// dom.DocumentType
// dom.Element
// dom.HTMLCollection
// dom.Node
// dom.NodeFilter
// dom.NodeIterator
// dom.NodeList
// dom.ProcessingInstruction
// dom.Range
// dom.Text
// dom.TreeWalker
// domcore.DOMTokenList
// domcore.Event
// domcore.EventHandler
// domcore.EventTarget
// domcore.VisibilityState
// featurepolicy.FeaturePolicy
// fetch.PromiseResponse
// fetch.RequestInit
// fontmetrics.FontMetrics
// geometry.DOMPoint
// geometry.DOMPointInit
// geometry.DOMQuad
// geometry.DOMQuadInit
// geometry.DOMRectReadOnly
// html.FormDataEvent
// html.HTMLAllCollection
// html.HTMLElement
// html.HTMLFormElement
// html.HTMLHeadElement
// html.ValidityState
// htmlcommon.BeforeUnloadEvent
// htmlcommon.FrameRequestCallback
// htmlcommon.OnBeforeUnloadEventHandler
// htmlcommon.OnErrorEventHandler
// htmlevent.DragEvent
// htmlevent.FocusEvent
// htmlevent.HashChangeEvent
// htmlevent.InputEvent
// htmlevent.KeyboardEvent
// htmlevent.MouseEvent
// htmlevent.PageTransitionEvent
// htmlevent.PointerEvent
// htmlevent.PopStateEvent
// htmlevent.PromiseRejectionEvent
// htmlevent.Storage
// htmlevent.StorageEvent
// htmlevent.UIEvent
// htmlevent.WheelEvent
// htmlmisc.ApplicationCache
// htmlmisc.BarProp
// htmlmisc.CustomElementRegistry
// htmlmisc.External
// htmlmisc.History
// htmlmisc.Location
// htmlmisc.Navigator
// indexeddb.IDBFactory
// javascript.Object
// javascript.PromiseVoid
// patch.ByteString
// performance.Performance
// pseudo.CSSPseudoElementList
// regions.NamedFlowMap
// selection.Selection
// sensor.DeviceMotionEvent
// sensor.DeviceOrientationEvent
// serviceworker.CacheStorage
// speech.SpeechSynthesis
// svg.SVGSVGElement
// touchevents.TouchEvent
// transitions.TransitionEvent
// typedom.StylePropertyMapReadOnly
// view.BoxQuadOptions
// view.CaretPosition
// view.ConvertCoordinateOptions
// view.MediaQueryList
// view.Screen
// view.ScrollToOptions
// webani.Animation
// webani.DocumentTimeline
// webidl.VoidFunction
// webvr.DisplayEvent
// xhr.ProgressEvent
// source idl files:
// dom.addition.idl
// dom.idl
// html.idl
// transform files:
// dom.go.md
// dom.go.md
// html.go.md
// workaround for compiler error
func unused(value interface{}) {
// TODO remove this method
}
type Union struct {
Value js.Value
}
func (u *Union) JSValue() js.Value {
return u.Value
}
func UnionFromJS(value js.Value) *Union {
return &Union{Value: value}
}
// enum: DocumentReadyState
type DocumentReadyState int
const (
LoadingDocumentReadyState DocumentReadyState = iota
InteractiveDocumentReadyState
CompleteDocumentReadyState
)
var documentReadyStateToWasmTable = []string{
"loading", "interactive", "complete",
}
var documentReadyStateFromWasmTable = map[string]DocumentReadyState{
"loading": LoadingDocumentReadyState, "interactive": InteractiveDocumentReadyState, "complete": CompleteDocumentReadyState,
}
// JSValue is converting this enum into a javascript object
func (this *DocumentReadyState) JSValue() js.Value {
return js.ValueOf(this.Value())
}
// Value is converting this into javascript defined
// string value
func (this DocumentReadyState) Value() string {
idx := int(this)
if idx >= 0 && idx < len(documentReadyStateToWasmTable) {
return documentReadyStateToWasmTable[idx]
}
panic("unknown input value")
}
// DocumentReadyStateFromJS is converting a javascript value into
// a DocumentReadyState enum value.
func DocumentReadyStateFromJS(value js.Value) DocumentReadyState {
key := value.String()
conv, ok := documentReadyStateFromWasmTable[key]
if !ok {
panic("unable to convert '" + key + "'")
}
return conv
}
// callback: MutationCallback
type MutationCallbackFunc func(mutations []*MutationRecord, observer *MutationObserver)
// MutationCallback is a javascript function type.
//
// Call Release() when done to release resouces
// allocated to this type.
type MutationCallback js.Func
func MutationCallbackToJS(callback MutationCallbackFunc) *MutationCallback {
if callback == nil {
return nil
}
ret := MutationCallback(js.FuncOf(func(this js.Value, args []js.Value) interface{} {
var (
_p0 []*MutationRecord // javascript: sequence<MutationRecord> mutations
_p1 *MutationObserver // javascript: MutationObserver observer
)
__length0 := args[0].Length()
__array0 := make([]*MutationRecord, __length0, __length0)
for __idx0 := 0; __idx0 < __length0; __idx0++ {
var __seq_out0 *MutationRecord
__seq_in0 := args[0].Index(__idx0)
__seq_out0 = MutationRecordFromJS(__seq_in0)
__array0[__idx0] = __seq_out0
}
_p0 = __array0
_p1 = MutationObserverFromJS(args[1])
callback(_p0, _p1)
// returning no return value
return nil
}))
return &ret
}
func MutationCallbackFromJS(_value js.Value) MutationCallbackFunc {
return func(mutations []*MutationRecord, observer *MutationObserver) {
var (
_args [2]interface{}
_end int
)
_p0 := js.Global().Get("Array").New(len(mutations))
for __idx0, __seq_in0 := range mutations {
__seq_out0 := __seq_in0.JSValue()
_p0.SetIndex(__idx0, __seq_out0)
}
_args[0] = _p0
_end++
_p1 := observer.JSValue()
_args[1] = _p1
_end++
_value.Invoke(_args[0:_end]...)
return
}
}
// dictionary: ElementCreationOptions
type ElementCreationOptions struct {
Is string
}
// JSValue is allocating a new javasript object and copy
// all values
func (_this *ElementCreationOptions) JSValue() js.Value {
out := js.Global().Get("Object").New()
value0 := _this.Is
out.Set("is", value0)
return out
}
// ElementCreationOptionsFromJS is allocating a new
// ElementCreationOptions object and copy all values from
// input javascript object
func ElementCreationOptionsFromJS(value js.Wrapper) *ElementCreationOptions {
input := value.JSValue()
var out ElementCreationOptions
var (
value0 string // javascript: DOMString {is Is is}
)
value0 = (input.Get("is")).String()
out.Is = value0
return &out
}
// dictionary: MutationObserverInit
type MutationObserverInit struct {
ChildList bool
Attributes bool
CharacterData bool
Subtree bool
AttributeOldValue bool
CharacterDataOldValue bool
AttributeFilter []string
}
// JSValue is allocating a new javasript object and copy
// all values
func (_this *MutationObserverInit) JSValue() js.Value {
out := js.Global().Get("Object").New()
value0 := _this.ChildList
out.Set("childList", value0)
value1 := _this.Attributes
out.Set("attributes", value1)
value2 := _this.CharacterData
out.Set("characterData", value2)
value3 := _this.Subtree
out.Set("subtree", value3)
value4 := _this.AttributeOldValue
out.Set("attributeOldValue", value4)
value5 := _this.CharacterDataOldValue
out.Set("characterDataOldValue", value5)
value6 := js.Global().Get("Array").New(len(_this.AttributeFilter))
for __idx6, __seq_in6 := range _this.AttributeFilter {
__seq_out6 := __seq_in6
value6.SetIndex(__idx6, __seq_out6)
}
out.Set("attributeFilter", value6)
return out
}
// MutationObserverInitFromJS is allocating a new
// MutationObserverInit object and copy all values from
// input javascript object
func MutationObserverInitFromJS(value js.Wrapper) *MutationObserverInit {
input := value.JSValue()
var out MutationObserverInit
var (
value0 bool // javascript: boolean {childList ChildList childList}
value1 bool // javascript: boolean {attributes Attributes attributes}
value2 bool // javascript: boolean {characterData CharacterData characterData}
value3 bool // javascript: boolean {subtree Subtree subtree}
value4 bool // javascript: boolean {attributeOldValue AttributeOldValue attributeOldValue}
value5 bool // javascript: boolean {characterDataOldValue CharacterDataOldValue characterDataOldValue}
value6 []string // javascript: sequence<DOMString> {attributeFilter AttributeFilter attributeFilter}
)
value0 = (input.Get("childList")).Bool()
out.ChildList = value0
value1 = (input.Get("attributes")).Bool()
out.Attributes = value1
value2 = (input.Get("characterData")).Bool()
out.CharacterData = value2
value3 = (input.Get("subtree")).Bool()
out.Subtree = value3
value4 = (input.Get("attributeOldValue")).Bool()
out.AttributeOldValue = value4
value5 = (input.Get("characterDataOldValue")).Bool()
out.CharacterDataOldValue = value5
__length6 := input.Get("attributeFilter").Length()
__array6 := make([]string, __length6, __length6)
for __idx6 := 0; __idx6 < __length6; __idx6++ {
var __seq_out6 string
__seq_in6 := input.Get("attributeFilter").Index(__idx6)
__seq_out6 = (__seq_in6).String()
__array6[__idx6] = __seq_out6
}
value6 = __array6
out.AttributeFilter = value6
return &out
}
// dictionary: WindowPostMessageOptions
type WindowPostMessageOptions struct {
Transfer []*javascript.Object
TargetOrigin string
}
// JSValue is allocating a new javasript object and copy
// all values
func (_this *WindowPostMessageOptions) JSValue() js.Value {
out := js.Global().Get("Object").New()
value0 := js.Global().Get("Array").New(len(_this.Transfer))
for __idx0, __seq_in0 := range _this.Transfer {
__seq_out0 := __seq_in0.JSValue()
value0.SetIndex(__idx0, __seq_out0)
}
out.Set("transfer", value0)
value1 := _this.TargetOrigin
out.Set("targetOrigin", value1)
return out
}
// WindowPostMessageOptionsFromJS is allocating a new
// WindowPostMessageOptions object and copy all values from
// input javascript object
func WindowPostMessageOptionsFromJS(value js.Wrapper) *WindowPostMessageOptions {
input := value.JSValue()
var out WindowPostMessageOptions
var (
value0 []*javascript.Object // javascript: sequence<object> {transfer Transfer transfer}
value1 string // javascript: USVString {targetOrigin TargetOrigin targetOrigin}
)
__length0 := input.Get("transfer").Length()
__array0 := make([]*javascript.Object, __length0, __length0)
for __idx0 := 0; __idx0 < __length0; __idx0++ {
var __seq_out0 *javascript.Object
__seq_in0 := input.Get("transfer").Index(__idx0)
__seq_out0 = javascript.ObjectFromJS(__seq_in0)
__array0[__idx0] = __seq_out0
}
value0 = __array0
out.Transfer = value0
value1 = (input.Get("targetOrigin")).String()
out.TargetOrigin = value1
return &out
}
// class: DOMImplementation
type DOMImplementation struct {
// Value_JS holds a reference to a javascript value
Value_JS js.Value
}
func (_this *DOMImplementation) JSValue() js.Value {
return _this.Value_JS
}
// DOMImplementationFromJS is casting a js.Wrapper into DOMImplementation.
func DOMImplementationFromJS(value js.Wrapper) *DOMImplementation {
input := value.JSValue()
if typ := input.Type(); typ == js.TypeNull || typ == js.TypeUndefined {
return nil
}
ret := &DOMImplementation{}
ret.Value_JS = input
return ret
}
func (_this *DOMImplementation) CreateDocumentType(qualifiedName string, publicId string, systemId string) (_result *dom.DocumentType) {
var (
_args [3]interface{}
_end int
)
_p0 := qualifiedName
_args[0] = _p0
_end++
_p1 := publicId
_args[1] = _p1
_end++
_p2 := systemId
_args[2] = _p2
_end++
_returned := _this.Value_JS.Call("createDocumentType", _args[0:_end]...)
var (
_converted *dom.DocumentType // javascript: DocumentType _what_return_name
)
_converted = dom.DocumentTypeFromJS(_returned)
_result = _converted
return
}
func (_this *DOMImplementation) CreateDocument(namespace *string, qualifiedName string, doctype *dom.DocumentType) (_result *XMLDocument) {
var (
_args [3]interface{}
_end int
)
_p0 := namespace
_args[0] = _p0
_end++
_p1 := qualifiedName
_args[1] = _p1
_end++
if doctype != nil {
_p2 := doctype.JSValue()
_args[2] = _p2
_end++
}
_returned := _this.Value_JS.Call("createDocument", _args[0:_end]...)
var (
_converted *XMLDocument // javascript: XMLDocument _what_return_name
)
_converted = XMLDocumentFromJS(_returned)
_result = _converted
return
}
func (_this *DOMImplementation) CreateHTMLDocument(title *string) (_result *Document) {
var (
_args [1]interface{}
_end int
)
if title != nil {
_p0 := title
_args[0] = _p0
_end++
}
_returned := _this.Value_JS.Call("createHTMLDocument", _args[0:_end]...)
var (
_converted *Document // javascript: Document _what_return_name
)
_converted = DocumentFromJS(_returned)
_result = _converted
return
}
func (_this *DOMImplementation) HasFeature() (_result bool) {
var (
_args [0]interface{}
_end int
)
_returned := _this.Value_JS.Call("hasFeature", _args[0:_end]...)
var (
_converted bool // javascript: boolean _what_return_name
)
_converted = (_returned).Bool()
_result = _converted
return
}
// class: Document
type Document struct {
dom.Node
}
// DocumentFromJS is casting a js.Wrapper into Document.
func DocumentFromJS(value js.Wrapper) *Document {
input := value.JSValue()
if typ := input.Type(); typ == js.TypeNull || typ == js.TypeUndefined {
return nil
}
ret := &Document{}
ret.Value_JS = input
return ret
}
func NewDocument() (_result *Document) {
_klass := js.Global().Get("Document")
var (
_args [0]interface{}
_end int
)
_returned := _klass.New(_args[0:_end]...)
var (
_converted *Document // javascript: Document _what_return_name
)
_converted = DocumentFromJS(_returned)
_result = _converted
return
}
// Implementation returning attribute 'implementation' with
// type DOMImplementation (idl: DOMImplementation).
func (_this *Document) Implementation() *DOMImplementation {
var ret *DOMImplementation
value := _this.Value_JS.Get("implementation")
ret = DOMImplementationFromJS(value)
return ret
}
// URL returning attribute 'URL' with
// type string (idl: USVString).
func (_this *Document) URL() string {
var ret string
value := _this.Value_JS.Get("URL")
ret = (value).String()
return ret
}
// DocumentURI returning attribute 'documentURI' with
// type string (idl: USVString).
func (_this *Document) DocumentURI() string {
var ret string
value := _this.Value_JS.Get("documentURI")
ret = (value).String()
return ret
}
// Origin returning attribute 'origin' with
// type string (idl: USVString).
func (_this *Document) Origin() string {
var ret string
value := _this.Value_JS.Get("origin")
ret = (value).String()
return ret
}
// CompatMode returning attribute 'compatMode' with
// type string (idl: DOMString).
func (_this *Document) CompatMode() string {
var ret string
value := _this.Value_JS.Get("compatMode")
ret = (value).String()
return ret
}
// CharacterSet returning attribute 'characterSet' with
// type string (idl: DOMString).
func (_this *Document) CharacterSet() string {
var ret string
value := _this.Value_JS.Get("characterSet")
ret = (value).String()
return ret
}
// Charset returning attribute 'charset' with
// type string (idl: DOMString).
func (_this *Document) Charset() string {
var ret string
value := _this.Value_JS.Get("charset")
ret = (value).String()
return ret
}
// InputEncoding returning attribute 'inputEncoding' with
// type string (idl: DOMString).
func (_this *Document) InputEncoding() string {
var ret string
value := _this.Value_JS.Get("inputEncoding")
ret = (value).String()
return ret
}
// ContentType returning attribute 'contentType' with
// type string (idl: DOMString).
func (_this *Document) ContentType() string {
var ret string
value := _this.Value_JS.Get("contentType")
ret = (value).String()
return ret
}
// Doctype returning attribute 'doctype' with
// type dom.DocumentType (idl: DocumentType).
func (_this *Document) Doctype() *dom.DocumentType {
var ret *dom.DocumentType
value := _this.Value_JS.Get("doctype")
if value.Type() != js.TypeNull && value.Type() != js.TypeUndefined {
ret = dom.DocumentTypeFromJS(value)
}
return ret
}
// DocumentElement returning attribute 'documentElement' with
// type dom.Element (idl: Element).
func (_this *Document) DocumentElement() *dom.Element {
var ret *dom.Element
value := _this.Value_JS.Get("documentElement")
if value.Type() != js.TypeNull && value.Type() != js.TypeUndefined {
ret = dom.ElementFromJS(value)
}
return ret
}
// RootElement returning attribute 'rootElement' with
// type svg.SVGSVGElement (idl: SVGSVGElement).
func (_this *Document) RootElement() *svg.SVGSVGElement {
var ret *svg.SVGSVGElement
value := _this.Value_JS.Get("rootElement")
if value.Type() != js.TypeNull && value.Type() != js.TypeUndefined {
ret = svg.SVGSVGElementFromJS(value)
}
return ret
}
// AddressSpace returning attribute 'addressSpace' with
// type corsrfc1918.AddressSpace (idl: AddressSpace).
func (_this *Document) AddressSpace() corsrfc1918.AddressSpace {
var ret corsrfc1918.AddressSpace
value := _this.Value_JS.Get("addressSpace")
ret = corsrfc1918.AddressSpaceFromJS(value)
return ret
}
// NamedFlows returning attribute 'namedFlows' with
// type regions.NamedFlowMap (idl: NamedFlowMap).
func (_this *Document) NamedFlows() *regions.NamedFlowMap {
var ret *regions.NamedFlowMap
value := _this.Value_JS.Get("namedFlows")
ret = regions.NamedFlowMapFromJS(value)
return ret
}
// ScrollingElement returning attribute 'scrollingElement' with
// type dom.Element (idl: Element).
func (_this *Document) ScrollingElement() *dom.Element {
var ret *dom.Element
value := _this.Value_JS.Get("scrollingElement")
if value.Type() != js.TypeNull && value.Type() != js.TypeUndefined {
ret = dom.ElementFromJS(value)
}
return ret
}
// FullscreenEnabled returning attribute 'fullscreenEnabled' with
// type bool (idl: boolean).
func (_this *Document) FullscreenEnabled() bool {
var ret bool
value := _this.Value_JS.Get("fullscreenEnabled")
ret = (value).Bool()
return ret
}
// Fullscreen returning attribute 'fullscreen' with
// type bool (idl: boolean).
func (_this *Document) Fullscreen() bool {
var ret bool
value := _this.Value_JS.Get("fullscreen")
ret = (value).Bool()
return ret
}
// OnFullscreenChange returning attribute 'onfullscreenchange' with
// type domcore.EventHandler (idl: EventHandlerNonNull).
func (_this *Document) OnFullscreenChange() domcore.EventHandlerFunc {
var ret domcore.EventHandlerFunc
value := _this.Value_JS.Get("onfullscreenchange")
if value.Type() != js.TypeNull && value.Type() != js.TypeUndefined {
ret = domcore.EventHandlerFromJS(value)
}
return ret
}
// OnFullscreenError returning attribute 'onfullscreenerror' with
// type domcore.EventHandler (idl: EventHandlerNonNull).
func (_this *Document) OnFullscreenError() domcore.EventHandlerFunc {
var ret domcore.EventHandlerFunc
value := _this.Value_JS.Get("onfullscreenerror")
if value.Type() != js.TypeNull && value.Type() != js.TypeUndefined {
ret = domcore.EventHandlerFromJS(value)
}
return ret
}
// Location returning attribute 'location' with
// type htmlmisc.Location (idl: Location).
func (_this *Document) Location() *htmlmisc.Location {
var ret *htmlmisc.Location
value := _this.Value_JS.Get("location")
if value.Type() != js.TypeNull && value.Type() != js.TypeUndefined {
ret = htmlmisc.LocationFromJS(value)
}
return ret
}
// Domain returning attribute 'domain' with
// type string (idl: USVString).
func (_this *Document) Domain() string {
var ret string
value := _this.Value_JS.Get("domain")
ret = (value).String()
return ret
}
// SetDomain setting attribute 'domain' with
// type string (idl: USVString).
func (_this *Document) SetDomain(value string) {
input := value
_this.Value_JS.Set("domain", input)
}
// Referrer returning attribute 'referrer' with
// type string (idl: USVString).
func (_this *Document) Referrer() string {
var ret string
value := _this.Value_JS.Get("referrer")
ret = (value).String()
return ret
}
// Cookie returning attribute 'cookie' with
// type string (idl: USVString).
func (_this *Document) Cookie() string {
var ret string
value := _this.Value_JS.Get("cookie")
ret = (value).String()
return ret
}
// SetCookie setting attribute 'cookie' with
// type string (idl: USVString).
func (_this *Document) SetCookie(value string) {
input := value
_this.Value_JS.Set("cookie", input)
}
// LastModified returning attribute 'lastModified' with
// type string (idl: DOMString).
func (_this *Document) LastModified() string {
var ret string
value := _this.Value_JS.Get("lastModified")
ret = (value).String()
return ret
}
// ReadyState returning attribute 'readyState' with
// type DocumentReadyState (idl: DocumentReadyState).
func (_this *Document) ReadyState() DocumentReadyState {
var ret DocumentReadyState
value := _this.Value_JS.Get("readyState")
ret = DocumentReadyStateFromJS(value)
return ret
}
// Title returning attribute 'title' with
// type string (idl: DOMString).
func (_this *Document) Title() string {
var ret string
value := _this.Value_JS.Get("title")
ret = (value).String()
return ret
}
// SetTitle setting attribute 'title' with
// type string (idl: DOMString).
func (_this *Document) SetTitle(value string) {
input := value
_this.Value_JS.Set("title", input)
}
// Dir returning attribute 'dir' with
// type string (idl: DOMString).
func (_this *Document) Dir() string {
var ret string
value := _this.Value_JS.Get("dir")
ret = (value).String()
return ret
}
// SetDir setting attribute 'dir' with
// type string (idl: DOMString).
func (_this *Document) SetDir(value string) {
input := value
_this.Value_JS.Set("dir", input)
}
// Body returning attribute 'body' with
// type html.HTMLElement (idl: HTMLElement).
func (_this *Document) Body() *html.HTMLElement {
var ret *html.HTMLElement
value := _this.Value_JS.Get("body")
if value.Type() != js.TypeNull && value.Type() != js.TypeUndefined {
ret = html.HTMLElementFromJS(value)
}
return ret
}
// SetBody setting attribute 'body' with
// type html.HTMLElement (idl: HTMLElement).
func (_this *Document) SetBody(value *html.HTMLElement) {
input := value.JSValue()
_this.Value_JS.Set("body", input)
}
// Head returning attribute 'head' with
// type html.HTMLHeadElement (idl: HTMLHeadElement).
func (_this *Document) Head() *html.HTMLHeadElement {
var ret *html.HTMLHeadElement
value := _this.Value_JS.Get("head")
if value.Type() != js.TypeNull && value.Type() != js.TypeUndefined {
ret = html.HTMLHeadElementFromJS(value)
}
return ret
}
// Images returning attribute 'images' with
// type dom.HTMLCollection (idl: HTMLCollection).
func (_this *Document) Images() *dom.HTMLCollection {
var ret *dom.HTMLCollection
value := _this.Value_JS.Get("images")
ret = dom.HTMLCollectionFromJS(value)
return ret
}
// Embeds returning attribute 'embeds' with
// type dom.HTMLCollection (idl: HTMLCollection).
func (_this *Document) Embeds() *dom.HTMLCollection {
var ret *dom.HTMLCollection
value := _this.Value_JS.Get("embeds")
ret = dom.HTMLCollectionFromJS(value)
return ret
}
// Plugins returning attribute 'plugins' with
// type dom.HTMLCollection (idl: HTMLCollection).
func (_this *Document) Plugins() *dom.HTMLCollection {
var ret *dom.HTMLCollection
value := _this.Value_JS.Get("plugins")
ret = dom.HTMLCollectionFromJS(value)
return ret
}
// Links returning attribute 'links' with
// type dom.HTMLCollection (idl: HTMLCollection).
func (_this *Document) Links() *dom.HTMLCollection {
var ret *dom.HTMLCollection
value := _this.Value_JS.Get("links")
ret = dom.HTMLCollectionFromJS(value)
return ret
}
// Forms returning attribute 'forms' with
// type dom.HTMLCollection (idl: HTMLCollection).
func (_this *Document) Forms() *dom.HTMLCollection {
var ret *dom.HTMLCollection
value := _this.Value_JS.Get("forms")
ret = dom.HTMLCollectionFromJS(value)
return ret
}
// Scripts returning attribute 'scripts' with
// type dom.HTMLCollection (idl: HTMLCollection).
func (_this *Document) Scripts() *dom.HTMLCollection {
var ret *dom.HTMLCollection
value := _this.Value_JS.Get("scripts")
ret = dom.HTMLCollectionFromJS(value)
return ret
}
// CurrentScript returning attribute 'currentScript' with
// type Union (idl: Union).
func (_this *Document) CurrentScript() *Union {
var ret *Union
value := _this.Value_JS.Get("currentScript")
if value.Type() != js.TypeNull && value.Type() != js.TypeUndefined {
ret = UnionFromJS(value)
}
return ret
}
// DefaultView returning attribute 'defaultView' with
// type Window (idl: Window).
func (_this *Document) DefaultView() *Window {
var ret *Window
value := _this.Value_JS.Get("defaultView")
if value.Type() != js.TypeNull && value.Type() != js.TypeUndefined {
ret = WindowFromJS(value)
}
return ret
}
// ActiveElement returning attribute 'activeElement' with
// type dom.Element (idl: Element).
func (_this *Document) ActiveElement() *dom.Element {
var ret *dom.Element
value := _this.Value_JS.Get("activeElement")
if value.Type() != js.TypeNull && value.Type() != js.TypeUndefined {
ret = dom.ElementFromJS(value)
}
return ret
}
// DesignMode returning attribute 'designMode' with
// type string (idl: DOMString).
func (_this *Document) DesignMode() string {
var ret string
value := _this.Value_JS.Get("designMode")
ret = (value).String()
return ret
}
// SetDesignMode setting attribute 'designMode' with
// type string (idl: DOMString).
func (_this *Document) SetDesignMode(value string) {
input := value
_this.Value_JS.Set("designMode", input)
}
// OnReadyStateChange returning attribute 'onreadystatechange' with
// type domcore.EventHandler (idl: EventHandlerNonNull).
func (_this *Document) OnReadyStateChange() domcore.EventHandlerFunc {
var ret domcore.EventHandlerFunc
value := _this.Value_JS.Get("onreadystatechange")
if value.Type() != js.TypeNull && value.Type() != js.TypeUndefined {
ret = domcore.EventHandlerFromJS(value)
}
return ret
}
// FgColor returning attribute 'fgColor' with
// type string (idl: DOMString).
func (_this *Document) FgColor() string {
var ret string
value := _this.Value_JS.Get("fgColor")
ret = (value).String()
return ret
}
// SetFgColor setting attribute 'fgColor' with
// type string (idl: DOMString).
func (_this *Document) SetFgColor(value string) {
input := value
_this.Value_JS.Set("fgColor", input)
}
// LinkColor returning attribute 'linkColor' with
// type string (idl: DOMString).
func (_this *Document) LinkColor() string {
var ret string
value := _this.Value_JS.Get("linkColor")
ret = (value).String()
return ret
}
// SetLinkColor setting attribute 'linkColor' with
// type string (idl: DOMString).
func (_this *Document) SetLinkColor(value string) {
input := value
_this.Value_JS.Set("linkColor", input)
}
// VlinkColor returning attribute 'vlinkColor' with
// type string (idl: DOMString).
func (_this *Document) VlinkColor() string {
var ret string
value := _this.Value_JS.Get("vlinkColor")
ret = (value).String()
return ret
}
// SetVlinkColor setting attribute 'vlinkColor' with
// type string (idl: DOMString).
func (_this *Document) SetVlinkColor(value string) {
input := value
_this.Value_JS.Set("vlinkColor", input)
}
// AlinkColor returning attribute 'alinkColor' with
// type string (idl: DOMString).
func (_this *Document) AlinkColor() string {
var ret string
value := _this.Value_JS.Get("alinkColor")
ret = (value).String()
return ret
}
// SetAlinkColor setting attribute 'alinkColor' with
// type string (idl: DOMString).
func (_this *Document) SetAlinkColor(value string) {
input := value
_this.Value_JS.Set("alinkColor", input)
}
// BgColor returning attribute 'bgColor' with
// type string (idl: DOMString).
func (_this *Document) BgColor() string {
var ret string
value := _this.Value_JS.Get("bgColor")
ret = (value).String()
return ret
}
// SetBgColor setting attribute 'bgColor' with
// type string (idl: DOMString).
func (_this *Document) SetBgColor(value string) {
input := value
_this.Value_JS.Set("bgColor", input)
}
// Anchors returning attribute 'anchors' with
// type dom.HTMLCollection (idl: HTMLCollection).
func (_this *Document) Anchors() *dom.HTMLCollection {
var ret *dom.HTMLCollection
value := _this.Value_JS.Get("anchors")
ret = dom.HTMLCollectionFromJS(value)
return ret
}
// Applets returning attribute 'applets' with
// type dom.HTMLCollection (idl: HTMLCollection).
func (_this *Document) Applets() *dom.HTMLCollection {
var ret *dom.HTMLCollection
value := _this.Value_JS.Get("applets")
ret = dom.HTMLCollectionFromJS(value)
return ret
}
// All returning attribute 'all' with
// type html.HTMLAllCollection (idl: HTMLAllCollection).
func (_this *Document) All() *html.HTMLAllCollection {
var ret *html.HTMLAllCollection
value := _this.Value_JS.Get("all")
ret = html.HTMLAllCollectionFromJS(value)
return ret
}
// Hidden returning attribute 'hidden' with
// type bool (idl: boolean).
func (_this *Document) Hidden() bool {
var ret bool
value := _this.Value_JS.Get("hidden")
ret = (value).Bool()
return ret
}
// VisibilityState returning attribute 'visibilityState' with
// type domcore.VisibilityState (idl: VisibilityState).
func (_this *Document) VisibilityState() domcore.VisibilityState {
var ret domcore.VisibilityState
value := _this.Value_JS.Get("visibilityState")
ret = domcore.VisibilityStateFromJS(value)
return ret
}
// OnVisibilityChange returning attribute 'onvisibilitychange' with
// type domcore.EventHandler (idl: EventHandlerNonNull).
func (_this *Document) OnVisibilityChange() domcore.EventHandlerFunc {
var ret domcore.EventHandlerFunc
value := _this.Value_JS.Get("onvisibilitychange")
if value.Type() != js.TypeNull && value.Type() != js.TypeUndefined {
ret = domcore.EventHandlerFromJS(value)
}
return ret
}
// PictureInPictureEnabled returning attribute 'pictureInPictureEnabled' with
// type bool (idl: boolean).
func (_this *Document) PictureInPictureEnabled() bool {
var ret bool
value := _this.Value_JS.Get("pictureInPictureEnabled")
ret = (value).Bool()
return ret
}
// OnPointerLockChange returning attribute 'onpointerlockchange' with
// type domcore.EventHandler (idl: EventHandlerNonNull).
func (_this *Document) OnPointerLockChange() domcore.EventHandlerFunc {
var ret domcore.EventHandlerFunc
value := _this.Value_JS.Get("onpointerlockchange")
if value.Type() != js.TypeNull && value.Type() != js.TypeUndefined {
ret = domcore.EventHandlerFromJS(value)
}
return ret
}
// OnPointerLockError returning attribute 'onpointerlockerror' with
// type domcore.EventHandler (idl: EventHandlerNonNull).
func (_this *Document) OnPointerLockError() domcore.EventHandlerFunc {
var ret domcore.EventHandlerFunc
value := _this.Value_JS.Get("onpointerlockerror")
if value.Type() != js.TypeNull && value.Type() != js.TypeUndefined {
ret = domcore.EventHandlerFromJS(value)
}
return ret
}
// Timeline returning attribute 'timeline' with
// type webani.DocumentTimeline (idl: DocumentTimeline).
func (_this *Document) Timeline() *webani.DocumentTimeline {
var ret *webani.DocumentTimeline
value := _this.Value_JS.Get("timeline")
ret = webani.DocumentTimelineFromJS(value)
return ret
}
// FeaturePolicy returning attribute 'featurePolicy' with
// type featurepolicy.FeaturePolicy (idl: FeaturePolicy).
func (_this *Document) FeaturePolicy() *featurepolicy.FeaturePolicy {
var ret *featurepolicy.FeaturePolicy
value := _this.Value_JS.Get("featurePolicy")
ret = featurepolicy.FeaturePolicyFromJS(value)
return ret
}
// StyleSheets returning attribute 'styleSheets' with
// type cssom.StyleSheetList (idl: StyleSheetList).
func (_this *Document) StyleSheets() *cssom.StyleSheetList {
var ret *cssom.StyleSheetList
value := _this.Value_JS.Get("styleSheets")
ret = cssom.StyleSheetListFromJS(value)
return ret
}
// FullscreenElement returning attribute 'fullscreenElement' with
// type dom.Element (idl: Element).
func (_this *Document) FullscreenElement() *dom.Element {
var ret *dom.Element
value := _this.Value_JS.Get("fullscreenElement")
if value.Type() != js.TypeNull && value.Type() != js.TypeUndefined {
ret = dom.ElementFromJS(value)
}
return ret
}
// PictureInPictureElement returning attribute 'pictureInPictureElement' with
// type dom.Element (idl: Element).
func (_this *Document) PictureInPictureElement() *dom.Element {
var ret *dom.Element
value := _this.Value_JS.Get("pictureInPictureElement")
if value.Type() != js.TypeNull && value.Type() != js.TypeUndefined {
ret = dom.ElementFromJS(value)
}
return ret
}
// PointerLockElement returning attribute 'pointerLockElement' with
// type dom.Element (idl: Element).
func (_this *Document) PointerLockElement() *dom.Element {
var ret *dom.Element
value := _this.Value_JS.Get("pointerLockElement")
if value.Type() != js.TypeNull && value.Type() != js.TypeUndefined {
ret = dom.ElementFromJS(value)
}
return ret
}
// Children returning attribute 'children' with
// type dom.HTMLCollection (idl: HTMLCollection).
func (_this *Document) Children() *dom.HTMLCollection {
var ret *dom.HTMLCollection
value := _this.Value_JS.Get("children")
ret = dom.HTMLCollectionFromJS(value)
return ret
}
// FirstElementChild returning attribute 'firstElementChild' with
// type dom.Element (idl: Element).
func (_this *Document) FirstElementChild() *dom.Element {
var ret *dom.Element
value := _this.Value_JS.Get("firstElementChild")
if value.Type() != js.TypeNull && value.Type() != js.TypeUndefined {
ret = dom.ElementFromJS(value)
}
return ret
}
// LastElementChild returning attribute 'lastElementChild' with
// type dom.Element (idl: Element).
func (_this *Document) LastElementChild() *dom.Element {
var ret *dom.Element
value := _this.Value_JS.Get("lastElementChild")
if value.Type() != js.TypeNull && value.Type() != js.TypeUndefined {
ret = dom.ElementFromJS(value)
}
return ret
}
// ChildElementCount returning attribute 'childElementCount' with
// type uint (idl: unsigned long).
func (_this *Document) ChildElementCount() uint {
var ret uint
value := _this.Value_JS.Get("childElementCount")
ret = (uint)((value).Int())
return ret
}
// OnAbort returning attribute 'onabort' with
// type domcore.EventHandler (idl: EventHandlerNonNull).
func (_this *Document) OnAbort() domcore.EventHandlerFunc {
var ret domcore.EventHandlerFunc
value := _this.Value_JS.Get("onabort")
if value.Type() != js.TypeNull && value.Type() != js.TypeUndefined {
ret = domcore.EventHandlerFromJS(value)
}
return ret
}
// OnAuxclick returning attribute 'onauxclick' with
// type domcore.EventHandler (idl: EventHandlerNonNull).
func (_this *Document) OnAuxclick() domcore.EventHandlerFunc {
var ret domcore.EventHandlerFunc
value := _this.Value_JS.Get("onauxclick")
if value.Type() != js.TypeNull && value.Type() != js.TypeUndefined {
ret = domcore.EventHandlerFromJS(value)
}
return ret
}
// OnBlur returning attribute 'onblur' with
// type domcore.EventHandler (idl: EventHandlerNonNull).
func (_this *Document) OnBlur() domcore.EventHandlerFunc {
var ret domcore.EventHandlerFunc
value := _this.Value_JS.Get("onblur")
if value.Type() != js.TypeNull && value.Type() != js.TypeUndefined {
ret = domcore.EventHandlerFromJS(value)
}
return ret
}
// OnCancel returning attribute 'oncancel' with
// type domcore.EventHandler (idl: EventHandlerNonNull).
func (_this *Document) OnCancel() domcore.EventHandlerFunc {
var ret domcore.EventHandlerFunc
value := _this.Value_JS.Get("oncancel")
if value.Type() != js.TypeNull && value.Type() != js.TypeUndefined {
ret = domcore.EventHandlerFromJS(value)
}
return ret
}
// OnCanPlay returning attribute 'oncanplay' with
// type domcore.EventHandler (idl: EventHandlerNonNull).
func (_this *Document) OnCanPlay() domcore.EventHandlerFunc {
var ret domcore.EventHandlerFunc
value := _this.Value_JS.Get("oncanplay")
if value.Type() != js.TypeNull && value.Type() != js.TypeUndefined {
ret = domcore.EventHandlerFromJS(value)
}
return ret
}
// OnCanPlayThrough returning attribute 'oncanplaythrough' with
// type domcore.EventHandler (idl: EventHandlerNonNull).
func (_this *Document) OnCanPlayThrough() domcore.EventHandlerFunc {
var ret domcore.EventHandlerFunc
value := _this.Value_JS.Get("oncanplaythrough")
if value.Type() != js.TypeNull && value.Type() != js.TypeUndefined {
ret = domcore.EventHandlerFromJS(value)
}
return ret
}
// OnChange returning attribute 'onchange' with
// type domcore.EventHandler (idl: EventHandlerNonNull).
func (_this *Document) OnChange() domcore.EventHandlerFunc {
var ret domcore.EventHandlerFunc
value := _this.Value_JS.Get("onchange")
if value.Type() != js.TypeNull && value.Type() != js.TypeUndefined {
ret = domcore.EventHandlerFromJS(value)
}
return ret
}
// OnClick returning attribute 'onclick' with
// type domcore.EventHandler (idl: EventHandlerNonNull).
func (_this *Document) OnClick() domcore.EventHandlerFunc {
var ret domcore.EventHandlerFunc
value := _this.Value_JS.Get("onclick")
if value.Type() != js.TypeNull && value.Type() != js.TypeUndefined {
ret = domcore.EventHandlerFromJS(value)
}
return ret
}
// OnClose returning attribute 'onclose' with
// type domcore.EventHandler (idl: EventHandlerNonNull).
func (_this *Document) OnClose() domcore.EventHandlerFunc {
var ret domcore.EventHandlerFunc
value := _this.Value_JS.Get("onclose")
if value.Type() != js.TypeNull && value.Type() != js.TypeUndefined {
ret = domcore.EventHandlerFromJS(value)
}
return ret
}
// OnContextMenu returning attribute 'oncontextmenu' with
// type domcore.EventHandler (idl: EventHandlerNonNull).
func (_this *Document) OnContextMenu() domcore.EventHandlerFunc {
var ret domcore.EventHandlerFunc
value := _this.Value_JS.Get("oncontextmenu")
if value.Type() != js.TypeNull && value.Type() != js.TypeUndefined {
ret = domcore.EventHandlerFromJS(value)
}
return ret
}
// OnCueChange returning attribute 'oncuechange' with
// type domcore.EventHandler (idl: EventHandlerNonNull).
func (_this *Document) OnCueChange() domcore.EventHandlerFunc {
var ret domcore.EventHandlerFunc
value := _this.Value_JS.Get("oncuechange")
if value.Type() != js.TypeNull && value.Type() != js.TypeUndefined {
ret = domcore.EventHandlerFromJS(value)
}
return ret
}
// OnDblClick returning attribute 'ondblclick' with
// type domcore.EventHandler (idl: EventHandlerNonNull).
func (_this *Document) OnDblClick() domcore.EventHandlerFunc {
var ret domcore.EventHandlerFunc
value := _this.Value_JS.Get("ondblclick")
if value.Type() != js.TypeNull && value.Type() != js.TypeUndefined {
ret = domcore.EventHandlerFromJS(value)
}
return ret
}
// OnDrag returning attribute 'ondrag' with
// type domcore.EventHandler (idl: EventHandlerNonNull).
func (_this *Document) OnDrag() domcore.EventHandlerFunc {
var ret domcore.EventHandlerFunc
value := _this.Value_JS.Get("ondrag")
if value.Type() != js.TypeNull && value.Type() != js.TypeUndefined {
ret = domcore.EventHandlerFromJS(value)
}
return ret
}
// OnDragEnd returning attribute 'ondragend' with
// type domcore.EventHandler (idl: EventHandlerNonNull).
func (_this *Document) OnDragEnd() domcore.EventHandlerFunc {
var ret domcore.EventHandlerFunc
value := _this.Value_JS.Get("ondragend")
if value.Type() != js.TypeNull && value.Type() != js.TypeUndefined {
ret = domcore.EventHandlerFromJS(value)
}
return ret
}
// OnDragEnter returning attribute 'ondragenter' with
// type domcore.EventHandler (idl: EventHandlerNonNull).
func (_this *Document) OnDragEnter() domcore.EventHandlerFunc {
var ret domcore.EventHandlerFunc
value := _this.Value_JS.Get("ondragenter")
if value.Type() != js.TypeNull && value.Type() != js.TypeUndefined {
ret = domcore.EventHandlerFromJS(value)
}
return ret
}
// OnDragExit returning attribute 'ondragexit' with
// type domcore.EventHandler (idl: EventHandlerNonNull).
func (_this *Document) OnDragExit() domcore.EventHandlerFunc {
var ret domcore.EventHandlerFunc
value := _this.Value_JS.Get("ondragexit")
if value.Type() != js.TypeNull && value.Type() != js.TypeUndefined {
ret = domcore.EventHandlerFromJS(value)
}
return ret
}
// OnDragLeave returning attribute 'ondragleave' with
// type domcore.EventHandler (idl: EventHandlerNonNull).
func (_this *Document) OnDragLeave() domcore.EventHandlerFunc {
var ret domcore.EventHandlerFunc
value := _this.Value_JS.Get("ondragleave")
if value.Type() != js.TypeNull && value.Type() != js.TypeUndefined {
ret = domcore.EventHandlerFromJS(value)
}
return ret
}
// OnDragOver returning attribute 'ondragover' with
// type domcore.EventHandler (idl: EventHandlerNonNull).
func (_this *Document) OnDragOver() domcore.EventHandlerFunc {
var ret domcore.EventHandlerFunc
value := _this.Value_JS.Get("ondragover")
if value.Type() != js.TypeNull && value.Type() != js.TypeUndefined {
ret = domcore.EventHandlerFromJS(value)
}
return ret
}
// OnDragStart returning attribute 'ondragstart' with
// type domcore.EventHandler (idl: EventHandlerNonNull).
func (_this *Document) OnDragStart() domcore.EventHandlerFunc {
var ret domcore.EventHandlerFunc
value := _this.Value_JS.Get("ondragstart")
if value.Type() != js.TypeNull && value.Type() != js.TypeUndefined {
ret = domcore.EventHandlerFromJS(value)
}
return ret
}
// OnDrop returning attribute 'ondrop' with
// type domcore.EventHandler (idl: EventHandlerNonNull).
func (_this *Document) OnDrop() domcore.EventHandlerFunc {
var ret domcore.EventHandlerFunc
value := _this.Value_JS.Get("ondrop")
if value.Type() != js.TypeNull && value.Type() != js.TypeUndefined {
ret = domcore.EventHandlerFromJS(value)
}
return ret
}
// OnDurationChange returning attribute 'ondurationchange' with
// type domcore.EventHandler (idl: EventHandlerNonNull).
func (_this *Document) OnDurationChange() domcore.EventHandlerFunc {
var ret domcore.EventHandlerFunc
value := _this.Value_JS.Get("ondurationchange")
if value.Type() != js.TypeNull && value.Type() != js.TypeUndefined {
ret = domcore.EventHandlerFromJS(value)
}
return ret
}
// OnEmptied returning attribute 'onemptied' with
// type domcore.EventHandler (idl: EventHandlerNonNull).
func (_this *Document) OnEmptied() domcore.EventHandlerFunc {
var ret domcore.EventHandlerFunc
value := _this.Value_JS.Get("onemptied")
if value.Type() != js.TypeNull && value.Type() != js.TypeUndefined {
ret = domcore.EventHandlerFromJS(value)
}
return ret
}
// OnEnded returning attribute 'onended' with
// type domcore.EventHandler (idl: EventHandlerNonNull).
func (_this *Document) OnEnded() domcore.EventHandlerFunc {
var ret domcore.EventHandlerFunc
value := _this.Value_JS.Get("onended")
if value.Type() != js.TypeNull && value.Type() != js.TypeUndefined {
ret = domcore.EventHandlerFromJS(value)
}
return ret
}
// OnError returning attribute 'onerror' with
// type htmlcommon.OnErrorEventHandler (idl: OnErrorEventHandlerNonNull).
func (_this *Document) OnError() htmlcommon.OnErrorEventHandlerFunc {
var ret htmlcommon.OnErrorEventHandlerFunc
value := _this.Value_JS.Get("onerror")
if value.Type() != js.TypeNull && value.Type() != js.TypeUndefined {
ret = htmlcommon.OnErrorEventHandlerFromJS(value)
}
return ret
}
// OnFocus returning attribute 'onfocus' with
// type domcore.EventHandler (idl: EventHandlerNonNull).
func (_this *Document) OnFocus() domcore.EventHandlerFunc {
var ret domcore.EventHandlerFunc
value := _this.Value_JS.Get("onfocus")
if value.Type() != js.TypeNull && value.Type() != js.TypeUndefined {
ret = domcore.EventHandlerFromJS(value)
}
return ret
}
// OnFormData returning attribute 'onformdata' with
// type domcore.EventHandler (idl: EventHandlerNonNull).
func (_this *Document) OnFormData() domcore.EventHandlerFunc {
var ret domcore.EventHandlerFunc
value := _this.Value_JS.Get("onformdata")
if value.Type() != js.TypeNull && value.Type() != js.TypeUndefined {
ret = domcore.EventHandlerFromJS(value)
}
return ret
}
// OnInput returning attribute 'oninput' with
// type domcore.EventHandler (idl: EventHandlerNonNull).
func (_this *Document) OnInput() domcore.EventHandlerFunc {
var ret domcore.EventHandlerFunc
value := _this.Value_JS.Get("oninput")
if value.Type() != js.TypeNull && value.Type() != js.TypeUndefined {
ret = domcore.EventHandlerFromJS(value)
}
return ret
}
// OnInvalid returning attribute 'oninvalid' with
// type domcore.EventHandler (idl: EventHandlerNonNull).
func (_this *Document) OnInvalid() domcore.EventHandlerFunc {
var ret domcore.EventHandlerFunc
value := _this.Value_JS.Get("oninvalid")
if value.Type() != js.TypeNull && value.Type() != js.TypeUndefined {
ret = domcore.EventHandlerFromJS(value)
}
return ret
}
// OnKeyDown returning attribute 'onkeydown' with
// type domcore.EventHandler (idl: EventHandlerNonNull).
func (_this *Document) OnKeyDown() domcore.EventHandlerFunc {
var ret domcore.EventHandlerFunc
value := _this.Value_JS.Get("onkeydown")
if value.Type() != js.TypeNull && value.Type() != js.TypeUndefined {
ret = domcore.EventHandlerFromJS(value)
}
return ret
}
// OnKeyPress returning attribute 'onkeypress' with
// type domcore.EventHandler (idl: EventHandlerNonNull).
func (_this *Document) OnKeyPress() domcore.EventHandlerFunc {
var ret domcore.EventHandlerFunc
value := _this.Value_JS.Get("onkeypress")
if value.Type() != js.TypeNull && value.Type() != js.TypeUndefined {
ret = domcore.EventHandlerFromJS(value)
}
return ret
}
// OnKeyUp returning attribute 'onkeyup' with
// type domcore.EventHandler (idl: EventHandlerNonNull).
func (_this *Document) OnKeyUp() domcore.EventHandlerFunc {
var ret domcore.EventHandlerFunc
value := _this.Value_JS.Get("onkeyup")
if value.Type() != js.TypeNull && value.Type() != js.TypeUndefined {
ret = domcore.EventHandlerFromJS(value)
}
return ret
}
// OnLoad returning attribute 'onload' with
// type domcore.EventHandler (idl: EventHandlerNonNull).
func (_this *Document) OnLoad() domcore.EventHandlerFunc {
var ret domcore.EventHandlerFunc
value := _this.Value_JS.Get("onload")
if value.Type() != js.TypeNull && value.Type() != js.TypeUndefined {
ret = domcore.EventHandlerFromJS(value)
}
return ret
}
// OnLoadedData returning attribute 'onloadeddata' with
// type domcore.EventHandler (idl: EventHandlerNonNull).
func (_this *Document) OnLoadedData() domcore.EventHandlerFunc {
var ret domcore.EventHandlerFunc
value := _this.Value_JS.Get("onloadeddata")
if value.Type() != js.TypeNull && value.Type() != js.TypeUndefined {
ret = domcore.EventHandlerFromJS(value)
}
return ret
}
// OnLoadedMetaData returning attribute 'onloadedmetadata' with
// type domcore.EventHandler (idl: EventHandlerNonNull).
func (_this *Document) OnLoadedMetaData() domcore.EventHandlerFunc {
var ret domcore.EventHandlerFunc
value := _this.Value_JS.Get("onloadedmetadata")
if value.Type() != js.TypeNull && value.Type() != js.TypeUndefined {
ret = domcore.EventHandlerFromJS(value)
}
return ret
}
// OnLoadEnd returning attribute 'onloadend' with
// type domcore.EventHandler (idl: EventHandlerNonNull).
func (_this *Document) OnLoadEnd() domcore.EventHandlerFunc {
var ret domcore.EventHandlerFunc
value := _this.Value_JS.Get("onloadend")
if value.Type() != js.TypeNull && value.Type() != js.TypeUndefined {
ret = domcore.EventHandlerFromJS(value)
}
return ret
}
// OnLoadStart returning attribute 'onloadstart' with
// type domcore.EventHandler (idl: EventHandlerNonNull).
func (_this *Document) OnLoadStart() domcore.EventHandlerFunc {
var ret domcore.EventHandlerFunc
value := _this.Value_JS.Get("onloadstart")
if value.Type() != js.TypeNull && value.Type() != js.TypeUndefined {
ret = domcore.EventHandlerFromJS(value)
}
return ret
}
// OnMouseDown returning attribute 'onmousedown' with
// type domcore.EventHandler (idl: EventHandlerNonNull).
func (_this *Document) OnMouseDown() domcore.EventHandlerFunc {
var ret domcore.EventHandlerFunc
value := _this.Value_JS.Get("onmousedown")
if value.Type() != js.TypeNull && value.Type() != js.TypeUndefined {
ret = domcore.EventHandlerFromJS(value)
}
return ret
}
// OnMouseEnter returning attribute 'onmouseenter' with
// type domcore.EventHandler (idl: EventHandlerNonNull).
func (_this *Document) OnMouseEnter() domcore.EventHandlerFunc {
var ret domcore.EventHandlerFunc
value := _this.Value_JS.Get("onmouseenter")
if value.Type() != js.TypeNull && value.Type() != js.TypeUndefined {
ret = domcore.EventHandlerFromJS(value)
}
return ret
}
// OnMouseLeave returning attribute 'onmouseleave' with
// type domcore.EventHandler (idl: EventHandlerNonNull).
func (_this *Document) OnMouseLeave() domcore.EventHandlerFunc {
var ret domcore.EventHandlerFunc
value := _this.Value_JS.Get("onmouseleave")
if value.Type() != js.TypeNull && value.Type() != js.TypeUndefined {
ret = domcore.EventHandlerFromJS(value)
}
return ret
}
// OnMouseMove returning attribute 'onmousemove' with
// type domcore.EventHandler (idl: EventHandlerNonNull).
func (_this *Document) OnMouseMove() domcore.EventHandlerFunc {
var ret domcore.EventHandlerFunc
value := _this.Value_JS.Get("onmousemove")
if value.Type() != js.TypeNull && value.Type() != js.TypeUndefined {
ret = domcore.EventHandlerFromJS(value)
}
return ret
}
// OnMouseOut returning attribute 'onmouseout' with
// type domcore.EventHandler (idl: EventHandlerNonNull).
func (_this *Document) OnMouseOut() domcore.EventHandlerFunc {
var ret domcore.EventHandlerFunc
value := _this.Value_JS.Get("onmouseout")
if value.Type() != js.TypeNull && value.Type() != js.TypeUndefined {
ret = domcore.EventHandlerFromJS(value)
}
return ret
}
// OnMouseOver returning attribute 'onmouseover' with
// type domcore.EventHandler (idl: EventHandlerNonNull).
func (_this *Document) OnMouseOver() domcore.EventHandlerFunc {
var ret domcore.EventHandlerFunc
value := _this.Value_JS.Get("onmouseover")
if value.Type() != js.TypeNull && value.Type() != js.TypeUndefined {
ret = domcore.EventHandlerFromJS(value)
}
return ret
}
// OnMouseUp returning attribute 'onmouseup' with
// type domcore.EventHandler (idl: EventHandlerNonNull).
func (_this *Document) OnMouseUp() domcore.EventHandlerFunc {
var ret domcore.EventHandlerFunc
value := _this.Value_JS.Get("onmouseup")
if value.Type() != js.TypeNull && value.Type() != js.TypeUndefined {
ret = domcore.EventHandlerFromJS(value)
}
return ret
}
// OnWheel returning attribute 'onwheel' with
// type domcore.EventHandler (idl: EventHandlerNonNull).
func (_this *Document) OnWheel() domcore.EventHandlerFunc {
var ret domcore.EventHandlerFunc
value := _this.Value_JS.Get("onwheel")
if value.Type() != js.TypeNull && value.Type() != js.TypeUndefined {
ret = domcore.EventHandlerFromJS(value)
}
return ret
}
// OnPause returning attribute 'onpause' with
// type domcore.EventHandler (idl: EventHandlerNonNull).
func (_this *Document) OnPause() domcore.EventHandlerFunc {
var ret domcore.EventHandlerFunc
value := _this.Value_JS.Get("onpause")
if value.Type() != js.TypeNull && value.Type() != js.TypeUndefined {
ret = domcore.EventHandlerFromJS(value)
}
return ret
}
// OnPlay returning attribute 'onplay' with
// type domcore.EventHandler (idl: EventHandlerNonNull).
func (_this *Document) OnPlay() domcore.EventHandlerFunc {
var ret domcore.EventHandlerFunc
value := _this.Value_JS.Get("onplay")
if value.Type() != js.TypeNull && value.Type() != js.TypeUndefined {
ret = domcore.EventHandlerFromJS(value)
}
return ret
}
// OnPlaying returning attribute 'onplaying' with
// type domcore.EventHandler (idl: EventHandlerNonNull).
func (_this *Document) OnPlaying() domcore.EventHandlerFunc {
var ret domcore.EventHandlerFunc
value := _this.Value_JS.Get("onplaying")
if value.Type() != js.TypeNull && value.Type() != js.TypeUndefined {
ret = domcore.EventHandlerFromJS(value)
}
return ret
}
// OnProgress returning attribute 'onprogress' with
// type domcore.EventHandler (idl: EventHandlerNonNull).
func (_this *Document) OnProgress() domcore.EventHandlerFunc {
var ret domcore.EventHandlerFunc
value := _this.Value_JS.Get("onprogress")
if value.Type() != js.TypeNull && value.Type() != js.TypeUndefined {
ret = domcore.EventHandlerFromJS(value)
}
return ret
}
// OnRateChange returning attribute 'onratechange' with
// type domcore.EventHandler (idl: EventHandlerNonNull).
func (_this *Document) OnRateChange() domcore.EventHandlerFunc {
var ret domcore.EventHandlerFunc
value := _this.Value_JS.Get("onratechange")
if value.Type() != js.TypeNull && value.Type() != js.TypeUndefined {
ret = domcore.EventHandlerFromJS(value)
}
return ret
}
// OnReset returning attribute 'onreset' with
// type domcore.EventHandler (idl: EventHandlerNonNull).
func (_this *Document) OnReset() domcore.EventHandlerFunc {
var ret domcore.EventHandlerFunc
value := _this.Value_JS.Get("onreset")
if value.Type() != js.TypeNull && value.Type() != js.TypeUndefined {
ret = domcore.EventHandlerFromJS(value)
}
return ret
}
// OnResize returning attribute 'onresize' with
// type domcore.EventHandler (idl: EventHandlerNonNull).
func (_this *Document) OnResize() domcore.EventHandlerFunc {
var ret domcore.EventHandlerFunc
value := _this.Value_JS.Get("onresize")
if value.Type() != js.TypeNull && value.Type() != js.TypeUndefined {
ret = domcore.EventHandlerFromJS(value)
}
return ret
}
// OnScroll returning attribute 'onscroll' with
// type domcore.EventHandler (idl: EventHandlerNonNull).
func (_this *Document) OnScroll() domcore.EventHandlerFunc {
var ret domcore.EventHandlerFunc
value := _this.Value_JS.Get("onscroll")
if value.Type() != js.TypeNull && value.Type() != js.TypeUndefined {
ret = domcore.EventHandlerFromJS(value)
}
return ret
}
// OnSecurityPolicyViolation returning attribute 'onsecuritypolicyviolation' with
// type domcore.EventHandler (idl: EventHandlerNonNull).
func (_this *Document) OnSecurityPolicyViolation() domcore.EventHandlerFunc {
var ret domcore.EventHandlerFunc
value := _this.Value_JS.Get("onsecuritypolicyviolation")
if value.Type() != js.TypeNull && value.Type() != js.TypeUndefined {
ret = domcore.EventHandlerFromJS(value)
}
return ret
}
// OnSeeked returning attribute 'onseeked' with
// type domcore.EventHandler (idl: EventHandlerNonNull).
func (_this *Document) OnSeeked() domcore.EventHandlerFunc {
var ret domcore.EventHandlerFunc
value := _this.Value_JS.Get("onseeked")
if value.Type() != js.TypeNull && value.Type() != js.TypeUndefined {
ret = domcore.EventHandlerFromJS(value)
}
return ret
}
// OnSeeking returning attribute 'onseeking' with
// type domcore.EventHandler (idl: EventHandlerNonNull).
func (_this *Document) OnSeeking() domcore.EventHandlerFunc {
var ret domcore.EventHandlerFunc
value := _this.Value_JS.Get("onseeking")
if value.Type() != js.TypeNull && value.Type() != js.TypeUndefined {
ret = domcore.EventHandlerFromJS(value)
}
return ret
}
// OnSelect returning attribute 'onselect' with
// type domcore.EventHandler (idl: EventHandlerNonNull).
func (_this *Document) OnSelect() domcore.EventHandlerFunc {
var ret domcore.EventHandlerFunc
value := _this.Value_JS.Get("onselect")
if value.Type() != js.TypeNull && value.Type() != js.TypeUndefined {
ret = domcore.EventHandlerFromJS(value)
}
return ret
}
// OnStalled returning attribute 'onstalled' with
// type domcore.EventHandler (idl: EventHandlerNonNull).
func (_this *Document) OnStalled() domcore.EventHandlerFunc {
var ret domcore.EventHandlerFunc
value := _this.Value_JS.Get("onstalled")
if value.Type() != js.TypeNull && value.Type() != js.TypeUndefined {
ret = domcore.EventHandlerFromJS(value)
}
return ret
}
// OnSubmit returning attribute 'onsubmit' with
// type domcore.EventHandler (idl: EventHandlerNonNull).
func (_this *Document) OnSubmit() domcore.EventHandlerFunc {
var ret domcore.EventHandlerFunc
value := _this.Value_JS.Get("onsubmit")
if value.Type() != js.TypeNull && value.Type() != js.TypeUndefined {
ret = domcore.EventHandlerFromJS(value)
}
return ret
}
// OnSuspend returning attribute 'onsuspend' with
// type domcore.EventHandler (idl: EventHandlerNonNull).
func (_this *Document) OnSuspend() domcore.EventHandlerFunc {
var ret domcore.EventHandlerFunc
value := _this.Value_JS.Get("onsuspend")
if value.Type() != js.TypeNull && value.Type() != js.TypeUndefined {
ret = domcore.EventHandlerFromJS(value)
}
return ret
}
// OnTimeUpdate returning attribute 'ontimeupdate' with
// type domcore.EventHandler (idl: EventHandlerNonNull).
func (_this *Document) OnTimeUpdate() domcore.EventHandlerFunc {
var ret domcore.EventHandlerFunc
value := _this.Value_JS.Get("ontimeupdate")
if value.Type() != js.TypeNull && value.Type() != js.TypeUndefined {
ret = domcore.EventHandlerFromJS(value)
}
return ret
}
// OnToggle returning attribute 'ontoggle' with
// type domcore.EventHandler (idl: EventHandlerNonNull).
func (_this *Document) OnToggle() domcore.EventHandlerFunc {
var ret domcore.EventHandlerFunc
value := _this.Value_JS.Get("ontoggle")
if value.Type() != js.TypeNull && value.Type() != js.TypeUndefined {
ret = domcore.EventHandlerFromJS(value)
}
return ret
}
// OnVolumeChange returning attribute 'onvolumechange' with
// type domcore.EventHandler (idl: EventHandlerNonNull).
func (_this *Document) OnVolumeChange() domcore.EventHandlerFunc {
var ret domcore.EventHandlerFunc
value := _this.Value_JS.Get("onvolumechange")
if value.Type() != js.TypeNull && value.Type() != js.TypeUndefined {
ret = domcore.EventHandlerFromJS(value)
}
return ret
}
// OnWaiting returning attribute 'onwaiting' with
// type domcore.EventHandler (idl: EventHandlerNonNull).
func (_this *Document) OnWaiting() domcore.EventHandlerFunc {
var ret domcore.EventHandlerFunc
value := _this.Value_JS.Get("onwaiting")
if value.Type() != js.TypeNull && value.Type() != js.TypeUndefined {
ret = domcore.EventHandlerFromJS(value)
}
return ret
}
// OnGotPointerCapture returning attribute 'ongotpointercapture' with
// type domcore.EventHandler (idl: EventHandlerNonNull).
func (_this *Document) OnGotPointerCapture() domcore.EventHandlerFunc {
var ret domcore.EventHandlerFunc
value := _this.Value_JS.Get("ongotpointercapture")
if value.Type() != js.TypeNull && value.Type() != js.TypeUndefined {
ret = domcore.EventHandlerFromJS(value)
}
return ret
}
// OnLostPointerCapture returning attribute 'onlostpointercapture' with
// type domcore.EventHandler (idl: EventHandlerNonNull).
func (_this *Document) OnLostPointerCapture() domcore.EventHandlerFunc {
var ret domcore.EventHandlerFunc
value := _this.Value_JS.Get("onlostpointercapture")
if value.Type() != js.TypeNull && value.Type() != js.TypeUndefined {
ret = domcore.EventHandlerFromJS(value)
}
return ret
}
// OnPointerDown returning attribute 'onpointerdown' with
// type domcore.EventHandler (idl: EventHandlerNonNull).
func (_this *Document) OnPointerDown() domcore.EventHandlerFunc {
var ret domcore.EventHandlerFunc
value := _this.Value_JS.Get("onpointerdown")
if value.Type() != js.TypeNull && value.Type() != js.TypeUndefined {
ret = domcore.EventHandlerFromJS(value)
}
return ret
}
// OnPointerMove returning attribute 'onpointermove' with
// type domcore.EventHandler (idl: EventHandlerNonNull).
func (_this *Document) OnPointerMove() domcore.EventHandlerFunc {
var ret domcore.EventHandlerFunc
value := _this.Value_JS.Get("onpointermove")
if value.Type() != js.TypeNull && value.Type() != js.TypeUndefined {
ret = domcore.EventHandlerFromJS(value)
}
return ret
}
// OnPointerUp returning attribute 'onpointerup' with
// type domcore.EventHandler (idl: EventHandlerNonNull).
func (_this *Document) OnPointerUp() domcore.EventHandlerFunc {
var ret domcore.EventHandlerFunc
value := _this.Value_JS.Get("onpointerup")
if value.Type() != js.TypeNull && value.Type() != js.TypeUndefined {
ret = domcore.EventHandlerFromJS(value)
}
return ret
}
// OnPointerCancel returning attribute 'onpointercancel' with
// type domcore.EventHandler (idl: EventHandlerNonNull).
func (_this *Document) OnPointerCancel() domcore.EventHandlerFunc {
var ret domcore.EventHandlerFunc
value := _this.Value_JS.Get("onpointercancel")
if value.Type() != js.TypeNull && value.Type() != js.TypeUndefined {
ret = domcore.EventHandlerFromJS(value)
}
return ret
}
// OnPointerOver returning attribute 'onpointerover' with
// type domcore.EventHandler (idl: EventHandlerNonNull).
func (_this *Document) OnPointerOver() domcore.EventHandlerFunc {
var ret domcore.EventHandlerFunc
value := _this.Value_JS.Get("onpointerover")
if value.Type() != js.TypeNull && value.Type() != js.TypeUndefined {
ret = domcore.EventHandlerFromJS(value)
}
return ret
}
// OnPointerOut returning attribute 'onpointerout' with
// type domcore.EventHandler (idl: EventHandlerNonNull).
func (_this *Document) OnPointerOut() domcore.EventHandlerFunc {
var ret domcore.EventHandlerFunc
value := _this.Value_JS.Get("onpointerout")
if value.Type() != js.TypeNull && value.Type() != js.TypeUndefined {
ret = domcore.EventHandlerFromJS(value)
}
return ret
}
// OnPointerEnter returning attribute 'onpointerenter' with
// type domcore.EventHandler (idl: EventHandlerNonNull).
func (_this *Document) OnPointerEnter() domcore.EventHandlerFunc {
var ret domcore.EventHandlerFunc
value := _this.Value_JS.Get("onpointerenter")
if value.Type() != js.TypeNull && value.Type() != js.TypeUndefined {
ret = domcore.EventHandlerFromJS(value)
}
return ret
}
// OnPointerLeave returning attribute 'onpointerleave' with
// type domcore.EventHandler (idl: EventHandlerNonNull).
func (_this *Document) OnPointerLeave() domcore.EventHandlerFunc {
var ret domcore.EventHandlerFunc
value := _this.Value_JS.Get("onpointerleave")
if value.Type() != js.TypeNull && value.Type() != js.TypeUndefined {
ret = domcore.EventHandlerFromJS(value)
}
return ret
}
// OnTouchStart returning attribute 'ontouchstart' with
// type domcore.EventHandler (idl: EventHandlerNonNull).
func (_this *Document) OnTouchStart() domcore.EventHandlerFunc {
var ret domcore.EventHandlerFunc
value := _this.Value_JS.Get("ontouchstart")
if value.Type() != js.TypeNull && value.Type() != js.TypeUndefined {
ret = domcore.EventHandlerFromJS(value)
}
return ret
}
// OnTouchEnd returning attribute 'ontouchend' with
// type domcore.EventHandler (idl: EventHandlerNonNull).
func (_this *Document) OnTouchEnd() domcore.EventHandlerFunc {
var ret domcore.EventHandlerFunc
value := _this.Value_JS.Get("ontouchend")
if value.Type() != js.TypeNull && value.Type() != js.TypeUndefined {
ret = domcore.EventHandlerFromJS(value)
}
return ret
}
// OnTouchMove returning attribute 'ontouchmove' with
// type domcore.EventHandler (idl: EventHandlerNonNull).
func (_this *Document) OnTouchMove() domcore.EventHandlerFunc {
var ret domcore.EventHandlerFunc
value := _this.Value_JS.Get("ontouchmove")
if value.Type() != js.TypeNull && value.Type() != js.TypeUndefined {
ret = domcore.EventHandlerFromJS(value)
}
return ret
}
// OnTouchCancel returning attribute 'ontouchcancel' with
// type domcore.EventHandler (idl: EventHandlerNonNull).
func (_this *Document) OnTouchCancel() domcore.EventHandlerFunc {
var ret domcore.EventHandlerFunc
value := _this.Value_JS.Get("ontouchcancel")
if value.Type() != js.TypeNull && value.Type() != js.TypeUndefined {
ret = domcore.EventHandlerFromJS(value)
}
return ret
}
// OnAnimationStart returning attribute 'onanimationstart' with
// type domcore.EventHandler (idl: EventHandlerNonNull).
func (_this *Document) OnAnimationStart() domcore.EventHandlerFunc {
var ret domcore.EventHandlerFunc
value := _this.Value_JS.Get("onanimationstart")
if value.Type() != js.TypeNull && value.Type() != js.TypeUndefined {
ret = domcore.EventHandlerFromJS(value)
}
return ret
}
// OnAnimationIteration returning attribute 'onanimationiteration' with
// type domcore.EventHandler (idl: EventHandlerNonNull).
func (_this *Document) OnAnimationIteration() domcore.EventHandlerFunc {
var ret domcore.EventHandlerFunc
value := _this.Value_JS.Get("onanimationiteration")
if value.Type() != js.TypeNull && value.Type() != js.TypeUndefined {
ret = domcore.EventHandlerFromJS(value)
}
return ret
}
// OnAnimationEnd returning attribute 'onanimationend' with
// type domcore.EventHandler (idl: EventHandlerNonNull).
func (_this *Document) OnAnimationEnd() domcore.EventHandlerFunc {
var ret domcore.EventHandlerFunc
value := _this.Value_JS.Get("onanimationend")
if value.Type() != js.TypeNull && value.Type() != js.TypeUndefined {
ret = domcore.EventHandlerFromJS(value)
}
return ret
}
// OnAnimationCancel returning attribute 'onanimationcancel' with
// type domcore.EventHandler (idl: EventHandlerNonNull).
func (_this *Document) OnAnimationCancel() domcore.EventHandlerFunc {
var ret domcore.EventHandlerFunc
value := _this.Value_JS.Get("onanimationcancel")
if value.Type() != js.TypeNull && value.Type() != js.TypeUndefined {
ret = domcore.EventHandlerFromJS(value)
}
return ret
}
// OnTransitionRun returning attribute 'ontransitionrun' with
// type domcore.EventHandler (idl: EventHandlerNonNull).
func (_this *Document) OnTransitionRun() domcore.EventHandlerFunc {
var ret domcore.EventHandlerFunc
value := _this.Value_JS.Get("ontransitionrun")
if value.Type() != js.TypeNull && value.Type() != js.TypeUndefined {
ret = domcore.EventHandlerFromJS(value)
}
return ret
}
// OnTransitionStart returning attribute 'ontransitionstart' with
// type domcore.EventHandler (idl: EventHandlerNonNull).
func (_this *Document) OnTransitionStart() domcore.EventHandlerFunc {
var ret domcore.EventHandlerFunc
value := _this.Value_JS.Get("ontransitionstart")
if value.Type() != js.TypeNull && value.Type() != js.TypeUndefined {
ret = domcore.EventHandlerFromJS(value)
}
return ret
}
// OnTransitionEnd returning attribute 'ontransitionend' with
// type domcore.EventHandler (idl: EventHandlerNonNull).
func (_this *Document) OnTransitionEnd() domcore.EventHandlerFunc {
var ret domcore.EventHandlerFunc
value := _this.Value_JS.Get("ontransitionend")
if value.Type() != js.TypeNull && value.Type() != js.TypeUndefined {
ret = domcore.EventHandlerFromJS(value)
}
return ret
}
// OnTransitionCancel returning attribute 'ontransitioncancel' with
// type domcore.EventHandler (idl: EventHandlerNonNull).
func (_this *Document) OnTransitionCancel() domcore.EventHandlerFunc {
var ret domcore.EventHandlerFunc
value := _this.Value_JS.Get("ontransitioncancel")
if value.Type() != js.TypeNull && value.Type() != js.TypeUndefined {
ret = domcore.EventHandlerFromJS(value)
}
return ret
}
// OnSelectStart returning attribute 'onselectstart' with
// type domcore.EventHandler (idl: EventHandlerNonNull).
func (_this *Document) OnSelectStart() domcore.EventHandlerFunc {
var ret domcore.EventHandlerFunc
value := _this.Value_JS.Get("onselectstart")
if value.Type() != js.TypeNull && value.Type() != js.TypeUndefined {
ret = domcore.EventHandlerFromJS(value)
}
return ret
}
// OnSelectionChange returning attribute 'onselectionchange' with
// type domcore.EventHandler (idl: EventHandlerNonNull).
func (_this *Document) OnSelectionChange() domcore.EventHandlerFunc {
var ret domcore.EventHandlerFunc
value := _this.Value_JS.Get("onselectionchange")
if value.Type() != js.TypeNull && value.Type() != js.TypeUndefined {
ret = domcore.EventHandlerFromJS(value)
}
return ret
}
// OnCopy returning attribute 'oncopy' with
// type domcore.EventHandler (idl: EventHandlerNonNull).
func (_this *Document) OnCopy() domcore.EventHandlerFunc {
var ret domcore.EventHandlerFunc
value := _this.Value_JS.Get("oncopy")
if value.Type() != js.TypeNull && value.Type() != js.TypeUndefined {
ret = domcore.EventHandlerFromJS(value)
}
return ret
}
// OnCut returning attribute 'oncut' with
// type domcore.EventHandler (idl: EventHandlerNonNull).
func (_this *Document) OnCut() domcore.EventHandlerFunc {
var ret domcore.EventHandlerFunc
value := _this.Value_JS.Get("oncut")
if value.Type() != js.TypeNull && value.Type() != js.TypeUndefined {
ret = domcore.EventHandlerFromJS(value)
}
return ret
}
// OnPaste returning attribute 'onpaste' with
// type domcore.EventHandler (idl: EventHandlerNonNull).
func (_this *Document) OnPaste() domcore.EventHandlerFunc {
var ret domcore.EventHandlerFunc
value := _this.Value_JS.Get("onpaste")
if value.Type() != js.TypeNull && value.Type() != js.TypeUndefined {
ret = domcore.EventHandlerFromJS(value)
}
return ret
}
// event attribute: domcore.Event
func eventFuncDocument_domcore_Event(listener func(event *domcore.Event, target *Document)) js.Func {
fn := func(this js.Value, args []js.Value) interface{} {
var ret *domcore.Event
value := args[0]
incoming := value.Get("target")
ret = domcore.EventFromJS(value)
src := DocumentFromJS(incoming)
listener(ret, src)
return js.Undefined
}
return js.FuncOf(fn)
}
// AddAbort is adding doing AddEventListener for 'Abort' on target.
// This method is returning allocated javascript function that need to be released.
func (_this *Document) AddEventAbort(listener func(event *domcore.Event, currentTarget *Document)) js.Func {
cb := eventFuncDocument_domcore_Event(listener)
_this.Value_JS.Call("addEventListener", "abort", cb)
return cb
}
// SetOnAbort is assigning a function to 'onabort'. This
// This method is returning allocated javascript function that need to be released.
func (_this *Document) SetOnAbort(listener func(event *domcore.Event, currentTarget *Document)) js.Func {
cb := eventFuncDocument_domcore_Event(listener)
_this.Value_JS.Set("onabort", cb)
return cb
}
// event attribute: animations.AnimationEvent
func eventFuncDocument_animations_AnimationEvent(listener func(event *animations.AnimationEvent, target *Document)) js.Func {
fn := func(this js.Value, args []js.Value) interface{} {
var ret *animations.AnimationEvent
value := args[0]
incoming := value.Get("target")
ret = animations.AnimationEventFromJS(value)
src := DocumentFromJS(incoming)
listener(ret, src)
return js.Undefined
}
return js.FuncOf(fn)
}
// AddAnimationCancel is adding doing AddEventListener for 'AnimationCancel' on target.
// This method is returning allocated javascript function that need to be released.
func (_this *Document) AddEventAnimationCancel(listener func(event *animations.AnimationEvent, currentTarget *Document)) js.Func {
cb := eventFuncDocument_animations_AnimationEvent(listener)
_this.Value_JS.Call("addEventListener", "animationcancel", cb)
return cb
}
// SetOnAnimationCancel is assigning a function to 'onanimationcancel'. This
// This method is returning allocated javascript function that need to be released.
func (_this *Document) SetOnAnimationCancel(listener func(event *animations.AnimationEvent, currentTarget *Document)) js.Func {
cb := eventFuncDocument_animations_AnimationEvent(listener)
_this.Value_JS.Set("onanimationcancel", cb)
return cb
}
// AddAnimationEnd is adding doing AddEventListener for 'AnimationEnd' on target.
// This method is returning allocated javascript function that need to be released.
func (_this *Document) AddEventAnimationEnd(listener func(event *animations.AnimationEvent, currentTarget *Document)) js.Func {
cb := eventFuncDocument_animations_AnimationEvent(listener)
_this.Value_JS.Call("addEventListener", "animationend", cb)
return cb
}
// SetOnAnimationEnd is assigning a function to 'onanimationend'. This
// This method is returning allocated javascript function that need to be released.
func (_this *Document) SetOnAnimationEnd(listener func(event *animations.AnimationEvent, currentTarget *Document)) js.Func {
cb := eventFuncDocument_animations_AnimationEvent(listener)
_this.Value_JS.Set("onanimationend", cb)
return cb
}
// AddAnimationIteration is adding doing AddEventListener for 'AnimationIteration' on target.
// This method is returning allocated javascript function that need to be released.
func (_this *Document) AddEventAnimationIteration(listener func(event *animations.AnimationEvent, currentTarget *Document)) js.Func {
cb := eventFuncDocument_animations_AnimationEvent(listener)
_this.Value_JS.Call("addEventListener", "animationiteration", cb)
return cb
}
// SetOnAnimationIteration is assigning a function to 'onanimationiteration'. This
// This method is returning allocated javascript function that need to be released.
func (_this *Document) SetOnAnimationIteration(listener func(event *animations.AnimationEvent, currentTarget *Document)) js.Func {
cb := eventFuncDocument_animations_AnimationEvent(listener)
_this.Value_JS.Set("onanimationiteration", cb)
return cb
}
// AddAnimationStart is adding doing AddEventListener for 'AnimationStart' on target.
// This method is returning allocated javascript function that need to be released.
func (_this *Document) AddEventAnimationStart(listener func(event *animations.AnimationEvent, currentTarget *Document)) js.Func {
cb := eventFuncDocument_animations_AnimationEvent(listener)
_this.Value_JS.Call("addEventListener", "animationstart", cb)
return cb
}
// SetOnAnimationStart is assigning a function to 'onanimationstart'. This
// This method is returning allocated javascript function that need to be released.
func (_this *Document) SetOnAnimationStart(listener func(event *animations.AnimationEvent, currentTarget *Document)) js.Func {
cb := eventFuncDocument_animations_AnimationEvent(listener)
_this.Value_JS.Set("onanimationstart", cb)
return cb
}
// event attribute: htmlevent.MouseEvent
func eventFuncDocument_htmlevent_MouseEvent(listener func(event *htmlevent.MouseEvent, target *Document)) js.Func {
fn := func(this js.Value, args []js.Value) interface{} {
var ret *htmlevent.MouseEvent
value := args[0]
incoming := value.Get("target")
ret = htmlevent.MouseEventFromJS(value)
src := DocumentFromJS(incoming)
listener(ret, src)
return js.Undefined
}
return js.FuncOf(fn)
}
// AddAuxclick is adding doing AddEventListener for 'Auxclick' on target.
// This method is returning allocated javascript function that need to be released.
func (_this *Document) AddEventAuxclick(listener func(event *htmlevent.MouseEvent, currentTarget *Document)) js.Func {
cb := eventFuncDocument_htmlevent_MouseEvent(listener)
_this.Value_JS.Call("addEventListener", "auxclick", cb)
return cb
}
// SetOnAuxclick is assigning a function to 'onauxclick'. This
// This method is returning allocated javascript function that need to be released.
func (_this *Document) SetOnAuxclick(listener func(event *htmlevent.MouseEvent, currentTarget *Document)) js.Func {
cb := eventFuncDocument_htmlevent_MouseEvent(listener)
_this.Value_JS.Set("onauxclick", cb)
return cb
}
// event attribute: htmlevent.FocusEvent
func eventFuncDocument_htmlevent_FocusEvent(listener func(event *htmlevent.FocusEvent, target *Document)) js.Func {
fn := func(this js.Value, args []js.Value) interface{} {
var ret *htmlevent.FocusEvent
value := args[0]
incoming := value.Get("target")
ret = htmlevent.FocusEventFromJS(value)
src := DocumentFromJS(incoming)
listener(ret, src)
return js.Undefined
}
return js.FuncOf(fn)
}
// AddBlur is adding doing AddEventListener for 'Blur' on target.
// This method is returning allocated javascript function that need to be released.
func (_this *Document) AddEventBlur(listener func(event *htmlevent.FocusEvent, currentTarget *Document)) js.Func {
cb := eventFuncDocument_htmlevent_FocusEvent(listener)
_this.Value_JS.Call("addEventListener", "blur", cb)
return cb
}
// SetOnBlur is assigning a function to 'onblur'. This
// This method is returning allocated javascript function that need to be released.
func (_this *Document) SetOnBlur(listener func(event *htmlevent.FocusEvent, currentTarget *Document)) js.Func {
cb := eventFuncDocument_htmlevent_FocusEvent(listener)
_this.Value_JS.Set("onblur", cb)
return cb
}
// AddCancel is adding doing AddEventListener for 'Cancel' on target.
// This method is returning allocated javascript function that need to be released.
func (_this *Document) AddEventCancel(listener func(event *domcore.Event, currentTarget *Document)) js.Func {
cb := eventFuncDocument_domcore_Event(listener)
_this.Value_JS.Call("addEventListener", "cancel", cb)
return cb
}
// SetOnCancel is assigning a function to 'oncancel'. This
// This method is returning allocated javascript function that need to be released.
func (_this *Document) SetOnCancel(listener func(event *domcore.Event, currentTarget *Document)) js.Func {
cb := eventFuncDocument_domcore_Event(listener)
_this.Value_JS.Set("oncancel", cb)
return cb
}
// AddCanPlay is adding doing AddEventListener for 'CanPlay' on target.
// This method is returning allocated javascript function that need to be released.
func (_this *Document) AddEventCanPlay(listener func(event *domcore.Event, currentTarget *Document)) js.Func {
cb := eventFuncDocument_domcore_Event(listener)
_this.Value_JS.Call("addEventListener", "canplay", cb)
return cb
}
// SetOnCanPlay is assigning a function to 'oncanplay'. This
// This method is returning allocated javascript function that need to be released.
func (_this *Document) SetOnCanPlay(listener func(event *domcore.Event, currentTarget *Document)) js.Func {
cb := eventFuncDocument_domcore_Event(listener)
_this.Value_JS.Set("oncanplay", cb)
return cb
}
// AddCanPlayThrough is adding doing AddEventListener for 'CanPlayThrough' on target.
// This method is returning allocated javascript function that need to be released.
func (_this *Document) AddEventCanPlayThrough(listener func(event *domcore.Event, currentTarget *Document)) js.Func {
cb := eventFuncDocument_domcore_Event(listener)
_this.Value_JS.Call("addEventListener", "canplaythrough", cb)
return cb
}
// SetOnCanPlayThrough is assigning a function to 'oncanplaythrough'. This
// This method is returning allocated javascript function that need to be released.
func (_this *Document) SetOnCanPlayThrough(listener func(event *domcore.Event, currentTarget *Document)) js.Func {
cb := eventFuncDocument_domcore_Event(listener)
_this.Value_JS.Set("oncanplaythrough", cb)
return cb
}
// AddChange is adding doing AddEventListener for 'Change' on target.
// This method is returning allocated javascript function that need to be released.
func (_this *Document) AddEventChange(listener func(event *domcore.Event, currentTarget *Document)) js.Func {
cb := eventFuncDocument_domcore_Event(listener)
_this.Value_JS.Call("addEventListener", "change", cb)
return cb
}
// SetOnChange is assigning a function to 'onchange'. This
// This method is returning allocated javascript function that need to be released.
func (_this *Document) SetOnChange(listener func(event *domcore.Event, currentTarget *Document)) js.Func {
cb := eventFuncDocument_domcore_Event(listener)
_this.Value_JS.Set("onchange", cb)
return cb
}
// AddClick is adding doing AddEventListener for 'Click' on target.
// This method is returning allocated javascript function that need to be released.
func (_this *Document) AddEventClick(listener func(event *htmlevent.MouseEvent, currentTarget *Document)) js.Func {
cb := eventFuncDocument_htmlevent_MouseEvent(listener)
_this.Value_JS.Call("addEventListener", "click", cb)
return cb
}
// SetOnClick is assigning a function to 'onclick'. This
// This method is returning allocated javascript function that need to be released.
func (_this *Document) SetOnClick(listener func(event *htmlevent.MouseEvent, currentTarget *Document)) js.Func {
cb := eventFuncDocument_htmlevent_MouseEvent(listener)
_this.Value_JS.Set("onclick", cb)
return cb
}
// AddClose is adding doing AddEventListener for 'Close' on target.
// This method is returning allocated javascript function that need to be released.
func (_this *Document) AddEventClose(listener func(event *domcore.Event, currentTarget *Document)) js.Func {
cb := eventFuncDocument_domcore_Event(listener)
_this.Value_JS.Call("addEventListener", "close", cb)
return cb
}
// SetOnClose is assigning a function to 'onclose'. This
// This method is returning allocated javascript function that need to be released.
func (_this *Document) SetOnClose(listener func(event *domcore.Event, currentTarget *Document)) js.Func {
cb := eventFuncDocument_domcore_Event(listener)
_this.Value_JS.Set("onclose", cb)
return cb
}
// AddContextMenu is adding doing AddEventListener for 'ContextMenu' on target.
// This method is returning allocated javascript function that need to be released.
func (_this *Document) AddEventContextMenu(listener func(event *htmlevent.MouseEvent, currentTarget *Document)) js.Func {
cb := eventFuncDocument_htmlevent_MouseEvent(listener)
_this.Value_JS.Call("addEventListener", "contextmenu", cb)
return cb
}
// SetOnContextMenu is assigning a function to 'oncontextmenu'. This
// This method is returning allocated javascript function that need to be released.
func (_this *Document) SetOnContextMenu(listener func(event *htmlevent.MouseEvent, currentTarget *Document)) js.Func {
cb := eventFuncDocument_htmlevent_MouseEvent(listener)
_this.Value_JS.Set("oncontextmenu", cb)
return cb
}
// event attribute: clipboard.ClipboardEvent
func eventFuncDocument_clipboard_ClipboardEvent(listener func(event *clipboard.ClipboardEvent, target *Document)) js.Func {
fn := func(this js.Value, args []js.Value) interface{} {
var ret *clipboard.ClipboardEvent
value := args[0]
incoming := value.Get("target")
ret = clipboard.ClipboardEventFromJS(value)
src := DocumentFromJS(incoming)
listener(ret, src)
return js.Undefined
}
return js.FuncOf(fn)
}
// AddCopy is adding doing AddEventListener for 'Copy' on target.
// This method is returning allocated javascript function that need to be released.
func (_this *Document) AddEventCopy(listener func(event *clipboard.ClipboardEvent, currentTarget *Document)) js.Func {
cb := eventFuncDocument_clipboard_ClipboardEvent(listener)
_this.Value_JS.Call("addEventListener", "copy", cb)
return cb
}
// SetOnCopy is assigning a function to 'oncopy'. This
// This method is returning allocated javascript function that need to be released.
func (_this *Document) SetOnCopy(listener func(event *clipboard.ClipboardEvent, currentTarget *Document)) js.Func {
cb := eventFuncDocument_clipboard_ClipboardEvent(listener)
_this.Value_JS.Set("oncopy", cb)
return cb
}
// AddCueChange is adding doing AddEventListener for 'CueChange' on target.
// This method is returning allocated javascript function that need to be released.
func (_this *Document) AddEventCueChange(listener func(event *domcore.Event, currentTarget *Document)) js.Func {
cb := eventFuncDocument_domcore_Event(listener)
_this.Value_JS.Call("addEventListener", "cuechange", cb)
return cb
}
// SetOnCueChange is assigning a function to 'oncuechange'. This
// This method is returning allocated javascript function that need to be released.
func (_this *Document) SetOnCueChange(listener func(event *domcore.Event, currentTarget *Document)) js.Func {
cb := eventFuncDocument_domcore_Event(listener)
_this.Value_JS.Set("oncuechange", cb)
return cb
}
// AddCut is adding doing AddEventListener for 'Cut' on target.
// This method is returning allocated javascript function that need to be released.
func (_this *Document) AddEventCut(listener func(event *clipboard.ClipboardEvent, currentTarget *Document)) js.Func {
cb := eventFuncDocument_clipboard_ClipboardEvent(listener)
_this.Value_JS.Call("addEventListener", "cut", cb)
return cb
}
// SetOnCut is assigning a function to 'oncut'. This
// This method is returning allocated javascript function that need to be released.
func (_this *Document) SetOnCut(listener func(event *clipboard.ClipboardEvent, currentTarget *Document)) js.Func {
cb := eventFuncDocument_clipboard_ClipboardEvent(listener)
_this.Value_JS.Set("oncut", cb)
return cb
}
// AddDblClick is adding doing AddEventListener for 'DblClick' on target.
// This method is returning allocated javascript function that need to be released.
func (_this *Document) AddEventDblClick(listener func(event *htmlevent.MouseEvent, currentTarget *Document)) js.Func {
cb := eventFuncDocument_htmlevent_MouseEvent(listener)
_this.Value_JS.Call("addEventListener", "dblclick", cb)
return cb
}
// SetOnDblClick is assigning a function to 'ondblclick'. This
// This method is returning allocated javascript function that need to be released.
func (_this *Document) SetOnDblClick(listener func(event *htmlevent.MouseEvent, currentTarget *Document)) js.Func {
cb := eventFuncDocument_htmlevent_MouseEvent(listener)
_this.Value_JS.Set("ondblclick", cb)
return cb
}
// event attribute: htmlevent.DragEvent
func eventFuncDocument_htmlevent_DragEvent(listener func(event *htmlevent.DragEvent, target *Document)) js.Func {
fn := func(this js.Value, args []js.Value) interface{} {
var ret *htmlevent.DragEvent
value := args[0]
incoming := value.Get("target")
ret = htmlevent.DragEventFromJS(value)
src := DocumentFromJS(incoming)
listener(ret, src)
return js.Undefined
}
return js.FuncOf(fn)
}
// AddDrag is adding doing AddEventListener for 'Drag' on target.
// This method is returning allocated javascript function that need to be released.
func (_this *Document) AddEventDrag(listener func(event *htmlevent.DragEvent, currentTarget *Document)) js.Func {
cb := eventFuncDocument_htmlevent_DragEvent(listener)
_this.Value_JS.Call("addEventListener", "drag", cb)
return cb
}
// SetOnDrag is assigning a function to 'ondrag'. This
// This method is returning allocated javascript function that need to be released.
func (_this *Document) SetOnDrag(listener func(event *htmlevent.DragEvent, currentTarget *Document)) js.Func {
cb := eventFuncDocument_htmlevent_DragEvent(listener)
_this.Value_JS.Set("ondrag", cb)
return cb
}
// AddDragEnd is adding doing AddEventListener for 'DragEnd' on target.
// This method is returning allocated javascript function that need to be released.
func (_this *Document) AddEventDragEnd(listener func(event *htmlevent.DragEvent, currentTarget *Document)) js.Func {
cb := eventFuncDocument_htmlevent_DragEvent(listener)
_this.Value_JS.Call("addEventListener", "dragend", cb)
return cb
}
// SetOnDragEnd is assigning a function to 'ondragend'. This
// This method is returning allocated javascript function that need to be released.
func (_this *Document) SetOnDragEnd(listener func(event *htmlevent.DragEvent, currentTarget *Document)) js.Func {
cb := eventFuncDocument_htmlevent_DragEvent(listener)
_this.Value_JS.Set("ondragend", cb)
return cb
}
// AddDragEnter is adding doing AddEventListener for 'DragEnter' on target.
// This method is returning allocated javascript function that need to be released.
func (_this *Document) AddEventDragEnter(listener func(event *htmlevent.DragEvent, currentTarget *Document)) js.Func {
cb := eventFuncDocument_htmlevent_DragEvent(listener)
_this.Value_JS.Call("addEventListener", "dragenter", cb)
return cb
}
// SetOnDragEnter is assigning a function to 'ondragenter'. This
// This method is returning allocated javascript function that need to be released.
func (_this *Document) SetOnDragEnter(listener func(event *htmlevent.DragEvent, currentTarget *Document)) js.Func {
cb := eventFuncDocument_htmlevent_DragEvent(listener)
_this.Value_JS.Set("ondragenter", cb)
return cb
}
// AddDragExit is adding doing AddEventListener for 'DragExit' on target.
// This method is returning allocated javascript function that need to be released.
func (_this *Document) AddEventDragExit(listener func(event *htmlevent.DragEvent, currentTarget *Document)) js.Func {
cb := eventFuncDocument_htmlevent_DragEvent(listener)
_this.Value_JS.Call("addEventListener", "dragexit", cb)
return cb
}
// SetOnDragExit is assigning a function to 'ondragexit'. This
// This method is returning allocated javascript function that need to be released.
func (_this *Document) SetOnDragExit(listener func(event *htmlevent.DragEvent, currentTarget *Document)) js.Func {
cb := eventFuncDocument_htmlevent_DragEvent(listener)
_this.Value_JS.Set("ondragexit", cb)
return cb
}
// AddDragLeave is adding doing AddEventListener for 'DragLeave' on target.
// This method is returning allocated javascript function that need to be released.
func (_this *Document) AddEventDragLeave(listener func(event *htmlevent.DragEvent, currentTarget *Document)) js.Func {
cb := eventFuncDocument_htmlevent_DragEvent(listener)
_this.Value_JS.Call("addEventListener", "dragleave", cb)
return cb
}
// SetOnDragLeave is assigning a function to 'ondragleave'. This
// This method is returning allocated javascript function that need to be released.
func (_this *Document) SetOnDragLeave(listener func(event *htmlevent.DragEvent, currentTarget *Document)) js.Func {
cb := eventFuncDocument_htmlevent_DragEvent(listener)
_this.Value_JS.Set("ondragleave", cb)
return cb
}
// AddDragOver is adding doing AddEventListener for 'DragOver' on target.
// This method is returning allocated javascript function that need to be released.
func (_this *Document) AddEventDragOver(listener func(event *htmlevent.DragEvent, currentTarget *Document)) js.Func {
cb := eventFuncDocument_htmlevent_DragEvent(listener)
_this.Value_JS.Call("addEventListener", "dragover", cb)
return cb
}
// SetOnDragOver is assigning a function to 'ondragover'. This
// This method is returning allocated javascript function that need to be released.
func (_this *Document) SetOnDragOver(listener func(event *htmlevent.DragEvent, currentTarget *Document)) js.Func {
cb := eventFuncDocument_htmlevent_DragEvent(listener)
_this.Value_JS.Set("ondragover", cb)
return cb
}
// AddDragStart is adding doing AddEventListener for 'DragStart' on target.
// This method is returning allocated javascript function that need to be released.
func (_this *Document) AddEventDragStart(listener func(event *htmlevent.DragEvent, currentTarget *Document)) js.Func {
cb := eventFuncDocument_htmlevent_DragEvent(listener)
_this.Value_JS.Call("addEventListener", "dragstart", cb)
return cb
}
// SetOnDragStart is assigning a function to 'ondragstart'. This
// This method is returning allocated javascript function that need to be released.
func (_this *Document) SetOnDragStart(listener func(event *htmlevent.DragEvent, currentTarget *Document)) js.Func {
cb := eventFuncDocument_htmlevent_DragEvent(listener)
_this.Value_JS.Set("ondragstart", cb)
return cb
}
// AddDrop is adding doing AddEventListener for 'Drop' on target.
// This method is returning allocated javascript function that need to be released.
func (_this *Document) AddEventDrop(listener func(event *htmlevent.DragEvent, currentTarget *Document)) js.Func {
cb := eventFuncDocument_htmlevent_DragEvent(listener)
_this.Value_JS.Call("addEventListener", "drop", cb)
return cb
}
// SetOnDrop is assigning a function to 'ondrop'. This
// This method is returning allocated javascript function that need to be released.
func (_this *Document) SetOnDrop(listener func(event *htmlevent.DragEvent, currentTarget *Document)) js.Func {
cb := eventFuncDocument_htmlevent_DragEvent(listener)
_this.Value_JS.Set("ondrop", cb)
return cb
}
// AddDurationChange is adding doing AddEventListener for 'DurationChange' on target.
// This method is returning allocated javascript function that need to be released.
func (_this *Document) AddEventDurationChange(listener func(event *domcore.Event, currentTarget *Document)) js.Func {
cb := eventFuncDocument_domcore_Event(listener)
_this.Value_JS.Call("addEventListener", "durationchange", cb)
return cb
}
// SetOnDurationChange is assigning a function to 'ondurationchange'. This
// This method is returning allocated javascript function that need to be released.
func (_this *Document) SetOnDurationChange(listener func(event *domcore.Event, currentTarget *Document)) js.Func {
cb := eventFuncDocument_domcore_Event(listener)
_this.Value_JS.Set("ondurationchange", cb)
return cb
}
// AddEmptied is adding doing AddEventListener for 'Emptied' on target.
// This method is returning allocated javascript function that need to be released.
func (_this *Document) AddEventEmptied(listener func(event *domcore.Event, currentTarget *Document)) js.Func {
cb := eventFuncDocument_domcore_Event(listener)
_this.Value_JS.Call("addEventListener", "emptied", cb)
return cb
}
// SetOnEmptied is assigning a function to 'onemptied'. This
// This method is returning allocated javascript function that need to be released.
func (_this *Document) SetOnEmptied(listener func(event *domcore.Event, currentTarget *Document)) js.Func {
cb := eventFuncDocument_domcore_Event(listener)
_this.Value_JS.Set("onemptied", cb)
return cb
}
// AddEnded is adding doing AddEventListener for 'Ended' on target.
// This method is returning allocated javascript function that need to be released.
func (_this *Document) AddEventEnded(listener func(event *domcore.Event, currentTarget *Document)) js.Func {
cb := eventFuncDocument_domcore_Event(listener)
_this.Value_JS.Call("addEventListener", "ended", cb)
return cb
}
// SetOnEnded is assigning a function to 'onended'. This
// This method is returning allocated javascript function that need to be released.
func (_this *Document) SetOnEnded(listener func(event *domcore.Event, currentTarget *Document)) js.Func {
cb := eventFuncDocument_domcore_Event(listener)
_this.Value_JS.Set("onended", cb)
return cb
}
// AddError is adding doing AddEventListener for 'Error' on target.
// This method is returning allocated javascript function that need to be released.
func (_this *Document) AddEventError(listener func(event *domcore.Event, currentTarget *Document)) js.Func {
cb := eventFuncDocument_domcore_Event(listener)
_this.Value_JS.Call("addEventListener", "error", cb)
return cb
}
// SetOnError is assigning a function to 'onerror'. This
// This method is returning allocated javascript function that need to be released.
func (_this *Document) SetOnError(listener func(event *domcore.Event, currentTarget *Document)) js.Func {
cb := eventFuncDocument_domcore_Event(listener)
_this.Value_JS.Set("onerror", cb)
return cb
}
// AddFocus is adding doing AddEventListener for 'Focus' on target.
// This method is returning allocated javascript function that need to be released.
func (_this *Document) AddEventFocus(listener func(event *htmlevent.FocusEvent, currentTarget *Document)) js.Func {
cb := eventFuncDocument_htmlevent_FocusEvent(listener)
_this.Value_JS.Call("addEventListener", "focus", cb)
return cb
}
// SetOnFocus is assigning a function to 'onfocus'. This
// This method is returning allocated javascript function that need to be released.
func (_this *Document) SetOnFocus(listener func(event *htmlevent.FocusEvent, currentTarget *Document)) js.Func {
cb := eventFuncDocument_htmlevent_FocusEvent(listener)
_this.Value_JS.Set("onfocus", cb)
return cb
}
// event attribute: html.FormDataEvent
func eventFuncDocument_html_FormDataEvent(listener func(event *html.FormDataEvent, target *Document)) js.Func {
fn := func(this js.Value, args []js.Value) interface{} {
var ret *html.FormDataEvent
value := args[0]
incoming := value.Get("target")
ret = html.FormDataEventFromJS(value)
src := DocumentFromJS(incoming)
listener(ret, src)
return js.Undefined
}
return js.FuncOf(fn)
}
// AddFormData is adding doing AddEventListener for 'FormData' on target.
// This method is returning allocated javascript function that need to be released.
func (_this *Document) AddEventFormData(listener func(event *html.FormDataEvent, currentTarget *Document)) js.Func {
cb := eventFuncDocument_html_FormDataEvent(listener)
_this.Value_JS.Call("addEventListener", "formdata", cb)
return cb
}
// SetOnFormData is assigning a function to 'onformdata'. This
// This method is returning allocated javascript function that need to be released.
func (_this *Document) SetOnFormData(listener func(event *html.FormDataEvent, currentTarget *Document)) js.Func {
cb := eventFuncDocument_html_FormDataEvent(listener)
_this.Value_JS.Set("onformdata", cb)
return cb
}
// AddFullscreenChange is adding doing AddEventListener for 'FullscreenChange' on target.
// This method is returning allocated javascript function that need to be released.
func (_this *Document) AddEventFullscreenChange(listener func(event *domcore.Event, currentTarget *Document)) js.Func {
cb := eventFuncDocument_domcore_Event(listener)
_this.Value_JS.Call("addEventListener", "fullscreenchange", cb)
return cb
}
// SetOnFullscreenChange is assigning a function to 'onfullscreenchange'. This
// This method is returning allocated javascript function that need to be released.
func (_this *Document) SetOnFullscreenChange(listener func(event *domcore.Event, currentTarget *Document)) js.Func {
cb := eventFuncDocument_domcore_Event(listener)
_this.Value_JS.Set("onfullscreenchange", cb)
return cb
}
// AddFullscreenError is adding doing AddEventListener for 'FullscreenError' on target.
// This method is returning allocated javascript function that need to be released.
func (_this *Document) AddEventFullscreenError(listener func(event *domcore.Event, currentTarget *Document)) js.Func {
cb := eventFuncDocument_domcore_Event(listener)
_this.Value_JS.Call("addEventListener", "fullscreenerror", cb)
return cb
}
// SetOnFullscreenError is assigning a function to 'onfullscreenerror'. This
// This method is returning allocated javascript function that need to be released.
func (_this *Document) SetOnFullscreenError(listener func(event *domcore.Event, currentTarget *Document)) js.Func {
cb := eventFuncDocument_domcore_Event(listener)
_this.Value_JS.Set("onfullscreenerror", cb)
return cb
}
// event attribute: htmlevent.PointerEvent
func eventFuncDocument_htmlevent_PointerEvent(listener func(event *htmlevent.PointerEvent, target *Document)) js.Func {
fn := func(this js.Value, args []js.Value) interface{} {
var ret *htmlevent.PointerEvent
value := args[0]
incoming := value.Get("target")
ret = htmlevent.PointerEventFromJS(value)
src := DocumentFromJS(incoming)
listener(ret, src)
return js.Undefined
}
return js.FuncOf(fn)
}
// AddGotPointerCapture is adding doing AddEventListener for 'GotPointerCapture' on target.
// This method is returning allocated javascript function that need to be released.
func (_this *Document) AddEventGotPointerCapture(listener func(event *htmlevent.PointerEvent, currentTarget *Document)) js.Func {
cb := eventFuncDocument_htmlevent_PointerEvent(listener)
_this.Value_JS.Call("addEventListener", "gotpointercapture", cb)
return cb
}
// SetOnGotPointerCapture is assigning a function to 'ongotpointercapture'. This
// This method is returning allocated javascript function that need to be released.
func (_this *Document) SetOnGotPointerCapture(listener func(event *htmlevent.PointerEvent, currentTarget *Document)) js.Func {
cb := eventFuncDocument_htmlevent_PointerEvent(listener)
_this.Value_JS.Set("ongotpointercapture", cb)
return cb
}
// event attribute: htmlevent.InputEvent
func eventFuncDocument_htmlevent_InputEvent(listener func(event *htmlevent.InputEvent, target *Document)) js.Func {
fn := func(this js.Value, args []js.Value) interface{} {
var ret *htmlevent.InputEvent
value := args[0]
incoming := value.Get("target")
ret = htmlevent.InputEventFromJS(value)
src := DocumentFromJS(incoming)
listener(ret, src)
return js.Undefined
}
return js.FuncOf(fn)
}
// AddInput is adding doing AddEventListener for 'Input' on target.
// This method is returning allocated javascript function that need to be released.
func (_this *Document) AddEventInput(listener func(event *htmlevent.InputEvent, currentTarget *Document)) js.Func {
cb := eventFuncDocument_htmlevent_InputEvent(listener)
_this.Value_JS.Call("addEventListener", "input", cb)
return cb
}
// SetOnInput is assigning a function to 'oninput'. This
// This method is returning allocated javascript function that need to be released.
func (_this *Document) SetOnInput(listener func(event *htmlevent.InputEvent, currentTarget *Document)) js.Func {
cb := eventFuncDocument_htmlevent_InputEvent(listener)
_this.Value_JS.Set("oninput", cb)
return cb
}
// AddInvalid is adding doing AddEventListener for 'Invalid' on target.
// This method is returning allocated javascript function that need to be released.
func (_this *Document) AddEventInvalid(listener func(event *domcore.Event, currentTarget *Document)) js.Func {
cb := eventFuncDocument_domcore_Event(listener)
_this.Value_JS.Call("addEventListener", "invalid", cb)
return cb
}
// SetOnInvalid is assigning a function to 'oninvalid'. This
// This method is returning allocated javascript function that need to be released.
func (_this *Document) SetOnInvalid(listener func(event *domcore.Event, currentTarget *Document)) js.Func {
cb := eventFuncDocument_domcore_Event(listener)
_this.Value_JS.Set("oninvalid", cb)
return cb
}
// event attribute: htmlevent.KeyboardEvent
func eventFuncDocument_htmlevent_KeyboardEvent(listener func(event *htmlevent.KeyboardEvent, target *Document)) js.Func {
fn := func(this js.Value, args []js.Value) interface{} {
var ret *htmlevent.KeyboardEvent
value := args[0]
incoming := value.Get("target")
ret = htmlevent.KeyboardEventFromJS(value)
src := DocumentFromJS(incoming)
listener(ret, src)
return js.Undefined
}
return js.FuncOf(fn)
}
// AddKeyDown is adding doing AddEventListener for 'KeyDown' on target.
// This method is returning allocated javascript function that need to be released.
func (_this *Document) AddEventKeyDown(listener func(event *htmlevent.KeyboardEvent, currentTarget *Document)) js.Func {
cb := eventFuncDocument_htmlevent_KeyboardEvent(listener)
_this.Value_JS.Call("addEventListener", "keydown", cb)
return cb
}
// SetOnKeyDown is assigning a function to 'onkeydown'. This
// This method is returning allocated javascript function that need to be released.
func (_this *Document) SetOnKeyDown(listener func(event *htmlevent.KeyboardEvent, currentTarget *Document)) js.Func {
cb := eventFuncDocument_htmlevent_KeyboardEvent(listener)
_this.Value_JS.Set("onkeydown", cb)
return cb
}
// AddKeyPress is adding doing AddEventListener for 'KeyPress' on target.
// This method is returning allocated javascript function that need to be released.
func (_this *Document) AddEventKeyPress(listener func(event *htmlevent.KeyboardEvent, currentTarget *Document)) js.Func {
cb := eventFuncDocument_htmlevent_KeyboardEvent(listener)
_this.Value_JS.Call("addEventListener", "keypress", cb)
return cb
}
// SetOnKeyPress is assigning a function to 'onkeypress'. This
// This method is returning allocated javascript function that need to be released.
func (_this *Document) SetOnKeyPress(listener func(event *htmlevent.KeyboardEvent, currentTarget *Document)) js.Func {
cb := eventFuncDocument_htmlevent_KeyboardEvent(listener)
_this.Value_JS.Set("onkeypress", cb)
return cb
}
// AddKeyUp is adding doing AddEventListener for 'KeyUp' on target.
// This method is returning allocated javascript function that need to be released.
func (_this *Document) AddEventKeyUp(listener func(event *htmlevent.KeyboardEvent, currentTarget *Document)) js.Func {
cb := eventFuncDocument_htmlevent_KeyboardEvent(listener)
_this.Value_JS.Call("addEventListener", "keyup", cb)
return cb
}
// SetOnKeyUp is assigning a function to 'onkeyup'. This
// This method is returning allocated javascript function that need to be released.
func (_this *Document) SetOnKeyUp(listener func(event *htmlevent.KeyboardEvent, currentTarget *Document)) js.Func {
cb := eventFuncDocument_htmlevent_KeyboardEvent(listener)
_this.Value_JS.Set("onkeyup", cb)
return cb
}
// AddLoad is adding doing AddEventListener for 'Load' on target.
// This method is returning allocated javascript function that need to be released.
func (_this *Document) AddEventLoad(listener func(event *domcore.Event, currentTarget *Document)) js.Func {
cb := eventFuncDocument_domcore_Event(listener)
_this.Value_JS.Call("addEventListener", "load", cb)
return cb
}
// SetOnLoad is assigning a function to 'onload'. This
// This method is returning allocated javascript function that need to be released.
func (_this *Document) SetOnLoad(listener func(event *domcore.Event, currentTarget *Document)) js.Func {
cb := eventFuncDocument_domcore_Event(listener)
_this.Value_JS.Set("onload", cb)
return cb
}
// AddLoadedData is adding doing AddEventListener for 'LoadedData' on target.
// This method is returning allocated javascript function that need to be released.
func (_this *Document) AddEventLoadedData(listener func(event *domcore.Event, currentTarget *Document)) js.Func {
cb := eventFuncDocument_domcore_Event(listener)
_this.Value_JS.Call("addEventListener", "loadeddata", cb)
return cb
}
// SetOnLoadedData is assigning a function to 'onloadeddata'. This
// This method is returning allocated javascript function that need to be released.
func (_this *Document) SetOnLoadedData(listener func(event *domcore.Event, currentTarget *Document)) js.Func {
cb := eventFuncDocument_domcore_Event(listener)
_this.Value_JS.Set("onloadeddata", cb)
return cb
}
// AddLoadedMetaData is adding doing AddEventListener for 'LoadedMetaData' on target.
// This method is returning allocated javascript function that need to be released.
func (_this *Document) AddEventLoadedMetaData(listener func(event *domcore.Event, currentTarget *Document)) js.Func {
cb := eventFuncDocument_domcore_Event(listener)
_this.Value_JS.Call("addEventListener", "loadedmetadata", cb)
return cb
}
// SetOnLoadedMetaData is assigning a function to 'onloadedmetadata'. This
// This method is returning allocated javascript function that need to be released.
func (_this *Document) SetOnLoadedMetaData(listener func(event *domcore.Event, currentTarget *Document)) js.Func {
cb := eventFuncDocument_domcore_Event(listener)
_this.Value_JS.Set("onloadedmetadata", cb)
return cb
}
// event attribute: xhr.ProgressEvent
func eventFuncDocument_xhr_ProgressEvent(listener func(event *xhr.ProgressEvent, target *Document)) js.Func {
fn := func(this js.Value, args []js.Value) interface{} {
var ret *xhr.ProgressEvent
value := args[0]
incoming := value.Get("target")
ret = xhr.ProgressEventFromJS(value)
src := DocumentFromJS(incoming)
listener(ret, src)
return js.Undefined
}
return js.FuncOf(fn)
}
// AddLoadEnd is adding doing AddEventListener for 'LoadEnd' on target.
// This method is returning allocated javascript function that need to be released.
func (_this *Document) AddEventLoadEnd(listener func(event *xhr.ProgressEvent, currentTarget *Document)) js.Func {
cb := eventFuncDocument_xhr_ProgressEvent(listener)
_this.Value_JS.Call("addEventListener", "loadend", cb)
return cb
}
// SetOnLoadEnd is assigning a function to 'onloadend'. This
// This method is returning allocated javascript function that need to be released.
func (_this *Document) SetOnLoadEnd(listener func(event *xhr.ProgressEvent, currentTarget *Document)) js.Func {
cb := eventFuncDocument_xhr_ProgressEvent(listener)
_this.Value_JS.Set("onloadend", cb)
return cb
}
// AddLoadStart is adding doing AddEventListener for 'LoadStart' on target.
// This method is returning allocated javascript function that need to be released.
func (_this *Document) AddEventLoadStart(listener func(event *domcore.Event, currentTarget *Document)) js.Func {
cb := eventFuncDocument_domcore_Event(listener)
_this.Value_JS.Call("addEventListener", "loadstart", cb)
return cb
}
// SetOnLoadStart is assigning a function to 'onloadstart'. This
// This method is returning allocated javascript function that need to be released.
func (_this *Document) SetOnLoadStart(listener func(event *domcore.Event, currentTarget *Document)) js.Func {
cb := eventFuncDocument_domcore_Event(listener)
_this.Value_JS.Set("onloadstart", cb)
return cb
}
// AddLostPointerCapture is adding doing AddEventListener for 'LostPointerCapture' on target.
// This method is returning allocated javascript function that need to be released.
func (_this *Document) AddEventLostPointerCapture(listener func(event *htmlevent.PointerEvent, currentTarget *Document)) js.Func {
cb := eventFuncDocument_htmlevent_PointerEvent(listener)
_this.Value_JS.Call("addEventListener", "lostpointercapture", cb)
return cb
}
// SetOnLostPointerCapture is assigning a function to 'onlostpointercapture'. This
// This method is returning allocated javascript function that need to be released.
func (_this *Document) SetOnLostPointerCapture(listener func(event *htmlevent.PointerEvent, currentTarget *Document)) js.Func {
cb := eventFuncDocument_htmlevent_PointerEvent(listener)
_this.Value_JS.Set("onlostpointercapture", cb)
return cb
}
// AddMouseDown is adding doing AddEventListener for 'MouseDown' on target.
// This method is returning allocated javascript function that need to be released.
func (_this *Document) AddEventMouseDown(listener func(event *htmlevent.MouseEvent, currentTarget *Document)) js.Func {
cb := eventFuncDocument_htmlevent_MouseEvent(listener)
_this.Value_JS.Call("addEventListener", "mousedown", cb)
return cb
}
// SetOnMouseDown is assigning a function to 'onmousedown'. This
// This method is returning allocated javascript function that need to be released.
func (_this *Document) SetOnMouseDown(listener func(event *htmlevent.MouseEvent, currentTarget *Document)) js.Func {
cb := eventFuncDocument_htmlevent_MouseEvent(listener)
_this.Value_JS.Set("onmousedown", cb)
return cb
}
// AddMouseEnter is adding doing AddEventListener for 'MouseEnter' on target.
// This method is returning allocated javascript function that need to be released.
func (_this *Document) AddEventMouseEnter(listener func(event *htmlevent.MouseEvent, currentTarget *Document)) js.Func {
cb := eventFuncDocument_htmlevent_MouseEvent(listener)
_this.Value_JS.Call("addEventListener", "mouseenter", cb)
return cb
}
// SetOnMouseEnter is assigning a function to 'onmouseenter'. This
// This method is returning allocated javascript function that need to be released.
func (_this *Document) SetOnMouseEnter(listener func(event *htmlevent.MouseEvent, currentTarget *Document)) js.Func {
cb := eventFuncDocument_htmlevent_MouseEvent(listener)
_this.Value_JS.Set("onmouseenter", cb)
return cb
}
// AddMouseLeave is adding doing AddEventListener for 'MouseLeave' on target.
// This method is returning allocated javascript function that need to be released.
func (_this *Document) AddEventMouseLeave(listener func(event *htmlevent.MouseEvent, currentTarget *Document)) js.Func {
cb := eventFuncDocument_htmlevent_MouseEvent(listener)
_this.Value_JS.Call("addEventListener", "mouseleave", cb)
return cb
}
// SetOnMouseLeave is assigning a function to 'onmouseleave'. This
// This method is returning allocated javascript function that need to be released.
func (_this *Document) SetOnMouseLeave(listener func(event *htmlevent.MouseEvent, currentTarget *Document)) js.Func {
cb := eventFuncDocument_htmlevent_MouseEvent(listener)
_this.Value_JS.Set("onmouseleave", cb)
return cb
}
// AddMouseMove is adding doing AddEventListener for 'MouseMove' on target.
// This method is returning allocated javascript function that need to be released.
func (_this *Document) AddEventMouseMove(listener func(event *htmlevent.MouseEvent, currentTarget *Document)) js.Func {
cb := eventFuncDocument_htmlevent_MouseEvent(listener)
_this.Value_JS.Call("addEventListener", "mousemove", cb)
return cb
}
// SetOnMouseMove is assigning a function to 'onmousemove'. This
// This method is returning allocated javascript function that need to be released.
func (_this *Document) SetOnMouseMove(listener func(event *htmlevent.MouseEvent, currentTarget *Document)) js.Func {
cb := eventFuncDocument_htmlevent_MouseEvent(listener)
_this.Value_JS.Set("onmousemove", cb)
return cb
}
// AddMouseOut is adding doing AddEventListener for 'MouseOut' on target.
// This method is returning allocated javascript function that need to be released.
func (_this *Document) AddEventMouseOut(listener func(event *htmlevent.MouseEvent, currentTarget *Document)) js.Func {
cb := eventFuncDocument_htmlevent_MouseEvent(listener)
_this.Value_JS.Call("addEventListener", "mouseout", cb)
return cb
}
// SetOnMouseOut is assigning a function to 'onmouseout'. This
// This method is returning allocated javascript function that need to be released.
func (_this *Document) SetOnMouseOut(listener func(event *htmlevent.MouseEvent, currentTarget *Document)) js.Func {
cb := eventFuncDocument_htmlevent_MouseEvent(listener)
_this.Value_JS.Set("onmouseout", cb)
return cb
}
// AddMouseOver is adding doing AddEventListener for 'MouseOver' on target.
// This method is returning allocated javascript function that need to be released.
func (_this *Document) AddEventMouseOver(listener func(event *htmlevent.MouseEvent, currentTarget *Document)) js.Func {
cb := eventFuncDocument_htmlevent_MouseEvent(listener)
_this.Value_JS.Call("addEventListener", "mouseover", cb)
return cb
}
// SetOnMouseOver is assigning a function to 'onmouseover'. This
// This method is returning allocated javascript function that need to be released.
func (_this *Document) SetOnMouseOver(listener func(event *htmlevent.MouseEvent, currentTarget *Document)) js.Func {
cb := eventFuncDocument_htmlevent_MouseEvent(listener)
_this.Value_JS.Set("onmouseover", cb)
return cb
}
// AddMouseUp is adding doing AddEventListener for 'MouseUp' on target.
// This method is returning allocated javascript function that need to be released.
func (_this *Document) AddEventMouseUp(listener func(event *htmlevent.MouseEvent, currentTarget *Document)) js.Func {
cb := eventFuncDocument_htmlevent_MouseEvent(listener)
_this.Value_JS.Call("addEventListener", "mouseup", cb)
return cb
}
// SetOnMouseUp is assigning a function to 'onmouseup'. This
// This method is returning allocated javascript function that need to be released.
func (_this *Document) SetOnMouseUp(listener func(event *htmlevent.MouseEvent, currentTarget *Document)) js.Func {
cb := eventFuncDocument_htmlevent_MouseEvent(listener)
_this.Value_JS.Set("onmouseup", cb)
return cb
}
// AddPaste is adding doing AddEventListener for 'Paste' on target.
// This method is returning allocated javascript function that need to be released.
func (_this *Document) AddEventPaste(listener func(event *clipboard.ClipboardEvent, currentTarget *Document)) js.Func {
cb := eventFuncDocument_clipboard_ClipboardEvent(listener)
_this.Value_JS.Call("addEventListener", "paste", cb)
return cb
}
// SetOnPaste is assigning a function to 'onpaste'. This
// This method is returning allocated javascript function that need to be released.
func (_this *Document) SetOnPaste(listener func(event *clipboard.ClipboardEvent, currentTarget *Document)) js.Func {
cb := eventFuncDocument_clipboard_ClipboardEvent(listener)
_this.Value_JS.Set("onpaste", cb)
return cb
}
// AddPause is adding doing AddEventListener for 'Pause' on target.
// This method is returning allocated javascript function that need to be released.
func (_this *Document) AddEventPause(listener func(event *domcore.Event, currentTarget *Document)) js.Func {
cb := eventFuncDocument_domcore_Event(listener)
_this.Value_JS.Call("addEventListener", "pause", cb)
return cb
}
// SetOnPause is assigning a function to 'onpause'. This
// This method is returning allocated javascript function that need to be released.
func (_this *Document) SetOnPause(listener func(event *domcore.Event, currentTarget *Document)) js.Func {
cb := eventFuncDocument_domcore_Event(listener)
_this.Value_JS.Set("onpause", cb)
return cb
}
// AddPlay is adding doing AddEventListener for 'Play' on target.
// This method is returning allocated javascript function that need to be released.
func (_this *Document) AddEventPlay(listener func(event *domcore.Event, currentTarget *Document)) js.Func {
cb := eventFuncDocument_domcore_Event(listener)
_this.Value_JS.Call("addEventListener", "play", cb)
return cb
}
// SetOnPlay is assigning a function to 'onplay'. This
// This method is returning allocated javascript function that need to be released.
func (_this *Document) SetOnPlay(listener func(event *domcore.Event, currentTarget *Document)) js.Func {
cb := eventFuncDocument_domcore_Event(listener)
_this.Value_JS.Set("onplay", cb)
return cb
}
// AddPlaying is adding doing AddEventListener for 'Playing' on target.
// This method is returning allocated javascript function that need to be released.
func (_this *Document) AddEventPlaying(listener func(event *domcore.Event, currentTarget *Document)) js.Func {
cb := eventFuncDocument_domcore_Event(listener)
_this.Value_JS.Call("addEventListener", "playing", cb)
return cb
}
// SetOnPlaying is assigning a function to 'onplaying'. This
// This method is returning allocated javascript function that need to be released.
func (_this *Document) SetOnPlaying(listener func(event *domcore.Event, currentTarget *Document)) js.Func {
cb := eventFuncDocument_domcore_Event(listener)
_this.Value_JS.Set("onplaying", cb)
return cb
}
// AddPointerCancel is adding doing AddEventListener for 'PointerCancel' on target.
// This method is returning allocated javascript function that need to be released.
func (_this *Document) AddEventPointerCancel(listener func(event *htmlevent.PointerEvent, currentTarget *Document)) js.Func {
cb := eventFuncDocument_htmlevent_PointerEvent(listener)
_this.Value_JS.Call("addEventListener", "pointercancel", cb)
return cb
}
// SetOnPointerCancel is assigning a function to 'onpointercancel'. This
// This method is returning allocated javascript function that need to be released.
func (_this *Document) SetOnPointerCancel(listener func(event *htmlevent.PointerEvent, currentTarget *Document)) js.Func {
cb := eventFuncDocument_htmlevent_PointerEvent(listener)
_this.Value_JS.Set("onpointercancel", cb)
return cb
}
// AddPointerDown is adding doing AddEventListener for 'PointerDown' on target.
// This method is returning allocated javascript function that need to be released.
func (_this *Document) AddEventPointerDown(listener func(event *htmlevent.PointerEvent, currentTarget *Document)) js.Func {
cb := eventFuncDocument_htmlevent_PointerEvent(listener)
_this.Value_JS.Call("addEventListener", "pointerdown", cb)
return cb
}
// SetOnPointerDown is assigning a function to 'onpointerdown'. This
// This method is returning allocated javascript function that need to be released.
func (_this *Document) SetOnPointerDown(listener func(event *htmlevent.PointerEvent, currentTarget *Document)) js.Func {
cb := eventFuncDocument_htmlevent_PointerEvent(listener)
_this.Value_JS.Set("onpointerdown", cb)
return cb
}
// AddPointerEnter is adding doing AddEventListener for 'PointerEnter' on target.
// This method is returning allocated javascript function that need to be released.
func (_this *Document) AddEventPointerEnter(listener func(event *htmlevent.PointerEvent, currentTarget *Document)) js.Func {
cb := eventFuncDocument_htmlevent_PointerEvent(listener)
_this.Value_JS.Call("addEventListener", "pointerenter", cb)
return cb
}
// SetOnPointerEnter is assigning a function to 'onpointerenter'. This
// This method is returning allocated javascript function that need to be released.
func (_this *Document) SetOnPointerEnter(listener func(event *htmlevent.PointerEvent, currentTarget *Document)) js.Func {
cb := eventFuncDocument_htmlevent_PointerEvent(listener)
_this.Value_JS.Set("onpointerenter", cb)
return cb
}
// AddPointerLeave is adding doing AddEventListener for 'PointerLeave' on target.
// This method is returning allocated javascript function that need to be released.
func (_this *Document) AddEventPointerLeave(listener func(event *htmlevent.PointerEvent, currentTarget *Document)) js.Func {
cb := eventFuncDocument_htmlevent_PointerEvent(listener)
_this.Value_JS.Call("addEventListener", "pointerleave", cb)
return cb
}
// SetOnPointerLeave is assigning a function to 'onpointerleave'. This
// This method is returning allocated javascript function that need to be released.
func (_this *Document) SetOnPointerLeave(listener func(event *htmlevent.PointerEvent, currentTarget *Document)) js.Func {
cb := eventFuncDocument_htmlevent_PointerEvent(listener)
_this.Value_JS.Set("onpointerleave", cb)
return cb
}
// AddPointerLockChange is adding doing AddEventListener for 'PointerLockChange' on target.
// This method is returning allocated javascript function that need to be released.
func (_this *Document) AddEventPointerLockChange(listener func(event *domcore.Event, currentTarget *Document)) js.Func {
cb := eventFuncDocument_domcore_Event(listener)
_this.Value_JS.Call("addEventListener", "pointerlockchange", cb)
return cb
}
// SetOnPointerLockChange is assigning a function to 'onpointerlockchange'. This
// This method is returning allocated javascript function that need to be released.
func (_this *Document) SetOnPointerLockChange(listener func(event *domcore.Event, currentTarget *Document)) js.Func {
cb := eventFuncDocument_domcore_Event(listener)
_this.Value_JS.Set("onpointerlockchange", cb)
return cb
}
// AddPointerLockError is adding doing AddEventListener for 'PointerLockError' on target.
// This method is returning allocated javascript function that need to be released.
func (_this *Document) AddEventPointerLockError(listener func(event *domcore.Event, currentTarget *Document)) js.Func {
cb := eventFuncDocument_domcore_Event(listener)
_this.Value_JS.Call("addEventListener", "pointerlockerror", cb)
return cb
}
// SetOnPointerLockError is assigning a function to 'onpointerlockerror'. This
// This method is returning allocated javascript function that need to be released.
func (_this *Document) SetOnPointerLockError(listener func(event *domcore.Event, currentTarget *Document)) js.Func {
cb := eventFuncDocument_domcore_Event(listener)
_this.Value_JS.Set("onpointerlockerror", cb)
return cb
}
// AddPointerMove is adding doing AddEventListener for 'PointerMove' on target.
// This method is returning allocated javascript function that need to be released.
func (_this *Document) AddEventPointerMove(listener func(event *htmlevent.PointerEvent, currentTarget *Document)) js.Func {
cb := eventFuncDocument_htmlevent_PointerEvent(listener)
_this.Value_JS.Call("addEventListener", "pointermove", cb)
return cb
}
// SetOnPointerMove is assigning a function to 'onpointermove'. This
// This method is returning allocated javascript function that need to be released.
func (_this *Document) SetOnPointerMove(listener func(event *htmlevent.PointerEvent, currentTarget *Document)) js.Func {
cb := eventFuncDocument_htmlevent_PointerEvent(listener)
_this.Value_JS.Set("onpointermove", cb)
return cb
}
// AddPointerOut is adding doing AddEventListener for 'PointerOut' on target.
// This method is returning allocated javascript function that need to be released.
func (_this *Document) AddEventPointerOut(listener func(event *htmlevent.PointerEvent, currentTarget *Document)) js.Func {
cb := eventFuncDocument_htmlevent_PointerEvent(listener)
_this.Value_JS.Call("addEventListener", "pointerout", cb)
return cb
}
// SetOnPointerOut is assigning a function to 'onpointerout'. This
// This method is returning allocated javascript function that need to be released.
func (_this *Document) SetOnPointerOut(listener func(event *htmlevent.PointerEvent, currentTarget *Document)) js.Func {
cb := eventFuncDocument_htmlevent_PointerEvent(listener)
_this.Value_JS.Set("onpointerout", cb)
return cb
}
// AddPointerOver is adding doing AddEventListener for 'PointerOver' on target.
// This method is returning allocated javascript function that need to be released.
func (_this *Document) AddEventPointerOver(listener func(event *htmlevent.PointerEvent, currentTarget *Document)) js.Func {
cb := eventFuncDocument_htmlevent_PointerEvent(listener)
_this.Value_JS.Call("addEventListener", "pointerover", cb)
return cb
}
// SetOnPointerOver is assigning a function to 'onpointerover'. This
// This method is returning allocated javascript function that need to be released.
func (_this *Document) SetOnPointerOver(listener func(event *htmlevent.PointerEvent, currentTarget *Document)) js.Func {
cb := eventFuncDocument_htmlevent_PointerEvent(listener)
_this.Value_JS.Set("onpointerover", cb)
return cb
}
// AddPointerUp is adding doing AddEventListener for 'PointerUp' on target.
// This method is returning allocated javascript function that need to be released.
func (_this *Document) AddEventPointerUp(listener func(event *htmlevent.PointerEvent, currentTarget *Document)) js.Func {
cb := eventFuncDocument_htmlevent_PointerEvent(listener)
_this.Value_JS.Call("addEventListener", "pointerup", cb)
return cb
}
// SetOnPointerUp is assigning a function to 'onpointerup'. This
// This method is returning allocated javascript function that need to be released.
func (_this *Document) SetOnPointerUp(listener func(event *htmlevent.PointerEvent, currentTarget *Document)) js.Func {
cb := eventFuncDocument_htmlevent_PointerEvent(listener)
_this.Value_JS.Set("onpointerup", cb)