use crate::common::*;
use crate::AppKit::*;
use crate::CoreData::*;
use crate::Foundation::*;
extern_class!(
#[derive(Debug, PartialEq, Eq, Hash)]
pub struct NSTableHeaderCell;
unsafe impl ClassType for NSTableHeaderCell {
#[inherits(NSActionCell, NSCell, NSObject)]
type Super = NSTextFieldCell;
}
);
extern_methods!(
unsafe impl NSTableHeaderCell {
#[method(drawSortIndicatorWithFrame:inView:ascending:priority:)]
pub unsafe fn drawSortIndicatorWithFrame_inView_ascending_priority(
&self,
cellFrame: NSRect,
controlView: &NSView,
ascending: bool,
priority: NSInteger,
);
#[method(sortIndicatorRectForBounds:)]
pub unsafe fn sortIndicatorRectForBounds(&self, rect: NSRect) -> NSRect;
}
);
extern_methods!(
unsafe impl NSTableHeaderCell {
#[method_id(@__retain_semantics Init initTextCell:)]
pub unsafe fn initTextCell(
this: Option<Allocated<Self>>,
string: &NSString,
) -> Id<Self, Shared>;
#[method_id(@__retain_semantics Init initImageCell:)]
pub unsafe fn initImageCell(
this: Option<Allocated<Self>>,
image: Option<&NSImage>,
) -> Id<Self, Shared>;
}
);