1 | //! Contains traits with platform-specific methods in them. |
2 | //! |
3 | //! Contains the follow OS-specific modules: |
4 | //! |
5 | //! - `android` |
6 | //! - `ios` |
7 | //! - `macos` |
8 | //! - `unix` |
9 | //! - `windows` |
10 | //! - `web` |
11 | //! |
12 | //! And the following platform-specific modules: |
13 | //! |
14 | //! - `run_on_demand` (available on `windows`, `unix`, `macos`, `android`) |
15 | //! - `pump_events` (available on `windows`, `unix`, `macos`, `android`) |
16 | //! |
17 | //! However only the module corresponding to the platform you're compiling to will be available. |
18 | |
19 | #[cfg (android_platform)] |
20 | pub mod android; |
21 | #[cfg (ios_platform)] |
22 | pub mod ios; |
23 | #[cfg (macos_platform)] |
24 | pub mod macos; |
25 | #[cfg (orbital_platform)] |
26 | pub mod orbital; |
27 | #[cfg (any(x11_platform, wayland_platform))] |
28 | pub mod startup_notify; |
29 | #[cfg (wayland_platform)] |
30 | pub mod wayland; |
31 | #[cfg (wasm_platform)] |
32 | pub mod web; |
33 | #[cfg (windows_platform)] |
34 | pub mod windows; |
35 | #[cfg (x11_platform)] |
36 | pub mod x11; |
37 | |
38 | #[cfg (any( |
39 | windows_platform, |
40 | macos_platform, |
41 | android_platform, |
42 | x11_platform, |
43 | wayland_platform |
44 | ))] |
45 | pub mod run_on_demand; |
46 | |
47 | #[cfg (any( |
48 | windows_platform, |
49 | macos_platform, |
50 | android_platform, |
51 | x11_platform, |
52 | wayland_platform |
53 | ))] |
54 | pub mod pump_events; |
55 | |
56 | #[cfg (any( |
57 | windows_platform, |
58 | macos_platform, |
59 | x11_platform, |
60 | wayland_platform, |
61 | orbital_platform, |
62 | docsrs |
63 | ))] |
64 | pub mod modifier_supplement; |
65 | pub mod scancode; |
66 | |