Expand description
Platform window bridging for baseview.
Bridges truce’s RawWindowHandle to baseview’s HasRawWindowHandle
(raw-window-handle 0.5), and provides scale factor querying and
wgpu surface creation.
Structs§
- Editor
Scale - Shared, mutable editor scale factor.
- Parent
Window - Newtype bridging truce’s
RawWindowHandleto baseview’sHasRawWindowHandle(raw-window-handle 0.5).
Functions§
- create_
wgpu_ ⚠surface - Bridge a baseview raw-window-handle 0.5 to a wgpu-compatible
SurfaceTargetUnsafeusing rwh 0.6 types. - main_
screen_ scale - note_
linux_ scale_ factor - Record the display scale factor observed from baseview on Linux. Editors
should call this from their
WindowEvent::Resizedhandlers so subsequent pre-window queries match what baseview is delivering. No-op on non-Linux. - query_
backing_ scale - to_
physical_ px - Convert a logical extent (in points) to physical pixels.