Documentation ¶
Index ¶
- Variables
- func Button(win *pixelgl.Window, location pixel.Rect, label string) bool
- func Finish(win *pixelgl.Window)
- func Label(win *pixelgl.Window, location pixel.Rect, value string, color color.Color)
- func LoadPicture(path string) (pixel.Picture, error)
- func Menu(win *pixelgl.Window, location pixel.Rect, items []string) int
- func Prepare()
- type FlexMapper
- type Scene
- type UiState
Constants ¶
This section is empty.
Variables ¶
View Source
var TextAtlas *text.Atlas
Functions ¶
Types ¶
type FlexMapper ¶
A function that returns bounding rectangle for i-th element of flexbox (starting from 0)
func FlexColumns ¶
func FlexColumns(parentBounds pixel.Rect, width, height, spacing float64, n int) FlexMapper
Rectangles inside parent stacked horizontally, with given size and spacing, n of them
Click to show internal directories.
Click to hide internal directories.