objc2_ui_kit/generated/
UIEventAttributionView.rs1use core::ptr::NonNull;
4use objc2::__framework_prelude::*;
5#[cfg(feature = "objc2-core-foundation")]
6use objc2_core_foundation::*;
7use objc2_foundation::*;
8#[cfg(feature = "objc2-quartz-core")]
9#[cfg(not(target_os = "watchos"))]
10use objc2_quartz_core::*;
11
12use crate::*;
13
14extern_class!(
15 #[unsafe(super(UIView, UIResponder, NSObject))]
17 #[thread_kind = MainThreadOnly]
18 #[derive(Debug, PartialEq, Eq, Hash)]
19 #[cfg(all(feature = "UIResponder", feature = "UIView"))]
20 pub struct UIEventAttributionView;
21);
22
23#[cfg(all(
24 feature = "UIResponder",
25 feature = "UIView",
26 feature = "objc2-quartz-core"
27))]
28#[cfg(not(target_os = "watchos"))]
29extern_conformance!(
30 unsafe impl CALayerDelegate for UIEventAttributionView {}
31);
32
33#[cfg(all(feature = "UIResponder", feature = "UIView"))]
34extern_conformance!(
35 unsafe impl NSCoding for UIEventAttributionView {}
36);
37
38#[cfg(all(feature = "UIResponder", feature = "UIView"))]
39extern_conformance!(
40 unsafe impl NSObjectProtocol for UIEventAttributionView {}
41);
42
43#[cfg(all(feature = "UIAppearance", feature = "UIResponder", feature = "UIView"))]
44extern_conformance!(
45 unsafe impl UIAppearance for UIEventAttributionView {}
46);
47
48#[cfg(all(feature = "UIAppearance", feature = "UIResponder", feature = "UIView"))]
49extern_conformance!(
50 unsafe impl UIAppearanceContainer for UIEventAttributionView {}
51);
52
53#[cfg(all(feature = "UIResponder", feature = "UIView"))]
54extern_conformance!(
55 unsafe impl UICoordinateSpace for UIEventAttributionView {}
56);
57
58#[cfg(all(
59 feature = "UIDynamicBehavior",
60 feature = "UIResponder",
61 feature = "UIView"
62))]
63extern_conformance!(
64 unsafe impl UIDynamicItem for UIEventAttributionView {}
65);
66
67#[cfg(all(feature = "UIFocus", feature = "UIResponder", feature = "UIView"))]
68extern_conformance!(
69 unsafe impl UIFocusEnvironment for UIEventAttributionView {}
70);
71
72#[cfg(all(feature = "UIFocus", feature = "UIResponder", feature = "UIView"))]
73extern_conformance!(
74 unsafe impl UIFocusItem for UIEventAttributionView {}
75);
76
77#[cfg(all(feature = "UIFocus", feature = "UIResponder", feature = "UIView"))]
78extern_conformance!(
79 unsafe impl UIFocusItemContainer for UIEventAttributionView {}
80);
81
82#[cfg(all(feature = "UIResponder", feature = "UIView"))]
83extern_conformance!(
84 unsafe impl UIResponderStandardEditActions for UIEventAttributionView {}
85);
86
87#[cfg(all(
88 feature = "UIResponder",
89 feature = "UITraitCollection",
90 feature = "UIView"
91))]
92extern_conformance!(
93 unsafe impl UITraitEnvironment for UIEventAttributionView {}
94);
95
96#[cfg(all(feature = "UIResponder", feature = "UIView"))]
97impl UIEventAttributionView {
98 extern_methods!();
99}
100
101#[cfg(all(feature = "UIResponder", feature = "UIView"))]
103impl UIEventAttributionView {
104 extern_methods!(
105 #[cfg(feature = "objc2-core-foundation")]
106 #[unsafe(method(initWithFrame:))]
107 #[unsafe(method_family = init)]
108 pub unsafe fn initWithFrame(this: Allocated<Self>, frame: CGRect) -> Retained<Self>;
109
110 #[unsafe(method(initWithCoder:))]
111 #[unsafe(method_family = init)]
112 pub unsafe fn initWithCoder(
113 this: Allocated<Self>,
114 coder: &NSCoder,
115 ) -> Option<Retained<Self>>;
116 );
117}
118
119#[cfg(all(feature = "UIResponder", feature = "UIView"))]
121impl UIEventAttributionView {
122 extern_methods!(
123 #[unsafe(method(init))]
124 #[unsafe(method_family = init)]
125 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
126
127 #[unsafe(method(new))]
128 #[unsafe(method_family = new)]
129 pub unsafe fn new(mtm: MainThreadMarker) -> Retained<Self>;
130 );
131}