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::ptr::NonNull;
use objc2::__framework_prelude::*;
use objc2_foundation::*;

use crate::*;

extern_class!(
    /// Positions a window scene more prominently than others in the current space.
    ///
    /// See also [Apple's documentation](https://developer.apple.com/documentation/uikit/uiwindowsceneprominentplacement?language=objc)
    #[unsafe(super(UIWindowScenePlacement, NSObject))]
    #[derive(Debug, PartialEq, Eq, Hash)]
    #[cfg(feature = "UIWindowScenePlacement")]
    pub struct UIWindowSceneProminentPlacement;
);

#[cfg(feature = "UIWindowScenePlacement")]
extern_conformance!(
    unsafe impl NSCopying for UIWindowSceneProminentPlacement {}
);

#[cfg(feature = "UIWindowScenePlacement")]
unsafe impl CopyingHelper for UIWindowSceneProminentPlacement {
    type Result = Self;
}

#[cfg(feature = "UIWindowScenePlacement")]
extern_conformance!(
    unsafe impl NSObjectProtocol for UIWindowSceneProminentPlacement {}
);

#[cfg(feature = "UIWindowScenePlacement")]
impl UIWindowSceneProminentPlacement {
    extern_methods!(
        /// Creates a prominent placement.
        #[unsafe(method(prominentPlacement))]
        #[unsafe(method_family = none)]
        pub fn prominentPlacement() -> Retained<Self>;
    );
}

/// Methods declared on superclass `UIWindowScenePlacement`.
#[cfg(feature = "UIWindowScenePlacement")]
impl UIWindowSceneProminentPlacement {
    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() -> Retained<Self>;
    );
}