event

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2024 License: MIT, Unlicense Imports: 2 Imported by: 134

Documentation

Overview

Package event contains types for event handling.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Op added in v0.5.0

func Op(o *op.Ops, tag Tag)

Op declares a tag for input routing at the current transformation and clip area hierarchy. It panics if tag is nil.

Types

type Event

type Event interface {
	ImplementsEvent()
}

Event is the marker interface for events.

type Filter added in v0.5.0

type Filter interface {
	ImplementsFilter()
}

Filter represents a filter for Event types.

type Tag

type Tag interface{}

Tag is the stable identifier for an event handler. For a handler h, the tag is typically &h.

Jump to

Keyboard shortcuts

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