Skip to main content

mgui_runtime/
lib.rs

1//! mgui-runtime — 平台无关渲染运行时(Runner API 见 `app`)
2//!
3//! 注意:文本服务(parley/swash/atlas/TextRenderObject)已迁至 `mgui-text`,
4//! 任务执行器在 `mgui-task`;本 crate 通过 re-export 保持旧路径可用。
5//!
6//! - `renderer`:多 layer 合成渲染器(wgpu,不依赖 winit)
7//! - `accessibility`:语义树 → AccessKit 数据与 action 路由(不创建 winit Adapter)
8//! - `profile`:帧耗时采样
9//! - `app`:Runner 接口/配置(desktop 事件循环在 `mgui-shell-desktop`)
10//! - `load`:异步取数与 `LoadState` 的接线(`LoadSlot` 取消/取代语义)
11//! - `task`:UI 线程本地异步任务执行器(re-export)
12//!
13//! GPU surface/窗口/事件循环在 `mgui-shell-desktop`;本 crate 不依赖 winit。
14
15#![forbid(unsafe_code)]
16
17pub mod accessibility;
18pub mod app;
19mod backend_info;
20pub use backend_info::ImageTextureStats;
21pub mod gpu_profiler;
22/// 异步取数与 `LoadState` 的接线(`LoadSlot` / `spawn_load`)
23pub mod load;
24pub mod profile;
25pub mod renderer;
26pub mod startup;
27/// UI 线程本地任务执行器(实现在 `mgui-task`)
28pub use mgui_task as task;
29/// 平台无关文本服务(实现在 `mgui-text`)
30pub use mgui_text::{text, text_field};