use core::ffi::*;
use core::ptr::NonNull;
use objc2::__framework_prelude::*;
use objc2_foundation::*;
use crate::*;
extern_class!(
#[unsafe(super(VZGraphicsDisplayConfiguration, NSObject))]
#[derive(Debug, PartialEq, Eq, Hash)]
#[cfg(feature = "VZGraphicsDisplayConfiguration")]
pub struct VZVirtioGraphicsScanoutConfiguration;
);
#[cfg(feature = "VZGraphicsDisplayConfiguration")]
extern_conformance!(
unsafe impl NSCopying for VZVirtioGraphicsScanoutConfiguration {}
);
#[cfg(feature = "VZGraphicsDisplayConfiguration")]
unsafe impl CopyingHelper for VZVirtioGraphicsScanoutConfiguration {
type Result = Self;
}
#[cfg(feature = "VZGraphicsDisplayConfiguration")]
extern_conformance!(
unsafe impl NSObjectProtocol for VZVirtioGraphicsScanoutConfiguration {}
);
#[cfg(feature = "VZGraphicsDisplayConfiguration")]
impl VZVirtioGraphicsScanoutConfiguration {
extern_methods!(
#[unsafe(method(initWithWidthInPixels:heightInPixels:))]
#[unsafe(method_family = init)]
pub unsafe fn initWithWidthInPixels_heightInPixels(
this: Allocated<Self>,
width_in_pixels: NSInteger,
height_in_pixels: NSInteger,
) -> Retained<Self>;
#[unsafe(method(widthInPixels))]
#[unsafe(method_family = none)]
pub unsafe fn widthInPixels(&self) -> NSInteger;
#[unsafe(method(setWidthInPixels:))]
#[unsafe(method_family = none)]
pub unsafe fn setWidthInPixels(&self, width_in_pixels: NSInteger);
#[unsafe(method(heightInPixels))]
#[unsafe(method_family = none)]
pub unsafe fn heightInPixels(&self) -> NSInteger;
#[unsafe(method(setHeightInPixels:))]
#[unsafe(method_family = none)]
pub unsafe fn setHeightInPixels(&self, height_in_pixels: NSInteger);
);
}
#[cfg(feature = "VZGraphicsDisplayConfiguration")]
impl VZVirtioGraphicsScanoutConfiguration {
extern_methods!(
#[unsafe(method(new))]
#[unsafe(method_family = new)]
pub unsafe fn new() -> Retained<Self>;
#[unsafe(method(init))]
#[unsafe(method_family = init)]
pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
);
}