event

package
v0.0.0-...-0fb2adb Latest Latest
Warning

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

Go to latest
Published: May 16, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var EventHandler func(event Event)

Functions

func Emit

func Emit(event Event)

func Listen

func Listen(key interface{}, cb func(e Event) error)

func Unlisten

func Unlisten(key interface{})

Types

type Event

type Event struct {
	Type     EventType
	Window   resource.Handle
	Position misc.Position
	Size     misc.Size
	MenuItem int
	Shortcut string
}

type EventType

type EventType int
const (
	None EventType = iota
	Close
	Created
	Destroyed
	Focused
	Blurred
	Resized
	Moved
	MenuItem
	Shortcut
)

func (EventType) String

func (e EventType) String() string

Jump to

Keyboard shortcuts

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