Skip to main content

Crate platform_glyph

Crate platform_glyph 

Source
Expand description

Platform event loop and windowing via winit + wgpu.

App::run opens an 800x600 window with the default light theme. Use App::run_with_theme to supply a custom Theme.

Re-exports§

pub use platform::clipboard_read;
pub use platform::clipboard_write;
pub use platform::open_url;
pub use platform::reveal_in_explorer;
pub use platform::pick_file;
pub use platform::pick_files;
pub use platform::pick_folder;
pub use platform::pick_file_filtered;
pub use platform::save_file;
pub use platform::notify;
pub use menu::MenuBar;

Modules§

menu
Native OS menu bar via muda.
platform
Native OS integration: clipboard, file dialogs, notifications. These are thin wrappers so the glyph crate can expose a clean API without developers importing rfd or arboard directly.

Structs§

App
AppBuilder
Builder for configuring an App before running it.
Theme
Semantic color tokens for a UI theme. Components should read from these rather than hardcoding colors so the entire app can be restyled by swapping one Theme value.
WindowCloser
Clone this into button callbacks to close the window it was created for.
WindowOpener
Clone this into button callbacks to open new windows.