-
Notifications
You must be signed in to change notification settings - Fork 0
/
gui-test.edn
29 lines (29 loc) · 2.89 KB
/
gui-test.edn
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
{:window [["main-window" {:x 50 :y 50 :width 800 :height 650 :title "Main Window" :resizable? true :on-close #window exit}]
["sub-window" {:x 700 :y 300 :width 900 :height 500 :title "Sub Window" :on-close #window hide :resizable? true}]]
:strigui.label/Label [["welcome" "Welcome to Strigui
and other stuff ..." {:x 190 :y 80 :z 20
:color {:text (java.awt.Color. 47 120 118)}
:font-size 20 :font-style [:italic]
:can-move? true :group "bla"
:window "main-window"}]]
:strigui.button/Button [["click" "Click me" {:x 550 :y 200 :z 3
:highlight [:alpha] :can-tab? true :group "bla" :window "main-window"}]]
:strigui.list/List [["test-list" [{:value "First Item"} {:value "Second Item"} {:value "Third Item"}
{:value "4"} {:value "5"} {:value "6"} {:value "7"} {:value "8"} {:value "9"}] {:x 550 :y 300 :width 150
:height 200 :highlight [:alpha] :window "main-window"}]
["test-table" [{:value [1 "One"]} {:value [2 "Two"]} {:value [3 "Three"]}
{:value [4 "Four"]} {:value [5 "Five"]} {:value [6 "Six"]}
{:value [7 "Seven"]} {:value [8 "Eight"]} {:value [9 "Nine"]}
{:value [10 "Ten"]} {:value [11 "Eleven"]} {:value [12 "Twelve"]}
{:value [13 "Thirteen"]} {:value [14 "Fourteen"]} {:value [15 "Fifteen"]}
{:value [17 "Seventeen"]} {:value [18 "Eighteen"]} {:value [19 "Nineteen"]}
{:value [20 "Twenty"]} {:value [21 "Twentyone"]} {:value [22 "Twentytwo"]}
{:value [23 "Twentythree"]} {:value [24 "Twentyfour"]} {:value [25 "Twentyfive"]}]
{:x 50 :y 50 :width 800 :height 400 :highlight [:alpha]
:highlight-alpha-opacity 10 :window "sub-window"
:header [{:value "Number" :action :sort} {:value "Name" :action :sort} {:value "Select All" :action :select-all}]}]]
:strigui.input/Input [["input" "abc" {:x 100 :y 150 :z 3 :width 420
:highlight [:alpha] :selected? false :can-tab? true
:can-resize? true :can-move? true :group ["inputs" "bla"] :window "main-window"}]
["input1" "" {:x 100 :y 200 :z -1
:highlight [:alpha] :width 420 :height 300 :can-tab? true :can-multiline? true :group "inputs" :password? false :window "main-window"}]]}