1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
//! This file has been automatically generated by `objc2`'s `header-translator`.
//! DO NOT EDIT
use core::ptr::NonNull;
use objc2::__framework_prelude::*;
use objc2_foundation::*;
use crate::*;
extern_class!(
/// Configuration for a Mac keyboard.
///
/// This device can be used by VZVirtualMachineView to send keyboard events to the virtual machine.
/// This keyboard supports Apple-specific features such as the globe key.
/// Note: this device is only recognized by virtual machines running macOS 13.0 and later. In order to support both macOS 13.0 and earlier
/// guests, VZVirtualMachineConfiguration.keyboards can be set to an array containing both a VZMacKeyboardConfiguration and
/// a VZUSBKeyboardConfiguration object. macOS 13.0 and later guests will use the Mac keyboard device,
/// while earlier versions of macOS will use the USB keyboard device.
///
/// See also [Apple's documentation](https://developer.apple.com/documentation/virtualization/vzmackeyboardconfiguration?language=objc)
#[unsafe(super(VZKeyboardConfiguration, NSObject))]
#[derive(Debug, PartialEq, Eq, Hash)]
#[cfg(feature = "VZKeyboardConfiguration")]
pub struct VZMacKeyboardConfiguration;
);
#[cfg(feature = "VZKeyboardConfiguration")]
extern_conformance!(
unsafe impl NSCopying for VZMacKeyboardConfiguration {}
);
#[cfg(feature = "VZKeyboardConfiguration")]
unsafe impl CopyingHelper for VZMacKeyboardConfiguration {
type Result = Self;
}
#[cfg(feature = "VZKeyboardConfiguration")]
extern_conformance!(
unsafe impl NSObjectProtocol for VZMacKeyboardConfiguration {}
);
#[cfg(feature = "VZKeyboardConfiguration")]
impl VZMacKeyboardConfiguration {
extern_methods!(
#[unsafe(method(init))]
#[unsafe(method_family = init)]
pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
);
}
/// Methods declared on superclass `VZKeyboardConfiguration`.
#[cfg(feature = "VZKeyboardConfiguration")]
impl VZMacKeyboardConfiguration {
extern_methods!(
#[unsafe(method(new))]
#[unsafe(method_family = new)]
pub unsafe fn new() -> Retained<Self>;
);
}