use objc2::__framework_prelude::*;
use crate::*;
extern_class!(
#[derive(Debug, PartialEq, Eq, Hash)]
#[cfg(feature = "VZGraphicsDisplay")]
pub struct VZMacGraphicsDisplay;
#[cfg(feature = "VZGraphicsDisplay")]
unsafe impl ClassType for VZMacGraphicsDisplay {
#[inherits(NSObject)]
type Super = VZGraphicsDisplay;
type Mutability = InteriorMutable;
}
);
#[cfg(feature = "VZGraphicsDisplay")]
unsafe impl NSObjectProtocol for VZMacGraphicsDisplay {}
extern_methods!(
#[cfg(feature = "VZGraphicsDisplay")]
unsafe impl VZMacGraphicsDisplay {
#[method(pixelsPerInch)]
pub unsafe fn pixelsPerInch(&self) -> NSInteger;
}
);
extern_methods!(
#[cfg(feature = "VZGraphicsDisplay")]
unsafe impl VZMacGraphicsDisplay {
#[method_id(@__retain_semantics New new)]
pub unsafe fn new() -> Retained<Self>;
#[method_id(@__retain_semantics Init init)]
pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
}
);