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")]
31unsafe impl NSObjectProtocol for VZMacGraphicsDevice {}
32
33#[cfg(feature = "VZGraphicsDevice")]
34impl VZMacGraphicsDevice {
35 extern_methods!();
36}
37
38/// Methods declared on superclass `VZGraphicsDevice`.
39#[cfg(feature = "VZGraphicsDevice")]
40impl VZMacGraphicsDevice {
41 extern_methods!(
42 #[unsafe(method(new))]
43 #[unsafe(method_family = new)]
44 pub unsafe fn new() -> Retained<Self>;
45
46 #[unsafe(method(init))]
47 #[unsafe(method_family = init)]
48 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
49 );
50}