objc2_ui_kit/generated/
UIWindowSceneGeometryPreferencesMac.rs1use core::ffi::*;
4use core::ptr::NonNull;
5use objc2::__framework_prelude::*;
6#[cfg(feature = "objc2-core-foundation")]
7use objc2_core_foundation::*;
8
9use crate::*;
10
11extern_class!(
12 #[unsafe(super(UIWindowSceneGeometryPreferences, NSObject))]
16 #[derive(Debug, PartialEq, Eq, Hash)]
17 #[cfg(feature = "UIWindowSceneGeometryPreferences")]
18 pub struct UIWindowSceneGeometryPreferencesMac;
19);
20
21#[cfg(feature = "UIWindowSceneGeometryPreferences")]
22unsafe impl NSObjectProtocol for UIWindowSceneGeometryPreferencesMac {}
23
24#[cfg(feature = "UIWindowSceneGeometryPreferences")]
25impl UIWindowSceneGeometryPreferencesMac {
26 extern_methods!(
27 #[unsafe(method(init))]
28 #[unsafe(method_family = init)]
29 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
30
31 #[cfg(feature = "objc2-core-foundation")]
32 #[unsafe(method(initWithSystemFrame:))]
33 #[unsafe(method_family = init)]
34 pub unsafe fn initWithSystemFrame(
35 this: Allocated<Self>,
36 system_frame: CGRect,
37 ) -> Retained<Self>;
38
39 #[cfg(feature = "objc2-core-foundation")]
40 #[unsafe(method(systemFrame))]
43 #[unsafe(method_family = none)]
44 pub unsafe fn systemFrame(&self) -> CGRect;
45
46 #[cfg(feature = "objc2-core-foundation")]
47 #[unsafe(method(setSystemFrame:))]
49 #[unsafe(method_family = none)]
50 pub unsafe fn setSystemFrame(&self, system_frame: CGRect);
51 );
52}
53
54#[cfg(feature = "UIWindowSceneGeometryPreferences")]
56impl UIWindowSceneGeometryPreferencesMac {
57 extern_methods!(
58 #[unsafe(method(new))]
59 #[unsafe(method_family = new)]
60 pub unsafe fn new() -> Retained<Self>;
61 );
62}