objc2_link_presentation/generated/
LPLinkView.rs1use core::ffi::*;
4use core::ptr::NonNull;
5use objc2::__framework_prelude::*;
6#[cfg(feature = "objc2-app-kit")]
7#[cfg(target_os = "macos")]
8use objc2_app_kit::*;
9use objc2_foundation::*;
10
11use crate::*;
12
13extern_class!(
14 #[unsafe(super(NSView, NSResponder, NSObject))]
42 #[derive(Debug, PartialEq, Eq, Hash)]
43 #[cfg(feature = "objc2-app-kit")]
44 #[cfg(target_os = "macos")]
45 pub struct LPLinkView;
46);
47
48#[cfg(feature = "objc2-app-kit")]
49#[cfg(target_os = "macos")]
50extern_conformance!(
51 unsafe impl NSAccessibility for LPLinkView {}
52);
53
54#[cfg(feature = "objc2-app-kit")]
55#[cfg(target_os = "macos")]
56extern_conformance!(
57 unsafe impl NSAccessibilityElementProtocol for LPLinkView {}
58);
59
60#[cfg(feature = "objc2-app-kit")]
61#[cfg(target_os = "macos")]
62extern_conformance!(
63 unsafe impl NSAnimatablePropertyContainer for LPLinkView {}
64);
65
66#[cfg(feature = "objc2-app-kit")]
67#[cfg(target_os = "macos")]
68extern_conformance!(
69 unsafe impl NSAppearanceCustomization for LPLinkView {}
70);
71
72#[cfg(feature = "objc2-app-kit")]
73#[cfg(target_os = "macos")]
74extern_conformance!(
75 unsafe impl NSCoding for LPLinkView {}
76);
77
78#[cfg(feature = "objc2-app-kit")]
79#[cfg(target_os = "macos")]
80extern_conformance!(
81 unsafe impl NSDraggingDestination for LPLinkView {}
82);
83
84#[cfg(feature = "objc2-app-kit")]
85#[cfg(target_os = "macos")]
86extern_conformance!(
87 unsafe impl NSObjectProtocol for LPLinkView {}
88);
89
90#[cfg(feature = "objc2-app-kit")]
91#[cfg(target_os = "macos")]
92extern_conformance!(
93 unsafe impl NSUserInterfaceItemIdentification for LPLinkView {}
94);
95
96#[cfg(feature = "objc2-app-kit")]
97#[cfg(target_os = "macos")]
98impl LPLinkView {
99 extern_methods!(
100 #[unsafe(method(initWithCoder:))]
104 #[unsafe(method_family = init)]
105 pub unsafe fn initWithCoder(this: Allocated<Self>, coder: &NSCoder) -> Retained<Self>;
106
107 #[unsafe(method(encodeWithCoder:))]
111 #[unsafe(method_family = none)]
112 pub unsafe fn encodeWithCoder(&self, coder: &NSCoder);
113
114 #[unsafe(method(initWithURL:))]
116 #[unsafe(method_family = init)]
117 pub unsafe fn initWithURL(this: Allocated<Self>, url: &NSURL) -> Retained<Self>;
118
119 #[cfg(feature = "LPLinkMetadata")]
120 #[unsafe(method(initWithMetadata:))]
122 #[unsafe(method_family = init)]
123 pub unsafe fn initWithMetadata(
124 this: Allocated<Self>,
125 metadata: &LPLinkMetadata,
126 ) -> Retained<Self>;
127
128 #[cfg(feature = "LPLinkMetadata")]
129 #[unsafe(method(metadata))]
134 #[unsafe(method_family = none)]
135 pub unsafe fn metadata(&self) -> Retained<LPLinkMetadata>;
136
137 #[cfg(feature = "LPLinkMetadata")]
138 #[unsafe(method(setMetadata:))]
142 #[unsafe(method_family = none)]
143 pub unsafe fn setMetadata(&self, metadata: &LPLinkMetadata);
144 );
145}
146
147#[cfg(feature = "objc2-app-kit")]
149#[cfg(target_os = "macos")]
150impl LPLinkView {
151 extern_methods!(
152 #[unsafe(method(initWithFrame:))]
153 #[unsafe(method_family = init)]
154 pub unsafe fn initWithFrame(this: Allocated<Self>, frame_rect: NSRect) -> Retained<Self>;
155 );
156}
157
158#[cfg(feature = "objc2-app-kit")]
160#[cfg(target_os = "macos")]
161impl LPLinkView {
162 extern_methods!(
163 #[unsafe(method(init))]
164 #[unsafe(method_family = init)]
165 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
166 );
167}
168
169#[cfg(feature = "objc2-app-kit")]
171#[cfg(target_os = "macos")]
172impl LPLinkView {
173 extern_methods!(
174 #[unsafe(method(new))]
175 #[unsafe(method_family = new)]
176 pub unsafe fn new(mtm: MainThreadMarker) -> Retained<Self>;
177 );
178}