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 crate::*;

extern_class!(
    /// Describes the placement and style of the system windowing controls for a scene
    ///
    /// See also [Apple's documentation](https://developer.apple.com/documentation/uikit/uiscenewindowingcontrolstyle?language=objc)
    #[unsafe(super(NSObject))]
    #[derive(Debug, PartialEq, Eq, Hash)]
    pub struct UISceneWindowingControlStyle;
);

unsafe impl Send for UISceneWindowingControlStyle {}

unsafe impl Sync for UISceneWindowingControlStyle {}

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

impl UISceneWindowingControlStyle {
    extern_methods!(
        /// Windowing controls will use the default system style
        #[unsafe(method(automaticStyle))]
        #[unsafe(method_family = none)]
        pub fn automaticStyle() -> Retained<UISceneWindowingControlStyle>;

        /// Windowing controls will appear as part of the scene's content
        #[unsafe(method(unifiedStyle))]
        #[unsafe(method_family = none)]
        pub fn unifiedStyle() -> Retained<UISceneWindowingControlStyle>;

        /// Windowing controls will occupy as little of the scene's space as possible
        #[unsafe(method(minimalStyle))]
        #[unsafe(method_family = none)]
        pub fn minimalStyle() -> Retained<UISceneWindowingControlStyle>;

        #[unsafe(method(init))]
        #[unsafe(method_family = init)]
        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
    );
}

/// Methods declared on superclass `NSObject`.
impl UISceneWindowingControlStyle {
    extern_methods!(
        #[unsafe(method(new))]
        #[unsafe(method_family = new)]
        pub unsafe fn new() -> Retained<Self>;
    );
}