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 NSPICTImageRep;

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

extern_methods!(
    unsafe impl NSPICTImageRep {
        #[method_id(@__retain_semantics Other imageRepWithData:)]
        pub unsafe fn imageRepWithData(pictData: &NSData) -> Option<Id<Self, Shared>>;

        #[method_id(@__retain_semantics Init initWithData:)]
        pub unsafe fn initWithData(
            this: Option<Allocated<Self>>,
            pictData: &NSData,
        ) -> Option<Id<Self, Shared>>;

        #[method_id(@__retain_semantics Other PICTRepresentation)]
        pub unsafe fn PICTRepresentation(&self) -> Id<NSData, Shared>;

        #[method(boundingBox)]
        pub unsafe fn boundingBox(&self) -> NSRect;
    }
);