use crate::common::*;
use crate::AppKit::*;
use crate::BusinessChat::*;
use crate::Foundation::*;
ns_enum!(
#[underlying(NSInteger)]
#[deprecated]
pub enum BCChatButtonStyle {
#[deprecated]
BCChatButtonStyleLight = 0,
#[deprecated]
BCChatButtonStyleDark = 1,
}
);
extern_class!(
#[derive(Debug, PartialEq, Eq, Hash)]
#[cfg(feature = "BusinessChat_BCChatButton")]
#[deprecated]
pub struct BCChatButton;
#[cfg(feature = "BusinessChat_BCChatButton")]
unsafe impl ClassType for BCChatButton {
#[inherits(NSView, NSResponder, NSObject)]
type Super = NSControl;
type Mutability = MainThreadOnly;
}
);
#[cfg(feature = "BusinessChat_BCChatButton")]
unsafe impl NSAccessibility for BCChatButton {}
#[cfg(feature = "BusinessChat_BCChatButton")]
unsafe impl NSAccessibilityElementProtocol for BCChatButton {}
#[cfg(feature = "BusinessChat_BCChatButton")]
unsafe impl NSAnimatablePropertyContainer for BCChatButton {}
#[cfg(feature = "BusinessChat_BCChatButton")]
unsafe impl NSAppearanceCustomization for BCChatButton {}
#[cfg(feature = "BusinessChat_BCChatButton")]
unsafe impl NSCoding for BCChatButton {}
#[cfg(feature = "BusinessChat_BCChatButton")]
unsafe impl NSDraggingDestination for BCChatButton {}
#[cfg(feature = "BusinessChat_BCChatButton")]
unsafe impl NSObjectProtocol for BCChatButton {}
#[cfg(feature = "BusinessChat_BCChatButton")]
unsafe impl NSUserInterfaceItemIdentification for BCChatButton {}
extern_methods!(
#[cfg(feature = "BusinessChat_BCChatButton")]
unsafe impl BCChatButton {
#[deprecated]
#[method_id(@__retain_semantics Init initWithStyle:)]
pub unsafe fn initWithStyle(this: Allocated<Self>, style: BCChatButtonStyle) -> Id<Self>;
#[cfg(feature = "Foundation_NSCoder")]
#[deprecated]
#[method_id(@__retain_semantics Init initWithCoder:)]
pub unsafe fn initWithCoder(this: Allocated<Self>, coder: &NSCoder) -> Option<Id<Self>>;
}
);
extern_methods!(
#[cfg(feature = "BusinessChat_BCChatButton")]
unsafe impl BCChatButton {
#[method_id(@__retain_semantics Init initWithFrame:)]
pub unsafe fn initWithFrame(this: Allocated<Self>, frame_rect: NSRect) -> Id<Self>;
}
);
extern_methods!(
#[cfg(feature = "BusinessChat_BCChatButton")]
unsafe impl BCChatButton {
#[method_id(@__retain_semantics Init init)]
pub unsafe fn init(this: Allocated<Self>) -> Id<Self>;
}
);
extern_methods!(
#[cfg(feature = "BusinessChat_BCChatButton")]
unsafe impl BCChatButton {
#[method_id(@__retain_semantics New new)]
pub unsafe fn new(mtm: MainThreadMarker) -> Id<Self>;
}
);