application/main.c

branch
newapi
changeset 267
79dd183dd4cb
parent 266
37d5b49b1c91
child 268
1b321a0c624f
equal deleted inserted replaced
266:37d5b49b1c91 267:79dd183dd4cb
74 74
75 ui_button(obj, .label = "Test Button", .icon = "application-x-generic"); 75 ui_button(obj, .label = "Test Button", .icon = "application-x-generic");
76 ui_togglebutton(obj, .label = "Toggle"); 76 ui_togglebutton(obj, .label = "Toggle");
77 ui_checkbox(obj, .label = "Checkbox"); 77 ui_checkbox(obj, .label = "Checkbox");
78 78
79 ui_grid(obj, .fill = 1, .spacing = 5) { 79 ui_grid(obj, .fill = 1, .columnspacing = 5, .rowspacing = 5, .margin = 5) {
80 ui_button(obj, .label = "cell1", .hexpand = TRUE); 80 ui_button(obj, .label = "cell1", .hexpand = TRUE);
81 ui_button(obj, .label = "cell2"); 81 ui_button(obj, .label = "cell2");
82 ui_newline(obj); 82 ui_newline(obj);
83 ui_button(obj, .label = "cell_colspan2", .colspan = 2); 83 ui_button(obj, .label = "cell_colspan2", .colspan = 2);
84 ui_newline(obj); 84 ui_newline(obj);
90 ui_spinner(obj, .step = 5); 90 ui_spinner(obj, .step = 5);
91 ui_newline(obj); 91 ui_newline(obj);
92 92
93 ui_progressbar(obj, .colspan = 2, .varname = "progress"); 93 ui_progressbar(obj, .colspan = 2, .varname = "progress");
94 ui_set(doc->progress, 0.75); 94 ui_set(doc->progress, 0.75);
95 ui_newline(obj);
96
97 ui_textfield(obj, .value = doc->str1);
95 } 98 }
96 99
97 ui_show(obj); 100 ui_show(obj);
98 } 101 }
99 102

mercurial