event

package
v0.7.2 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2023 License: MIT-0 Imports: 2 Imported by: 0

Documentation

Overview

Package event implements tcell.Event and derived types.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewFunc added in v0.7.1

func NewFunc(fn func()) tcell.Event

NewFunc return a Func event with fn.

Types

type Event added in v0.7.0

type Event time.Time

Event implements tcell.Event.

func (*Event) Init added in v0.7.0

func (ev *Event) Init()

Init initializes the event with the current time.

func (Event) When added in v0.7.0

func (ev Event) When() time.Time

When reports the time when the event was generated.

type Func added in v0.7.0

type Func struct {
	Event
	Func func()
}

Func is a tcell.Event that holds a function to be executed.

Jump to

Keyboard shortcuts

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