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.

        Source Files