Files
LCUI/tests/test_border.c
Liu 7056c12105 feat: lib/platform -> lib/ptk
BREAKING CHANGE: lib/platform -> lib/ptk, and the naming style of
libplatform has changed to have a `ptk_` prefix.
2024-09-19 00:09:01 +08:00

33 lines
625 B
C

/*
* tests/test_border.c
*
* Copyright (c) 2023, Liu Chao <i@lc-soft.io> All rights reserved.
*
* SPDX-License-Identifier: MIT
*
* This file is part of LCUI, distributed under the MIT License found in the
* LICENSE.TXT file in the root directory of this source tree.
*/
#include <LCUI.h>
#include <pandagl.h>
#include <ui_xml.h>
#include <ptk/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();
}