1 #![allow(non_snake_case, non_camel_case_types, non_upper_case_globals, clashing_extern_declarations, clippy::all)] 2 #[cfg(feature = "UI_WindowManagement_Preview")] 3 pub mod Preview; 4 #[link(name = "windows")] 5 extern "system" {} 6 pub type AppWindow = *mut ::core::ffi::c_void; 7 pub type AppWindowChangedEventArgs = *mut ::core::ffi::c_void; 8 pub type AppWindowCloseRequestedEventArgs = *mut ::core::ffi::c_void; 9 pub type AppWindowClosedEventArgs = *mut ::core::ffi::c_void; 10 #[repr(transparent)] 11 pub struct AppWindowClosedReason(pub i32); 12 impl AppWindowClosedReason { 13 pub const Other: Self = Self(0i32); 14 pub const AppInitiated: Self = Self(1i32); 15 pub const UserInitiated: Self = Self(2i32); 16 } 17 impl ::core::marker::Copy for AppWindowClosedReason {} 18 impl ::core::clone::Clone for AppWindowClosedReason { clone(&self) -> Self19 fn clone(&self) -> Self { 20 *self 21 } 22 } 23 pub type AppWindowFrame = *mut ::core::ffi::c_void; 24 #[repr(transparent)] 25 pub struct AppWindowFrameStyle(pub i32); 26 impl AppWindowFrameStyle { 27 pub const Default: Self = Self(0i32); 28 pub const NoFrame: Self = Self(1i32); 29 } 30 impl ::core::marker::Copy for AppWindowFrameStyle {} 31 impl ::core::clone::Clone for AppWindowFrameStyle { clone(&self) -> Self32 fn clone(&self) -> Self { 33 *self 34 } 35 } 36 pub type AppWindowPlacement = *mut ::core::ffi::c_void; 37 pub type AppWindowPresentationConfiguration = *mut ::core::ffi::c_void; 38 #[repr(transparent)] 39 pub struct AppWindowPresentationKind(pub i32); 40 impl AppWindowPresentationKind { 41 pub const Default: Self = Self(0i32); 42 pub const CompactOverlay: Self = Self(1i32); 43 pub const FullScreen: Self = Self(2i32); 44 } 45 impl ::core::marker::Copy for AppWindowPresentationKind {} 46 impl ::core::clone::Clone for AppWindowPresentationKind { clone(&self) -> Self47 fn clone(&self) -> Self { 48 *self 49 } 50 } 51 pub type AppWindowPresenter = *mut ::core::ffi::c_void; 52 pub type AppWindowTitleBar = *mut ::core::ffi::c_void; 53 pub type AppWindowTitleBarOcclusion = *mut ::core::ffi::c_void; 54 #[repr(transparent)] 55 pub struct AppWindowTitleBarVisibility(pub i32); 56 impl AppWindowTitleBarVisibility { 57 pub const Default: Self = Self(0i32); 58 pub const AlwaysHidden: Self = Self(1i32); 59 } 60 impl ::core::marker::Copy for AppWindowTitleBarVisibility {} 61 impl ::core::clone::Clone for AppWindowTitleBarVisibility { clone(&self) -> Self62 fn clone(&self) -> Self { 63 *self 64 } 65 } 66 pub type CompactOverlayPresentationConfiguration = *mut ::core::ffi::c_void; 67 pub type DefaultPresentationConfiguration = *mut ::core::ffi::c_void; 68 pub type DisplayRegion = *mut ::core::ffi::c_void; 69 pub type FullScreenPresentationConfiguration = *mut ::core::ffi::c_void; 70 pub type WindowingEnvironment = *mut ::core::ffi::c_void; 71 pub type WindowingEnvironmentAddedEventArgs = *mut ::core::ffi::c_void; 72 pub type WindowingEnvironmentChangedEventArgs = *mut ::core::ffi::c_void; 73 #[repr(transparent)] 74 pub struct WindowingEnvironmentKind(pub i32); 75 impl WindowingEnvironmentKind { 76 pub const Unknown: Self = Self(0i32); 77 pub const Overlapped: Self = Self(1i32); 78 pub const Tiled: Self = Self(2i32); 79 } 80 impl ::core::marker::Copy for WindowingEnvironmentKind {} 81 impl ::core::clone::Clone for WindowingEnvironmentKind { clone(&self) -> Self82 fn clone(&self) -> Self { 83 *self 84 } 85 } 86 pub type WindowingEnvironmentRemovedEventArgs = *mut ::core::ffi::c_void; 87