docs: clarify tool outputs and example window contexts

This commit is contained in:
2026-11-12 21:18:12 +08:00
parent ffc98fb657
commit c3e7d01c09
4 changed files with 10 additions and 4 deletions
+2 -1
View File
@@ -23,7 +23,8 @@ class WindowBand: RectBlock {
return MeasureResult(constraints.maxWidth, 32)
}
}
// ui.window 返回当前主窗口托管资源;page.open 指定同一资源,后面的 title/resize 为原生命令。
// 此文件顶层在默认主窗口上下文执行,ui.window() 因而取主窗口;事件/渲染回调中则跟随其当前窗口上下文。
// page.open 指定保存的同一资源,后面的 title/resize 为异步原生命令,不等于已改变原生实际尺寸。
window = ui.window()
actions = WindowActions(window)
band = WindowBand(80, 32, 0, "#237A45")