touchevents

package
v0.0.0-...-41cedfc Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2022 License: BSD-3-Clause Imports: 5 Imported by: 3

Documentation

Overview

Package touchevents is low-level events that represent one or more points of contact with a touch-sensitive surface, and changes of those points with respect to the surface and any DOM elements displayed upon it (e.g. for touch screens) or associated with it (e.g. for drawing tablets without displays).

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Touch

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

class: Touch

func NewTouch

func NewTouch(touchInitDict *TouchInit) (_result *Touch)

func TouchFromJS

func TouchFromJS(value js.Value) *Touch

TouchFromJS is casting a js.Value into Touch.

func TouchFromWrapper

func TouchFromWrapper(input core.Wrapper) *Touch

TouchFromJS is casting from something that holds a js.Value into Touch.

func (*Touch) AltitudeAngle

func (_this *Touch) AltitudeAngle() float32

AltitudeAngle returning attribute 'altitudeAngle' with type float32 (idl: float).

func (*Touch) AzimuthAngle

func (_this *Touch) AzimuthAngle() float32

AzimuthAngle returning attribute 'azimuthAngle' with type float32 (idl: float).

func (*Touch) ClientX

func (_this *Touch) ClientX() float64

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

func (*Touch) ClientY

func (_this *Touch) ClientY() float64

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

func (*Touch) Force

func (_this *Touch) Force() float32

Force returning attribute 'force' with type float32 (idl: float).

func (*Touch) Identifier

func (_this *Touch) Identifier() int

Identifier returning attribute 'identifier' with type int (idl: long).

func (*Touch) JSValue

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

JSValue returns the js.Value or js.Null() if _this is nil

func (*Touch) PageX

func (_this *Touch) PageX() float64

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

func (*Touch) PageY

func (_this *Touch) PageY() float64

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

func (*Touch) RadiusX

func (_this *Touch) RadiusX() float32

RadiusX returning attribute 'radiusX' with type float32 (idl: float).

func (*Touch) RadiusY

func (_this *Touch) RadiusY() float32

RadiusY returning attribute 'radiusY' with type float32 (idl: float).

func (*Touch) RotationAngle

func (_this *Touch) RotationAngle() float32

RotationAngle returning attribute 'rotationAngle' with type float32 (idl: float).

func (*Touch) ScreenX

func (_this *Touch) ScreenX() float64

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

func (*Touch) ScreenY

func (_this *Touch) ScreenY() float64

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

func (*Touch) Target

func (_this *Touch) Target() *domcore.EventTarget

Target returning attribute 'target' with type domcore.EventTarget (idl: EventTarget).

func (*Touch) TouchType

func (_this *Touch) TouchType() TouchType

TouchType returning attribute 'touchType' with type TouchType (idl: TouchType).

type TouchEvent

type TouchEvent struct {
	htmlevent.UIEvent
}

class: TouchEvent

func NewTouchEvent

func NewTouchEvent(_type string, eventInitDict *TouchEventInit) (_result *TouchEvent)

func TouchEventFromJS

func TouchEventFromJS(value js.Value) *TouchEvent

TouchEventFromJS is casting a js.Value into TouchEvent.

func TouchEventFromWrapper

func TouchEventFromWrapper(input core.Wrapper) *TouchEvent

TouchEventFromJS is casting from something that holds a js.Value into TouchEvent.

func (*TouchEvent) AltKey

func (_this *TouchEvent) AltKey() bool

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

func (*TouchEvent) ChangedTouches

func (_this *TouchEvent) ChangedTouches() *TouchList

ChangedTouches returning attribute 'changedTouches' with type TouchList (idl: TouchList).

func (*TouchEvent) CtrlKey

func (_this *TouchEvent) CtrlKey() bool

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

func (*TouchEvent) MetaKey

func (_this *TouchEvent) MetaKey() bool

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

func (*TouchEvent) ShiftKey

func (_this *TouchEvent) ShiftKey() bool

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

func (*TouchEvent) TargetTouches

func (_this *TouchEvent) TargetTouches() *TouchList

TargetTouches returning attribute 'targetTouches' with type TouchList (idl: TouchList).

func (*TouchEvent) Touches

func (_this *TouchEvent) Touches() *TouchList

Touches returning attribute 'touches' with type TouchList (idl: TouchList).

type TouchEventInit

type TouchEventInit 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
	Touches            []*Touch
	TargetTouches      []*Touch
	ChangedTouches     []*Touch
}

dictionary: TouchEventInit

func TouchEventInitFromJS

func TouchEventInitFromJS(value js.Value) *TouchEventInit

TouchEventInitFromJS is allocating a new TouchEventInit object and copy all values in the value javascript object.

func (*TouchEventInit) JSValue

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

JSValue is allocating a new javascript object and copy all values

type TouchInit

type TouchInit struct {
	Identifier    int
	Target        *domcore.EventTarget
	ClientX       float64
	ClientY       float64
	ScreenX       float64
	ScreenY       float64
	PageX         float64
	PageY         float64
	RadiusX       float32
	RadiusY       float32
	RotationAngle float32
	Force         float32
	AltitudeAngle float64
	AzimuthAngle  float64
	TouchType     TouchType
}

dictionary: TouchInit

func TouchInitFromJS

func TouchInitFromJS(value js.Value) *TouchInit

TouchInitFromJS is allocating a new TouchInit object and copy all values in the value javascript object.

func (*TouchInit) JSValue

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

JSValue is allocating a new javascript object and copy all values

type TouchList

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

class: TouchList

func TouchListFromJS

func TouchListFromJS(value js.Value) *TouchList

TouchListFromJS is casting a js.Value into TouchList.

func TouchListFromWrapper

func TouchListFromWrapper(input core.Wrapper) *TouchList

TouchListFromJS is casting from something that holds a js.Value into TouchList.

func (*TouchList) Index

func (_this *TouchList) Index(index uint) (_result *Touch)

func (*TouchList) Item

func (_this *TouchList) Item(index uint) (_result *Touch)

func (*TouchList) JSValue

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

JSValue returns the js.Value or js.Null() if _this is nil

func (*TouchList) Length

func (_this *TouchList) Length() uint

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

type TouchType

type TouchType int

enum: TouchType

const (
	DirectTouchType TouchType = iota
	StylusTouchType
)

func TouchTypeFromJS

func TouchTypeFromJS(value js.Value) TouchType

TouchTypeFromJS is converting a javascript value into a TouchType enum value.

func (*TouchType) JSValue

func (this *TouchType) JSValue() js.Value

JSValue is converting this enum into a javascript object

func (TouchType) Value

func (this TouchType) Value() string

Value is converting this into javascript defined string value

type Union

type Union struct {
	Value js.Value
}

func UnionFromJS

func UnionFromJS(value js.Value) *Union

func (*Union) JSValue

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

Jump to

Keyboard shortcuts

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