objc2_virtualization/generated/VZVirtioGraphicsDevice.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 Virtio graphics device.
10 ///
11 /// The VZVirtioGraphicsDevice is the runtime counterpart of VZVirtioGraphicsDeviceConfiguration.
12 ///
13 /// For example, if a `VZVirtualMachineConfiguration.graphicsDevices[0]` is an instance of `VZVirtioGraphicsDeviceConfiguration`, when creating the virtual machine, the `VZVirtualMachine.graphicsDevices[0]` is the corresponding `VZVirtioGraphicsDevice`.
14 ///
15 /// An important property is the `displays` inherited from `VZGraphicsDevice`. It provides the list of scanouts on the graphics device,
16 /// each corresponding to the scanout configuration set on `VZVirtioGraphicsDeviceConfiguration`.
17 ///
18 ///
19 /// See: VZVirtioGraphicsDeviceConfiguration
20 ///
21 /// See: VZGraphicsDevice.displays
22 ///
23 /// See also [Apple's documentation](https://developer.apple.com/documentation/virtualization/vzvirtiographicsdevice?language=objc)
24 #[unsafe(super(VZGraphicsDevice, NSObject))]
25 #[derive(Debug, PartialEq, Eq, Hash)]
26 #[cfg(feature = "VZGraphicsDevice")]
27 pub struct VZVirtioGraphicsDevice;
28);
29
30#[cfg(feature = "VZGraphicsDevice")]
31extern_conformance!(
32 unsafe impl NSObjectProtocol for VZVirtioGraphicsDevice {}
33);
34
35#[cfg(feature = "VZGraphicsDevice")]
36impl VZVirtioGraphicsDevice {
37 extern_methods!();
38}
39
40/// Methods declared on superclass `VZGraphicsDevice`.
41#[cfg(feature = "VZGraphicsDevice")]
42impl VZVirtioGraphicsDevice {
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}