use crate::common::*;
use crate::AppKit::*;
use crate::CoreData::*;
use crate::Foundation::*;
extern_enum!(
#[underlying(c_uint)]
pub enum {
NSNoInterfaceStyle = 0,
NSNextStepInterfaceStyle = 1,
NSWindows95InterfaceStyle = 2,
NSMacintoshInterfaceStyle = 3,
}
);
pub type NSInterfaceStyle = NSUInteger;
extern_fn!(
pub unsafe fn NSInterfaceStyleForKey(
key: Option<&NSString>,
responder: Option<&NSResponder>,
) -> NSInterfaceStyle;
);
extern_methods!(
unsafe impl NSResponder {
#[method(interfaceStyle)]
pub unsafe fn interfaceStyle(&self) -> NSInterfaceStyle;
#[method(setInterfaceStyle:)]
pub unsafe fn setInterfaceStyle(&self, interfaceStyle: NSInterfaceStyle);
}
);
extern_static!(NSInterfaceStyleDefault: Option<&'static NSString>);