touch

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2017 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package touch is a generated protocol buffer package.

It is generated from these files:

gomatcha.io/matcha/pb/touch/touch2.proto

It has these top-level messages:

Recognizer
RecognizerList
ButtonRecognizer
ButtonEvent
TapRecognizer
TapEvent
PressRecognizer
PressEvent

Index

Constants

This section is empty.

Variables

View Source
var EventKind_name = map[int32]string{
	0: "EVENT_KIND_POSSIBLE",
	1: "EVENT_KIND_CHANGED",
	2: "EVENT_KIND_FAILED",
	3: "EVENT_KIND_RECOGNIZED",
}
View Source
var EventKind_value = map[string]int32{
	"EVENT_KIND_POSSIBLE":   0,
	"EVENT_KIND_CHANGED":    1,
	"EVENT_KIND_FAILED":     2,
	"EVENT_KIND_RECOGNIZED": 3,
}

Functions

This section is empty.

Types

type ButtonEvent

type ButtonEvent struct {
	Timestamp *google_protobuf2.Timestamp `protobuf:"bytes,1,opt,name=timestamp" json:"timestamp,omitempty"`
	Inside    bool                        `protobuf:"varint,3,opt,name=inside" json:"inside,omitempty"`
	Kind      EventKind                   `protobuf:"varint,4,opt,name=kind,enum=matcha.touch.EventKind" json:"kind,omitempty"`
}

func (*ButtonEvent) Descriptor

func (*ButtonEvent) Descriptor() ([]byte, []int)

func (*ButtonEvent) GetInside

func (m *ButtonEvent) GetInside() bool

func (*ButtonEvent) GetKind

func (m *ButtonEvent) GetKind() EventKind

func (*ButtonEvent) GetTimestamp

func (m *ButtonEvent) GetTimestamp() *google_protobuf2.Timestamp

func (*ButtonEvent) ProtoMessage

func (*ButtonEvent) ProtoMessage()

func (*ButtonEvent) Reset

func (m *ButtonEvent) Reset()

func (*ButtonEvent) String

func (m *ButtonEvent) String() string

type ButtonRecognizer

type ButtonRecognizer struct {
	OnEvent       int64 `protobuf:"varint,1,opt,name=onEvent" json:"onEvent,omitempty"`
	IgnoresScroll bool  `protobuf:"varint,2,opt,name=ignoresScroll" json:"ignoresScroll,omitempty"`
}

func (*ButtonRecognizer) Descriptor

func (*ButtonRecognizer) Descriptor() ([]byte, []int)

func (*ButtonRecognizer) GetIgnoresScroll

func (m *ButtonRecognizer) GetIgnoresScroll() bool

func (*ButtonRecognizer) GetOnEvent

func (m *ButtonRecognizer) GetOnEvent() int64

func (*ButtonRecognizer) ProtoMessage

func (*ButtonRecognizer) ProtoMessage()

func (*ButtonRecognizer) Reset

func (m *ButtonRecognizer) Reset()

func (*ButtonRecognizer) String

func (m *ButtonRecognizer) String() string

type EventKind

type EventKind int32
const (
	EventKind_EVENT_KIND_POSSIBLE   EventKind = 0
	EventKind_EVENT_KIND_CHANGED    EventKind = 1
	EventKind_EVENT_KIND_FAILED     EventKind = 2
	EventKind_EVENT_KIND_RECOGNIZED EventKind = 3
)

func (EventKind) EnumDescriptor

func (EventKind) EnumDescriptor() ([]byte, []int)

func (EventKind) String

func (x EventKind) String() string

type PressEvent

type PressEvent struct {
	Timestamp *google_protobuf2.Timestamp `protobuf:"bytes,1,opt,name=timestamp" json:"timestamp,omitempty"`
	Position  *matcha_layout.Point        `protobuf:"bytes,2,opt,name=position" json:"position,omitempty"`
	Kind      EventKind                   `protobuf:"varint,3,opt,name=kind,enum=matcha.touch.EventKind" json:"kind,omitempty"`
	Duration  *google_protobuf1.Duration  `protobuf:"bytes,4,opt,name=duration" json:"duration,omitempty"`
}

func (*PressEvent) Descriptor

func (*PressEvent) Descriptor() ([]byte, []int)

func (*PressEvent) GetDuration

func (m *PressEvent) GetDuration() *google_protobuf1.Duration

func (*PressEvent) GetKind

func (m *PressEvent) GetKind() EventKind

func (*PressEvent) GetPosition

func (m *PressEvent) GetPosition() *matcha_layout.Point

func (*PressEvent) GetTimestamp

func (m *PressEvent) GetTimestamp() *google_protobuf2.Timestamp

func (*PressEvent) ProtoMessage

func (*PressEvent) ProtoMessage()

func (*PressEvent) Reset

func (m *PressEvent) Reset()

func (*PressEvent) String

func (m *PressEvent) String() string

type PressRecognizer

type PressRecognizer struct {
	MinDuration *google_protobuf1.Duration `protobuf:"bytes,1,opt,name=minDuration" json:"minDuration,omitempty"`
	FuncId      int64                      `protobuf:"varint,2,opt,name=funcId" json:"funcId,omitempty"`
}

func (*PressRecognizer) Descriptor

func (*PressRecognizer) Descriptor() ([]byte, []int)

func (*PressRecognizer) GetFuncId

func (m *PressRecognizer) GetFuncId() int64

func (*PressRecognizer) GetMinDuration

func (m *PressRecognizer) GetMinDuration() *google_protobuf1.Duration

func (*PressRecognizer) ProtoMessage

func (*PressRecognizer) ProtoMessage()

func (*PressRecognizer) Reset

func (m *PressRecognizer) Reset()

func (*PressRecognizer) String

func (m *PressRecognizer) String() string

type Recognizer

type Recognizer struct {
	Id         int64                `protobuf:"varint,1,opt,name=id" json:"id,omitempty"`
	Recognizer *google_protobuf.Any `protobuf:"bytes,3,opt,name=recognizer" json:"recognizer,omitempty"`
}

func (*Recognizer) Descriptor

func (*Recognizer) Descriptor() ([]byte, []int)

func (*Recognizer) GetId

func (m *Recognizer) GetId() int64

func (*Recognizer) GetRecognizer

func (m *Recognizer) GetRecognizer() *google_protobuf.Any

func (*Recognizer) ProtoMessage

func (*Recognizer) ProtoMessage()

func (*Recognizer) Reset

func (m *Recognizer) Reset()

func (*Recognizer) String

func (m *Recognizer) String() string

type RecognizerList

type RecognizerList struct {
	Recognizers []*Recognizer `protobuf:"bytes,1,rep,name=recognizers" json:"recognizers,omitempty"`
}

func (*RecognizerList) Descriptor

func (*RecognizerList) Descriptor() ([]byte, []int)

func (*RecognizerList) GetRecognizers

func (m *RecognizerList) GetRecognizers() []*Recognizer

func (*RecognizerList) ProtoMessage

func (*RecognizerList) ProtoMessage()

func (*RecognizerList) Reset

func (m *RecognizerList) Reset()

func (*RecognizerList) String

func (m *RecognizerList) String() string

type TapEvent

type TapEvent struct {
	Timestamp *google_protobuf2.Timestamp `protobuf:"bytes,1,opt,name=timestamp" json:"timestamp,omitempty"`
	Position  *matcha_layout.Point        `protobuf:"bytes,2,opt,name=position" json:"position,omitempty"`
	Kind      EventKind                   `protobuf:"varint,3,opt,name=kind,enum=matcha.touch.EventKind" json:"kind,omitempty"`
}

func (*TapEvent) Descriptor

func (*TapEvent) Descriptor() ([]byte, []int)

func (*TapEvent) GetKind

func (m *TapEvent) GetKind() EventKind

func (*TapEvent) GetPosition

func (m *TapEvent) GetPosition() *matcha_layout.Point

func (*TapEvent) GetTimestamp

func (m *TapEvent) GetTimestamp() *google_protobuf2.Timestamp

func (*TapEvent) ProtoMessage

func (*TapEvent) ProtoMessage()

func (*TapEvent) Reset

func (m *TapEvent) Reset()

func (*TapEvent) String

func (m *TapEvent) String() string

type TapRecognizer

type TapRecognizer struct {
	Count          int64 `protobuf:"varint,1,opt,name=count" json:"count,omitempty"`
	RecognizedFunc int64 `protobuf:"varint,2,opt,name=recognizedFunc" json:"recognizedFunc,omitempty"`
}

func (*TapRecognizer) Descriptor

func (*TapRecognizer) Descriptor() ([]byte, []int)

func (*TapRecognizer) GetCount

func (m *TapRecognizer) GetCount() int64

func (*TapRecognizer) GetRecognizedFunc

func (m *TapRecognizer) GetRecognizedFunc() int64

func (*TapRecognizer) ProtoMessage

func (*TapRecognizer) ProtoMessage()

func (*TapRecognizer) Reset

func (m *TapRecognizer) Reset()

func (*TapRecognizer) String

func (m *TapRecognizer) String() string

Jump to

Keyboard shortcuts

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