app

package
v0.0.0-...-165de30 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2024 License: GPL-3.0 Imports: 50 Imported by: 0

Documentation

Overview

Package app contains HellSpawner's high-level application logic

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App struct {
	*Flags
	// contains filtered or unexported fields
}

App represents an app

func Create

func Create() (*App, error)

Create creates new app instance

func (*App) CloseAllOpenWindows

func (a *App) CloseAllOpenWindows()

CloseAllOpenWindows closes all opened windows

func (*App) Quit

func (a *App) Quit()

Quit quits the app

func (*App) RestoreAppState

func (a *App) RestoreAppState(appState state.AppState)

RestoreAppState restores an app state

func (*App) Run

func (a *App) Run() (err error)

Run runs an app instance

func (*App) Save

func (a *App) Save()

Save saves app state

func (*App) State

func (a *App) State() state.AppState

State creates a new app state

type Flags

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

Flags specifies app flags

Directories

Path Synopsis
Package assets contains project assets embeds
Package assets contains project assets embeds
Package config provides the Hellspawner application config file implementation.
Package config provides the Hellspawner application config file implementation.
Package state contains structs that describe the state of the application.
Package state contains structs that describe the state of the application.

Jump to

Keyboard shortcuts

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