diff options
| author | Pietro Gagliardi <[email protected]> | 2014-03-06 20:30:13 -0500 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2014-03-06 20:30:13 -0500 |
| commit | d6f289bc86814a9a77eba0dd1740d2ee911a59f2 (patch) | |
| tree | ebf121044150fe742a11a998ef2dff2ce4e0caf1 /test/main.go | |
| parent | 4630eaa84b782b7e3f4bb285925e0b59fe451e71 (diff) | |
Split NewStack() into NewHorizontalStack() and NewVerticalStack(). Unexported Orientation and its values accordingly.
Diffstat (limited to 'test/main.go')
| -rw-r--r-- | test/main.go | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/test/main.go b/test/main.go index 11cf19f..af886c6 100644 --- a/test/main.go +++ b/test/main.go @@ -40,23 +40,23 @@ func myMain() { w.Closing = Event() b := NewButton("Click Me") b2 := NewButton("Or Me") - s2 := NewStack(Horizontal, b, b2) + s2 := NewHorizontalStack(b, b2) c := NewCheckbox("Check Me") cb1 := NewEditableCombobox("You can edit me!", "Yes you can!", "Yes you will!") cb2 := NewCombobox("You can't edit me!", "No you can't!", "No you won't!") e := NewLineEdit("Enter text here too") l := NewLabel("This is a label") b3 := NewButton("List Info") - s3 := NewStack(Horizontal, l, b3) + s3 := NewHorizontalStack(l, b3) s3.SetStretchy(0) // s3.SetStretchy(1) pbar := NewProgressBar() prog := 0 incButton := NewButton("Inc") decButton := NewButton("Dec") - sincdec := NewStack(Horizontal, incButton, decButton) + sincdec := NewHorizontalStack(incButton, decButton) password := NewPasswordEdit() - s0 := NewStack(Vertical, s2, c, cb1, cb2, e, s3, pbar, sincdec, Space(), password) + s0 := NewVerticalStack(s2, c, cb1, cb2, e, s3, pbar, sincdec, Space(), password) s0.SetStretchy(8) lb1 := NewListbox(true, "Select One", "Or More", "To Continue") lb2 := NewListbox(false, "Select", "Only", "One", "Please") @@ -69,10 +69,10 @@ func myMain() { i++ } doAdjustments() - s1 := NewStack(Vertical, lb2, lb1) + s1 := NewVerticalStack(lb2, lb1) s1.SetStretchy(0) s1.SetStretchy(1) - s := NewStack(Horizontal, s1, s0) + s := NewHorizontalStack(s1, s0) s.SetStretchy(0) s.SetStretchy(1) err := w.Open(s) |
