icrate 0.0.1

Bindings to Apple's frameworks
Documentation
//! 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)]
    pub struct NSCustomImageRep;

    unsafe impl ClassType for NSCustomImageRep {
        #[inherits(NSObject)]
        type Super = NSImageRep;
    }
);

extern_methods!(
    unsafe impl NSCustomImageRep {
        #[method_id(@__retain_semantics Init initWithSize:flipped:drawingHandler:)]
        pub unsafe fn initWithSize_flipped_drawingHandler(
            this: Option<Allocated<Self>>,
            size: NSSize,
            drawingHandlerShouldBeCalledWithFlippedContext: bool,
            drawingHandler: &Block<(NSRect,), Bool>,
        ) -> Id<Self, Shared>;

        #[method(drawingHandler)]
        pub unsafe fn drawingHandler(&self) -> *mut Block<(NSRect,), Bool>;

        #[method_id(@__retain_semantics Init initWithDrawSelector:delegate:)]
        pub unsafe fn initWithDrawSelector_delegate(
            this: Option<Allocated<Self>>,
            selector: Sel,
            delegate: &Object,
        ) -> Id<Self, Shared>;

        #[method(drawSelector)]
        pub unsafe fn drawSelector(&self) -> Option<Sel>;

        #[method_id(@__retain_semantics Other delegate)]
        pub unsafe fn delegate(&self) -> Option<Id<Object, Shared>>;
    }
);