Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
PlayImg, _ = gfx.NewImage("images/play.png")
PauseImg, _ = gfx.NewImage("images/pause.png")
StopImg, _ = gfx.NewImage("images/stop.png")
ForwardImg, _ = gfx.NewImage("images/forward.png")
RewindImg, _ = gfx.NewImage("images/rewind.png")
NextImg, _ = gfx.NewImage("images/next.png")
BackImg, _ = gfx.NewImage("images/back.png")
Black = gfx.NewColor(0, 0, 0, 255)
Clear = gfx.NewColor(0, 0, 0, 0)
)
Functions ¶
This section is empty.
Types ¶
type Button ¶
type Button struct {
// contains filtered or unexported fields
}
Button is a clickable rectangle
func NewButton ¶
func NewButton(x, y, w, h float32, image *gfx.Image, color *gfx.Color, onClick func(*Button)) *Button
NewButton builds and returns a new button
Click to show internal directories.
Click to hide internal directories.