objc2_ui_kit/generated/
UISceneWindowingControlStyle.rs

1//! This file has been automatically generated by `objc2`'s `header-translator`.
2//! DO NOT EDIT
3use core::ptr::NonNull;
4use objc2::__framework_prelude::*;
5
6use crate::*;
7
8extern_class!(
9    /// Describes the placement and style of the system windowing controls for a scene
10    ///
11    /// See also [Apple's documentation](https://developer.apple.com/documentation/uikit/uiscenewindowingcontrolstyle?language=objc)
12    #[unsafe(super(NSObject))]
13    #[derive(Debug, PartialEq, Eq, Hash)]
14    pub struct UISceneWindowingControlStyle;
15);
16
17unsafe impl Send for UISceneWindowingControlStyle {}
18
19unsafe impl Sync for UISceneWindowingControlStyle {}
20
21extern_conformance!(
22    unsafe impl NSObjectProtocol for UISceneWindowingControlStyle {}
23);
24
25impl UISceneWindowingControlStyle {
26    extern_methods!(
27        /// Windowing controls will use the default system style
28        #[unsafe(method(automaticStyle))]
29        #[unsafe(method_family = none)]
30        pub fn automaticStyle() -> Retained<UISceneWindowingControlStyle>;
31
32        /// Windowing controls will appear as part of the scene's content
33        #[unsafe(method(unifiedStyle))]
34        #[unsafe(method_family = none)]
35        pub fn unifiedStyle() -> Retained<UISceneWindowingControlStyle>;
36
37        /// Windowing controls will occupy as little of the scene's space as possible
38        #[unsafe(method(minimalStyle))]
39        #[unsafe(method_family = none)]
40        pub fn minimalStyle() -> Retained<UISceneWindowingControlStyle>;
41
42        #[unsafe(method(init))]
43        #[unsafe(method_family = init)]
44        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
45    );
46}
47
48/// Methods declared on superclass `NSObject`.
49impl UISceneWindowingControlStyle {
50    extern_methods!(
51        #[unsafe(method(new))]
52        #[unsafe(method_family = new)]
53        pub unsafe fn new() -> Retained<Self>;
54    );
55}