moblie

package
v0.0.0-...-86d339c Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2020 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const SystemAlive = "moblie.SystemAlive"
View Source
const SystemBackground = "moblie.SystemBackground"
View Source
const SystemForeground = "moblie.SystemForeground"
View Source
const SystemFrame = "moblie.SystemFrame"
View Source
const SystemSize = "moblie.SystemSize"
View Source
const SystemTouch = "moblie.SystemTouch"

Variables

This section is empty.

Functions

This section is empty.

Types

type AliveEvent

type AliveEvent struct {
	Context gl.Context
}

type BackgroundEvent

type BackgroundEvent struct {
}

type ForegroundEvent

type ForegroundEvent struct {
	Context gl.Context
}

type Moblie

type Moblie struct {
	core.Dispatcher // Embedded event dispatcher

	WidthPx, HeightPx int
	// contains filtered or unexported fields
}

func NewMoblie

func NewMoblie() *Moblie

func (*Moblie) Frame

func (m *Moblie) Frame()

func (*Moblie) Publish

func (m *Moblie) Publish()

func (*Moblie) Run

func (m *Moblie) Run()

type SizeEvent

type SizeEvent struct {
	WidthPx, HeightPx int
}

type TouchEvent

type TouchEvent struct {
	X, Y     float32
	Sequence int64
	Type     Type
}

type Type

type Type byte
const (
	TypeBegin Type = iota
	TypeMove
	TypeEnd
)

Jump to

Keyboard shortcuts

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