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
22#[deprecated]
24pub type NSInterfaceStyle = NSUInteger;
25
26extern "C-unwind" {
27 #[cfg(feature = "NSResponder")]
32 #[deprecated]
33 pub fn NSInterfaceStyleForKey(
34 key: Option<&NSString>,
35 responder: Option<&NSResponder>,
36 ) -> NSInterfaceStyle;
37}
38
39#[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 #[deprecated]
58 pub static NSInterfaceStyleDefault: Option<&'static NSString>;
59}