event

package
v0.0.0-...-e3504ca Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2024 License: MIT, Unlicense Imports: 2 Imported by: 0

Documentation

Overview

Package event contains types for event handling.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Op

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

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