Skip to content

v1.1.0 — Core UI Debug & Automation API

Choose a tag to compare

@ghboke ghboke released this 18 Apr 10:30
· 20 commits to main since this release

BREAKING:DLL 重命名 ui-core.dll → core-ui.dll

为和仓库 slug core-ui / 产品名 Core UI 对齐,DLL 文件名、导入库、CMake
target 同步重命名:

旧 新
ui-core.dll core-ui.dll
libui-core.dll.a / ui-core.lib libcore-ui.dll.a / core-ui.lib
CMake add_library(ui-core ...) add_library(core-ui ...)
Release 目录 ui-core-v1.1.0-win64 core-ui-v1.1.0-win64

不变(ABI 稳定,用户源码无需改动):

  • 头文件 ui_core.h(#include <ui_core.h> 照旧)
  • C API 函数 ui_init / ui_widget_* / UiWidget / UiWindow 等
  • UI_CORE_VERSION_* / UI_API 等宏

升级路径:

  • 用源码 ui_init() 等 API 的用户:重新编译一次即可(或手动把 ui-core.lib
    链接引用改成 core-ui.lib)
  • CMake 用户:target_link_libraries(app PRIVATE ui-core) → core-ui

新增:事件注入 / 自动化 API(60+ 个 ui_debug_*)

  • 鼠标 / 键盘 / 控件高层 / Context Menu(含子菜单 path)/ HWND 通道
  • ui_window_invoke_sync 跨线程 marshal 到 UI 线程
  • demo 内置 Named Pipe 协议(45+ 条命令),scripts/debug-smoke.ps1 60 步回归
  • 完整参考:docs/debug-simulation.md

Widget 增强

  • hitTransparent 属性让事件穿透到下层
  • tooltip="@key" / TitleBar title="@key" 的 i18n 支持

修复

  • ui_widget_find_by_id 对 markup 构建的 widget 返回 UI_INVALID
  • SimKeyDown 漏掉 WndProc 的 Tab / Enter→onClick / 方向键 Slider/Radio 分派
  • Context menu 50ms 前台轮询在自动化脚本下误关菜单

下载

core-ui-v1.1.0-win64.zip — 开箱即用:

  • include/ — ui_core.h, plugin_api.h
  • lib/ — core-ui.dll (4.9 MB), libcore-ui.dll.a (MinGW import lib), libwinpthread-1.dll
  • demo/ — ui-demo.exe + 依赖 + app.ui + 语言包,双击即跑
  • docs/ — 9 个 markdown 文档(含 debug-simulation.md)
  • scripts/debug-smoke.ps1 — 60 步自动化回归示例
  • LICENSE / README.md / CHANGELOG.md / UI_CORE_API.md

SHA256: 79726e00e4954495ff9981f21194fef494a9b72d650d393c0096f50748db0b0f

要求

Windows 10 或更新版本,x86_64。