Skip to main content

Module platform

Module platform 

Source
Expand description

Platform window bridging for baseview.

Re-exports the canonical helpers from truce_gui::platform so this crate’s call sites can keep using crate::platform::Foo while the actual rwh-0.5 to rwh-0.6 bridge, the ParentWindow newtype, and the wgpu surface constructor live in one place. truce-gui’s copy is the canonical one; every GUI backend reads through these re-exports so platform behaviour stays uniform.

Structs§

ParentWindow
Newtype bridging truce’s RawWindowHandle to baseview’s HasRawWindowHandle (raw-window-handle 0.5).

Functions§

create_wgpu_surface
Bridge a baseview raw-window-handle 0.5 to a wgpu-compatible SurfaceTargetUnsafe using rwh 0.6 types.
query_backing_scale