application/main.c

branch
newapi
changeset 416
89ad8467c39f
parent 414
ef60d527c066
child 417
f0fee61a70be
equal deleted inserted replaced
415:e35cdf33998c 416:89ad8467c39f
552 } 552 }
553 553
554 int main(int argc, char** argv) { 554 int main(int argc, char** argv) {
555 ui_init("app1", argc, argv); 555 ui_init("app1", argc, argv);
556 ui_onstartup(application_startup, NULL); 556 ui_onstartup(application_startup, NULL);
557
558 // menu
559 ui_menu("File") {
560 ui_menuitem(.label = "Test");
561 }
562
557 ui_main(); 563 ui_main();
558 return (EXIT_SUCCESS); 564 return (EXIT_SUCCESS);
559 } 565 }
560 566
561 #endif 567 #endif

mercurial