Skip to main content

Crate kova_native_platform

Crate kova_native_platform 

Source
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.
PlatformContext
Access to the running event loop.
PlatformWindow
A native window. Cheap to clone; implements the raw window handle traits so the renderer can create a surface for it.
PlatformWindowId
Opaque identifier of a platform window.
Waker
Wakes the event loop from any thread.
WindowAttributes
Options used to create a window.

Enums§

PlatformEvent
Window level events.
UserEvent

Traits§

PlatformHandler
Callbacks from the event loop. All run on the main thread.

Functions§

run
Runs the event loop until PlatformContext::exit is called.