objc2_app_kit/generated/
NSInterfaceStyle.rs

1//! This file has been automatically generated by `objc2`'s `header-translator`.
2//! DO NOT EDIT
3use core::ffi::*;
4use objc2::__framework_prelude::*;
5use objc2_foundation::*;
6
7use crate::*;
8
9/// [Apple's documentation](https://developer.apple.com/documentation/appkit/nsnointerfacestyle?language=objc)
10#[deprecated]
11pub const NSNoInterfaceStyle: c_uint = 0;
12/// [Apple's documentation](https://developer.apple.com/documentation/appkit/nsnextstepinterfacestyle?language=objc)
13#[deprecated]
14pub const NSNextStepInterfaceStyle: c_uint = 1;
15/// [Apple's documentation](https://developer.apple.com/documentation/appkit/nswindows95interfacestyle?language=objc)
16#[deprecated]
17pub const NSWindows95InterfaceStyle: c_uint = 2;
18/// [Apple's documentation](https://developer.apple.com/documentation/appkit/nsmacintoshinterfacestyle?language=objc)
19#[deprecated]
20pub const NSMacintoshInterfaceStyle: c_uint = 3;
21
22/// [Apple's documentation](https://developer.apple.com/documentation/appkit/nsinterfacestyle?language=objc)
23#[deprecated]
24pub type NSInterfaceStyle = NSUInteger;
25
26extern "C-unwind" {
27    /// # Safety
28    ///
29    /// - `key` might not allow `None`.
30    /// - `responder` might not allow `None`.
31    #[cfg(feature = "NSResponder")]
32    #[deprecated]
33    pub fn NSInterfaceStyleForKey(
34        key: Option<&NSString>,
35        responder: Option<&NSResponder>,
36    ) -> NSInterfaceStyle;
37}
38
39/// NSInterfaceStyle.
40#[cfg(feature = "NSResponder")]
41impl NSResponder {
42    extern_methods!(
43        #[deprecated]
44        #[unsafe(method(interfaceStyle))]
45        #[unsafe(method_family = none)]
46        pub fn interfaceStyle(&self) -> NSInterfaceStyle;
47
48        #[deprecated]
49        #[unsafe(method(setInterfaceStyle:))]
50        #[unsafe(method_family = none)]
51        pub fn setInterfaceStyle(&self, interface_style: NSInterfaceStyle);
52    );
53}
54
55extern "C" {
56    /// [Apple's documentation](https://developer.apple.com/documentation/appkit/nsinterfacestyledefault?language=objc)
57    #[deprecated]
58    pub static NSInterfaceStyleDefault: Option<&'static NSString>;
59}