Documentation
¶
Index ¶
- func Install(w *app.Window, evt event.Event)
- func NewHandlerFunc(ops []reflect.Type, events []reflect.Type, listenOp func(op interface{}), ...) func(w *app.Window, h *Plugin) Handler
- func Register(plugin func(w *app.Window, handler *Plugin) Handler)
- func WriteOp(op *op.Ops, c any)
- type EndFrameEvent
- type Handler
- type OpPool
- type Plugin
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewHandlerFunc ¶
func NewHandlerFunc(ops []reflect.Type, events []reflect.Type, listenOp func(op interface{}), listenEvents func(event.Event)) func(w *app.Window, h *Plugin) Handler
NewHandlerFunc returns a Handler that calls the given functions.
Types ¶
type EndFrameEvent ¶
type EndFrameEvent struct{}
func (EndFrameEvent) ImplementsEvent ¶
func (EndFrameEvent) ImplementsEvent()
type Handler ¶
type Handler interface { TypeOp() []reflect.Type TypeEvent() []reflect.Type ListenOps(op interface{}) ListenEvents(evt event.Event) }
Handler is the interface that represents the Plugin.
type OpPool ¶
type OpPool[T any] struct { // contains filtered or unexported fields }
OpPool is a pool of specific type of op.
func NewOpPool ¶
NewOpPool returns a new OpPool. That is useful to avoid memory allocation, you MUST call Release() after you done using the op.
Click to show internal directories.
Click to hide internal directories.