webapi: github.com/gowebapi/webapi/html/htmlevent Index | Files

package htmlevent

import "github.com/gowebapi/webapi/html/htmlevent"

Package htmlevent contains events and callbacks types.

Source: HTML Standard (https://html.spec.whatwg.org/)

Index

Package Files

doc.go htmlevent.go

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
)

type CompositionEvent Uses

type CompositionEvent struct {
    UIEvent
}

class: CompositionEvent

func CompositionEventFromJS Uses

func CompositionEventFromJS(value js.Wrapper) *CompositionEvent

CompositionEventFromJS is casting a js.Wrapper into CompositionEvent.

func NewCompositionEvent Uses

func NewCompositionEvent(_type string, eventInitDict *CompositionEventInit) (_result *CompositionEvent)

func (*CompositionEvent) Data Uses

func (_this *CompositionEvent) Data() string

Data returning attribute 'data' with type string (idl: DOMString).

type CompositionEventInit Uses

type CompositionEventInit struct {
    Bubbles            bool
    Cancelable         bool
    Composed           bool
    View               js.Value
    Detail             int
    SourceCapabilities *inputcapabilities.InputDeviceCapabilities
    Data               string
}

dictionary: CompositionEventInit

func CompositionEventInitFromJS Uses

func CompositionEventInitFromJS(value js.Wrapper) *CompositionEventInit

CompositionEventInitFromJS is allocating a new CompositionEventInit object and copy all values from input javascript object

func (*CompositionEventInit) JSValue Uses

func (_this *CompositionEventInit) JSValue() js.Value

JSValue is allocating a new javasript object and copy all values

type DragEvent Uses

type DragEvent struct {
    MouseEvent
}

class: DragEvent

func DragEventFromJS Uses

func DragEventFromJS(value js.Wrapper) *DragEvent

DragEventFromJS is casting a js.Wrapper into DragEvent.

func NewDragEvent Uses

func NewDragEvent(_type string, eventInitDict *DragEventInit) (_result *DragEvent)

func (*DragEvent) DataTransfer Uses

func (_this *DragEvent) DataTransfer() *datatransfer.DataTransfer

DataTransfer returning attribute 'dataTransfer' with type datatransfer.DataTransfer (idl: DataTransfer).

type DragEventInit Uses

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 Uses

func DragEventInitFromJS(value js.Wrapper) *DragEventInit

DragEventInitFromJS is allocating a new DragEventInit object and copy all values from input javascript object

func (*DragEventInit) JSValue Uses

func (_this *DragEventInit) JSValue() js.Value

JSValue is allocating a new javasript object and copy all values

type ErrorEvent Uses

type ErrorEvent struct {
    domcore.Event
}

class: ErrorEvent

func ErrorEventFromJS Uses

func ErrorEventFromJS(value js.Wrapper) *ErrorEvent

ErrorEventFromJS is casting a js.Wrapper into ErrorEvent.

func NewErrorEvent Uses

func NewErrorEvent(_type string, eventInitDict *ErrorEventInit) (_result *ErrorEvent)

func (*ErrorEvent) Colno Uses

func (_this *ErrorEvent) Colno() uint

Colno returning attribute 'colno' with type uint (idl: unsigned long).

func (*ErrorEvent) Error Uses

func (_this *ErrorEvent) Error() js.Value

Error returning attribute 'error' with type Any (idl: any).

func (*ErrorEvent) Filename Uses

func (_this *ErrorEvent) Filename() string

Filename returning attribute 'filename' with type string (idl: USVString).

func (*ErrorEvent) Lineno Uses

func (_this *ErrorEvent) Lineno() uint

Lineno returning attribute 'lineno' with type uint (idl: unsigned long).

func (*ErrorEvent) Message Uses

func (_this *ErrorEvent) Message() string

Message returning attribute 'message' with type string (idl: DOMString).

type ErrorEventInit Uses

type ErrorEventInit struct {
    Bubbles    bool
    Cancelable bool
    Composed   bool
    Message    string
    Filename   string
    Lineno     uint
    Colno      uint
    Error      js.Value
}

dictionary: ErrorEventInit

func ErrorEventInitFromJS Uses

func ErrorEventInitFromJS(value js.Wrapper) *ErrorEventInit

ErrorEventInitFromJS is allocating a new ErrorEventInit object and copy all values from input javascript object

func (*ErrorEventInit) JSValue Uses

func (_this *ErrorEventInit) JSValue() js.Value

JSValue is allocating a new javasript object and copy all values

type EventModifierInit Uses

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 Uses

func EventModifierInitFromJS(value js.Wrapper) *EventModifierInit

EventModifierInitFromJS is allocating a new EventModifierInit object and copy all values from input javascript object

func (*EventModifierInit) JSValue Uses

func (_this *EventModifierInit) JSValue() js.Value

JSValue is allocating a new javasript object and copy all values

type FocusEvent Uses

type FocusEvent struct {
    UIEvent
}

class: FocusEvent

func FocusEventFromJS Uses

func FocusEventFromJS(value js.Wrapper) *FocusEvent

FocusEventFromJS is casting a js.Wrapper into FocusEvent.

func NewFocusEvent Uses

func NewFocusEvent(_type string, eventInitDict *FocusEventInit) (_result *FocusEvent)

func (*FocusEvent) RelatedTarget Uses

func (_this *FocusEvent) RelatedTarget() *domcore.EventTarget

RelatedTarget returning attribute 'relatedTarget' with type domcore.EventTarget (idl: EventTarget).

type FocusEventInit Uses

type FocusEventInit struct {
    Bubbles            bool
    Cancelable         bool
    Composed           bool
    View               js.Value
    Detail             int
    SourceCapabilities *inputcapabilities.InputDeviceCapabilities
    RelatedTarget      *domcore.EventTarget
}

dictionary: FocusEventInit

func FocusEventInitFromJS Uses

func FocusEventInitFromJS(value js.Wrapper) *FocusEventInit

FocusEventInitFromJS is allocating a new FocusEventInit object and copy all values from input javascript object

func (*FocusEventInit) JSValue Uses

func (_this *FocusEventInit) JSValue() js.Value

JSValue is allocating a new javasript object and copy all values

type HashChangeEvent Uses

type HashChangeEvent struct {
    domcore.Event
}

class: HashChangeEvent

func HashChangeEventFromJS Uses

func HashChangeEventFromJS(value js.Wrapper) *HashChangeEvent

HashChangeEventFromJS is casting a js.Wrapper into HashChangeEvent.

func NewHashChangeEvent Uses

func NewHashChangeEvent(_type string, eventInitDict *HashChangeEventInit) (_result *HashChangeEvent)

func (*HashChangeEvent) NewURL Uses

func (_this *HashChangeEvent) NewURL() string

NewURL returning attribute 'newURL' with type string (idl: USVString).

func (*HashChangeEvent) OldURL Uses

func (_this *HashChangeEvent) OldURL() string

OldURL returning attribute 'oldURL' with type string (idl: USVString).

type HashChangeEventInit Uses

type HashChangeEventInit struct {
    Bubbles    bool
    Cancelable bool
    Composed   bool
    OldURL     string
    NewURL     string
}

dictionary: HashChangeEventInit

func HashChangeEventInitFromJS Uses

func HashChangeEventInitFromJS(value js.Wrapper) *HashChangeEventInit

HashChangeEventInitFromJS is allocating a new HashChangeEventInit object and copy all values from input javascript object

func (*HashChangeEventInit) JSValue Uses

func (_this *HashChangeEventInit) JSValue() js.Value

JSValue is allocating a new javasript object and copy all values

type InputEvent Uses

type InputEvent struct {
    UIEvent
}

class: InputEvent

func InputEventFromJS Uses

func InputEventFromJS(value js.Wrapper) *InputEvent

InputEventFromJS is casting a js.Wrapper into InputEvent.

func NewInputEvent Uses

func NewInputEvent(_type string, eventInitDict *InputEventInit) (_result *InputEvent)

func (*InputEvent) Data Uses

func (_this *InputEvent) Data() *string

Data returning attribute 'data' with type string (idl: DOMString).

func (*InputEvent) DataTransfer Uses

func (_this *InputEvent) DataTransfer() *datatransfer.DataTransfer

DataTransfer returning attribute 'dataTransfer' with type datatransfer.DataTransfer (idl: DataTransfer).

func (*InputEvent) GetTargetRanges Uses

func (_this *InputEvent) GetTargetRanges() (_result []*dom.StaticRange)

func (*InputEvent) InputType Uses

func (_this *InputEvent) InputType() string

InputType returning attribute 'inputType' with type string (idl: DOMString).

func (*InputEvent) IsComposing Uses

func (_this *InputEvent) IsComposing() bool

IsComposing returning attribute 'isComposing' with type bool (idl: boolean).

type InputEventInit Uses

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 Uses

func InputEventInitFromJS(value js.Wrapper) *InputEventInit

InputEventInitFromJS is allocating a new InputEventInit object and copy all values from input javascript object

func (*InputEventInit) JSValue Uses

func (_this *InputEventInit) JSValue() js.Value

JSValue is allocating a new javasript object and copy all values

type KeyboardEvent Uses

type KeyboardEvent struct {
    UIEvent
}

class: KeyboardEvent

func KeyboardEventFromJS Uses

func KeyboardEventFromJS(value js.Wrapper) *KeyboardEvent

KeyboardEventFromJS is casting a js.Wrapper into KeyboardEvent.

func NewKeyboardEvent Uses

func NewKeyboardEvent(_type string, eventInitDict *KeyboardEventInit) (_result *KeyboardEvent)

func (*KeyboardEvent) AltKey Uses

func (_this *KeyboardEvent) AltKey() bool

AltKey returning attribute 'altKey' with type bool (idl: boolean).

func (*KeyboardEvent) CharCode Uses

func (_this *KeyboardEvent) CharCode() uint

CharCode returning attribute 'charCode' with type uint (idl: unsigned long).

func (*KeyboardEvent) Code Uses

func (_this *KeyboardEvent) Code() string

Code returning attribute 'code' with type string (idl: DOMString).

func (*KeyboardEvent) CtrlKey Uses

func (_this *KeyboardEvent) CtrlKey() bool

CtrlKey returning attribute 'ctrlKey' with type bool (idl: boolean).

func (*KeyboardEvent) GetModifierState Uses

func (_this *KeyboardEvent) GetModifierState(keyArg string) (_result bool)

func (*KeyboardEvent) IsComposing Uses

func (_this *KeyboardEvent) IsComposing() bool

IsComposing returning attribute 'isComposing' with type bool (idl: boolean).

func (*KeyboardEvent) Key Uses

func (_this *KeyboardEvent) Key() string

Key returning attribute 'key' with type string (idl: DOMString).

func (*KeyboardEvent) KeyCode Uses

func (_this *KeyboardEvent) KeyCode() uint

KeyCode returning attribute 'keyCode' with type uint (idl: unsigned long).

func (*KeyboardEvent) Location Uses

func (_this *KeyboardEvent) Location() uint

Location returning attribute 'location' with type uint (idl: unsigned long).

func (*KeyboardEvent) MetaKey Uses

func (_this *KeyboardEvent) MetaKey() bool

MetaKey returning attribute 'metaKey' with type bool (idl: boolean).

func (*KeyboardEvent) Repeat Uses

func (_this *KeyboardEvent) Repeat() bool

Repeat returning attribute 'repeat' with type bool (idl: boolean).

func (*KeyboardEvent) ShiftKey Uses

func (_this *KeyboardEvent) ShiftKey() bool

ShiftKey returning attribute 'shiftKey' with type bool (idl: boolean).

type KeyboardEventInit Uses

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 Uses

func KeyboardEventInitFromJS(value js.Wrapper) *KeyboardEventInit

KeyboardEventInitFromJS is allocating a new KeyboardEventInit object and copy all values from input javascript object

func (*KeyboardEventInit) JSValue Uses

func (_this *KeyboardEventInit) JSValue() js.Value

JSValue is allocating a new javasript object and copy all values

type MouseEvent Uses

type MouseEvent struct {
    UIEvent
}

class: MouseEvent

func MouseEventFromJS Uses

func MouseEventFromJS(value js.Wrapper) *MouseEvent

MouseEventFromJS is casting a js.Wrapper into MouseEvent.

func NewMouseEvent Uses

func NewMouseEvent(_type string, eventInitDict *MouseEventInit) (_result *MouseEvent)

func (*MouseEvent) AltKey Uses

func (_this *MouseEvent) AltKey() bool

AltKey returning attribute 'altKey' with type bool (idl: boolean).

func (*MouseEvent) Button Uses

func (_this *MouseEvent) Button() int

Button returning attribute 'button' with type int (idl: short).

func (*MouseEvent) Buttons Uses

func (_this *MouseEvent) Buttons() int

Buttons returning attribute 'buttons' with type int (idl: unsigned short).

func (*MouseEvent) ClientX Uses

func (_this *MouseEvent) ClientX() float64

ClientX returning attribute 'clientX' with type float64 (idl: double).

func (*MouseEvent) ClientY Uses

func (_this *MouseEvent) ClientY() float64

ClientY returning attribute 'clientY' with type float64 (idl: double).

func (*MouseEvent) CtrlKey Uses

func (_this *MouseEvent) CtrlKey() bool

CtrlKey returning attribute 'ctrlKey' with type bool (idl: boolean).

func (*MouseEvent) GetModifierState Uses

func (_this *MouseEvent) GetModifierState(keyArg string) (_result bool)

func (*MouseEvent) MetaKey Uses

func (_this *MouseEvent) MetaKey() bool

MetaKey returning attribute 'metaKey' with type bool (idl: boolean).

func (*MouseEvent) MovementX Uses

func (_this *MouseEvent) MovementX() int

MovementX returning attribute 'movementX' with type int (idl: long).

func (*MouseEvent) MovementY Uses

func (_this *MouseEvent) MovementY() int

MovementY returning attribute 'movementY' with type int (idl: long).

func (*MouseEvent) OffsetX Uses

func (_this *MouseEvent) OffsetX() float64

OffsetX returning attribute 'offsetX' with type float64 (idl: double).

func (*MouseEvent) OffsetY Uses

func (_this *MouseEvent) OffsetY() float64

OffsetY returning attribute 'offsetY' with type float64 (idl: double).

func (*MouseEvent) PageX Uses

func (_this *MouseEvent) PageX() float64

PageX returning attribute 'pageX' with type float64 (idl: double).

func (*MouseEvent) PageY Uses

func (_this *MouseEvent) PageY() float64

PageY returning attribute 'pageY' with type float64 (idl: double).

func (*MouseEvent) RelatedTarget Uses

func (_this *MouseEvent) RelatedTarget() *domcore.EventTarget

RelatedTarget returning attribute 'relatedTarget' with type domcore.EventTarget (idl: EventTarget).

func (*MouseEvent) ScreenX Uses

func (_this *MouseEvent) ScreenX() float64

ScreenX returning attribute 'screenX' with type float64 (idl: double).

func (*MouseEvent) ScreenY Uses

func (_this *MouseEvent) ScreenY() float64

ScreenY returning attribute 'screenY' with type float64 (idl: double).

func (*MouseEvent) ShiftKey Uses

func (_this *MouseEvent) ShiftKey() bool

ShiftKey returning attribute 'shiftKey' with type bool (idl: boolean).

func (*MouseEvent) X Uses

func (_this *MouseEvent) X() float64

X returning attribute 'x' with type float64 (idl: double).

func (*MouseEvent) Y Uses

func (_this *MouseEvent) Y() float64

Y returning attribute 'y' with type float64 (idl: double).

type MouseEventInit Uses

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 Uses

func MouseEventInitFromJS(value js.Wrapper) *MouseEventInit

MouseEventInitFromJS is allocating a new MouseEventInit object and copy all values from input javascript object

func (*MouseEventInit) JSValue Uses

func (_this *MouseEventInit) JSValue() js.Value

JSValue is allocating a new javasript object and copy all values

type PageTransitionEvent Uses

type PageTransitionEvent struct {
    domcore.Event
}

class: PageTransitionEvent

func NewPageTransitionEvent Uses

func NewPageTransitionEvent(_type string, eventInitDict *PageTransitionEventInit) (_result *PageTransitionEvent)

func PageTransitionEventFromJS Uses

func PageTransitionEventFromJS(value js.Wrapper) *PageTransitionEvent

PageTransitionEventFromJS is casting a js.Wrapper into PageTransitionEvent.

func (*PageTransitionEvent) Persisted Uses

func (_this *PageTransitionEvent) Persisted() bool

Persisted returning attribute 'persisted' with type bool (idl: boolean).

type PageTransitionEventInit Uses

type PageTransitionEventInit struct {
    Bubbles    bool
    Cancelable bool
    Composed   bool
    Persisted  bool
}

dictionary: PageTransitionEventInit

func PageTransitionEventInitFromJS Uses

func PageTransitionEventInitFromJS(value js.Wrapper) *PageTransitionEventInit

PageTransitionEventInitFromJS is allocating a new PageTransitionEventInit object and copy all values from input javascript object

func (*PageTransitionEventInit) JSValue Uses

func (_this *PageTransitionEventInit) JSValue() js.Value

JSValue is allocating a new javasript object and copy all values

type PointerEvent Uses

type PointerEvent struct {
    MouseEvent
}

class: PointerEvent

func NewPointerEvent Uses

func NewPointerEvent(_type string, eventInitDict *PointerEventInit) (_result *PointerEvent)

func PointerEventFromJS Uses

func PointerEventFromJS(value js.Wrapper) *PointerEvent

PointerEventFromJS is casting a js.Wrapper into PointerEvent.

func (*PointerEvent) GetCoalescedEvents Uses

func (_this *PointerEvent) GetCoalescedEvents() (_result []*PointerEvent)

func (*PointerEvent) GetPredictedEvents Uses

func (_this *PointerEvent) GetPredictedEvents() (_result []*PointerEvent)

func (*PointerEvent) Height Uses

func (_this *PointerEvent) Height() float64

Height returning attribute 'height' with type float64 (idl: double).

func (*PointerEvent) IsPrimary Uses

func (_this *PointerEvent) IsPrimary() bool

IsPrimary returning attribute 'isPrimary' with type bool (idl: boolean).

func (*PointerEvent) PointerId Uses

func (_this *PointerEvent) PointerId() int

PointerId returning attribute 'pointerId' with type int (idl: long).

func (*PointerEvent) PointerType Uses

func (_this *PointerEvent) PointerType() string

PointerType returning attribute 'pointerType' with type string (idl: DOMString).

func (*PointerEvent) Pressure Uses

func (_this *PointerEvent) Pressure() float32

Pressure returning attribute 'pressure' with type float32 (idl: float).

func (*PointerEvent) TangentialPressure Uses

func (_this *PointerEvent) TangentialPressure() float32

TangentialPressure returning attribute 'tangentialPressure' with type float32 (idl: float).

func (*PointerEvent) TiltX Uses

func (_this *PointerEvent) TiltX() int

TiltX returning attribute 'tiltX' with type int (idl: long).

func (*PointerEvent) TiltY Uses

func (_this *PointerEvent) TiltY() int

TiltY returning attribute 'tiltY' with type int (idl: long).

func (*PointerEvent) Twist Uses

func (_this *PointerEvent) Twist() int

Twist returning attribute 'twist' with type int (idl: long).

func (*PointerEvent) Width Uses

func (_this *PointerEvent) Width() float64

Width returning attribute 'width' with type float64 (idl: double).

type PointerEventInit Uses

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 Uses

func PointerEventInitFromJS(value js.Wrapper) *PointerEventInit

PointerEventInitFromJS is allocating a new PointerEventInit object and copy all values from input javascript object

func (*PointerEventInit) JSValue Uses

func (_this *PointerEventInit) JSValue() js.Value

JSValue is allocating a new javasript object and copy all values

type PopStateEvent Uses

type PopStateEvent struct {
    domcore.Event
}

class: PopStateEvent

func NewPopStateEvent Uses

func NewPopStateEvent(_type string, eventInitDict *PopStateEventInit) (_result *PopStateEvent)

func PopStateEventFromJS Uses

func PopStateEventFromJS(value js.Wrapper) *PopStateEvent

PopStateEventFromJS is casting a js.Wrapper into PopStateEvent.

func (*PopStateEvent) State Uses

func (_this *PopStateEvent) State() js.Value

State returning attribute 'state' with type Any (idl: any).

type PopStateEventInit Uses

type PopStateEventInit struct {
    Bubbles    bool
    Cancelable bool
    Composed   bool
    State      js.Value
}

dictionary: PopStateEventInit

func PopStateEventInitFromJS Uses

func PopStateEventInitFromJS(value js.Wrapper) *PopStateEventInit

PopStateEventInitFromJS is allocating a new PopStateEventInit object and copy all values from input javascript object

func (*PopStateEventInit) JSValue Uses

func (_this *PopStateEventInit) JSValue() js.Value

JSValue is allocating a new javasript object and copy all values

type PromiseRejectionEvent Uses

type PromiseRejectionEvent struct {
    domcore.Event
}

class: PromiseRejectionEvent

func NewPromiseRejectionEvent Uses

func NewPromiseRejectionEvent(_type string, eventInitDict *PromiseRejectionEventInit) (_result *PromiseRejectionEvent)

func PromiseRejectionEventFromJS Uses

func PromiseRejectionEventFromJS(value js.Wrapper) *PromiseRejectionEvent

PromiseRejectionEventFromJS is casting a js.Wrapper into PromiseRejectionEvent.

func (*PromiseRejectionEvent) Promise Uses

func (_this *PromiseRejectionEvent) Promise() *javascript.Promise

Promise returning attribute 'promise' with type javascript.Promise (idl: Promise).

func (*PromiseRejectionEvent) Reason Uses

func (_this *PromiseRejectionEvent) Reason() js.Value

Reason returning attribute 'reason' with type Any (idl: any).

type PromiseRejectionEventInit Uses

type PromiseRejectionEventInit struct {
    Bubbles    bool
    Cancelable bool
    Composed   bool
    Promise    *javascript.Promise
    Reason     js.Value
}

dictionary: PromiseRejectionEventInit

func PromiseRejectionEventInitFromJS Uses

func PromiseRejectionEventInitFromJS(value js.Wrapper) *PromiseRejectionEventInit

PromiseRejectionEventInitFromJS is allocating a new PromiseRejectionEventInit object and copy all values from input javascript object

func (*PromiseRejectionEventInit) JSValue Uses

func (_this *PromiseRejectionEventInit) JSValue() js.Value

JSValue is allocating a new javasript object and copy all values

type Storage Uses

type Storage struct {
    // Value_JS holds a reference to a javascript value
    Value_JS js.Value
}

class: Storage

func StorageFromJS Uses

func StorageFromJS(value js.Wrapper) *Storage

StorageFromJS is casting a js.Wrapper into Storage.

func (*Storage) Clear Uses

func (_this *Storage) Clear()

func (*Storage) Delete Uses

func (_this *Storage) Delete(key string)

func (*Storage) Get Uses

func (_this *Storage) Get(key string) (_result *string)

func (*Storage) GetItem Uses

func (_this *Storage) GetItem(key string) (_result *string)

func (*Storage) JSValue Uses

func (_this *Storage) JSValue() js.Value

func (*Storage) Key Uses

func (_this *Storage) Key(index uint) (_result *string)

func (*Storage) Length Uses

func (_this *Storage) Length() uint

Length returning attribute 'length' with type uint (idl: unsigned long).

func (*Storage) RemoveItem Uses

func (_this *Storage) RemoveItem(key string)

func (*Storage) Set Uses

func (_this *Storage) Set(key string, value string)

func (*Storage) SetItem Uses

func (_this *Storage) SetItem(key string, value string)

type StorageEvent Uses

type StorageEvent struct {
    domcore.Event
}

class: StorageEvent

func NewStorageEvent Uses

func NewStorageEvent(_type string, eventInitDict *StorageEventInit) (_result *StorageEvent)

func StorageEventFromJS Uses

func StorageEventFromJS(value js.Wrapper) *StorageEvent

StorageEventFromJS is casting a js.Wrapper into StorageEvent.

func (*StorageEvent) InitStorageEvent Uses

func (_this *StorageEvent) InitStorageEvent(_type string, bubbles *bool, cancelable *bool, key *string, oldValue *string, newValue *string, url *string, storageArea *Storage)

func (*StorageEvent) Key Uses

func (_this *StorageEvent) Key() *string

Key returning attribute 'key' with type string (idl: DOMString).

func (*StorageEvent) NewValue Uses

func (_this *StorageEvent) NewValue() *string

NewValue returning attribute 'newValue' with type string (idl: DOMString).

func (*StorageEvent) OldValue Uses

func (_this *StorageEvent) OldValue() *string

OldValue returning attribute 'oldValue' with type string (idl: DOMString).

func (*StorageEvent) StorageArea Uses

func (_this *StorageEvent) StorageArea() *Storage

StorageArea returning attribute 'storageArea' with type Storage (idl: Storage).

func (*StorageEvent) Url Uses

func (_this *StorageEvent) Url() string

Url returning attribute 'url' with type string (idl: USVString).

type StorageEventInit Uses

type StorageEventInit struct {
    Bubbles     bool
    Cancelable  bool
    Composed    bool
    Key         *string
    OldValue    *string
    NewValue    *string
    Url         string
    StorageArea *Storage
}

dictionary: StorageEventInit

func StorageEventInitFromJS Uses

func StorageEventInitFromJS(value js.Wrapper) *StorageEventInit

StorageEventInitFromJS is allocating a new StorageEventInit object and copy all values from input javascript object

func (*StorageEventInit) JSValue Uses

func (_this *StorageEventInit) JSValue() js.Value

JSValue is allocating a new javasript object and copy all values

type TrackEvent Uses

type TrackEvent struct {
    domcore.Event
}

class: TrackEvent

func NewTrackEvent Uses

func NewTrackEvent(_type string, eventInitDict *TrackEventInit) (_result *TrackEvent)

func TrackEventFromJS Uses

func TrackEventFromJS(value js.Wrapper) *TrackEvent

TrackEventFromJS is casting a js.Wrapper into TrackEvent.

func (*TrackEvent) Track Uses

func (_this *TrackEvent) Track() *Union

Track returning attribute 'track' with type Union (idl: Union).

type TrackEventInit Uses

type TrackEventInit struct {
    Bubbles    bool
    Cancelable bool
    Composed   bool
    Track      *Union
}

dictionary: TrackEventInit

func TrackEventInitFromJS Uses

func TrackEventInitFromJS(value js.Wrapper) *TrackEventInit

TrackEventInitFromJS is allocating a new TrackEventInit object and copy all values from input javascript object

func (*TrackEventInit) JSValue Uses

func (_this *TrackEventInit) JSValue() js.Value

JSValue is allocating a new javasript object and copy all values

type UIEvent Uses

type UIEvent struct {
    domcore.Event
}

class: UIEvent

func NewUIEvent Uses

func NewUIEvent(_type string, eventInitDict *UIEventInit) (_result *UIEvent)

func UIEventFromJS Uses

func UIEventFromJS(value js.Wrapper) *UIEvent

UIEventFromJS is casting a js.Wrapper into UIEvent.

func (*UIEvent) Detail Uses

func (_this *UIEvent) Detail() int

Detail returning attribute 'detail' with type int (idl: long).

func (*UIEvent) SourceCapabilities Uses

func (_this *UIEvent) SourceCapabilities() *inputcapabilities.InputDeviceCapabilities

SourceCapabilities returning attribute 'sourceCapabilities' with type inputcapabilities.InputDeviceCapabilities (idl: InputDeviceCapabilities).

func (*UIEvent) View Uses

func (_this *UIEvent) View() js.Value

View returning attribute 'view' with type js.Value (idl: Window).

func (*UIEvent) Which Uses

func (_this *UIEvent) Which() uint

Which returning attribute 'which' with type uint (idl: unsigned long).

type UIEventInit Uses

type UIEventInit struct {
    Bubbles            bool
    Cancelable         bool
    Composed           bool
    View               js.Value
    Detail             int
    SourceCapabilities *inputcapabilities.InputDeviceCapabilities
}

dictionary: UIEventInit

func UIEventInitFromJS Uses

func UIEventInitFromJS(value js.Wrapper) *UIEventInit

UIEventInitFromJS is allocating a new UIEventInit object and copy all values from input javascript object

func (*UIEventInit) JSValue Uses

func (_this *UIEventInit) JSValue() js.Value

JSValue is allocating a new javasript object and copy all values

type Union Uses

type Union struct {
    Value js.Value
}

func UnionFromJS Uses

func UnionFromJS(value js.Value) *Union

func (*Union) JSValue Uses

func (u *Union) JSValue() js.Value

type WheelEvent Uses

type WheelEvent struct {
    MouseEvent
}

class: WheelEvent

func NewWheelEvent Uses

func NewWheelEvent(_type string, eventInitDict *WheelEventInit) (_result *WheelEvent)

func WheelEventFromJS Uses

func WheelEventFromJS(value js.Wrapper) *WheelEvent

WheelEventFromJS is casting a js.Wrapper into WheelEvent.

func (*WheelEvent) DeltaMode Uses

func (_this *WheelEvent) DeltaMode() uint

DeltaMode returning attribute 'deltaMode' with type uint (idl: unsigned long).

func (*WheelEvent) DeltaX Uses

func (_this *WheelEvent) DeltaX() float64

DeltaX returning attribute 'deltaX' with type float64 (idl: double).

func (*WheelEvent) DeltaY Uses

func (_this *WheelEvent) DeltaY() float64

DeltaY returning attribute 'deltaY' with type float64 (idl: double).

func (*WheelEvent) DeltaZ Uses

func (_this *WheelEvent) DeltaZ() float64

DeltaZ returning attribute 'deltaZ' with type float64 (idl: double).

type WheelEventInit Uses

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 Uses

func WheelEventInitFromJS(value js.Wrapper) *WheelEventInit

WheelEventInitFromJS is allocating a new WheelEventInit object and copy all values from input javascript object

func (*WheelEventInit) JSValue Uses

func (_this *WheelEventInit) JSValue() js.Value

JSValue is allocating a new javasript object and copy all values

Package htmlevent imports 6 packages (graph) and is imported by 2 packages. Updated 2019-09-16. Refresh now. Tools for package owners.