use crate::common::*;
use crate::AppKit::*;
use crate::CoreData::*;
use crate::Foundation::*;
extern_class!(
#[derive(Debug, PartialEq, Eq, Hash)]
pub struct NSColorPicker;
unsafe impl ClassType for NSColorPicker {
type Super = NSObject;
}
);
extern_methods!(
unsafe impl NSColorPicker {
#[method_id(@__retain_semantics Init initWithPickerMask:colorPanel:)]
pub unsafe fn initWithPickerMask_colorPanel(
this: Option<Allocated<Self>>,
mask: NSUInteger,
owningColorPanel: &NSColorPanel,
) -> Option<Id<Self, Shared>>;
#[method_id(@__retain_semantics Other colorPanel)]
pub unsafe fn colorPanel(&self) -> Id<NSColorPanel, Shared>;
#[method_id(@__retain_semantics Other provideNewButtonImage)]
pub unsafe fn provideNewButtonImage(&self) -> Id<NSImage, Shared>;
#[method(insertNewButtonImage:in:)]
pub unsafe fn insertNewButtonImage_in(
&self,
newButtonImage: &NSImage,
buttonCell: &NSButtonCell,
);
#[method(viewSizeChanged:)]
pub unsafe fn viewSizeChanged(&self, sender: Option<&Object>);
#[method(attachColorList:)]
pub unsafe fn attachColorList(&self, colorList: &NSColorList);
#[method(detachColorList:)]
pub unsafe fn detachColorList(&self, colorList: &NSColorList);
#[method(setMode:)]
pub unsafe fn setMode(&self, mode: NSColorPanelMode);
#[method_id(@__retain_semantics Other buttonToolTip)]
pub unsafe fn buttonToolTip(&self) -> Id<NSString, Shared>;
#[method(minContentSize)]
pub unsafe fn minContentSize(&self) -> NSSize;
}
);