Documentation ¶
Index ¶
- Constants
- func Contains(arr []string, input string) bool
- func Control(songList []Track, pathPrefix int)
- func DrawRectangle(gtx *layout.Context, w, h int, color color.RGBA, borderRadius [4]float32, ...)
- func HexARGB(s string) (c color.RGBA)
- type GoJoy
- type Layouts
- type MenuBar
- type Playlist
- type ScrollBarBody
- type ScrollerGauge
- type ScrollerGaugeButton
- type Sound
- type Track
Constants ¶
View Source
const ( Stopped playerState = iota Playing Paused )
Variables ¶
This section is empty.
Functions ¶
func DrawRectangle ¶
Types ¶
type GoJoy ¶
type GoJoy struct { Window *app.Window Context *layout.Context Theme *gelook.DuoUItheme Menu *MenuBar Layouts *Layouts Playlist *Playlist Playing *Track OnSelect selectCallback OnPause pauseCallback OnSeek seekCallback OnVolume volumeCallback Sound *Sound // contains filtered or unexported fields }
func (*GoJoy) LoadPlaylist ¶
func (*GoJoy) MenuBarLayout ¶
type MenuBar ¶
type MenuBar struct { PlayPause *gel.Button Stop *gel.Button Forward *gel.Button Backward *gel.Button Next *gel.Button Back *gel.Button Quit *gel.Button }
MenuBar is the component that define the menu bar.
type ScrollBarBody ¶
type ScrollerGauge ¶
type ScrollerGauge struct { Label string Value int Control func(i int) ColorBg string BorderRadius [4]float32 OperateValue interface{} // contains filtered or unexported fields }
func (*ScrollerGauge) Layout ¶
func (s *ScrollerGauge) Layout(gtx *layout.Context)
type ScrollerGaugeButton ¶
type ScrollerGaugeButton struct { Height float32 // contains filtered or unexported fields }
func (*ScrollerGaugeButton) ScrollerGaugeButton ¶
func (s *ScrollerGaugeButton) ScrollerGaugeButton() *gelook.IconButton
Click to show internal directories.
Click to hide internal directories.