summaryrefslogtreecommitdiff
path: root/grid.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-01-11 19:32:40 -0600
committerJeff Carr <[email protected]>2024-01-11 19:32:40 -0600
commited951e0234d428298bd6b76b07e371ce2ab3cb60 (patch)
tree200c77deef52245e59dc96f591e16843a8125927 /grid.go
parent5f6afb8cf8293f819711ccdf791296edfd7ce7d6 (diff)
var value anyv0.12.2
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'grid.go')
-rw-r--r--grid.go10
1 files changed, 10 insertions, 0 deletions
diff --git a/grid.go b/grid.go
index e1eb7ac..d48edcd 100644
--- a/grid.go
+++ b/grid.go
@@ -23,6 +23,16 @@ import (
// -- (1,3) -- -- (3,3) --
// -----------------------------
+type Grid struct {
+ Width int
+ Height int
+}
+
+type GridOffset struct {
+ X int
+ Y int
+}
+
func (n *Node) NewGrid(name string, w int, h int) *Node {
newNode := n.newNode(name, widget.Grid)