use objc2::__framework_prelude::*;
#[cfg(feature = "objc2-app-kit")]
use objc2_app_kit::*;
use objc2_foundation::*;
use crate::*;
extern_class!(
#[derive(Debug, PartialEq, Eq, Hash)]
#[cfg(feature = "VZGraphicsDisplayConfiguration")]
pub struct VZMacGraphicsDisplayConfiguration;
#[cfg(feature = "VZGraphicsDisplayConfiguration")]
unsafe impl ClassType for VZMacGraphicsDisplayConfiguration {
#[inherits(NSObject)]
type Super = VZGraphicsDisplayConfiguration;
type Mutability = InteriorMutable;
}
);
#[cfg(feature = "VZGraphicsDisplayConfiguration")]
unsafe impl NSCopying for VZMacGraphicsDisplayConfiguration {}
#[cfg(feature = "VZGraphicsDisplayConfiguration")]
unsafe impl NSObjectProtocol for VZMacGraphicsDisplayConfiguration {}
extern_methods!(
#[cfg(feature = "VZGraphicsDisplayConfiguration")]
unsafe impl VZMacGraphicsDisplayConfiguration {
#[method_id(@__retain_semantics Init initWithWidthInPixels:heightInPixels:pixelsPerInch:)]
pub unsafe fn initWithWidthInPixels_heightInPixels_pixelsPerInch(
this: Allocated<Self>,
width_in_pixels: NSInteger,
height_in_pixels: NSInteger,
pixels_per_inch: NSInteger,
) -> Retained<Self>;
#[cfg(feature = "objc2-app-kit")]
#[method_id(@__retain_semantics Init initForScreen:sizeInPoints:)]
pub unsafe fn initForScreen_sizeInPoints(
this: Allocated<Self>,
screen: &NSScreen,
size_in_points: NSSize,
) -> Retained<Self>;
#[method(widthInPixels)]
pub unsafe fn widthInPixels(&self) -> NSInteger;
#[method(setWidthInPixels:)]
pub unsafe fn setWidthInPixels(&self, width_in_pixels: NSInteger);
#[method(heightInPixels)]
pub unsafe fn heightInPixels(&self) -> NSInteger;
#[method(setHeightInPixels:)]
pub unsafe fn setHeightInPixels(&self, height_in_pixels: NSInteger);
#[method(pixelsPerInch)]
pub unsafe fn pixelsPerInch(&self) -> NSInteger;
#[method(setPixelsPerInch:)]
pub unsafe fn setPixelsPerInch(&self, pixels_per_inch: NSInteger);
}
);
extern_methods!(
#[cfg(feature = "VZGraphicsDisplayConfiguration")]
unsafe impl VZMacGraphicsDisplayConfiguration {
#[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>;
}
);