app

package
v0.0.0-...-3b00f83 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run()

Run main app

Types

type App

type App struct {
	*tview.Application

	Loopfinished chan bool
	// contains filtered or unexported fields
}

* App is entire tui struct including tview flex struct * it consists of each widgets (sidebar, typing, status, config) * - sidebar : it lists color themes * - typing : display words and current carrot interactively * - status : it shows current status such as wpm, time .. * - config : configurate several options such as word count, languages ..

var Core *App

App instance handler

func NewApp

func NewApp() *App

NewApp returns initialized App struct

func (*App) Blur

func (a *App) Blur()

func (*App) Draw

func (a *App) Draw(screen tcell.Screen)

func (*App) Focus

func (a *App) Focus(delegate func(p tview.Primitive))

func (*App) GetRect

func (a *App) GetRect() (int, int, int, int)

func (*App) HasFocus

func (a *App) HasFocus() bool

func (*App) InputHandler

func (a *App) InputHandler() func(event *tcell.EventKey, setFocus func(p tview.Primitive))

func (*App) Reset

func (a *App) Reset(num int)

Reset state

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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