use core::ffi::*;
use core::ptr::NonNull;
use objc2::__framework_prelude::*;
#[cfg(feature = "objc2-core-foundation")]
use objc2_core_foundation::*;
use crate::*;
extern_class!(
#[unsafe(super(UIWindowSceneGeometryPreferences, NSObject))]
#[derive(Debug, PartialEq, Eq, Hash)]
#[cfg(feature = "UIWindowSceneGeometryPreferences")]
pub struct UIWindowSceneGeometryPreferencesMac;
);
#[cfg(feature = "UIWindowSceneGeometryPreferences")]
extern_conformance!(
unsafe impl NSObjectProtocol for UIWindowSceneGeometryPreferencesMac {}
);
#[cfg(feature = "UIWindowSceneGeometryPreferences")]
impl UIWindowSceneGeometryPreferencesMac {
extern_methods!(
#[unsafe(method(init))]
#[unsafe(method_family = init)]
pub fn init(this: Allocated<Self>) -> Retained<Self>;
#[cfg(feature = "objc2-core-foundation")]
#[unsafe(method(initWithSystemFrame:))]
#[unsafe(method_family = init)]
pub fn initWithSystemFrame(this: Allocated<Self>, system_frame: CGRect) -> Retained<Self>;
#[cfg(feature = "objc2-core-foundation")]
#[unsafe(method(systemFrame))]
#[unsafe(method_family = none)]
pub fn systemFrame(&self) -> CGRect;
#[cfg(feature = "objc2-core-foundation")]
#[unsafe(method(setSystemFrame:))]
#[unsafe(method_family = none)]
pub fn setSystemFrame(&self, system_frame: CGRect);
);
}
#[cfg(feature = "UIWindowSceneGeometryPreferences")]
impl UIWindowSceneGeometryPreferencesMac {
extern_methods!(
#[unsafe(method(new))]
#[unsafe(method_family = new)]
pub unsafe fn new() -> Retained<Self>;
);
}