mirror of
https://github.com/lc-soft/LCUI.git
synced 2026-12-01 16:56:34 +01:00
23 lines
396 B
C
23 lines
396 B
C
#include <LCUI_Build.h>
|
|
#include <LCUI/LCUI.h>
|
|
#include <LCUI/gui/widget.h>
|
|
#include <LCUI/gui/builder.h>
|
|
#include "test.h"
|
|
|
|
int main(void)
|
|
{
|
|
int ret = 0;
|
|
LCUI_Widget root, box;
|
|
|
|
LCUI_Init();
|
|
box = LCUIBuilder_LoadFile("test_box_shadow.xml");
|
|
if (!box) {
|
|
LCUI_Destroy();
|
|
return ret;
|
|
}
|
|
root = LCUIWidget_GetRoot();
|
|
Widget_Append(root, box);
|
|
Widget_Unwrap(box);
|
|
return LCUI_Main();
|
|
}
|