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