docs: 逐模块细化中文逻辑注释并覆盖测试与示例
This commit is contained in:
@@ -1,9 +1,12 @@
|
||||
//! 宿主管理控件的共享组件入口。主题、绘制原语和跨帧交互状态分离,用户 Endor 页面不依赖这里的控件树。
|
||||
//!
|
||||
//! Tessera's host management widgets. No Endor AST, VM, UiNode or ui_bridge dependency.
|
||||
//! Shares only low-level drawing, font shaping and geometry with guest content.
|
||||
//! 此模块不依赖 Endor AST、VM、UiNode 或 ui_bridge;只复用底层绘图、字体塑形和几何。
|
||||
// 跨帧保存 hover/press/focus,管理命中目标、键盘导航与控件视觉状态。
|
||||
mod interaction;
|
||||
// 提供管理界面统一的颜色、尺寸和排版常量,避免各工具各自定义主题。
|
||||
pub mod theme;
|
||||
// 把控件状态转换为显示列表和交互目标;本模块不承担用户源程序的执行。
|
||||
mod widgets;
|
||||
// 向上层隐藏内部文件布局,统一导出交互状态与控件类型。
|
||||
pub use interaction::{Axis, Cursor, Interaction, Role, Target, VisualState, WidgetId};
|
||||
pub use widgets::{Button, Ui};
|
||||
|
||||
Reference in New Issue
Block a user