inset-embedder-winit 0.4.0

Native winit host for Inset
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//! What a system adds beyond winit. Each system has its own module with the same
//! functions and types, and the target picks the module, so the host calls one name and
//! carries no `cfg` of its own; a system winit alone covers gets the generic answers.
//!
//! The one type every module supplies is `Vsync`: the system's signal for each refresh of
//! a window's display, started with `Vsync::start` and paused with `set_paused`, or `None`
//! from a system that has none to give, which the host paces by a timer instead. Every module
//! also supplies `run_off_main`: the system's work queue, or a thread where it has none.

#[cfg(not(target_os = "macos"))]
mod generic;
#[cfg(target_os = "macos")]
mod macos;

#[cfg(not(target_os = "macos"))]
pub(crate) use generic::*;
#[cfg(target_os = "macos")]
pub(crate) use macos::*;