//! This file has been automatically generated by `objc2`'s `header-translator`.
//! DO NOT EDIT
use crate::common::*;
use crate::AppKit::*;
use crate::CoreData::*;
use crate::Foundation::*;

extern_class!(
    #[derive(Debug, PartialEq, Eq, Hash)]
    #[cfg(feature = "AppKit_NSColorSampler")]
    pub struct NSColorSampler;

    #[cfg(feature = "AppKit_NSColorSampler")]
    unsafe impl ClassType for NSColorSampler {
        type Super = NSObject;
        type Mutability = InteriorMutable;
    }
);

#[cfg(feature = "AppKit_NSColorSampler")]
unsafe impl NSObjectProtocol for NSColorSampler {}

extern_methods!(
    #[cfg(feature = "AppKit_NSColorSampler")]
    unsafe impl NSColorSampler {
        #[cfg(feature = "AppKit_NSColor")]
        #[method(showSamplerWithSelectionHandler:)]
        pub unsafe fn showSamplerWithSelectionHandler(
            &self,
            selection_handler: &Block<(*mut NSColor,), ()>,
        );
    }
);

extern_methods!(
    /// Methods declared on superclass `NSObject`
    #[cfg(feature = "AppKit_NSColorSampler")]
    unsafe impl NSColorSampler {
        #[method_id(@__retain_semantics Init init)]
        pub unsafe fn init(this: Option<Allocated<Self>>) -> Id<Self>;

        #[method_id(@__retain_semantics New new)]
        pub unsafe fn new() -> Id<Self>;
    }
);
