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 ¶
- type Touch
- func (_this *Touch) AltitudeAngle() float32
- func (_this *Touch) AzimuthAngle() float32
- func (_this *Touch) ClientX() float64
- func (_this *Touch) ClientY() float64
- func (_this *Touch) Force() float32
- func (_this *Touch) Identifier() int
- func (_this *Touch) JSValue() js.Value
- func (_this *Touch) PageX() float64
- func (_this *Touch) PageY() float64
- func (_this *Touch) RadiusX() float32
- func (_this *Touch) RadiusY() float32
- func (_this *Touch) RotationAngle() float32
- func (_this *Touch) ScreenX() float64
- func (_this *Touch) ScreenY() float64
- func (_this *Touch) Target() *domcore.EventTarget
- func (_this *Touch) TouchType() TouchType
- type TouchEvent
- func (_this *TouchEvent) AltKey() bool
- func (_this *TouchEvent) ChangedTouches() *TouchList
- func (_this *TouchEvent) CtrlKey() bool
- func (_this *TouchEvent) MetaKey() bool
- func (_this *TouchEvent) ShiftKey() bool
- func (_this *TouchEvent) TargetTouches() *TouchList
- func (_this *TouchEvent) Touches() *TouchList
- type TouchEventInit
- type TouchInit
- type TouchList
- type TouchType
- type Union
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Touch ¶
class: Touch
func TouchFromJS ¶
TouchFromJS is casting a js.Wrapper into Touch.
func (*Touch) AltitudeAngle ¶
AltitudeAngle returning attribute 'altitudeAngle' with type float32 (idl: float).
func (*Touch) AzimuthAngle ¶
AzimuthAngle returning attribute 'azimuthAngle' with type float32 (idl: float).
func (*Touch) Identifier ¶
Identifier returning attribute 'identifier' with type int (idl: long).
func (*Touch) RotationAngle ¶
RotationAngle returning attribute 'rotationAngle' with type float32 (idl: float).
func (*Touch) Target ¶
func (_this *Touch) Target() *domcore.EventTarget
Target returning attribute 'target' with type domcore.EventTarget (idl: EventTarget).
type TouchEvent ¶
class: TouchEvent
func NewTouchEvent ¶
func NewTouchEvent(_type string, eventInitDict *TouchEventInit) (_result *TouchEvent)
func TouchEventFromJS ¶
func TouchEventFromJS(value js.Wrapper) *TouchEvent
TouchEventFromJS is casting a js.Wrapper 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.Wrapper) *TouchEventInit
TouchEventInitFromJS is allocating a new TouchEventInit object and copy all values from input javascript object
func (*TouchEventInit) JSValue ¶
func (_this *TouchEventInit) JSValue() js.Value
JSValue is allocating a new javasript 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 ¶
TouchInitFromJS is allocating a new TouchInit object and copy all values from input javascript object
type TouchList ¶
class: TouchList
func TouchListFromJS ¶
TouchListFromJS is casting a js.Wrapper into TouchList.