Documentation ¶
Overview ¶
Package htmlevent contains events and callbacks types.
Source: HTML Standard (https://html.spec.whatwg.org/)
Index ¶
- Constants
- type CompositionEvent
- type CompositionEventInit
- type DragEvent
- type DragEventInit
- type ErrorEvent
- type ErrorEventInit
- type EventModifierInit
- type FocusEvent
- type FocusEventInit
- type HashChangeEvent
- type HashChangeEventInit
- type InputEvent
- type InputEventInit
- type KeyboardEvent
- func (_this *KeyboardEvent) AltKey() bool
- func (_this *KeyboardEvent) CharCode() uint
- func (_this *KeyboardEvent) Code() string
- func (_this *KeyboardEvent) CtrlKey() bool
- func (_this *KeyboardEvent) GetModifierState(keyArg string) (_result bool)
- func (_this *KeyboardEvent) IsComposing() bool
- func (_this *KeyboardEvent) Key() string
- func (_this *KeyboardEvent) KeyCode() uint
- func (_this *KeyboardEvent) Location() uint
- func (_this *KeyboardEvent) MetaKey() bool
- func (_this *KeyboardEvent) Repeat() bool
- func (_this *KeyboardEvent) ShiftKey() bool
- type KeyboardEventInit
- type MouseEvent
- func (_this *MouseEvent) AltKey() bool
- func (_this *MouseEvent) Button() int
- func (_this *MouseEvent) Buttons() int
- func (_this *MouseEvent) ClientX() float64
- func (_this *MouseEvent) ClientY() float64
- func (_this *MouseEvent) CtrlKey() bool
- func (_this *MouseEvent) GetModifierState(keyArg string) (_result bool)
- func (_this *MouseEvent) MetaKey() bool
- func (_this *MouseEvent) MovementX() int
- func (_this *MouseEvent) MovementY() int
- func (_this *MouseEvent) OffsetX() float64
- func (_this *MouseEvent) OffsetY() float64
- func (_this *MouseEvent) PageX() float64
- func (_this *MouseEvent) PageY() float64
- func (_this *MouseEvent) RelatedTarget() *domcore.EventTarget
- func (_this *MouseEvent) ScreenX() float64
- func (_this *MouseEvent) ScreenY() float64
- func (_this *MouseEvent) ShiftKey() bool
- func (_this *MouseEvent) X() float64
- func (_this *MouseEvent) Y() float64
- type MouseEventInit
- type PageTransitionEvent
- type PageTransitionEventInit
- type PointerEvent
- func (_this *PointerEvent) GetCoalescedEvents() (_result []*PointerEvent)
- func (_this *PointerEvent) GetPredictedEvents() (_result []*PointerEvent)
- func (_this *PointerEvent) Height() float64
- func (_this *PointerEvent) IsPrimary() bool
- func (_this *PointerEvent) PointerId() int
- func (_this *PointerEvent) PointerType() string
- func (_this *PointerEvent) Pressure() float32
- func (_this *PointerEvent) TangentialPressure() float32
- func (_this *PointerEvent) TiltX() int
- func (_this *PointerEvent) TiltY() int
- func (_this *PointerEvent) Twist() int
- func (_this *PointerEvent) Width() float64
- type PointerEventInit
- type PopStateEvent
- type PopStateEventInit
- type PromiseRejectionEvent
- type PromiseRejectionEventInit
- type Storage
- func (_this *Storage) Clear()
- func (_this *Storage) Delete(key string)
- func (_this *Storage) Get(key string) (_result *string)
- func (_this *Storage) GetItem(key string) (_result *string)
- func (_this *Storage) JSValue() js.Value
- func (_this *Storage) Key(index uint) (_result *string)
- func (_this *Storage) Length() uint
- func (_this *Storage) RemoveItem(key string)
- func (_this *Storage) Set(key string, value string)
- func (_this *Storage) SetItem(key string, value string)
- type StorageEvent
- func (_this *StorageEvent) InitStorageEvent(_type string, bubbles *bool, cancelable *bool, key *string, oldValue *string, ...)
- func (_this *StorageEvent) Key() *string
- func (_this *StorageEvent) NewValue() *string
- func (_this *StorageEvent) OldValue() *string
- func (_this *StorageEvent) StorageArea() *Storage
- func (_this *StorageEvent) Url() string
- type StorageEventInit
- type TrackEvent
- type TrackEventInit
- type UIEvent
- type UIEventInit
- type Union
- type WheelEvent
- type WheelEventInit
Constants ¶
const ( DOM_KEY_LOCATION_STANDARD uint = 0x00 DOM_KEY_LOCATION_LEFT uint = 0x01 DOM_KEY_LOCATION_RIGHT uint = 0x02 DOM_KEY_LOCATION_NUMPAD uint = 0x03 )
const ( DOM_DELTA_PIXEL uint = 0x00 DOM_DELTA_LINE uint = 0x01 DOM_DELTA_PAGE uint = 0x02 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CompositionEvent ¶
type CompositionEvent struct {
UIEvent
}
class: CompositionEvent
func CompositionEventFromJS ¶
func CompositionEventFromJS(value js.Value) *CompositionEvent
CompositionEventFromJS is casting a js.Value into CompositionEvent.
func CompositionEventFromWrapper ¶
func CompositionEventFromWrapper(input core.Wrapper) *CompositionEvent
CompositionEventFromJS is casting from something that holds a js.Value into CompositionEvent.
func NewCompositionEvent ¶
func NewCompositionEvent(_type string, eventInitDict *CompositionEventInit) (_result *CompositionEvent)
func (*CompositionEvent) Data ¶
func (_this *CompositionEvent) Data() string
Data returning attribute 'data' with type string (idl: DOMString).
type CompositionEventInit ¶
type CompositionEventInit struct { Bubbles bool Cancelable bool Composed bool View js.Value Detail int SourceCapabilities *inputcapabilities.InputDeviceCapabilities Data string }
dictionary: CompositionEventInit
func CompositionEventInitFromJS ¶
func CompositionEventInitFromJS(value js.Value) *CompositionEventInit
CompositionEventInitFromJS is allocating a new CompositionEventInit object and copy all values in the value javascript object.
func (*CompositionEventInit) JSValue ¶
func (_this *CompositionEventInit) JSValue() js.Value
JSValue is allocating a new javascript object and copy all values
type DragEvent ¶
type DragEvent struct {
MouseEvent
}
class: DragEvent
func DragEventFromJS ¶
DragEventFromJS is casting a js.Value into DragEvent.
func DragEventFromWrapper ¶
DragEventFromJS is casting from something that holds a js.Value into DragEvent.
func NewDragEvent ¶
func NewDragEvent(_type string, eventInitDict *DragEventInit) (_result *DragEvent)
func (*DragEvent) DataTransfer ¶
func (_this *DragEvent) DataTransfer() *datatransfer.DataTransfer
DataTransfer returning attribute 'dataTransfer' with type datatransfer.DataTransfer (idl: DataTransfer).
type DragEventInit ¶
type DragEventInit struct { Bubbles bool Cancelable bool Composed bool View js.Value Detail int SourceCapabilities *inputcapabilities.InputDeviceCapabilities CtrlKey bool ShiftKey bool AltKey bool MetaKey bool ModifierAltGraph bool ModifierCapsLock bool ModifierFn bool ModifierFnLock bool ModifierHyper bool ModifierNumLock bool ModifierScrollLock bool ModifierSuper bool ModifierSymbol bool ModifierSymbolLock bool Button int Buttons int RelatedTarget *domcore.EventTarget ScreenX float64 ScreenY float64 ClientX float64 ClientY float64 MovementX int MovementY int DataTransfer *datatransfer.DataTransfer }
dictionary: DragEventInit
func DragEventInitFromJS ¶
func DragEventInitFromJS(value js.Value) *DragEventInit
DragEventInitFromJS is allocating a new DragEventInit object and copy all values in the value javascript object.
func (*DragEventInit) JSValue ¶
func (_this *DragEventInit) JSValue() js.Value
JSValue is allocating a new javascript object and copy all values
type ErrorEvent ¶
class: ErrorEvent
func ErrorEventFromJS ¶
func ErrorEventFromJS(value js.Value) *ErrorEvent
ErrorEventFromJS is casting a js.Value into ErrorEvent.
func ErrorEventFromWrapper ¶
func ErrorEventFromWrapper(input core.Wrapper) *ErrorEvent
ErrorEventFromJS is casting from something that holds a js.Value into ErrorEvent.
func NewErrorEvent ¶
func NewErrorEvent(_type string, eventInitDict *ErrorEventInit) (_result *ErrorEvent)
func (*ErrorEvent) Colno ¶
func (_this *ErrorEvent) Colno() uint
Colno returning attribute 'colno' with type uint (idl: unsigned long).
func (*ErrorEvent) Error ¶
func (_this *ErrorEvent) Error() js.Value
Error returning attribute 'error' with type Any (idl: any).
func (*ErrorEvent) Filename ¶
func (_this *ErrorEvent) Filename() string
Filename returning attribute 'filename' with type string (idl: USVString).
func (*ErrorEvent) Lineno ¶
func (_this *ErrorEvent) Lineno() uint
Lineno returning attribute 'lineno' with type uint (idl: unsigned long).
func (*ErrorEvent) Message ¶
func (_this *ErrorEvent) Message() string
Message returning attribute 'message' with type string (idl: DOMString).
type ErrorEventInit ¶
type ErrorEventInit struct { Bubbles bool Cancelable bool Composed bool Message string Filename string Lineno uint Colno uint Error js.Value }
dictionary: ErrorEventInit
func ErrorEventInitFromJS ¶
func ErrorEventInitFromJS(value js.Value) *ErrorEventInit
ErrorEventInitFromJS is allocating a new ErrorEventInit object and copy all values in the value javascript object.
func (*ErrorEventInit) JSValue ¶
func (_this *ErrorEventInit) JSValue() js.Value
JSValue is allocating a new javascript object and copy all values
type EventModifierInit ¶
type EventModifierInit struct { Bubbles bool Cancelable bool Composed bool View js.Value Detail int SourceCapabilities *inputcapabilities.InputDeviceCapabilities CtrlKey bool ShiftKey bool AltKey bool MetaKey bool ModifierAltGraph bool ModifierCapsLock bool ModifierFn bool ModifierFnLock bool ModifierHyper bool ModifierNumLock bool ModifierScrollLock bool ModifierSuper bool ModifierSymbol bool ModifierSymbolLock bool }
dictionary: EventModifierInit
func EventModifierInitFromJS ¶
func EventModifierInitFromJS(value js.Value) *EventModifierInit
EventModifierInitFromJS is allocating a new EventModifierInit object and copy all values in the value javascript object.
func (*EventModifierInit) JSValue ¶
func (_this *EventModifierInit) JSValue() js.Value
JSValue is allocating a new javascript object and copy all values
type FocusEvent ¶
type FocusEvent struct {
UIEvent
}
class: FocusEvent
func FocusEventFromJS ¶
func FocusEventFromJS(value js.Value) *FocusEvent
FocusEventFromJS is casting a js.Value into FocusEvent.
func FocusEventFromWrapper ¶
func FocusEventFromWrapper(input core.Wrapper) *FocusEvent
FocusEventFromJS is casting from something that holds a js.Value into FocusEvent.
func NewFocusEvent ¶
func NewFocusEvent(_type string, eventInitDict *FocusEventInit) (_result *FocusEvent)
func (*FocusEvent) RelatedTarget ¶
func (_this *FocusEvent) RelatedTarget() *domcore.EventTarget
RelatedTarget returning attribute 'relatedTarget' with type domcore.EventTarget (idl: EventTarget).
type FocusEventInit ¶
type FocusEventInit struct { Bubbles bool Cancelable bool Composed bool View js.Value Detail int SourceCapabilities *inputcapabilities.InputDeviceCapabilities RelatedTarget *domcore.EventTarget }
dictionary: FocusEventInit
func FocusEventInitFromJS ¶
func FocusEventInitFromJS(value js.Value) *FocusEventInit
FocusEventInitFromJS is allocating a new FocusEventInit object and copy all values in the value javascript object.
func (*FocusEventInit) JSValue ¶
func (_this *FocusEventInit) JSValue() js.Value
JSValue is allocating a new javascript object and copy all values
type HashChangeEvent ¶
class: HashChangeEvent
func HashChangeEventFromJS ¶
func HashChangeEventFromJS(value js.Value) *HashChangeEvent
HashChangeEventFromJS is casting a js.Value into HashChangeEvent.
func HashChangeEventFromWrapper ¶
func HashChangeEventFromWrapper(input core.Wrapper) *HashChangeEvent
HashChangeEventFromJS is casting from something that holds a js.Value into HashChangeEvent.
func NewHashChangeEvent ¶
func NewHashChangeEvent(_type string, eventInitDict *HashChangeEventInit) (_result *HashChangeEvent)
func (*HashChangeEvent) NewURL ¶
func (_this *HashChangeEvent) NewURL() string
NewURL returning attribute 'newURL' with type string (idl: USVString).
func (*HashChangeEvent) OldURL ¶
func (_this *HashChangeEvent) OldURL() string
OldURL returning attribute 'oldURL' with type string (idl: USVString).
type HashChangeEventInit ¶
type HashChangeEventInit struct { Bubbles bool Cancelable bool Composed bool OldURL string NewURL string }
dictionary: HashChangeEventInit
func HashChangeEventInitFromJS ¶
func HashChangeEventInitFromJS(value js.Value) *HashChangeEventInit
HashChangeEventInitFromJS is allocating a new HashChangeEventInit object and copy all values in the value javascript object.
func (*HashChangeEventInit) JSValue ¶
func (_this *HashChangeEventInit) JSValue() js.Value
JSValue is allocating a new javascript object and copy all values
type InputEvent ¶
type InputEvent struct {
UIEvent
}
class: InputEvent
func InputEventFromJS ¶
func InputEventFromJS(value js.Value) *InputEvent
InputEventFromJS is casting a js.Value into InputEvent.
func InputEventFromWrapper ¶
func InputEventFromWrapper(input core.Wrapper) *InputEvent
InputEventFromJS is casting from something that holds a js.Value into InputEvent.
func NewInputEvent ¶
func NewInputEvent(_type string, eventInitDict *InputEventInit) (_result *InputEvent)
func (*InputEvent) Data ¶
func (_this *InputEvent) Data() *string
Data returning attribute 'data' with type string (idl: DOMString).
func (*InputEvent) DataTransfer ¶
func (_this *InputEvent) DataTransfer() *datatransfer.DataTransfer
DataTransfer returning attribute 'dataTransfer' with type datatransfer.DataTransfer (idl: DataTransfer).
func (*InputEvent) GetTargetRanges ¶
func (_this *InputEvent) GetTargetRanges() (_result []*dom.StaticRange)
func (*InputEvent) InputType ¶
func (_this *InputEvent) InputType() string
InputType returning attribute 'inputType' with type string (idl: DOMString).
func (*InputEvent) IsComposing ¶
func (_this *InputEvent) IsComposing() bool
IsComposing returning attribute 'isComposing' with type bool (idl: boolean).
type InputEventInit ¶
type InputEventInit struct { Bubbles bool Cancelable bool Composed bool View js.Value Detail int SourceCapabilities *inputcapabilities.InputDeviceCapabilities Data *string IsComposing bool InputType string DataTransfer *datatransfer.DataTransfer TargetRanges []*dom.StaticRange }
dictionary: InputEventInit
func InputEventInitFromJS ¶
func InputEventInitFromJS(value js.Value) *InputEventInit
InputEventInitFromJS is allocating a new InputEventInit object and copy all values in the value javascript object.
func (*InputEventInit) JSValue ¶
func (_this *InputEventInit) JSValue() js.Value
JSValue is allocating a new javascript object and copy all values
type KeyboardEvent ¶
type KeyboardEvent struct {
UIEvent
}
class: KeyboardEvent
func KeyboardEventFromJS ¶
func KeyboardEventFromJS(value js.Value) *KeyboardEvent
KeyboardEventFromJS is casting a js.Value into KeyboardEvent.
func KeyboardEventFromWrapper ¶
func KeyboardEventFromWrapper(input core.Wrapper) *KeyboardEvent
KeyboardEventFromJS is casting from something that holds a js.Value into KeyboardEvent.
func NewKeyboardEvent ¶
func NewKeyboardEvent(_type string, eventInitDict *KeyboardEventInit) (_result *KeyboardEvent)
func (*KeyboardEvent) AltKey ¶
func (_this *KeyboardEvent) AltKey() bool
AltKey returning attribute 'altKey' with type bool (idl: boolean).
func (*KeyboardEvent) CharCode ¶
func (_this *KeyboardEvent) CharCode() uint
CharCode returning attribute 'charCode' with type uint (idl: unsigned long).
func (*KeyboardEvent) Code ¶
func (_this *KeyboardEvent) Code() string
Code returning attribute 'code' with type string (idl: DOMString).
func (*KeyboardEvent) CtrlKey ¶
func (_this *KeyboardEvent) CtrlKey() bool
CtrlKey returning attribute 'ctrlKey' with type bool (idl: boolean).
func (*KeyboardEvent) GetModifierState ¶
func (_this *KeyboardEvent) GetModifierState(keyArg string) (_result bool)
func (*KeyboardEvent) IsComposing ¶
func (_this *KeyboardEvent) IsComposing() bool
IsComposing returning attribute 'isComposing' with type bool (idl: boolean).
func (*KeyboardEvent) Key ¶
func (_this *KeyboardEvent) Key() string
Key returning attribute 'key' with type string (idl: DOMString).
func (*KeyboardEvent) KeyCode ¶
func (_this *KeyboardEvent) KeyCode() uint
KeyCode returning attribute 'keyCode' with type uint (idl: unsigned long).
func (*KeyboardEvent) Location ¶
func (_this *KeyboardEvent) Location() uint
Location returning attribute 'location' with type uint (idl: unsigned long).
func (*KeyboardEvent) MetaKey ¶
func (_this *KeyboardEvent) MetaKey() bool
MetaKey returning attribute 'metaKey' with type bool (idl: boolean).
func (*KeyboardEvent) Repeat ¶
func (_this *KeyboardEvent) Repeat() bool
Repeat returning attribute 'repeat' with type bool (idl: boolean).
func (*KeyboardEvent) ShiftKey ¶
func (_this *KeyboardEvent) ShiftKey() bool
ShiftKey returning attribute 'shiftKey' with type bool (idl: boolean).
type KeyboardEventInit ¶
type KeyboardEventInit struct { Bubbles bool Cancelable bool Composed bool View js.Value Detail int SourceCapabilities *inputcapabilities.InputDeviceCapabilities CtrlKey bool ShiftKey bool AltKey bool MetaKey bool ModifierAltGraph bool ModifierCapsLock bool ModifierFn bool ModifierFnLock bool ModifierHyper bool ModifierNumLock bool ModifierScrollLock bool ModifierSuper bool ModifierSymbol bool ModifierSymbolLock bool Key string Code string Location uint Repeat bool IsComposing bool }
dictionary: KeyboardEventInit
func KeyboardEventInitFromJS ¶
func KeyboardEventInitFromJS(value js.Value) *KeyboardEventInit
KeyboardEventInitFromJS is allocating a new KeyboardEventInit object and copy all values in the value javascript object.
func (*KeyboardEventInit) JSValue ¶
func (_this *KeyboardEventInit) JSValue() js.Value
JSValue is allocating a new javascript object and copy all values
type MouseEvent ¶
type MouseEvent struct {
UIEvent
}
class: MouseEvent
func MouseEventFromJS ¶
func MouseEventFromJS(value js.Value) *MouseEvent
MouseEventFromJS is casting a js.Value into MouseEvent.
func MouseEventFromWrapper ¶
func MouseEventFromWrapper(input core.Wrapper) *MouseEvent
MouseEventFromJS is casting from something that holds a js.Value into MouseEvent.
func NewMouseEvent ¶
func NewMouseEvent(_type string, eventInitDict *MouseEventInit) (_result *MouseEvent)
func (*MouseEvent) AltKey ¶
func (_this *MouseEvent) AltKey() bool
AltKey returning attribute 'altKey' with type bool (idl: boolean).
func (*MouseEvent) Button ¶
func (_this *MouseEvent) Button() int
Button returning attribute 'button' with type int (idl: short).
func (*MouseEvent) Buttons ¶
func (_this *MouseEvent) Buttons() int
Buttons returning attribute 'buttons' with type int (idl: unsigned short).
func (*MouseEvent) ClientX ¶
func (_this *MouseEvent) ClientX() float64
ClientX returning attribute 'clientX' with type float64 (idl: double).
func (*MouseEvent) ClientY ¶
func (_this *MouseEvent) ClientY() float64
ClientY returning attribute 'clientY' with type float64 (idl: double).
func (*MouseEvent) CtrlKey ¶
func (_this *MouseEvent) CtrlKey() bool
CtrlKey returning attribute 'ctrlKey' with type bool (idl: boolean).
func (*MouseEvent) GetModifierState ¶
func (_this *MouseEvent) GetModifierState(keyArg string) (_result bool)
func (*MouseEvent) MetaKey ¶
func (_this *MouseEvent) MetaKey() bool
MetaKey returning attribute 'metaKey' with type bool (idl: boolean).
func (*MouseEvent) MovementX ¶
func (_this *MouseEvent) MovementX() int
MovementX returning attribute 'movementX' with type int (idl: long).
func (*MouseEvent) MovementY ¶
func (_this *MouseEvent) MovementY() int
MovementY returning attribute 'movementY' with type int (idl: long).
func (*MouseEvent) OffsetX ¶
func (_this *MouseEvent) OffsetX() float64
OffsetX returning attribute 'offsetX' with type float64 (idl: double).
func (*MouseEvent) OffsetY ¶
func (_this *MouseEvent) OffsetY() float64
OffsetY returning attribute 'offsetY' with type float64 (idl: double).
func (*MouseEvent) PageX ¶
func (_this *MouseEvent) PageX() float64
PageX returning attribute 'pageX' with type float64 (idl: double).
func (*MouseEvent) PageY ¶
func (_this *MouseEvent) PageY() float64
PageY returning attribute 'pageY' with type float64 (idl: double).
func (*MouseEvent) RelatedTarget ¶
func (_this *MouseEvent) RelatedTarget() *domcore.EventTarget
RelatedTarget returning attribute 'relatedTarget' with type domcore.EventTarget (idl: EventTarget).
func (*MouseEvent) ScreenX ¶
func (_this *MouseEvent) ScreenX() float64
ScreenX returning attribute 'screenX' with type float64 (idl: double).
func (*MouseEvent) ScreenY ¶
func (_this *MouseEvent) ScreenY() float64
ScreenY returning attribute 'screenY' with type float64 (idl: double).
func (*MouseEvent) ShiftKey ¶
func (_this *MouseEvent) ShiftKey() bool
ShiftKey returning attribute 'shiftKey' with type bool (idl: boolean).
func (*MouseEvent) X ¶
func (_this *MouseEvent) X() float64
X returning attribute 'x' with type float64 (idl: double).
func (*MouseEvent) Y ¶
func (_this *MouseEvent) Y() float64
Y returning attribute 'y' with type float64 (idl: double).
type MouseEventInit ¶
type MouseEventInit struct { Bubbles bool Cancelable bool Composed bool View js.Value Detail int SourceCapabilities *inputcapabilities.InputDeviceCapabilities CtrlKey bool ShiftKey bool AltKey bool MetaKey bool ModifierAltGraph bool ModifierCapsLock bool ModifierFn bool ModifierFnLock bool ModifierHyper bool ModifierNumLock bool ModifierScrollLock bool ModifierSuper bool ModifierSymbol bool ModifierSymbolLock bool Button int Buttons int RelatedTarget *domcore.EventTarget ScreenX float64 ScreenY float64 ClientX float64 ClientY float64 MovementX int MovementY int }
dictionary: MouseEventInit
func MouseEventInitFromJS ¶
func MouseEventInitFromJS(value js.Value) *MouseEventInit
MouseEventInitFromJS is allocating a new MouseEventInit object and copy all values in the value javascript object.
func (*MouseEventInit) JSValue ¶
func (_this *MouseEventInit) JSValue() js.Value
JSValue is allocating a new javascript object and copy all values
type PageTransitionEvent ¶
class: PageTransitionEvent
func NewPageTransitionEvent ¶
func NewPageTransitionEvent(_type string, eventInitDict *PageTransitionEventInit) (_result *PageTransitionEvent)
func PageTransitionEventFromJS ¶
func PageTransitionEventFromJS(value js.Value) *PageTransitionEvent
PageTransitionEventFromJS is casting a js.Value into PageTransitionEvent.
func PageTransitionEventFromWrapper ¶
func PageTransitionEventFromWrapper(input core.Wrapper) *PageTransitionEvent
PageTransitionEventFromJS is casting from something that holds a js.Value into PageTransitionEvent.
func (*PageTransitionEvent) Persisted ¶
func (_this *PageTransitionEvent) Persisted() bool
Persisted returning attribute 'persisted' with type bool (idl: boolean).
type PageTransitionEventInit ¶
dictionary: PageTransitionEventInit
func PageTransitionEventInitFromJS ¶
func PageTransitionEventInitFromJS(value js.Value) *PageTransitionEventInit
PageTransitionEventInitFromJS is allocating a new PageTransitionEventInit object and copy all values in the value javascript object.
func (*PageTransitionEventInit) JSValue ¶
func (_this *PageTransitionEventInit) JSValue() js.Value
JSValue is allocating a new javascript object and copy all values
type PointerEvent ¶
type PointerEvent struct {
MouseEvent
}
class: PointerEvent
func NewPointerEvent ¶
func NewPointerEvent(_type string, eventInitDict *PointerEventInit) (_result *PointerEvent)
func PointerEventFromJS ¶
func PointerEventFromJS(value js.Value) *PointerEvent
PointerEventFromJS is casting a js.Value into PointerEvent.
func PointerEventFromWrapper ¶
func PointerEventFromWrapper(input core.Wrapper) *PointerEvent
PointerEventFromJS is casting from something that holds a js.Value into PointerEvent.
func (*PointerEvent) GetCoalescedEvents ¶
func (_this *PointerEvent) GetCoalescedEvents() (_result []*PointerEvent)
func (*PointerEvent) GetPredictedEvents ¶
func (_this *PointerEvent) GetPredictedEvents() (_result []*PointerEvent)
func (*PointerEvent) Height ¶
func (_this *PointerEvent) Height() float64
Height returning attribute 'height' with type float64 (idl: double).
func (*PointerEvent) IsPrimary ¶
func (_this *PointerEvent) IsPrimary() bool
IsPrimary returning attribute 'isPrimary' with type bool (idl: boolean).
func (*PointerEvent) PointerId ¶
func (_this *PointerEvent) PointerId() int
PointerId returning attribute 'pointerId' with type int (idl: long).
func (*PointerEvent) PointerType ¶
func (_this *PointerEvent) PointerType() string
PointerType returning attribute 'pointerType' with type string (idl: DOMString).
func (*PointerEvent) Pressure ¶
func (_this *PointerEvent) Pressure() float32
Pressure returning attribute 'pressure' with type float32 (idl: float).
func (*PointerEvent) TangentialPressure ¶
func (_this *PointerEvent) TangentialPressure() float32
TangentialPressure returning attribute 'tangentialPressure' with type float32 (idl: float).
func (*PointerEvent) TiltX ¶
func (_this *PointerEvent) TiltX() int
TiltX returning attribute 'tiltX' with type int (idl: long).
func (*PointerEvent) TiltY ¶
func (_this *PointerEvent) TiltY() int
TiltY returning attribute 'tiltY' with type int (idl: long).
func (*PointerEvent) Twist ¶
func (_this *PointerEvent) Twist() int
Twist returning attribute 'twist' with type int (idl: long).
func (*PointerEvent) Width ¶
func (_this *PointerEvent) Width() float64
Width returning attribute 'width' with type float64 (idl: double).
type PointerEventInit ¶
type PointerEventInit struct { Bubbles bool Cancelable bool Composed bool View js.Value Detail int SourceCapabilities *inputcapabilities.InputDeviceCapabilities CtrlKey bool ShiftKey bool AltKey bool MetaKey bool ModifierAltGraph bool ModifierCapsLock bool ModifierFn bool ModifierFnLock bool ModifierHyper bool ModifierNumLock bool ModifierScrollLock bool ModifierSuper bool ModifierSymbol bool ModifierSymbolLock bool Button int Buttons int RelatedTarget *domcore.EventTarget ScreenX float64 ScreenY float64 ClientX float64 ClientY float64 MovementX int MovementY int PointerId int Width float64 Height float64 Pressure float32 TangentialPressure float32 TiltX int TiltY int Twist int PointerType string IsPrimary bool CoalescedEvents []*PointerEvent PredictedEvents []*PointerEvent }
dictionary: PointerEventInit
func PointerEventInitFromJS ¶
func PointerEventInitFromJS(value js.Value) *PointerEventInit
PointerEventInitFromJS is allocating a new PointerEventInit object and copy all values in the value javascript object.
func (*PointerEventInit) JSValue ¶
func (_this *PointerEventInit) JSValue() js.Value
JSValue is allocating a new javascript object and copy all values
type PopStateEvent ¶
class: PopStateEvent
func NewPopStateEvent ¶
func NewPopStateEvent(_type string, eventInitDict *PopStateEventInit) (_result *PopStateEvent)
func PopStateEventFromJS ¶
func PopStateEventFromJS(value js.Value) *PopStateEvent
PopStateEventFromJS is casting a js.Value into PopStateEvent.
func PopStateEventFromWrapper ¶
func PopStateEventFromWrapper(input core.Wrapper) *PopStateEvent
PopStateEventFromJS is casting from something that holds a js.Value into PopStateEvent.
func (*PopStateEvent) State ¶
func (_this *PopStateEvent) State() js.Value
State returning attribute 'state' with type Any (idl: any).
type PopStateEventInit ¶
dictionary: PopStateEventInit
func PopStateEventInitFromJS ¶
func PopStateEventInitFromJS(value js.Value) *PopStateEventInit
PopStateEventInitFromJS is allocating a new PopStateEventInit object and copy all values in the value javascript object.
func (*PopStateEventInit) JSValue ¶
func (_this *PopStateEventInit) JSValue() js.Value
JSValue is allocating a new javascript object and copy all values
type PromiseRejectionEvent ¶
class: PromiseRejectionEvent
func NewPromiseRejectionEvent ¶
func NewPromiseRejectionEvent(_type string, eventInitDict *PromiseRejectionEventInit) (_result *PromiseRejectionEvent)
func PromiseRejectionEventFromJS ¶
func PromiseRejectionEventFromJS(value js.Value) *PromiseRejectionEvent
PromiseRejectionEventFromJS is casting a js.Value into PromiseRejectionEvent.
func PromiseRejectionEventFromWrapper ¶
func PromiseRejectionEventFromWrapper(input core.Wrapper) *PromiseRejectionEvent
PromiseRejectionEventFromJS is casting from something that holds a js.Value into PromiseRejectionEvent.
func (*PromiseRejectionEvent) Promise ¶
func (_this *PromiseRejectionEvent) Promise() *javascript.Promise
Promise returning attribute 'promise' with type javascript.Promise (idl: Promise).
func (*PromiseRejectionEvent) Reason ¶
func (_this *PromiseRejectionEvent) Reason() js.Value
Reason returning attribute 'reason' with type Any (idl: any).
type PromiseRejectionEventInit ¶
type PromiseRejectionEventInit struct { Bubbles bool Cancelable bool Composed bool Promise *javascript.Promise Reason js.Value }
dictionary: PromiseRejectionEventInit
func PromiseRejectionEventInitFromJS ¶
func PromiseRejectionEventInitFromJS(value js.Value) *PromiseRejectionEventInit
PromiseRejectionEventInitFromJS is allocating a new PromiseRejectionEventInit object and copy all values in the value javascript object.
func (*PromiseRejectionEventInit) JSValue ¶
func (_this *PromiseRejectionEventInit) JSValue() js.Value
JSValue is allocating a new javascript object and copy all values
type Storage ¶
class: Storage
func StorageFromJS ¶
StorageFromJS is casting a js.Value into Storage.
func StorageFromWrapper ¶
StorageFromJS is casting from something that holds a js.Value into Storage.
func (*Storage) RemoveItem ¶
type StorageEvent ¶
class: StorageEvent
func NewStorageEvent ¶
func NewStorageEvent(_type string, eventInitDict *StorageEventInit) (_result *StorageEvent)
func StorageEventFromJS ¶
func StorageEventFromJS(value js.Value) *StorageEvent
StorageEventFromJS is casting a js.Value into StorageEvent.
func StorageEventFromWrapper ¶
func StorageEventFromWrapper(input core.Wrapper) *StorageEvent
StorageEventFromJS is casting from something that holds a js.Value into StorageEvent.
func (*StorageEvent) InitStorageEvent ¶
func (*StorageEvent) Key ¶
func (_this *StorageEvent) Key() *string
Key returning attribute 'key' with type string (idl: DOMString).
func (*StorageEvent) NewValue ¶
func (_this *StorageEvent) NewValue() *string
NewValue returning attribute 'newValue' with type string (idl: DOMString).
func (*StorageEvent) OldValue ¶
func (_this *StorageEvent) OldValue() *string
OldValue returning attribute 'oldValue' with type string (idl: DOMString).
func (*StorageEvent) StorageArea ¶
func (_this *StorageEvent) StorageArea() *Storage
StorageArea returning attribute 'storageArea' with type Storage (idl: Storage).
func (*StorageEvent) Url ¶
func (_this *StorageEvent) Url() string
Url returning attribute 'url' with type string (idl: USVString).
type StorageEventInit ¶
type StorageEventInit struct { Bubbles bool Cancelable bool Composed bool Key *string OldValue *string NewValue *string Url string StorageArea *Storage }
dictionary: StorageEventInit
func StorageEventInitFromJS ¶
func StorageEventInitFromJS(value js.Value) *StorageEventInit
StorageEventInitFromJS is allocating a new StorageEventInit object and copy all values in the value javascript object.
func (*StorageEventInit) JSValue ¶
func (_this *StorageEventInit) JSValue() js.Value
JSValue is allocating a new javascript object and copy all values
type TrackEvent ¶
class: TrackEvent
func NewTrackEvent ¶
func NewTrackEvent(_type string, eventInitDict *TrackEventInit) (_result *TrackEvent)
func TrackEventFromJS ¶
func TrackEventFromJS(value js.Value) *TrackEvent
TrackEventFromJS is casting a js.Value into TrackEvent.
func TrackEventFromWrapper ¶
func TrackEventFromWrapper(input core.Wrapper) *TrackEvent
TrackEventFromJS is casting from something that holds a js.Value into TrackEvent.
func (*TrackEvent) Track ¶
func (_this *TrackEvent) Track() *Union
Track returning attribute 'track' with type Union (idl: Union).
type TrackEventInit ¶
dictionary: TrackEventInit
func TrackEventInitFromJS ¶
func TrackEventInitFromJS(value js.Value) *TrackEventInit
TrackEventInitFromJS is allocating a new TrackEventInit object and copy all values in the value javascript object.
func (*TrackEventInit) JSValue ¶
func (_this *TrackEventInit) JSValue() js.Value
JSValue is allocating a new javascript object and copy all values
type UIEvent ¶
class: UIEvent
func NewUIEvent ¶
func NewUIEvent(_type string, eventInitDict *UIEventInit) (_result *UIEvent)
func UIEventFromJS ¶
UIEventFromJS is casting a js.Value into UIEvent.
func UIEventFromWrapper ¶
UIEventFromJS is casting from something that holds a js.Value into UIEvent.
func (*UIEvent) SourceCapabilities ¶
func (_this *UIEvent) SourceCapabilities() *inputcapabilities.InputDeviceCapabilities
SourceCapabilities returning attribute 'sourceCapabilities' with type inputcapabilities.InputDeviceCapabilities (idl: InputDeviceCapabilities).
type UIEventInit ¶
type UIEventInit struct { Bubbles bool Cancelable bool Composed bool View js.Value Detail int SourceCapabilities *inputcapabilities.InputDeviceCapabilities }
dictionary: UIEventInit
func UIEventInitFromJS ¶
func UIEventInitFromJS(value js.Value) *UIEventInit
UIEventInitFromJS is allocating a new UIEventInit object and copy all values in the value javascript object.
func (*UIEventInit) JSValue ¶
func (_this *UIEventInit) JSValue() js.Value
JSValue is allocating a new javascript object and copy all values
type Union ¶
func UnionFromJS ¶
type WheelEvent ¶
type WheelEvent struct {
MouseEvent
}
class: WheelEvent
func NewWheelEvent ¶
func NewWheelEvent(_type string, eventInitDict *WheelEventInit) (_result *WheelEvent)
func WheelEventFromJS ¶
func WheelEventFromJS(value js.Value) *WheelEvent
WheelEventFromJS is casting a js.Value into WheelEvent.
func WheelEventFromWrapper ¶
func WheelEventFromWrapper(input core.Wrapper) *WheelEvent
WheelEventFromJS is casting from something that holds a js.Value into WheelEvent.
func (*WheelEvent) DeltaMode ¶
func (_this *WheelEvent) DeltaMode() uint
DeltaMode returning attribute 'deltaMode' with type uint (idl: unsigned long).
func (*WheelEvent) DeltaX ¶
func (_this *WheelEvent) DeltaX() float64
DeltaX returning attribute 'deltaX' with type float64 (idl: double).
func (*WheelEvent) DeltaY ¶
func (_this *WheelEvent) DeltaY() float64
DeltaY returning attribute 'deltaY' with type float64 (idl: double).
func (*WheelEvent) DeltaZ ¶
func (_this *WheelEvent) DeltaZ() float64
DeltaZ returning attribute 'deltaZ' with type float64 (idl: double).
type WheelEventInit ¶
type WheelEventInit struct { Bubbles bool Cancelable bool Composed bool View js.Value Detail int SourceCapabilities *inputcapabilities.InputDeviceCapabilities CtrlKey bool ShiftKey bool AltKey bool MetaKey bool ModifierAltGraph bool ModifierCapsLock bool ModifierFn bool ModifierFnLock bool ModifierHyper bool ModifierNumLock bool ModifierScrollLock bool ModifierSuper bool ModifierSymbol bool ModifierSymbolLock bool Button int Buttons int RelatedTarget *domcore.EventTarget ScreenX float64 ScreenY float64 ClientX float64 ClientY float64 MovementX int MovementY int DeltaX float64 DeltaY float64 DeltaZ float64 DeltaMode uint }
dictionary: WheelEventInit
func WheelEventInitFromJS ¶
func WheelEventInitFromJS(value js.Value) *WheelEventInit
WheelEventInitFromJS is allocating a new WheelEventInit object and copy all values in the value javascript object.
func (*WheelEventInit) JSValue ¶
func (_this *WheelEventInit) JSValue() js.Value
JSValue is allocating a new javascript object and copy all values