mirror of
https://github.com/lc-soft/LCUI.git
synced 2026-12-01 16:56:34 +01:00
* add yutil * add yutil to util.h * remove util file that same as yutil's * replace the old header file like '#include <LCUI/util/*>' with yutil's head file * Replace the old UTIL module associated data structures and function call code * change timer * Replace the old UTIL module associated data structures and function call code * fix * fix compilation problems(RGB to YUTIL_TEST_RGB) * turn some useless changes back to origin * change YUTIL_TEST_RGB back to RGB and add lcui-util/xmake.lua include * update github action * update github action * update github action * change new yutil func name * update xmake and change way to include yutil * update include to <yutil.h> * update list_for_each to for(list_each()) * fix * add graph.h to test_* * add #include <LCUI/graph.h> * update yutil * change timer func name and update submodule * update submodules * test strncpy * turn useless code back origin * fix lose RGB issue * fix yutil charset * update yutil * update yutil * add yutil_test instead of lcui-util test * change timer func name style Co-authored-by: 李梓豪 <yidianyiko@foxmail.com>
25 lines
452 B
C
25 lines
452 B
C
#include <LCUI_Build.h>
|
|
#include <LCUI/LCUI.h>
|
|
#include <LCUI/draw/border.h>
|
|
#include <LCUI/gui/widget.h>
|
|
#include <LCUI/gui/builder.h>
|
|
#include <LCUI/graph.h>
|
|
#include <LCUI/image.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();
|
|
}
|