2019-02-05 10:30:33 -05:00
|
|
|
//! Contains traits with platform-specific methods in them.
|
|
|
|
|
//!
|
|
|
|
|
//! Contains the follow OS-specific modules:
|
|
|
|
|
//!
|
|
|
|
|
//! - `android`
|
|
|
|
|
//! - `ios`
|
|
|
|
|
//! - `macos`
|
|
|
|
|
//! - `unix`
|
|
|
|
|
//! - `windows`
|
2019-09-24 19:33:32 -04:00
|
|
|
//! - `web`
|
2019-02-05 10:30:33 -05:00
|
|
|
//!
|
2023-06-18 11:10:13 +01:00
|
|
|
//! And the following platform-specific modules:
|
2019-02-05 10:30:33 -05:00
|
|
|
//!
|
2023-06-18 12:40:03 +01:00
|
|
|
//! - `run_ondemand` (available on `windows`, `unix`, `macos`, `android`)
|
|
|
|
|
//! - `pump_events` (available on `windows`, `unix`, `macos`, `android`)
|
2019-02-05 10:30:33 -05:00
|
|
|
//!
|
|
|
|
|
//! However only the module corresponding to the platform you're compiling to will be available.
|
2015-04-24 09:51:23 +02:00
|
|
|
|
2022-12-25 09:57:27 +02:00
|
|
|
#[cfg(android_platform)]
|
2019-02-05 10:30:33 -05:00
|
|
|
pub mod android;
|
2022-12-25 09:57:27 +02:00
|
|
|
#[cfg(ios_platform)]
|
2019-02-05 10:30:33 -05:00
|
|
|
pub mod ios;
|
2022-12-25 09:57:27 +02:00
|
|
|
#[cfg(macos_platform)]
|
2019-02-05 10:30:33 -05:00
|
|
|
pub mod macos;
|
2023-01-05 06:58:08 -07:00
|
|
|
#[cfg(orbital_platform)]
|
|
|
|
|
pub mod orbital;
|
2023-07-20 13:16:51 +00:00
|
|
|
#[cfg(any(x11_platform, wayland_platform))]
|
|
|
|
|
pub mod startup_notify;
|
2022-12-25 09:57:27 +02:00
|
|
|
#[cfg(wayland_platform)]
|
2022-09-01 07:05:32 +02:00
|
|
|
pub mod wayland;
|
2022-12-25 09:57:27 +02:00
|
|
|
#[cfg(wasm_platform)]
|
2022-06-11 18:57:19 +02:00
|
|
|
pub mod web;
|
2022-12-25 09:57:27 +02:00
|
|
|
#[cfg(windows_platform)]
|
2019-02-05 10:30:33 -05:00
|
|
|
pub mod windows;
|
2022-12-25 09:57:27 +02:00
|
|
|
#[cfg(x11_platform)]
|
2022-09-01 07:05:32 +02:00
|
|
|
pub mod x11;
|
2015-04-24 09:51:23 +02:00
|
|
|
|
2023-06-18 12:40:03 +01:00
|
|
|
#[cfg(any(
|
|
|
|
|
windows_platform,
|
|
|
|
|
macos_platform,
|
|
|
|
|
android_platform,
|
|
|
|
|
x11_platform,
|
|
|
|
|
wayland_platform
|
|
|
|
|
))]
|
2023-06-18 11:10:13 +01:00
|
|
|
pub mod run_ondemand;
|
|
|
|
|
|
2023-06-18 12:40:03 +01:00
|
|
|
#[cfg(any(
|
|
|
|
|
windows_platform,
|
|
|
|
|
macos_platform,
|
|
|
|
|
android_platform,
|
|
|
|
|
x11_platform,
|
|
|
|
|
wayland_platform
|
|
|
|
|
))]
|
2023-06-18 11:10:13 +01:00
|
|
|
pub mod pump_events;
|
|
|
|
|
|
|
|
|
|
pub mod modifier_supplement;
|
2023-05-28 20:02:59 +02:00
|
|
|
pub mod scancode;
|