window

package
v0.0.0-...-6a2d22b Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2023 License: Unlicense Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewBaseCanvas

func NewBaseCanvas(screen tcell.Screen) *baseCanvas

func NewCutoutCanvas

func NewCutoutCanvas(parent core.Canvas, x, y int, size core.Size) *cutoutCanvas

Types

type Window

type Window interface {
	// Size returns the minimum size required by the component
	Size() (int, int)
	Add(c core.Component)
	Remove(c core.Component)
	SetSimulation(s bool)
	SetAlignment(j core.Alignment) Window
	Show() error
	OnKeypress(handler func(key *tcell.EventKey) bool)
	Close()
}

func New

func New(opts ...WindowOption) (Window, error)

type WindowOption

type WindowOption func(w Window) error

func WindowOptionSimulation

func WindowOptionSimulation() WindowOption

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳