use crate::common::*;
use crate::AppKit::*;
use crate::Foundation::*;
use crate::InputMethodKit::*;
extern_class!(
#[derive(Debug, PartialEq, Eq, Hash)]
#[cfg(feature = "InputMethodKit_IMKServer")]
pub struct IMKServer;
#[cfg(feature = "InputMethodKit_IMKServer")]
unsafe impl ClassType for IMKServer {
type Super = NSObject;
type Mutability = InteriorMutable;
}
);
#[cfg(feature = "InputMethodKit_IMKServer")]
unsafe impl NSObjectProtocol for IMKServer {}
extern_methods!(
#[cfg(feature = "InputMethodKit_IMKServer")]
unsafe impl IMKServer {
#[cfg(feature = "Foundation_NSString")]
#[method_id(@__retain_semantics Init initWithName:bundleIdentifier:)]
pub unsafe fn initWithName_bundleIdentifier(
this: Allocated<Self>,
name: Option<&NSString>,
bundle_identifier: Option<&NSString>,
) -> Option<Id<Self>>;
#[cfg(feature = "Foundation_NSString")]
#[method_id(@__retain_semantics Init initWithName:controllerClass:delegateClass:)]
pub unsafe fn initWithName_controllerClass_delegateClass(
this: Allocated<Self>,
name: Option<&NSString>,
controller_class_id: Option<&AnyClass>,
delegate_class_id: Option<&AnyClass>,
) -> Option<Id<Self>>;
#[cfg(feature = "Foundation_NSBundle")]
#[method_id(@__retain_semantics Other bundle)]
pub unsafe fn bundle(&self) -> Option<Id<NSBundle>>;
#[method(paletteWillTerminate)]
pub unsafe fn paletteWillTerminate(&self) -> bool;
#[method(lastKeyEventWasDeadKey)]
pub unsafe fn lastKeyEventWasDeadKey(&self) -> bool;
}
);
extern_methods!(
#[cfg(feature = "InputMethodKit_IMKServer")]
unsafe impl IMKServer {
#[method_id(@__retain_semantics Init init)]
pub unsafe fn init(this: Allocated<Self>) -> Id<Self>;
#[method_id(@__retain_semantics New new)]
pub unsafe fn new() -> Id<Self>;
}
);