1 | use core::ffi::c_void; |
2 | use core::ptr; |
3 | |
4 | /// Raw display handle for the Redox operating system. |
5 | /// |
6 | /// ## Construction |
7 | /// ``` |
8 | /// # use raw_window_handle::OrbitalDisplayHandle; |
9 | /// let mut display_handle = OrbitalDisplayHandle::empty(); |
10 | /// /* set fields */ |
11 | /// ``` |
12 | #[non_exhaustive ] |
13 | #[derive (Debug, Clone, Copy, PartialEq, Eq, Hash)] |
14 | pub struct OrbitalDisplayHandle; |
15 | |
16 | impl OrbitalDisplayHandle { |
17 | pub fn empty() -> Self { |
18 | Self {} |
19 | } |
20 | } |
21 | |
22 | /// Raw window handle for the Redox operating system. |
23 | /// |
24 | /// ## Construction |
25 | /// ``` |
26 | /// # use raw_window_handle::OrbitalWindowHandle; |
27 | /// let mut window_handle = OrbitalWindowHandle::empty(); |
28 | /// /* set fields */ |
29 | /// ``` |
30 | #[non_exhaustive ] |
31 | #[derive (Debug, Clone, Copy, PartialEq, Eq, Hash)] |
32 | pub struct OrbitalWindowHandle { |
33 | /// A pointer to an orbclient window. |
34 | pub window: *mut c_void, |
35 | } |
36 | |
37 | impl OrbitalWindowHandle { |
38 | pub fn empty() -> Self { |
39 | Self { |
40 | window: ptr::null_mut(), |
41 | } |
42 | } |
43 | } |
44 | |