objc2_ui_kit/generated/
UISceneSizeRestrictions.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(NSObject))]
18 #[thread_kind = MainThreadOnly]
19 #[derive(Debug, PartialEq, Eq, Hash)]
20 pub struct UISceneSizeRestrictions;
21);
22
23extern_conformance!(
24 unsafe impl NSObjectProtocol for UISceneSizeRestrictions {}
25);
26
27impl UISceneSizeRestrictions {
28 extern_methods!(
29 #[unsafe(method(init))]
30 #[unsafe(method_family = init)]
31 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
32
33 #[unsafe(method(new))]
34 #[unsafe(method_family = new)]
35 pub unsafe fn new(mtm: MainThreadMarker) -> Retained<Self>;
36
37 #[cfg(feature = "objc2-core-foundation")]
38 #[unsafe(method(minimumSize))]
40 #[unsafe(method_family = none)]
41 pub fn minimumSize(&self) -> CGSize;
42
43 #[cfg(feature = "objc2-core-foundation")]
44 #[unsafe(method(setMinimumSize:))]
46 #[unsafe(method_family = none)]
47 pub fn setMinimumSize(&self, minimum_size: CGSize);
48
49 #[cfg(feature = "objc2-core-foundation")]
50 #[unsafe(method(maximumSize))]
52 #[unsafe(method_family = none)]
53 pub fn maximumSize(&self) -> CGSize;
54
55 #[cfg(feature = "objc2-core-foundation")]
56 #[unsafe(method(setMaximumSize:))]
58 #[unsafe(method_family = none)]
59 pub fn setMaximumSize(&self, maximum_size: CGSize);
60
61 #[unsafe(method(allowsFullScreen))]
64 #[unsafe(method_family = none)]
65 pub fn allowsFullScreen(&self) -> bool;
66
67 #[unsafe(method(setAllowsFullScreen:))]
69 #[unsafe(method_family = none)]
70 pub fn setAllowsFullScreen(&self, allows_full_screen: bool);
71 );
72}