Documentation ¶
Overview ¶
Package bar contains the control bar.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Container ¶
type Container struct { gtk.Grid ParentController NowPlaying *NowPlaying Controls *controls.Container Volume *Volume }
func NewContainer ¶
func NewContainer(parent ParentController) *Container
func (*Container) SetVisualize ¶
func (c *Container) SetVisualize(vis VisualizerStatus)
SetVisualize sets the visualizer status.
type NowPlaying ¶
type NowPlaying struct { gtk.Button Container *gtk.Box Title *gtk.Label SubReveal *gtk.Revealer Subtitle *gtk.Label }
func NewNowPlaying ¶
func NewNowPlaying(parent ParentController) *NowPlaying
func (*NowPlaying) SetTrack ¶
func (np *NowPlaying) SetTrack(track *state.Track)
func (*NowPlaying) StopPlaying ¶
func (np *NowPlaying) StopPlaying()
type ParentController ¶
type ParentController interface { controls.ParentController ScrollToPlaying() SetVolume(perc float64) SetMute(muted bool) }
type VisualizerStatus ¶
type VisualizerStatus int8
const ( VisualizerDisabled VisualizerStatus = iota - 1 VisualizerOnlyPlaying VisualizerAlwaysOn VisualizerMuted )
func (VisualizerStatus) IsPaused ¶
func (vs VisualizerStatus) IsPaused(paused bool) bool
func (VisualizerStatus) String ¶
func (vs VisualizerStatus) String() string
type Volume ¶
type Volume struct { gtk.Box VisIcon *gtk.Image Visualize *gtk.Button Icon *gtk.Image Mute *gtk.ToggleButton Slider *gtk.Scale // contains filtered or unexported fields }
func NewVolume ¶
func NewVolume(parent VolumeController) *Volume
func (*Volume) VisualizerStatus ¶
func (v *Volume) VisualizerStatus() VisualizerStatus
VisualizerStatus returns the internal visualizer status.
type VolumeController ¶
type VolumeController interface { ParentController SetVisualize(visualize VisualizerStatus) }
Click to show internal directories.
Click to hide internal directories.