icrate/generated/AppKit/
NSInterfaceStyle.rs

1//! This file has been automatically generated by `objc2`'s `header-translator`.
2//! DO NOT EDIT
3use crate::common::*;
4use crate::AppKit::*;
5use crate::CoreData::*;
6use crate::Foundation::*;
7
8extern_enum!(
9    #[underlying(c_uint)]
10    pub enum __anonymous__ {
11        #[deprecated]
12        NSNoInterfaceStyle = 0,
13        #[deprecated]
14        NSNextStepInterfaceStyle = 1,
15        #[deprecated]
16        NSWindows95InterfaceStyle = 2,
17        #[deprecated]
18        NSMacintoshInterfaceStyle = 3,
19    }
20);
21
22pub type NSInterfaceStyle = NSUInteger;
23
24extern_fn!(
25    #[cfg(all(feature = "AppKit_NSResponder", feature = "Foundation_NSString"))]
26    #[deprecated]
27    pub unsafe fn NSInterfaceStyleForKey(
28        key: Option<&NSString>,
29        responder: Option<&NSResponder>,
30    ) -> NSInterfaceStyle;
31);
32
33extern_methods!(
34    /// NSInterfaceStyle
35    #[cfg(feature = "AppKit_NSResponder")]
36    unsafe impl NSResponder {
37        #[deprecated]
38        #[method(interfaceStyle)]
39        pub unsafe fn interfaceStyle(&self) -> NSInterfaceStyle;
40
41        #[deprecated]
42        #[method(setInterfaceStyle:)]
43        pub unsafe fn setInterfaceStyle(&self, interface_style: NSInterfaceStyle);
44    }
45);
46
47extern_static!(NSInterfaceStyleDefault: Option<&'static NSString>);