event

package
v1.3.9 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2023 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Overview

Package event provides an infinitely buffered double-ended queue of events.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Deque

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

Deque is an infinitely buffered double-ended queue of events. The zero value is usable, but a Deque value must not be copied.

func (*Deque) NextEvent

func (q *Deque) NextEvent() oswin.Event

NextEvent implements the oswin.EventDeque interface.

func (*Deque) PollEvent added in v0.9.9

func (q *Deque) PollEvent() (oswin.Event, bool)

PollEvent returns the next event in the deque if available, returns true returns false and does not wait if no events currently available

func (*Deque) Send

func (q *Deque) Send(event oswin.Event)

Send implements the oswin.EventDeque interface.

func (*Deque) SendFirst

func (q *Deque) SendFirst(event oswin.Event)

SendFirst implements the oswin.EventDeque interface.

Jump to

Keyboard shortcuts

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