use core::ffi::*;
use core::ptr::NonNull;
use objc2::__framework_prelude::*;
use crate::*;
extern_class!(
#[unsafe(super(UIWindowSceneGeometryPreferences, NSObject))]
#[derive(Debug, PartialEq, Eq, Hash)]
#[cfg(feature = "UIWindowSceneGeometryPreferences")]
pub struct UIWindowSceneGeometryPreferencesIOS;
);
#[cfg(feature = "UIWindowSceneGeometryPreferences")]
extern_conformance!(
unsafe impl NSObjectProtocol for UIWindowSceneGeometryPreferencesIOS {}
);
#[cfg(feature = "UIWindowSceneGeometryPreferences")]
impl UIWindowSceneGeometryPreferencesIOS {
extern_methods!(
#[unsafe(method(init))]
#[unsafe(method_family = init)]
pub fn init(this: Allocated<Self>) -> Retained<Self>;
#[cfg(feature = "UIOrientation")]
#[unsafe(method(initWithInterfaceOrientations:))]
#[unsafe(method_family = init)]
pub fn initWithInterfaceOrientations(
this: Allocated<Self>,
interface_orientations: UIInterfaceOrientationMask,
) -> Retained<Self>;
#[cfg(feature = "UIOrientation")]
#[unsafe(method(interfaceOrientations))]
#[unsafe(method_family = none)]
pub fn interfaceOrientations(&self) -> UIInterfaceOrientationMask;
#[cfg(feature = "UIOrientation")]
#[unsafe(method(setInterfaceOrientations:))]
#[unsafe(method_family = none)]
pub fn setInterfaceOrientations(&self, interface_orientations: UIInterfaceOrientationMask);
);
}
#[cfg(feature = "UIWindowSceneGeometryPreferences")]
impl UIWindowSceneGeometryPreferencesIOS {
extern_methods!(
#[unsafe(method(new))]
#[unsafe(method_family = new)]
pub unsafe fn new() -> Retained<Self>;
);
}