1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
//! This file has been automatically generated by `objc2`'s `header-translator`.
//! DO NOT EDIT
use objc2::__framework_prelude::*;
use objc2_foundation::*;

use crate::*;

#[deprecated]
pub const NSNoInterfaceStyle: c_uint = 0;
#[deprecated]
pub const NSNextStepInterfaceStyle: c_uint = 1;
#[deprecated]
pub const NSWindows95InterfaceStyle: c_uint = 2;
#[deprecated]
pub const NSMacintoshInterfaceStyle: c_uint = 3;

pub type NSInterfaceStyle = NSUInteger;

extern "C" {
    #[cfg(feature = "NSResponder")]
    #[deprecated]
    pub fn NSInterfaceStyleForKey(
        key: Option<&NSString>,
        responder: Option<&NSResponder>,
    ) -> NSInterfaceStyle;
}

extern_methods!(
    /// NSInterfaceStyle
    #[cfg(feature = "NSResponder")]
    unsafe impl NSResponder {
        #[deprecated]
        #[method(interfaceStyle)]
        pub unsafe fn interfaceStyle(&self) -> NSInterfaceStyle;

        #[deprecated]
        #[method(setInterfaceStyle:)]
        pub unsafe fn setInterfaceStyle(&self, interface_style: NSInterfaceStyle);
    }
);

extern "C" {
    pub static NSInterfaceStyleDefault: Option<&'static NSString>;
}