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"))]
29unsafe impl CALayerDelegate for UIEventAttributionView {}
30
31#[cfg(all(feature = "UIResponder", feature = "UIView"))]
32unsafe impl NSCoding for UIEventAttributionView {}
33
34#[cfg(all(feature = "UIResponder", feature = "UIView"))]
35unsafe impl NSObjectProtocol for UIEventAttributionView {}
36
37#[cfg(all(feature = "UIAppearance", feature = "UIResponder", feature = "UIView"))]
38unsafe impl UIAppearance for UIEventAttributionView {}
39
40#[cfg(all(feature = "UIAppearance", feature = "UIResponder", feature = "UIView"))]
41unsafe impl UIAppearanceContainer for UIEventAttributionView {}
42
43#[cfg(all(feature = "UIResponder", feature = "UIView"))]
44unsafe impl UICoordinateSpace for UIEventAttributionView {}
45
46#[cfg(all(
47 feature = "UIDynamicBehavior",
48 feature = "UIResponder",
49 feature = "UIView"
50))]
51unsafe impl UIDynamicItem for UIEventAttributionView {}
52
53#[cfg(all(feature = "UIFocus", feature = "UIResponder", feature = "UIView"))]
54unsafe impl UIFocusEnvironment for UIEventAttributionView {}
55
56#[cfg(all(feature = "UIFocus", feature = "UIResponder", feature = "UIView"))]
57unsafe impl UIFocusItem for UIEventAttributionView {}
58
59#[cfg(all(feature = "UIFocus", feature = "UIResponder", feature = "UIView"))]
60unsafe impl UIFocusItemContainer for UIEventAttributionView {}
61
62#[cfg(all(feature = "UIResponder", feature = "UIView"))]
63unsafe impl UIResponderStandardEditActions for UIEventAttributionView {}
64
65#[cfg(all(
66 feature = "UIResponder",
67 feature = "UITraitCollection",
68 feature = "UIView"
69))]
70unsafe impl UITraitEnvironment for UIEventAttributionView {}
71
72#[cfg(all(feature = "UIResponder", feature = "UIView"))]
73impl UIEventAttributionView {
74 extern_methods!();
75}
76
77#[cfg(all(feature = "UIResponder", feature = "UIView"))]
79impl UIEventAttributionView {
80 extern_methods!(
81 #[cfg(feature = "objc2-core-foundation")]
82 #[unsafe(method(initWithFrame:))]
83 #[unsafe(method_family = init)]
84 pub unsafe fn initWithFrame(this: Allocated<Self>, frame: CGRect) -> Retained<Self>;
85
86 #[unsafe(method(initWithCoder:))]
87 #[unsafe(method_family = init)]
88 pub unsafe fn initWithCoder(
89 this: Allocated<Self>,
90 coder: &NSCoder,
91 ) -> Option<Retained<Self>>;
92 );
93}
94
95#[cfg(all(feature = "UIResponder", feature = "UIView"))]
97impl UIEventAttributionView {
98 extern_methods!(
99 #[unsafe(method(init))]
100 #[unsafe(method_family = init)]
101 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
102
103 #[unsafe(method(new))]
104 #[unsafe(method_family = new)]
105 pub unsafe fn new(mtm: MainThreadMarker) -> Retained<Self>;
106 );
107}