use crate::common::*;
use crate::AppKit::*;
use crate::CoreData::*;
use crate::Foundation::*;
extern_class!(
#[derive(Debug, PartialEq, Eq, Hash)]
pub struct NSColorWell;
unsafe impl ClassType for NSColorWell {
#[inherits(NSView, NSResponder, NSObject)]
type Super = NSControl;
}
);
extern_methods!(
unsafe impl NSColorWell {
#[method(deactivate)]
pub unsafe fn deactivate(&self);
#[method(activate:)]
pub unsafe fn activate(&self, exclusive: bool);
#[method(isActive)]
pub unsafe fn isActive(&self) -> bool;
#[method(drawWellInside:)]
pub unsafe fn drawWellInside(&self, insideRect: NSRect);
#[method(isBordered)]
pub unsafe fn isBordered(&self) -> bool;
#[method(setBordered:)]
pub unsafe fn setBordered(&self, bordered: bool);
#[method(takeColorFrom:)]
pub unsafe fn takeColorFrom(&self, sender: Option<&Object>);
#[method_id(@__retain_semantics Other color)]
pub unsafe fn color(&self) -> Id<NSColor, Shared>;
#[method(setColor:)]
pub unsafe fn setColor(&self, color: &NSColor);
}
);
extern_methods!(
unsafe impl NSColorWell {
#[method_id(@__retain_semantics Init initWithFrame:)]
pub unsafe fn initWithFrame(
this: Option<Allocated<Self>>,
frameRect: NSRect,
) -> Id<Self, Shared>;
}
);