Documentation ¶
Index ¶
- Constants
- type ISpeaker
- type ScreenPanel
- func (sp *ScreenPanel) Draw(position time.Duration, length time.Duration, volume float64, speed float64)
- func (sp *ScreenPanel) Finalize()
- func (sp *ScreenPanel) Handle(event tcell.Event) (changed bool, action int)
- func (sp *ScreenPanel) Initialize() error
- func (sp *ScreenPanel) PollScreenEvent() tcell.Event
- func (sp *ScreenPanel) Quit() bool
- func (sp *ScreenPanel) SetMessage(message string)
- func (sp *ScreenPanel) Update(song provider.Song, index int, total int)
Constants ¶
View Source
const ( HandleActionQUIT = iota HandleActionPREVIOUS HandleActionNEXT HandleActionNOP HandleActionPauseResume HandleActionBackward HandleActionForward HandleActionSlowdown HandleActionSpeedup HandleActionIncreaseVolume HandleActionDecreaseVolume HandleActionRepeat HandleActionShuffle HandleActionDownload HandleActionOriginM3U HandleActionFinalM3U )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ISpeaker ¶
type ISpeaker interface { Initialize() Finalize() IsPaused() bool Play() PrePlay(int, int) Shutdown() PauseResume() Backward() Forward() IncreaseVolume() DecreaseVolume() Slowdown() Speedup() Status() (time.Duration, time.Duration, float64, float64) IsNil() bool UpdateURI(string, chan struct{}) UpdateStream(int, interface{}, chan struct{}) }
func NewSpeaker ¶
func NewSpeaker() ISpeaker
type ScreenPanel ¶
type ScreenPanel struct {
// contains filtered or unexported fields
}
func NewScreenPanel ¶
func NewScreenPanel() *ScreenPanel
func (*ScreenPanel) Finalize ¶
func (sp *ScreenPanel) Finalize()
func (*ScreenPanel) Handle ¶
func (sp *ScreenPanel) Handle(event tcell.Event) (changed bool, action int)
func (*ScreenPanel) Initialize ¶
func (sp *ScreenPanel) Initialize() error
func (*ScreenPanel) PollScreenEvent ¶
func (sp *ScreenPanel) PollScreenEvent() tcell.Event
func (*ScreenPanel) Quit ¶
func (sp *ScreenPanel) Quit() bool
func (*ScreenPanel) SetMessage ¶
func (sp *ScreenPanel) SetMessage(message string)
Click to show internal directories.
Click to hide internal directories.