Expand description
Windowing and OS integration for Kova Native.
This crate is the only place that talks to the windowing system (winit).
It owns the event loop, creates windows and translates native events into
kova_native_input::InputEvents in logical pixels. Everything above it is
platform independent, which is what makes Linux and macOS ports a matter
of backend work rather than framework changes.
Structs§
- Clipboard
- System clipboard access.
- Platform
Context - Access to the running event loop.
- Platform
Window - A native window. Cheap to clone; implements the raw window handle traits so the renderer can create a surface for it.
- Platform
Window Id - Opaque identifier of a platform window.
- Waker
- Wakes the event loop from any thread.
- Window
Attributes - Options used to create a window.
Enums§
- Platform
Event - Window level events.
- User
Event
Traits§
- Platform
Handler - Callbacks from the event loop. All run on the main thread.
Functions§
- run
- Runs the event loop until
PlatformContext::exitis called.