Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Input ¶
type Input struct {
// contains filtered or unexported fields
}
Input represents an editable rune buffer with a cursor.
func (*Input) Cursor ¶
Cursor returns the current cursor position. Note that the cursor position is not the length of the buffer, and is in the interval [0, len(buffer)].
func (*Input) Delete ¶
func (i *Input) Delete()
Delete deletes a rune at the current cursor if possible, else does nothing.
func (*Input) Feed ¶
Feed is a convenience function that interprets the given key, rune, and modifier mask and calls the appropriate methods, e.g. if key == left arrow then Move(-1) is called.
type MWorker ¶
type MWorker struct { VolumeChange chan VolumeInfo Results chan *PlaybackResult SongQueue chan *Song Progress chan float64 // contains filtered or unexported fields }
func NewMWorker ¶
func NewMWorker() *MWorker
func (*MWorker) VolumeInfo ¶
func (mw *MWorker) VolumeInfo() VolumeInfo
type PlaybackResult ¶
type Queue ¶
type Queue struct { Shuffle bool Repeat bool Songs []*Song // contains filtered or unexported fields }
func (*Queue) SetCurrent ¶
func (*Queue) ToggleRepeat ¶
func (p *Queue) ToggleRepeat()
func (*Queue) ToggleShuffle ¶
func (p *Queue) ToggleShuffle()
type Stream ¶
type Stream struct {
// contains filtered or unexported fields
}
func (*Stream) SetVolume ¶
func (s *Stream) SetVolume(v VolumeInfo)
type Viewbox ¶
type Viewbox struct {
// contains filtered or unexported fields
}
Viewbox represents the bounds [a,b) for a scrollable list with height h and maximum index m. It can be used to find the bounds for a scrollable list as the user is scrolling through it.
type VolumeInfo ¶
func (VolumeInfo) Silent ¶
func (v VolumeInfo) Silent() bool
func (VolumeInfo) Volume ¶
func (v VolumeInfo) Volume() float64
Source Files ¶
Click to show internal directories.
Click to hide internal directories.