summaryrefslogtreecommitdiff
path: root/andlabs/grid.go
blob: 256164890b50f6057b53d17ee9c91c5f5d973826 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
package main

import (
	"go.wit.com/dev/andlabs/ui"
	_ "go.wit.com/dev/andlabs/ui/winmanifest"
)

// 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)

	n.tk = newt
	p.place(n)
}