Documentation
¶
Index ¶
Constants ¶
View Source
const ( ACTION_PLAY = iota ACTION_PAUSE = iota ACTION_PLAYPAUSE = iota ACTION_NEXT = iota ACTION_PREVIOUS = iota ACTION_QUIT = iota )
Player actions that can be performed from the GUI
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GUI ¶
type GUI struct {
// contains filtered or unexported fields
}
func NewGUI ¶
Constructs and initializes a new GUI instance Args:
buttonKeyMap: a mapping between button key values and GUI actions
func (*GUI) RegisterActionHandler ¶
func (this *GUI) RegisterActionHandler(action_type Action, handler ActionHandler)
Registers an action handler to be executed when a specific action is fired
func (*GUI) UpdateCurrentSong ¶
func (this *GUI) UpdateCurrentSong(current_song *mpdinfo.CurrentSong)
Updates the GUI with the currently-playing song information
func (*GUI) UpdateCurrentStatus ¶
Updates the GUI with the current MPD status
Click to show internal directories.
Click to hide internal directories.