Thanks to visit codestin.com
Credit goes to docs.rs

Skip to main content

Crate rgpui_platform

Crate rgpui_platform 

Source
Expand description

便捷工具包,重新导出 GPUI 的平台特性及 current_platform 构造函数, 使使用者无需手动编写 #[cfg] 条件编译代码。

Traits§

Platform
平台抽象层 trait,定义了与操作系统交互所需的所有接口 各平台(Windows、macOS、Linux、Web)需实现此 trait 以提供平台特定功能

Functions§

application
返回一个 GUI 应用程序实例。
background_executor
返回当前平台的后台执行器。
current_platform
返回当前操作系统的默认 Platform 实现。
headless
返回一个无头(headless)模式的应用程序实例。