mirror of
https://github.com/lc-soft/LCUI.git
synced 2026-11-30 16:48:21 +01:00
22 lines
347 B
C
22 lines
347 B
C
#include <LCUI.h>
|
|
#include <pandagl.h>
|
|
#include <ui_xml.h>
|
|
#include <platform/main.h>
|
|
|
|
int main(void)
|
|
{
|
|
int ret = 0;
|
|
ui_widget_t *root, *box;
|
|
|
|
lcui_init();
|
|
box = ui_load_xml_file("test_border.xml");
|
|
if (!box) {
|
|
lcui_destroy();
|
|
return ret;
|
|
}
|
|
root = ui_root();
|
|
ui_widget_append(root, box);
|
|
ui_widget_unwrap(box);
|
|
return lcui_main();
|
|
}
|