gesture

package
v0.0.0-...-1e03496 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2022 License: BSD-2-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DoubleTouch

type DoubleTouch []Event

type DoubleTouchDrag

type DoubleTouchDrag []Event

type Drag

type Drag []Event

func (Drag) GoString

func (a Drag) GoString() string

type Event

type Event struct {
	X, Y float32
	Type Type
	Time time.Time
}
var ZE Event

ZE is the zero Event.

func (Event) Final

func (e Event) Final() bool

func (Event) GoString

func (e Event) GoString() string

type EventFilter

type EventFilter struct {
	Send func(interface{})
	// contains filtered or unexported fields
}

TODO embed struct with for default timeouts; if zero-struct, autoinit values during Filter.

func (*EventFilter) Filter

func (f *EventFilter) Filter(e interface{}) interface{}

type Events

type Events []Event

func (Events) Last

func (es Events) Last() Event

type LongPress

type LongPress []Event

type LongPressDrag

type LongPressDrag []Event

func (LongPressDrag) GoString

func (a LongPressDrag) GoString() string

type Touch

type Touch []Event

TODO endless events is nice for history, but no more than ?three? events are ever actually needed.

func (Touch) Last

func (a Touch) Last() Event

type Type

type Type uint8
const (
	TypeBegin Type = 1 << iota
	TypeMove
	TypeEnd
	TypeFinal

	TypeInvalid Type = 0
)

func (Type) Any

func (t Type) Any(x Type) bool

func (Type) Has

func (t Type) Has(x Type) bool

Jump to

Keyboard shortcuts

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