application/main.c

changeset 525
878df45e6441
parent 522
bb0d05f45046
child 526
f6a6b0b08641
equal deleted inserted replaced
524:ce7a198b54b0 525:878df45e6441
775 775
776 void application_startup(UiEvent *event, void *data) { 776 void application_startup(UiEvent *event, void *data) {
777 UiObject *obj = ui_window("My Window", NULL); 777 UiObject *obj = ui_window("My Window", NULL);
778 ui_grid(obj, .margin = 10, .columnspacing = 10, .rowspacing = 10) { 778 ui_grid(obj, .margin = 10, .columnspacing = 10, .rowspacing = 10) {
779 ui_button(obj, .label = "Button 1"); 779 ui_button(obj, .label = "Button 1");
780 ui_button(obj, .label = "Button 2"); 780 ui_button(obj, .label = "Button 2", .hexpand = TRUE, .hfill = TRUE);
781 ui_button(obj, .label = "Button end");
781 ui_newline(obj); 782 ui_newline(obj);
782 783
783 ui_button(obj, .label = "Button 3", .colspan = 2); 784 ui_button(obj, .label = "Button 3", .vexpand = TRUE, .vfill = TRUE);
785 ui_newline(obj);
786
787 ui_button(obj, .label = "Button Y");
784 } 788 }
785 ui_show(obj); 789 ui_show(obj);
786 } 790 }
787 791
788 int main(int argc, char **argv) { 792 int main(int argc, char **argv) {

mercurial