objc2_app_kit/generated/
NSInterfaceStyle.rs1use core::ffi::*;
4use objc2::__framework_prelude::*;
5use objc2_foundation::*;
6
7use crate::*;
8
9#[deprecated]
11pub const NSNoInterfaceStyle: c_uint = 0;
12#[deprecated]
14pub const NSNextStepInterfaceStyle: c_uint = 1;
15#[deprecated]
17pub const NSWindows95InterfaceStyle: c_uint = 2;
18#[deprecated]
20pub const NSMacintoshInterfaceStyle: c_uint = 3;
21
22pub type NSInterfaceStyle = NSUInteger;
24
25extern "C-unwind" {
26 #[cfg(feature = "NSResponder")]
27 #[deprecated]
28 pub fn NSInterfaceStyleForKey(
29 key: Option<&NSString>,
30 responder: Option<&NSResponder>,
31 ) -> NSInterfaceStyle;
32}
33
34#[cfg(feature = "NSResponder")]
36impl NSResponder {
37 extern_methods!(
38 #[deprecated]
39 #[unsafe(method(interfaceStyle))]
40 #[unsafe(method_family = none)]
41 pub unsafe fn interfaceStyle(&self) -> NSInterfaceStyle;
42
43 #[deprecated]
44 #[unsafe(method(setInterfaceStyle:))]
45 #[unsafe(method_family = none)]
46 pub unsafe fn setInterfaceStyle(&self, interface_style: NSInterfaceStyle);
47 );
48}
49
50extern "C" {
51 pub static NSInterfaceStyleDefault: Option<&'static NSString>;
53}