menu

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2026 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Title = `` /* 594-byte string literal not displayed */

	BtnResume = "Resume Game"
	BtnReset  = "Reset Game"
	BtnNew    = "New Game"
	BtnLoad   = "Load Pattern"
	BtnQuit   = "Quit"
)

Variables

View Source
var ErrLineBreak = errors.New("line breaks are not allowed")

Functions

This section is empty.

Types

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

func NewMenu

func NewMenu(conf *config.Config, conway *conway.Conway) *Menu
func (m *Menu) Init() tea.Cmd
func (m *Menu) LoadPattern() tea.Cmd
func (m *Menu) SetDark(dark bool)
func (m *Menu) Update(msg tea.Msg) (tea.Model, tea.Cmd)
func (m *Menu) View() tea.View

Jump to

Keyboard shortcuts

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