objc2_virtualization/generated/
VZSpiceAgentPortAttachment.rs1use core::ffi::*;
4use core::ptr::NonNull;
5use objc2::__framework_prelude::*;
6use objc2_foundation::*;
7
8use crate::*;
9
10extern_class!(
11 #[unsafe(super(VZSerialPortAttachment, NSObject))]
13 #[derive(Debug, PartialEq, Eq, Hash)]
14 #[cfg(feature = "VZSerialPortAttachment")]
15 pub struct VZSpiceAgentPortAttachment;
16);
17
18#[cfg(feature = "VZSerialPortAttachment")]
19extern_conformance!(
20 unsafe impl NSObjectProtocol for VZSpiceAgentPortAttachment {}
21);
22
23#[cfg(feature = "VZSerialPortAttachment")]
24impl VZSpiceAgentPortAttachment {
25 extern_methods!(
26 #[unsafe(method(init))]
27 #[unsafe(method_family = init)]
28 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
29
30 #[unsafe(method(sharesClipboard))]
37 #[unsafe(method_family = none)]
38 pub unsafe fn sharesClipboard(&self) -> bool;
39
40 #[unsafe(method(setSharesClipboard:))]
42 #[unsafe(method_family = none)]
43 pub unsafe fn setSharesClipboard(&self, shares_clipboard: bool);
44
45 #[unsafe(method(spiceAgentPortName))]
52 #[unsafe(method_family = none)]
53 pub unsafe fn spiceAgentPortName() -> Retained<NSString>;
54 );
55}
56
57#[cfg(feature = "VZSerialPortAttachment")]
59impl VZSpiceAgentPortAttachment {
60 extern_methods!(
61 #[unsafe(method(new))]
62 #[unsafe(method_family = new)]
63 pub unsafe fn new() -> Retained<Self>;
64 );
65}