forked from mbk-lab/rui_orig
2
0
Fork 0
rui/demo/splitViewDemo.go

27 lines
743 B
Go
Raw Normal View History

2021-09-09 12:08:31 +03:00
package main
/*
import (
"github.com/anoshenko/rui"
)
const splitViewDemoText = `
SplitView {
width = 100%, height = 100%, orientation = vertical, anchor = bottom, padding = 2px,
view1 = GridLayout { width = 100%, height = 75%, content = ["View 1"], cell-vertical-align = center, cell-horizontal-align = center,
border = _{ width = 1px, style = solid, color = #FF000000 }, radius = 8px,},
view2 = GridLayout { width = 100%, height = 25%, content = ["View 2"], cell-align = center,
border = _{ width = 1px, style = solid, color = #FF000000 }, radius = 8px,},
}
`
func createSplitViewDemo(session rui.Session) rui.View {
view := rui.CreateViewFromText(session, splitViewDemoText)
if view == nil {
return nil
}
return view
}
*/