nui

package
v0.0.0-...-8a12d84 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2023 License: BSD-2-Clause Imports: 5 Imported by: 0

Documentation

Overview

Package nui aims to be unremarkable in aiding windowing.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Close

func Close(off chan<- Event)

Doff and leer.

func Open

func Open(on chan<- Event, events ...event)

Don these quirks and leer.

First call made to Don should be from main thread.

Types

type Event

type Event int
const (
	Surface  Event = 1 << iota // Surface quirks includes things like windowing, rendering, etc
	Position                   // Position quirks include things like window and mouse coordinates, etc
	Size                       // Size quirks include things like window and framebuffer size and resize, etc
	View                       // View quirks include things like visibility, focusing, floating, maximizing, etc
	Touch                      // Touch quirks include things like button and key presses, physicality, etc
	Nada                       // Nada donned alone terminates the system and closes provided channel if not nil
)

TODO nui.Stable Quirk ??? so if something changes, nui will try and put things right again, such as resizing GL viewport, redrawing dirty window, etc.

func (Event) Event

func (a Event) Event()

quirks don't produce side effects, they are the side effect!

func (Event) String

func (i Event) String() string

type EventFunc

type EventFunc func()

EventFunc is a func that implements event.

func (EventFunc) Event

func (a EventFunc) Event()

func (EventFunc) String

func (a EventFunc) String() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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