Skip to main content

Module app

Module app 

Source
Expand description

平台无关 Runner API —— 应用只依赖本模块,不直接接触 winit/wgpu。

桌面事件循环、窗口/GPU/AccessKit 由 mgui-shell-desktop host 实现; 本模块只定义:

Structs§

AppContext
应用回调可用的运行时句柄(由 Runner 持有)。
RunnerConfig
窗口启动配置
ShellMetrics
Shell 的尺寸与 DPI。

Enums§

ImeEvent
平台无关 IME 事件。
ShellEvent
平台无关输入事件 —— 桌面 shell 把原生事件翻译成此类型后再交给应用。

Traits§

RunnerApp
窗口应用需要实现的最小生命周期。
SoftwareBackend
软件回退后端:无 GPU 时 Runner 用它上屏。
WindowShell
窗口/DPI/IME 能力——应用只依赖此接口,不直接依赖 winit。