nothing

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2025 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {

	// StateFunc accepts current state and returns new one.
	StateFunc func(state State) State
}

Config configures Nothing.

type Nothing

type Nothing[S any, R scene.Region] interface {
	scene.Element[S, R]
}

Nothing placed on screen of type S inside region of type R.

func New

func New[S any, R scene.Region](region R, config Config) Nothing[S, R]

New initializes and returns new Nothing.

type State

type State struct {

	// IsInactive specifies whether element is inactive.
	IsInactive bool

	// Outline of element.
	scene.Outline
}

State is changeable state of Nothing.

Jump to

Keyboard shortcuts

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