versions.json is now the single source of truth; scripts/sync-versions.mjs keeps xmake descriptors, tracked version headers and package.json in sync. Sub-library versions are aligned with the published 1.0.0 packages. C11 is set at the project level, and _GNU_SOURCE is defined on POSIX so strict C11 still exposes clock_gettime, strdup and recursive pthread mutexes.
Keep the sub-library archives separate by default so add_deps() can export each library's own links for tests and development builds. The merge-archive option restores the self-contained lcui library for release/Debian builds, and CI enables it only after tests pass. yutil-tests also needs C11 for its u8 string literals.
- move the worker queue into src/lcui_worker.c
- expose only lcui_worker_* from <LCUI/worker.h>
- reuse the global async queue in anchor
- fix double unlock, active-state race and cancel target
- add worker integration tests
- move router-link and router-view into src/widgets
- add <LCUI/widgets/router.h> and aggregate it in widgets.h
- remove the libui-router target and package
- move cursor.c and ui_cursor.h into libui-server
- remove the libui-cursor target and package
- drop the unused ui.h and yutil dependencies
- declare libcss explicitly for ui-server
- Add examples/doc-viewer, an LCUI-based documentation viewer with an
MDX compiler pipeline that converts source MDX files into C/TSX
page components rendered by lcui build.
- Add zh-CN and en documentation for 5 widgets (anchor, button,
scrollarea, text, text-input), each with C/TSX/XML example variants
and widget-fields data.
- Add handbook and overview documentation.
Co-authored-by: Liu <lc-soft@live.cn>
Create lib/ui-router/ as a thin UI binding layer between libui and librouter, exposing the router-link and router-view widgets under <ui_router/...>.
* Move src/widgets/router_{link,view}.c and the matching public headers into lib/ui-router/src and lib/ui-router/include.
* Drop include/LCUI/widgets/router_{link,view}.h and the corresponding entries in include/LCUI/widgets.h; src/lcui_widgets.c now pulls registrations from <ui_router.h>.
* Wire libui-router into the root xmake.lua add_includedirs and lcui add_deps chain; libui-router depends on yutil + libui + librouter only.
* tests/integration/test_router.c stays at the integration layer (router widgets exercise text inheritance and other libui internals); only its #include set is updated to use <ui_router.h>.
* Bump CHANGELOG and add bilingual lib/ui-router/README.
Restructure the test infrastructure with these changes:
* Extend libctest with ctest_suite_t, ctest_parse_args, ctest_run_suites and CTEST_MAIN macro to standardize test entry points; support --grep / --grep= / --list / --interactive flags; add ctest-tests for self-tests.
* Regroup tests by lib boundary: sink unit tests into lib/<name>/tests/ with <lib>_<topic> entry function names, move fixtures into lib/<name>/tests/fixtures/, rename top-level tests/cases/ to tests/integration/ for cross-lib integration tests.
* Add tests/scenes/ for reusable widget tree builders shared by integration cases and visual preview binaries; add tests/previews/ with 4 diagnostic binaries (flex_layout, block_layout, widget_opacity, scrollbar).
* Rewrite all describe/equal description strings using 'should ...' style or noun topic names; drop redundant lcui_quit/lcui_main calls from integration cases.
* Integrate xmake test via add_tests(\default\) and a shared tests.runnable rule defined in the root xmake.lua; the rule wraps the test binary with drmemory (Windows) or valgrind (Linux) when option memcheck=y.
* Drop the lcui-tests aggregation: lcui-tests now contains only integration cases and scenes, not the union of lib tests. Use xmake test to run everything across libs.
* Fix .clang-format: InsertNewlineAtEndOfFile -> InsertNewlineAtEOF (correct key for clang-format 16+).
* Update AGENTS.md with the new test layout, naming rules, description style and run commands.
* Update CI to use xmake test and xmake f --memcheck=y instead of per-lib runs.
* refactor: redesign PandaGL library
* refactor: update rect and canvas API
* refactor(pandagl): renames the line drawing function
* refactor(pandagl): replace pd_painter_t with pd_context_t
* fixup! refactor: update rect and canvas API
* test(pandagl): add tests
* fixup! refactor: update rect and canvas API
* fixup! refactor: update rect and canvas API
* fixup! refactor: update rect and canvas API
* fixup! refactor: update rect and canvas API
feat: redesign the ui library
fixup! feat: redesign the app library
feat: add the ui-server library
fixup! feat: redesign the ui library
fixup! feat: redesign the app library
fixup! feat: redesign the ui library
fixup! feat: redesign the app library
fixup! feat: redesign the app library
feat(ui): add mutation observer
fixup! feat: add the ui-server library
fixup! feat(ui): add mutation observer
feat: migrate to new app and ui libraries
refactor: rename LCUI_Build.h and remove some macros related to malloc
build: copy lib/yutil/include/yutil/*.h into the include/LCUI/util
refactor: lib/app -> lib/platform
refactor: clear compilation errors in Linux
fix: conditional jump depends on uninitialised value
fix(platform): incorrect Linux app driver
feat(platform): add --use-linux-input-event option
fix(platform): correct app driver and data types
fix: test_settings failed
fix: test errors and memcheck errors
fix: undefined reference to 'WinMain'
fix(platform): the error message is not formatted correctly
fix(platform): the mouse position in the mouse event is incorrect
fix(platform): incorrect window size
fix(util): undefined reference to 'logger_log'
refactor: remove the dependency of fontlibrary.h on graph.h
fix: freetype.dll not found
fix(ui): the wheel event was not dispatched correctly
fix(ui-server): the window in the minmaxinfo event is not required
fix: the widget is not connected to the window
fix(ui): mutation observer connection node incorrect
refactor(css): update LCUI_StyleListNode structure
refactor(ui): LCUI_WSTATE_* -> UI_WIDGET_STATE_*
fix: the root widget must have a fixed size for the layout to be correct
fix(ui): root widget did not trigger the ready event
fix(ui): mutation observer not working
fix(ui-server): widget mutation handler is not working
fix: the UI is not redrawn when resizing the window
fix(platform): APP_EVENT_QUIT not working
fix(platform): Incorrect peekmessage usage
test: use the event functions provided by the libui
docs: add README.md for some libraries
feat(ui): add ui logger
fix(ui-server): `wnd_mutation` is uninitialized
fix(platform): fb app engine not work
build: fix xmake file matching warning
test: update scroll bar test code
build: use system libxml2
build: delete unneeded openMP rules
refactor(platform): remove tick thread
refactor(ui): clear compilation warnings
fix: memory leak bug
test: fix compilation errors
build: add "headers" target
refactor: LCUI_USER -> APP_EVENT_USER
fix: ui image event was not processed
refactor: delete steptimer.h
test: update requires
fix(platform): incorrect window size
refactor: simplify window creation in ui display mode switching
fix(platform): window position not updated
feat(ui-server): set the initial position of the window to center
feat(platform): add APP_EVENT_VISIBILITY_CHANGE
fix(ui-server): the window content is not completely drawn
fix(platform): windows cannot be maximized and minimized
refactor(ui): change image loader API to public
fix: the window size is incorrect in fullscreen mode
refactor(ui): move some types into ui.h
* 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>