icrate 0.0.1

Bindings to Apple's frameworks
Documentation
//! This file has been automatically generated by `objc2`'s `header-translator`.
//! DO NOT EDIT
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!(
    /// NSInterfaceStyle
    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>);