objc2_virtualization/generated/
VZMacGraphicsDevice.rs

1//! This file has been automatically generated by `objc2`'s `header-translator`.
2//! DO NOT EDIT
3use core::ptr::NonNull;
4use objc2::__framework_prelude::*;
5
6use crate::*;
7
8extern_class!(
9    /// A Mac graphics device.
10    ///
11    /// The VZMacGraphicsDevice is the runtime counterpart of VZMacGraphicsDeviceConfiguration.
12    ///
13    /// For example, if a `VZVirtualMachineConfiguration.graphicsDevices[0]` is an instance of `VZMacGraphicsDeviceConfiguration`, when creating the virtual Mac, the `VZVirtualMachine.graphicsDevices[0]` is the corresponding `VZMacGraphicsDevice`.
14    ///
15    /// An important property is the `displays` inherited from `VZGraphicsDevice`. It provides the list of displays on the graphics device,
16    /// each corresponding to the display configuration set on `VZMacGraphicsDeviceConfiguration`.
17    ///
18    ///
19    /// See: VZMacGraphicsDeviceConfiguration
20    ///
21    /// See: VZGraphicsDevice.displays
22    ///
23    /// See also [Apple's documentation](https://developer.apple.com/documentation/virtualization/vzmacgraphicsdevice?language=objc)
24    #[unsafe(super(VZGraphicsDevice, NSObject))]
25    #[derive(Debug, PartialEq, Eq, Hash)]
26    #[cfg(feature = "VZGraphicsDevice")]
27    pub struct VZMacGraphicsDevice;
28);
29
30#[cfg(feature = "VZGraphicsDevice")]
31extern_conformance!(
32    unsafe impl NSObjectProtocol for VZMacGraphicsDevice {}
33);
34
35#[cfg(feature = "VZGraphicsDevice")]
36impl VZMacGraphicsDevice {
37    extern_methods!();
38}
39
40/// Methods declared on superclass `VZGraphicsDevice`.
41#[cfg(feature = "VZGraphicsDevice")]
42impl VZMacGraphicsDevice {
43    extern_methods!(
44        #[unsafe(method(new))]
45        #[unsafe(method_family = new)]
46        pub unsafe fn new() -> Retained<Self>;
47
48        #[unsafe(method(init))]
49        #[unsafe(method_family = init)]
50        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
51    );
52}