ui

package
v0.0.0-...-19ed411 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ColorizeWidget

func ColorizeWidget(widget termui.Drawable, theme string)

ColorizeWidget applies the theme set on the App object to any widget given.

Types

type App

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

App represents the entire UI entity that has both the state and behavior of rendering anything to the screen.

func NewApp

func NewApp(userConfig *domain.UserConfig, boardName string) (*App, error)

NewApp creates a new instance of the App with initial configurations.

func (*App) Quit

func (app *App) Quit()

Quit exits the application gracefully

func (*App) Run

func (app *App) Run()

Run starts the main event loop and rendering

type Component

type Component interface {
	GetAllDrawableWidgets() []termui.Drawable
	Draw()
}

type WidgetsThatCaptureInput

type WidgetsThatCaptureInput int
const (
	None WidgetsThatCaptureInput = iota
	CreateTaskTitle
	CreateTaskDescription
)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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