tui

package
v2.0.0-...-a2ae2e8 Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2024 License: GPL-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MessageInfo = iota
	MessageOK   = iota
	MessageErr  = iota
)

Variables

This section is empty.

Functions

func RunProgram

func RunProgram()

Types

type EditorModel

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

func (EditorModel) Construct

func (em EditorModel) Construct() EditorModel

func (EditorModel) Init

func (em EditorModel) Init() tea.Cmd

func (EditorModel) Update

func (em EditorModel) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (EditorModel) View

func (em EditorModel) View() string

type ListItem

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

func (ListItem) Description

func (li ListItem) Description() string

func (ListItem) FilterValue

func (li ListItem) FilterValue() string

func (ListItem) Title

func (li ListItem) Title() string

type ListModel

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

func (ListModel) Construct

func (lm ListModel) Construct(nb *enclaveProto.Notebook) ListModel

func (ListModel) Init

func (lm ListModel) Init() tea.Cmd

func (ListModel) Update

func (lm ListModel) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (ListModel) View

func (lm ListModel) View() string

type MainModel

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

func (MainModel) Construct

func (mm MainModel) Construct(subkeys [2]ciphers.Subkey, nb *enclaveProto.Notebook) MainModel

func (MainModel) Init

func (mm MainModel) Init() tea.Cmd

func (MainModel) Update

func (mm MainModel) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (MainModel) View

func (mm MainModel) View() string

type MessageType

type MessageType uint

type MessagesModel

type MessagesModel struct {
	Messages string
	Width    int
	Height   int
}

func (*MessagesModel) ClearMessage

func (mm *MessagesModel) ClearMessage()

func (MessagesModel) Construct

func (mm MessagesModel) Construct() MessagesModel

func (MessagesModel) Init

func (mm MessagesModel) Init() tea.Cmd

func (*MessagesModel) SetMessage

func (mm *MessagesModel) SetMessage(msgType MessageType, message string)

func (MessagesModel) Update

func (mm MessagesModel) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (MessagesModel) View

func (mm MessagesModel) View() string

Jump to

Keyboard shortcuts

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