events

package
v0.0.0-...-1bf782c Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2023 License: MIT Imports: 1 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Event

type Event struct {
	EventBase[uintptr, func()]
}

func NewEvent

func NewEvent() *Event

func (*Event) Event

func (_this *Event) Event()

type EventBase

type EventBase[T any, M func(...T) | func(T) | func()] struct {
	// contains filtered or unexported fields
}

func (*EventBase[T, M]) Add

func (_this *EventBase[T, M]) Add(calback *M)

func (*EventBase[T, M]) Clear

func (_this *EventBase[T, M]) Clear()

func (*EventBase[T, M]) Remove

func (_this *EventBase[T, M]) Remove(calback *M)

type EventParam

type EventParam[T any] struct {
	EventBase[T, func(T)]
}

func NewEventParam

func NewEventParam[T any]() *EventParam[T]

func (*EventParam[T]) Event

func (_this *EventParam[T]) Event(param T)

type EventParams

type EventParams[T any] struct {
	EventBase[T, func(...T)]
}

func NewEventParams

func NewEventParams[T any]() *EventParams[T]

func (*EventParams[T]) Event

func (_this *EventParams[T]) Event(param ...T)

Jump to

Keyboard shortcuts

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