action

package
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2020 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Action

type Action struct {
	// contains filtered or unexported fields
}

Action presents a simple event receiver

func NewAction

func NewAction(app *impress.Application, rect impress.Rect, loop func(act *Action)) *Action

NewAction launches new event receiver func

func (*Action) Activate

func (act *Action) Activate()

Activate enables the Action to receive app events

func (*Action) Activated

func (act *Action) Activated() bool

Activated returns true when the Action is an active recipient

func (*Action) Chan

func (act *Action) Chan() chan impress.Eventer

Chan returns receiver events channel

func (*Action) Event

func (act *Action) Event() impress.Eventer

Event gets next event when the Action is an active recipient

Jump to

Keyboard shortcuts

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