Start working on splits

This commit is contained in:
Zachary Yedidia
2019-01-04 17:40:56 -05:00
parent d4c410f3dc
commit 541daf212e
9 changed files with 465 additions and 3 deletions

View File

@@ -0,0 +1,16 @@
package views
import (
"fmt"
"testing"
)
func TestHSplit(t *testing.T) {
root := NewRoot(0, 0, 80, 80)
n1 := root.VSplit(true)
root.GetNode(n1).VSplit(true)
root.GetNode(root.id).ResizeSplit(7)
root.Resize(120, 120)
fmt.Println(root.String())
}