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")]
22extern_conformance!(
23 unsafe impl NSObjectProtocol for UIWindowSceneGeometryPreferencesMac {}
24);
25
26#[cfg(feature = "UIWindowSceneGeometryPreferences")]
27impl UIWindowSceneGeometryPreferencesMac {
28 extern_methods!(
29 #[unsafe(method(init))]
30 #[unsafe(method_family = init)]
31 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
32
33 #[cfg(feature = "objc2-core-foundation")]
34 #[unsafe(method(initWithSystemFrame:))]
35 #[unsafe(method_family = init)]
36 pub unsafe fn initWithSystemFrame(
37 this: Allocated<Self>,
38 system_frame: CGRect,
39 ) -> Retained<Self>;
40
41 #[cfg(feature = "objc2-core-foundation")]
42 #[unsafe(method(systemFrame))]
45 #[unsafe(method_family = none)]
46 pub unsafe fn systemFrame(&self) -> CGRect;
47
48 #[cfg(feature = "objc2-core-foundation")]
49 #[unsafe(method(setSystemFrame:))]
51 #[unsafe(method_family = none)]
52 pub unsafe fn setSystemFrame(&self, system_frame: CGRect);
53 );
54}
55
56#[cfg(feature = "UIWindowSceneGeometryPreferences")]
58impl UIWindowSceneGeometryPreferencesMac {
59 extern_methods!(
60 #[unsafe(method(new))]
61 #[unsafe(method_family = new)]
62 pub unsafe fn new() -> Retained<Self>;
63 );
64}