//! Platform host — abstract interface from view threads to the main thread.
//!
//! Like Chrome's `WidgetHost` / `FrameWidgetHost` Mojo interfaces.
//! The view thread communicates back to the main thread through this trait,
//! never through windowing-backend types (winit, SDL2, etc.).
//!
//! The windowing backend (e.g., `kozan-winit`) provides the concrete
//! implementation.
use crateWindowId;
use crateWindowConfig;
/// The interface from a view thread back to the main thread.
///
/// Implemented by the windowing backend (e.g., `kozan-winit`).
/// The view thread holds an `Arc<dyn PlatformHost>` and calls methods
/// without knowing anything about the underlying windowing system.
///
/// All methods are non-blocking — they send messages to the main thread.
/// If the main thread has exited, calls are silently dropped.