| 1 | use crate::{ContextInterface, InitError}; |
| 2 | use raw_window_handle::HasDisplayHandle; |
| 3 | |
| 4 | #[cfg (target_vendor = "apple" )] |
| 5 | pub(crate) mod cg; |
| 6 | #[cfg (kms_platform)] |
| 7 | pub(crate) mod kms; |
| 8 | #[cfg (target_os = "redox" )] |
| 9 | pub(crate) mod orbital; |
| 10 | #[cfg (wayland_platform)] |
| 11 | pub(crate) mod wayland; |
| 12 | #[cfg (target_arch = "wasm32" )] |
| 13 | pub(crate) mod web; |
| 14 | #[cfg (target_os = "windows" )] |
| 15 | pub(crate) mod win32; |
| 16 | #[cfg (x11_platform)] |
| 17 | pub(crate) mod x11; |
| 18 | |
| 19 | impl<D: HasDisplayHandle> ContextInterface<D> for D { |
| 20 | fn new(display: D) -> Result<Self, InitError<D>> { |
| 21 | Ok(display) |
| 22 | } |
| 23 | } |
| 24 | |