ui

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BoxButton

type BoxButton struct {
	*tview.Box
	// contains filtered or unexported fields
}

func (*BoxButton) Blur

func (b *BoxButton) Blur()

func (*BoxButton) Draw

func (b *BoxButton) Draw(screen tcell.Screen)

func (*BoxButton) Focus

func (b *BoxButton) Focus(delegate func(tview.Primitive))

func (*BoxButton) GetWidth

func (b *BoxButton) GetWidth() int

func (*BoxButton) HasFocus

func (b *BoxButton) HasFocus() bool

func (*BoxButton) InputHandler

func (b *BoxButton) InputHandler() func(*tcell.EventKey, func(tview.Primitive))

InputHandler returns the handler for input events (e.g., simulating button clicks).

func (*BoxButton) NewBoxButton

func (bb *BoxButton) NewBoxButton(label string) *BoxButton

func (*BoxButton) SetSelectedFunc

func (b *BoxButton) SetSelectedFunc(handler func()) *BoxButton

type Theme

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

func Dark

func Dark() Theme

type UI

type UI struct {
	App          *tview.Application
	Flex         *tview.Flex
	Connections  *tview.List
	Destinations *tview.List
	Messages     *tview.List
	Content      *tview.TextView
	Logs         *tview.TextView
	Send         *BoxButton
	Close        *BoxButton
	// contains filtered or unexported fields
}

UI implement terminal user interface features.

func NewUI

func NewUI(controller *asb.Controller) *UI

func (*UI) LoadData

func (ui *UI) LoadData()

func (*UI) Start

func (ui *UI) Start() error

Jump to

Keyboard shortcuts

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