webapi: github.com/gowebapi/webapi/device/touchevents Index | Files

package touchevents

import "github.com/gowebapi/webapi/device/touchevents"

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

Package Files

doc.go touchevents.go

type Touch Uses

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

class: Touch

func NewTouch Uses

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

func TouchFromJS Uses

func TouchFromJS(value js.Wrapper) *Touch

TouchFromJS is casting a js.Wrapper into Touch.

func (*Touch) AltitudeAngle Uses

func (_this *Touch) AltitudeAngle() float32

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

func (*Touch) AzimuthAngle Uses

func (_this *Touch) AzimuthAngle() float32

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

func (*Touch) ClientX Uses

func (_this *Touch) ClientX() float64

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

func (*Touch) ClientY Uses

func (_this *Touch) ClientY() float64

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

func (*Touch) Force Uses

func (_this *Touch) Force() float32

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

func (*Touch) Identifier Uses

func (_this *Touch) Identifier() int

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

func (*Touch) JSValue Uses

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

func (*Touch) PageX Uses

func (_this *Touch) PageX() float64

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

func (*Touch) PageY Uses

func (_this *Touch) PageY() float64

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

func (*Touch) RadiusX Uses

func (_this *Touch) RadiusX() float32

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

func (*Touch) RadiusY Uses

func (_this *Touch) RadiusY() float32

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

func (*Touch) RotationAngle Uses

func (_this *Touch) RotationAngle() float32

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

func (*Touch) ScreenX Uses

func (_this *Touch) ScreenX() float64

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

func (*Touch) ScreenY Uses

func (_this *Touch) ScreenY() float64

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

func (*Touch) Target Uses

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

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

func (*Touch) TouchType Uses

func (_this *Touch) TouchType() TouchType

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

type TouchEvent Uses

type TouchEvent struct {
    htmlevent.UIEvent
}

class: TouchEvent

func NewTouchEvent Uses

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

func TouchEventFromJS Uses

func TouchEventFromJS(value js.Wrapper) *TouchEvent

TouchEventFromJS is casting a js.Wrapper into TouchEvent.

func (*TouchEvent) AltKey Uses

func (_this *TouchEvent) AltKey() bool

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

func (*TouchEvent) ChangedTouches Uses

func (_this *TouchEvent) ChangedTouches() *TouchList

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

func (*TouchEvent) CtrlKey Uses

func (_this *TouchEvent) CtrlKey() bool

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

func (*TouchEvent) MetaKey Uses

func (_this *TouchEvent) MetaKey() bool

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

func (*TouchEvent) ShiftKey Uses

func (_this *TouchEvent) ShiftKey() bool

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

func (*TouchEvent) TargetTouches Uses

func (_this *TouchEvent) TargetTouches() *TouchList

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

func (*TouchEvent) Touches Uses

func (_this *TouchEvent) Touches() *TouchList

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

type TouchEventInit Uses

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 Uses

func TouchEventInitFromJS(value js.Wrapper) *TouchEventInit

TouchEventInitFromJS is allocating a new TouchEventInit object and copy all values from input javascript object

func (*TouchEventInit) JSValue Uses

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

JSValue is allocating a new javasript object and copy all values

type TouchInit Uses

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 Uses

func TouchInitFromJS(value js.Wrapper) *TouchInit

TouchInitFromJS is allocating a new TouchInit object and copy all values from input javascript object

func (*TouchInit) JSValue Uses

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

JSValue is allocating a new javasript object and copy all values

type TouchList Uses

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

class: TouchList

func TouchListFromJS Uses

func TouchListFromJS(value js.Wrapper) *TouchList

TouchListFromJS is casting a js.Wrapper into TouchList.

func (*TouchList) Index Uses

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

func (*TouchList) Item Uses

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

func (*TouchList) JSValue Uses

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

func (*TouchList) Length Uses

func (_this *TouchList) Length() uint

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

type TouchType Uses

type TouchType int

enum: TouchType

const (
    DirectTouchType TouchType = iota
    StylusTouchType
)

func TouchTypeFromJS Uses

func TouchTypeFromJS(value js.Value) TouchType

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

func (*TouchType) JSValue Uses

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

JSValue is converting this enum into a javascript object

func (TouchType) Value Uses

func (this TouchType) Value() string

Value is converting this into javascript defined string value

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

Package touchevents imports 4 packages (graph) and is imported by 3 packages. Updated 2019-09-22. Refresh now. Tools for package owners.