use crate::common::*;
use crate::AppKit::*;
use crate::CoreData::*;
use crate::Foundation::*;
extern_class!(
#[derive(Debug, PartialEq, Eq, Hash)]
#[cfg(feature = "AppKit_NSTableCellView")]
pub struct NSTableCellView;
#[cfg(feature = "AppKit_NSTableCellView")]
unsafe impl ClassType for NSTableCellView {
#[inherits(NSResponder, NSObject)]
type Super = NSView;
type Mutability = MainThreadOnly;
}
);
#[cfg(feature = "AppKit_NSTableCellView")]
unsafe impl NSAccessibility for NSTableCellView {}
#[cfg(feature = "AppKit_NSTableCellView")]
unsafe impl NSAccessibilityElementProtocol for NSTableCellView {}
#[cfg(feature = "AppKit_NSTableCellView")]
unsafe impl NSAnimatablePropertyContainer for NSTableCellView {}
#[cfg(feature = "AppKit_NSTableCellView")]
unsafe impl NSAppearanceCustomization for NSTableCellView {}
#[cfg(feature = "AppKit_NSTableCellView")]
unsafe impl NSCoding for NSTableCellView {}
#[cfg(feature = "AppKit_NSTableCellView")]
unsafe impl NSDraggingDestination for NSTableCellView {}
#[cfg(feature = "AppKit_NSTableCellView")]
unsafe impl NSObjectProtocol for NSTableCellView {}
#[cfg(feature = "AppKit_NSTableCellView")]
unsafe impl NSUserInterfaceItemIdentification for NSTableCellView {}
extern_methods!(
#[cfg(feature = "AppKit_NSTableCellView")]
unsafe impl NSTableCellView {
#[method_id(@__retain_semantics Other objectValue)]
pub unsafe fn objectValue(&self) -> Option<Id<AnyObject>>;
#[method(setObjectValue:)]
pub unsafe fn setObjectValue(&self, object_value: Option<&AnyObject>);
#[cfg(feature = "AppKit_NSTextField")]
#[method_id(@__retain_semantics Other textField)]
pub unsafe fn textField(&self) -> Option<Id<NSTextField>>;
#[cfg(feature = "AppKit_NSTextField")]
#[method(setTextField:)]
pub unsafe fn setTextField(&self, text_field: Option<&NSTextField>);
#[cfg(feature = "AppKit_NSImageView")]
#[method_id(@__retain_semantics Other imageView)]
pub unsafe fn imageView(&self) -> Option<Id<NSImageView>>;
#[cfg(feature = "AppKit_NSImageView")]
#[method(setImageView:)]
pub unsafe fn setImageView(&self, image_view: Option<&NSImageView>);
#[method(backgroundStyle)]
pub unsafe fn backgroundStyle(&self) -> NSBackgroundStyle;
#[method(setBackgroundStyle:)]
pub unsafe fn setBackgroundStyle(&self, background_style: NSBackgroundStyle);
#[method(rowSizeStyle)]
pub unsafe fn rowSizeStyle(&self) -> NSTableViewRowSizeStyle;
#[method(setRowSizeStyle:)]
pub unsafe fn setRowSizeStyle(&self, row_size_style: NSTableViewRowSizeStyle);
#[cfg(all(
feature = "AppKit_NSDraggingImageComponent",
feature = "Foundation_NSArray"
))]
#[method_id(@__retain_semantics Other draggingImageComponents)]
pub unsafe fn draggingImageComponents(&self) -> Id<NSArray<NSDraggingImageComponent>>;
}
);
extern_methods!(
#[cfg(feature = "AppKit_NSTableCellView")]
unsafe impl NSTableCellView {
#[method_id(@__retain_semantics Init initWithFrame:)]
pub unsafe fn initWithFrame(this: Allocated<Self>, frame_rect: NSRect) -> Id<Self>;
#[cfg(feature = "Foundation_NSCoder")]
#[method_id(@__retain_semantics Init initWithCoder:)]
pub unsafe fn initWithCoder(this: Allocated<Self>, coder: &NSCoder) -> Option<Id<Self>>;
}
);
extern_methods!(
#[cfg(feature = "AppKit_NSTableCellView")]
unsafe impl NSTableCellView {
#[method_id(@__retain_semantics Init init)]
pub unsafe fn init(this: Allocated<Self>) -> Id<Self>;
}
);
extern_methods!(
#[cfg(feature = "AppKit_NSTableCellView")]
unsafe impl NSTableCellView {
#[method_id(@__retain_semantics New new)]
pub unsafe fn new(mtm: MainThreadMarker) -> Id<Self>;
}
);