eventx

package
v0.0.0-...-c164e21 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2022 License: MIT, Unlicense Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Queue

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

Queue implements an op.Queue that collects all events from a composite widget components and make them available when collecting events for that composite.

It can be used to catch specific keys in a widget.Editor for instance, such as the ESC key to unfocus the editor.

func (*Queue) Events

func (q *Queue) Events(tag event.Tag) []event.Event

Events returns events for the tag. If the tag is the composite widget, then its events are completed with all of the events from its components.

func (*Queue) Init

func (q *Queue) Init(gtx layout.Context, composite event.Tag) layout.Context

Init returns a context suitable for composite widget events collection.

Jump to

Keyboard shortcuts

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