objc2_ui_kit/generated/
UISceneWindowingBehaviors.rs

1//! This file has been automatically generated by `objc2`'s `header-translator`.
2//! DO NOT EDIT
3use core::ffi::*;
4use core::ptr::NonNull;
5use objc2::__framework_prelude::*;
6
7use crate::*;
8
9extern_class!(
10    /// [Apple's documentation](https://developer.apple.com/documentation/uikit/uiscenewindowingbehaviors?language=objc)
11    #[unsafe(super(NSObject))]
12    #[thread_kind = MainThreadOnly]
13    #[derive(Debug, PartialEq, Eq, Hash)]
14    pub struct UISceneWindowingBehaviors;
15);
16
17extern_conformance!(
18    unsafe impl NSObjectProtocol for UISceneWindowingBehaviors {}
19);
20
21impl UISceneWindowingBehaviors {
22    extern_methods!(
23        #[unsafe(method(init))]
24        #[unsafe(method_family = init)]
25        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
26
27        #[unsafe(method(new))]
28        #[unsafe(method_family = new)]
29        pub unsafe fn new(mtm: MainThreadMarker) -> Retained<Self>;
30
31        #[unsafe(method(isClosable))]
32        #[unsafe(method_family = none)]
33        pub fn isClosable(&self) -> bool;
34
35        /// Setter for [`isClosable`][Self::isClosable].
36        #[unsafe(method(setClosable:))]
37        #[unsafe(method_family = none)]
38        pub fn setClosable(&self, closable: bool);
39
40        #[unsafe(method(isMiniaturizable))]
41        #[unsafe(method_family = none)]
42        pub fn isMiniaturizable(&self) -> bool;
43
44        /// Setter for [`isMiniaturizable`][Self::isMiniaturizable].
45        #[unsafe(method(setMiniaturizable:))]
46        #[unsafe(method_family = none)]
47        pub fn setMiniaturizable(&self, miniaturizable: bool);
48    );
49}