Files
LCUI/tests/previews/xmake.lua
T
Liu 708611a727 feat(ui-server): sync system cursor with hovered widget style
Expose ui_get_mouseover() and, at the end of ui_server_update(), resolve
the first non-auto cursor up the hover ancestor chain (emulating CSS
inheritance), then apply it to the owning window. Runs after style
recomputation so :hover and dynamic changes take effect in the same
frame; resets to auto when the hovered widget is destroyed.
2026-10-17 21:16:47 +08:00

31 lines
869 B
Lua

local previews = {
"flex_layout",
"block_layout",
"widget_opacity",
"scrollbar",
"cursor"
}
for _, topic in ipairs(previews) do
target("preview-" .. topic:gsub("_", "-"))
set_default(false)
set_kind("binary")
set_group("previews")
set_rundir("../fixtures")
add_includedirs("../helpers")
add_files("preview_" .. topic .. ".c",
"../scenes/" .. topic .. "_scene.c")
add_deps("lcui")
end
target("preview-flex-layout-percentage-wrap")
set_default(false)
set_kind("binary")
set_group("previews")
set_rundir("../fixtures")
add_includedirs("../helpers")
add_defines("LCUI_FLEX_LAYOUT_PERCENTAGE_WRAP_PREVIEW")
add_files("preview_flex_layout_percentage_wrap.c",
"../integration/test_flex_layout_percentage_wrap.c")
add_deps("lcui")