ui

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2019 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ArticleList

type ArticleList struct {
	*widgets.List
	// contains filtered or unexported fields
}

func NewArticleList

func NewArticleList(articles []model.Article) *ArticleList

func (*ArticleList) ActiveArticle

func (al *ArticleList) ActiveArticle() model.Article

func (*ArticleList) Refresh

func (al *ArticleList) Refresh()

type CUI

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

func NewCUI

func NewCUI(root model.Root, level NestLevel) *CUI

func (*CUI) Draw

func (c *CUI) Draw()

type NestLevel

type NestLevel int
const (
	DirectoryLevel NestLevel = iota
	SourceLevel
	ArticleLevel
)

type Pane

type Pane struct {
	*widgets.List
	// contains filtered or unexported fields
}

func NewPane

func NewPane(sources []model.Source) *Pane

func (*Pane) ActiveArticleList

func (pane *Pane) ActiveArticleList() *ArticleList

func (*Pane) Refresh

func (pane *Pane) Refresh()

type TUI

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

func NewTUI

func NewTUI(root model.Root) *TUI

func (*TUI) Draw

func (t *TUI) Draw()

type Tab

type Tab struct {
	*widgets.TabPane
	// contains filtered or unexported fields
}

func NewTab

func NewTab(directories []model.Directory) *Tab

func (*Tab) ActivePane

func (tab *Tab) ActivePane() *Pane

func (*Tab) Refresh

func (tab *Tab) Refresh()

Jump to

Keyboard shortcuts

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