ui

package
v0.0.0-...-8679fc6 Latest Latest
Warning

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

Go to latest
Published: May 5, 2018 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ITEM_FOLDER = iota
	ITEM_TUNE
)
View Source
const (
	MODE_BROWSE = iota
	MODE_SEARCH
)

Variables

This section is empty.

Functions

func Run

func Run()

func Setup

func Setup(initialSearch string)

Types

type List

type List struct {
	Items    []ListItem
	PageNum  int
	PagePos  int
	PageSize int
}

func NewList

func NewList(pageSize int) *List

func (*List) CurrentItem

func (l *List) CurrentItem() ListItem

func (*List) CurrentPage

func (l *List) CurrentPage() []ListItem

func (*List) NextPage

func (l *List) NextPage()

func (*List) NextTune

func (l *List) NextTune()

func (*List) PrevPage

func (l *List) PrevPage()

func (*List) PrevTune

func (l *List) PrevTune()

func (*List) RandomTune

func (l *List) RandomTune()

func (*List) TuneAtPos

func (l *List) TuneAtPos(pagePos int) bool

type ListItem

type ListItem struct {
	Type      int
	TuneIndex int
	Name      string
}

Jump to

Keyboard shortcuts

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