Documentation
¶
Index ¶
- Constants
- func Sanitize(s string) string
- func ShowAboutDialog(parent *gtk.Window, about string) error
- func ShowControlsDialog(window gtk.IWindow, controls *Controls, listener ControlsListener) error
- func ShowSettingsDialog(window gtk.IWindow, settings *Settings) (bool, error)
- type ConfigAdapter
- type Controller
- func (ctl *Controller) AboutPress()
- func (ctl *Controller) AudioInputSelect(index int)
- func (ctl *Controller) AudioOutputSelect(index int)
- func (ctl *Controller) BalanceSelect(value float64)
- func (ctl *Controller) ControlsPress()
- func (ctl *Controller) DeviceSelect(index int)
- func (ctl *Controller) EqualizerSelect(name string)
- func (ctl *Controller) FadeEffectsSelect(on bool)
- func (ctl *Controller) FixedVolumeSelect(on bool)
- func (ctl *Controller) GetLoopStatus() mpris.LoopStatus
- func (ctl *Controller) GetMetadata() *mpris.Metadata
- func (ctl *Controller) GetPosition() time.Duration
- func (ctl *Controller) GetShuffle() bool
- func (ctl *Controller) GetVolume() int
- func (ctl *Controller) LoopPress()
- func (ctl *Controller) MutePress()
- func (ctl *Controller) Next()
- func (ctl *Controller) NextPress()
- func (ctl *Controller) Pause()
- func (ctl *Controller) Play()
- func (ctl *Controller) PlayListSelect(index int)
- func (ctl *Controller) PlayPausePress()
- func (ctl *Controller) PlaybackStatus() mpris.PlaybackStatus
- func (ctl *Controller) Previous()
- func (ctl *Controller) PreviousPress()
- func (ctl *Controller) RefreshPress()
- func (ctl *Controller) Seek(offset time.Duration)
- func (ctl *Controller) SeekSelect(position float64)
- func (ctl *Controller) SetLoopStatus(status mpris.LoopStatus)
- func (ctl *Controller) SetPosition(position time.Duration)
- func (ctl *Controller) SetShuffle(shuffle bool)
- func (ctl *Controller) SetVolume(level int)
- func (ctl *Controller) SettingsPress()
- func (ctl *Controller) ShufflePress()
- func (ctl *Controller) TrackSelect(index int)
- func (ctl *Controller) VolumeSelect(level int)
- func (ctl *Controller) WindowHidden(flag bool)
- type Controls
- type ControlsListener
- type Device
- type LoopState
- type PixbufRequest
- type PlayerState
- type RunReq
- type ScaleExt
- type Settings
- type View
- func (view *View) AddDevice(name string)
- func (view *View) AddPlayList(name string)
- func (view *View) AddTrack(title string, artist string) error
- func (view *View) ClearDevices()
- func (view *View) ClearEqualizers()
- func (view *View) ClearPlayLists()
- func (view *View) ClearTracks()
- func (view *View) GetWindow() *gtk.Window
- func (view *View) Hide()
- func (view *View) HideOnDelete(enable bool)
- func (view *View) SetAlbumArt(album *gdk.Pixbuf)
- func (view *View) SetDevice(index int)
- func (view *View) SetEqualizerOn(on bool)
- func (view *View) SetEqualizers(names []string, selected string) error
- func (view *View) SetInfo(quality string, rate int, format string, bitrate int)
- func (view *View) SetLoopState(state LoopState)
- func (view *View) SetMute(mute bool)
- func (view *View) SetPlayList(index int)
- func (view *View) SetPlayerState(state PlayerState)
- func (view *View) SetPlaying(title string, artist string, album string)
- func (view *View) SetSeek(used time.Duration, total time.Duration)
- func (view *View) SetShuffle(on bool)
- func (view *View) SetStatus(status string)
- func (view *View) SetTrack(index int)
- func (view *View) SetTrackAlbumArt(index int, album *gdk.Pixbuf) error
- func (view *View) SetVolume(level int)
- func (view *View) ShowStatusIcon(enable bool)
- type ViewListener
Constants ¶
View Source
const ( AlbumImageWidth = 256 AlbumImageHeight = 256 TrackImageWidth = 48 TrackImageHeight = 48 VolumePageLevel = 5 )
Variables ¶
This section is empty.
Functions ¶
func ShowControlsDialog ¶
func ShowControlsDialog(window gtk.IWindow, controls *Controls, listener ControlsListener) error
Types ¶
type ConfigAdapter ¶
type Controller ¶
type Controller struct {
// contains filtered or unexported fields
}
func NewController ¶
func NewController(application *gtk.Application, config ConfigAdapter, version string, build string) (*Controller, error)
func (*Controller) AboutPress ¶
func (ctl *Controller) AboutPress()
func (*Controller) AudioInputSelect ¶
func (ctl *Controller) AudioInputSelect(index int)
func (*Controller) AudioOutputSelect ¶
func (ctl *Controller) AudioOutputSelect(index int)
func (*Controller) BalanceSelect ¶
func (ctl *Controller) BalanceSelect(value float64)
func (*Controller) ControlsPress ¶
func (ctl *Controller) ControlsPress()
func (*Controller) DeviceSelect ¶
func (ctl *Controller) DeviceSelect(index int)
func (*Controller) EqualizerSelect ¶
func (ctl *Controller) EqualizerSelect(name string)
func (*Controller) FadeEffectsSelect ¶
func (ctl *Controller) FadeEffectsSelect(on bool)
func (*Controller) FixedVolumeSelect ¶
func (ctl *Controller) FixedVolumeSelect(on bool)
func (*Controller) GetLoopStatus ¶
func (ctl *Controller) GetLoopStatus() mpris.LoopStatus
func (*Controller) GetMetadata ¶
func (ctl *Controller) GetMetadata() *mpris.Metadata
func (*Controller) GetPosition ¶
func (ctl *Controller) GetPosition() time.Duration
func (*Controller) GetShuffle ¶
func (ctl *Controller) GetShuffle() bool
func (*Controller) GetVolume ¶
func (ctl *Controller) GetVolume() int
func (*Controller) LoopPress ¶
func (ctl *Controller) LoopPress()
func (*Controller) MutePress ¶
func (ctl *Controller) MutePress()
func (*Controller) Next ¶
func (ctl *Controller) Next()
func (*Controller) NextPress ¶
func (ctl *Controller) NextPress()
func (*Controller) Pause ¶
func (ctl *Controller) Pause()
func (*Controller) Play ¶
func (ctl *Controller) Play()
func (*Controller) PlayListSelect ¶
func (ctl *Controller) PlayListSelect(index int)
func (*Controller) PlayPausePress ¶
func (ctl *Controller) PlayPausePress()
func (*Controller) PlaybackStatus ¶
func (ctl *Controller) PlaybackStatus() mpris.PlaybackStatus
func (*Controller) Previous ¶
func (ctl *Controller) Previous()
func (*Controller) PreviousPress ¶
func (ctl *Controller) PreviousPress()
func (*Controller) RefreshPress ¶
func (ctl *Controller) RefreshPress()
func (*Controller) Seek ¶
func (ctl *Controller) Seek(offset time.Duration)
func (*Controller) SeekSelect ¶
func (ctl *Controller) SeekSelect(position float64)
///////////////////////////////////////////////////////////////////////////// ViewListener Interface (called from main thread) /////////////////////////////////////////////////////////////////////////////
func (*Controller) SetLoopStatus ¶
func (ctl *Controller) SetLoopStatus(status mpris.LoopStatus)
func (*Controller) SetPosition ¶
func (ctl *Controller) SetPosition(position time.Duration)
func (*Controller) SetShuffle ¶
func (ctl *Controller) SetShuffle(shuffle bool)
func (*Controller) SetVolume ¶
func (ctl *Controller) SetVolume(level int)
func (*Controller) SettingsPress ¶
func (ctl *Controller) SettingsPress()
func (*Controller) ShufflePress ¶
func (ctl *Controller) ShufflePress()
func (*Controller) TrackSelect ¶
func (ctl *Controller) TrackSelect(index int)
func (*Controller) VolumeSelect ¶
func (ctl *Controller) VolumeSelect(level int)
func (*Controller) WindowHidden ¶
func (ctl *Controller) WindowHidden(flag bool)
type ControlsListener ¶
type PixbufRequest ¶
type PixbufRequest struct {
// contains filtered or unexported fields
}
type ScaleExt ¶
func ScaleExtNew ¶
func ScaleExtNew(orientaion gtk.Orientation, adjustment *gtk.Adjustment) (*ScaleExt, error)
func (*ScaleExt) SetHasOrigin ¶
type View ¶
type View struct {
// contains filtered or unexported fields
}
func NewView ¶
func NewView(application *gtk.Application, listener ViewListener) (*View, error)
func (*View) AddPlayList ¶
func (*View) ClearDevices ¶
func (view *View) ClearDevices()
func (*View) ClearEqualizers ¶
func (view *View) ClearEqualizers()
func (*View) ClearPlayLists ¶
func (view *View) ClearPlayLists()
func (*View) ClearTracks ¶
func (view *View) ClearTracks()
func (*View) HideOnDelete ¶
func (*View) SetAlbumArt ¶
func (*View) SetEqualizerOn ¶
func (*View) SetLoopState ¶
func (*View) SetPlayList ¶
func (*View) SetPlayerState ¶
func (view *View) SetPlayerState(state PlayerState)
func (*View) SetShuffle ¶
func (*View) SetTrackAlbumArt ¶
func (*View) ShowStatusIcon ¶
type ViewListener ¶
type ViewListener interface {
SeekSelect(position float64)
ShufflePress()
PreviousPress()
PlayPausePress()
NextPress()
LoopPress()
VolumeSelect(level int)
PlayListSelect(index int)
TrackSelect(index int)
WindowHidden(flag bool)
MutePress()
SettingsPress()
DeviceSelect(index int)
RefreshPress()
AboutPress()
EqualizerSelect(name string)
ControlsPress()
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.