uievents

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bootstrap

func Bootstrap[T any](reg js.ClassBuilder[T])

Types

type MouseEvent

type MouseEvent[T any] struct {
	UIEvent[T]
}

func NewMouseEvent

func NewMouseEvent[T any](host js.ScriptEngine[T]) MouseEvent[T]

func (MouseEvent[T]) Constructor

func (w MouseEvent[T]) Constructor(cbCtx js.CallbackContext[T]) (js.Value[T], error)

func (MouseEvent[T]) Initialize

func (wrapper MouseEvent[T]) Initialize(jsClass js.Class[T])

type PointerEvent

type PointerEvent[T any] struct {
	MouseEvent[T]
}

func NewPointerEvent

func NewPointerEvent[T any](host js.ScriptEngine[T]) PointerEvent[T]

func (PointerEvent[T]) Constructor

func (w PointerEvent[T]) Constructor(cbCtx js.CallbackContext[T]) (js.Value[T], error)

func (PointerEvent[T]) Initialize

func (wrapper PointerEvent[T]) Initialize(jsClass js.Class[T])

type UIEvent

type UIEvent[T any] struct{}

func NewUIEvent

func NewUIEvent[T any](scriptHost js.ScriptEngine[T]) *UIEvent[T]

func (UIEvent[T]) Constructor

func (w UIEvent[T]) Constructor(cbCtx js.CallbackContext[T]) (js.Value[T], error)

func (UIEvent[T]) CreateInstance

func (w UIEvent[T]) CreateInstance(
	cbCtx js.CallbackContext[T],
	type_ string,
) (js.Value[T], error)

func (UIEvent[T]) CreateInstanceEventInitDict

func (w UIEvent[T]) CreateInstanceEventInitDict(
	cbCtx js.CallbackContext[T],
	type_ string,
	options ...interface{}) (js.Value[T], error)

func (UIEvent[T]) Initialize

func (wrapper UIEvent[T]) Initialize(jsClass js.Class[T])

Jump to

Keyboard shortcuts

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