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