forked from mbk-lab/rui_orig
27 lines
743 B
Go
27 lines
743 B
Go
|
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
|
||
|
}
|
||
|
*/
|