objc2_virtualization/generated/VZVirtioGraphicsScanout.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 /// Class representing a Virtio graphics device scanout.
10 ///
11 /// The VZVirtioGraphicsScanout is the runtime counterpart of VZVirtioGraphicsScanoutConfiguration.
12 ///
13 /// When a graphics device is configured with class VZVirtioGraphicsScanoutConfiguration,
14 /// the VZGraphicsDevice's displays are in the same order as their configuration objects and they have the type VZVirtioGraphicsScanout.
15 ///
16 /// For example, if when setting up a virtual machine, its `VZVirtioGraphicsDeviceConfiguration.scanouts[0]` is a `VZVirtioGraphicsScanoutConfiguration`,
17 /// then after creating a virtual machine from the configuration, the `VZVirtualMachine.graphicsDevices` is a `VZVirtioGraphicsDevice`.
18 /// The `VZVirtioGraphicsDevice.displays[0]` is a `VZVirtioGraphicsScanout` corresponding to the `VZVirtioGraphicsScanoutConfiguration` in the configuration.
19 ///
20 ///
21 /// See: VZVirtioGraphicsScanoutConfiguration
22 ///
23 /// See: VZGraphicsDisplay
24 ///
25 /// See: VZGraphicsDevice
26 ///
27 /// See also [Apple's documentation](https://developer.apple.com/documentation/virtualization/vzvirtiographicsscanout?language=objc)
28 #[unsafe(super(VZGraphicsDisplay, NSObject))]
29 #[derive(Debug, PartialEq, Eq, Hash)]
30 #[cfg(feature = "VZGraphicsDisplay")]
31 pub struct VZVirtioGraphicsScanout;
32);
33
34#[cfg(feature = "VZGraphicsDisplay")]
35extern_conformance!(
36 unsafe impl NSObjectProtocol for VZVirtioGraphicsScanout {}
37);
38
39#[cfg(feature = "VZGraphicsDisplay")]
40impl VZVirtioGraphicsScanout {
41 extern_methods!();
42}
43
44/// Methods declared on superclass `VZGraphicsDisplay`.
45#[cfg(feature = "VZGraphicsDisplay")]
46impl VZVirtioGraphicsScanout {
47 extern_methods!(
48 #[unsafe(method(new))]
49 #[unsafe(method_family = new)]
50 pub unsafe fn new() -> Retained<Self>;
51
52 #[unsafe(method(init))]
53 #[unsafe(method_family = init)]
54 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
55 );
56}