event

package
v0.0.0-...-a5d0d41 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Event

type Event interface {
	EventImpl()
}

Event TODO: StopPropagation (event core?)

type HoverState

type HoverState bool
const (
	StartHover HoverState = true
	EndHover              = false
)

type MouseClickEvent

type MouseClickEvent struct {
	Position image.Point
	Button   []ebiten.MouseButton
}

func (MouseClickEvent) EventImpl

func (e MouseClickEvent) EventImpl()

type MouseHoverEvent

type MouseHoverEvent struct {
	Position image.Point
	State    HoverState
}

func (MouseHoverEvent) EventImpl

func (e MouseHoverEvent) EventImpl()

type Queue

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

func NewEventQueue

func NewEventQueue() Queue

func (*Queue) Fire

func (q *Queue) Fire(event Event)

func (*Queue) On

func (q *Queue) On(listener func(event Event))

Jump to

Keyboard shortcuts

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