objc2-ui-kit 0.3.2

Bindings to the UIKit framework
Documentation
//! This file has been automatically generated by `objc2`'s `header-translator`.
//! DO NOT EDIT
use core::ffi::*;
use core::ptr::NonNull;
use objc2::__framework_prelude::*;

use crate::*;

extern_class!(
    /// [Apple's documentation](https://developer.apple.com/documentation/uikit/uiscenewindowingbehaviors?language=objc)
    #[unsafe(super(NSObject))]
    #[thread_kind = MainThreadOnly]
    #[derive(Debug, PartialEq, Eq, Hash)]
    pub struct UISceneWindowingBehaviors;
);

extern_conformance!(
    unsafe impl NSObjectProtocol for UISceneWindowingBehaviors {}
);

impl UISceneWindowingBehaviors {
    extern_methods!(
        #[unsafe(method(init))]
        #[unsafe(method_family = init)]
        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;

        #[unsafe(method(new))]
        #[unsafe(method_family = new)]
        pub unsafe fn new(mtm: MainThreadMarker) -> Retained<Self>;

        #[unsafe(method(isClosable))]
        #[unsafe(method_family = none)]
        pub fn isClosable(&self) -> bool;

        /// Setter for [`isClosable`][Self::isClosable].
        #[unsafe(method(setClosable:))]
        #[unsafe(method_family = none)]
        pub fn setClosable(&self, closable: bool);

        #[unsafe(method(isMiniaturizable))]
        #[unsafe(method_family = none)]
        pub fn isMiniaturizable(&self) -> bool;

        /// Setter for [`isMiniaturizable`][Self::isMiniaturizable].
        #[unsafe(method(setMiniaturizable:))]
        #[unsafe(method_family = none)]
        pub fn setMiniaturizable(&self, miniaturizable: bool);
    );
}