mirror of
https://github.com/lc-soft/LCUI.git
synced 2026-11-30 16:48:21 +01:00
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.
31 lines
869 B
Lua
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")
|