use core::ffi::*;
use core::ptr::NonNull;
use objc2::__framework_prelude::*;
use objc2_foundation::*;
use crate::*;
extern_class!(
#[unsafe(super(NSObject))]
#[derive(Debug, PartialEq, Eq, Hash)]
pub struct INImage;
);
extern_conformance!(
unsafe impl NSCoding for INImage {}
);
extern_conformance!(
unsafe impl NSCopying for INImage {}
);
unsafe impl CopyingHelper for INImage {
type Result = Self;
}
extern_conformance!(
unsafe impl NSObjectProtocol for INImage {}
);
extern_conformance!(
unsafe impl NSSecureCoding for INImage {}
);
impl INImage {
extern_methods!(
#[unsafe(method(imageNamed:))]
#[unsafe(method_family = none)]
pub unsafe fn imageNamed(name: &NSString) -> Retained<Self>;
#[unsafe(method(systemImageNamed:))]
#[unsafe(method_family = none)]
pub unsafe fn systemImageNamed(system_image_name: &NSString) -> Retained<Self>;
#[unsafe(method(imageWithImageData:))]
#[unsafe(method_family = none)]
pub unsafe fn imageWithImageData(image_data: &NSData) -> Retained<Self>;
#[unsafe(method(imageWithURL:))]
#[unsafe(method_family = none)]
pub unsafe fn imageWithURL(url: &NSURL) -> Option<Retained<Self>>;
#[unsafe(method(imageWithURL:width:height:))]
#[unsafe(method_family = none)]
pub unsafe fn imageWithURL_width_height(
url: &NSURL,
width: c_double,
height: c_double,
) -> Option<Retained<Self>>;
);
}
impl INImage {
extern_methods!(
#[unsafe(method(init))]
#[unsafe(method_family = init)]
pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
#[unsafe(method(new))]
#[unsafe(method_family = new)]
pub unsafe fn new() -> Retained<Self>;
);
}