debian/andlabs/grid.go

26 lines
440 B
Go
Raw Normal View History

2024-01-01 16:11:54 -06:00
package main
import (
"go.wit.com/dev/andlabs/ui"
_ "go.wit.com/dev/andlabs/ui/winmanifest"
2024-01-01 16:11:54 -06:00
)
// Grid numbering by (X,Y)
// -----------------------------
// -- (1,1) -- (2,1) -- (3,1) --
// -- (1,2) -- (2,1) -- (3,1) --
// -----------------------------
func (p *node) newGrid(n *node) {
var newt *guiWidget
newt = new(guiWidget)
c := ui.NewGrid()
newt.uiGrid = c
newt.uiControl = c
c.SetPadded(true)
2024-01-01 16:11:54 -06:00
n.tk = newt
p.place(n)
}