gioui.orggioui.org/io/event Index | Files

package event

import "gioui.org/io/event"

Package event contains types for event handling.

Index

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.

Source Files

event.go

Version
v0.8.0 (latest)
Published
Jan 14, 2025
Platform
linux/amd64
Imports
2 packages
Last checked
9 hours ago

Tools for package owners.