Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BookList ¶
func NewBookList ¶
func (*BookList) ScrollMiddle ¶
func (l *BookList) ScrollMiddle()
func (*BookList) ToggleHighlight ¶
func (l *BookList) ToggleHighlight()
type BookTable ¶
func NewBookTable ¶
type BookTree ¶
func NewBookTree ¶
type Highlightable ¶
type Highlightable interface {
ToggleHighlight()
}
type MainScreen ¶
type MainScreen struct { ui.Grid BookList *BookList PageIndicator *PageIndicator StatusBar *StatusBar UpdateList chan *BookList UpdatePage chan int SelectedRow chan int UpdateDown chan float64 DownloadedFile chan *os.File }
func NewMainScreen ¶
func NewMainScreen(sb *StatusBar, bl *BookList, pi *PageIndicator, tw, th int) *MainScreen
func (*MainScreen) Resize ¶
func (ms *MainScreen) Resize(tw, th int)
func (*MainScreen) Update ¶
func (ms *MainScreen) Update()
type PageIndicator ¶
func NewPageIndicator ¶
func NewPageIndicator(max int) *PageIndicator
func (*PageIndicator) FocusEnd ¶
func (pi *PageIndicator) FocusEnd()
func (*PageIndicator) FocusMiddle ¶
func (pi *PageIndicator) FocusMiddle()
func (*PageIndicator) FocusStart ¶
func (pi *PageIndicator) FocusStart()
func (*PageIndicator) ToggleHighlight ¶
func (pi *PageIndicator) ToggleHighlight()
type StatusBar ¶
func NewStatusBar ¶
func NewStatusBar() *StatusBar
func (*StatusBar) OnDownload ¶
func (*StatusBar) OnFinished ¶
func (*StatusBar) OnProgress ¶
Click to show internal directories.
Click to hide internal directories.