objc2_ui_kit/generated/
UIStandardTextCursorView.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))]
21 #[derive(Debug, PartialEq, Eq, Hash)]
22 #[cfg(all(feature = "UIResponder", feature = "UIView"))]
23 pub struct UIStandardTextCursorView;
24);
25
26#[cfg(all(
27 feature = "UIResponder",
28 feature = "UIView",
29 feature = "objc2-quartz-core"
30))]
31#[cfg(not(target_os = "watchos"))]
32extern_conformance!(
33 unsafe impl CALayerDelegate for UIStandardTextCursorView {}
34);
35
36#[cfg(all(feature = "UIResponder", feature = "UIView"))]
37extern_conformance!(
38 unsafe impl NSCoding for UIStandardTextCursorView {}
39);
40
41#[cfg(all(feature = "UIResponder", feature = "UIView"))]
42extern_conformance!(
43 unsafe impl NSObjectProtocol for UIStandardTextCursorView {}
44);
45
46#[cfg(all(feature = "UIAppearance", feature = "UIResponder", feature = "UIView"))]
47extern_conformance!(
48 unsafe impl UIAppearance for UIStandardTextCursorView {}
49);
50
51#[cfg(all(feature = "UIAppearance", feature = "UIResponder", feature = "UIView"))]
52extern_conformance!(
53 unsafe impl UIAppearanceContainer for UIStandardTextCursorView {}
54);
55
56#[cfg(all(feature = "UIResponder", feature = "UIView"))]
57extern_conformance!(
58 unsafe impl UICoordinateSpace for UIStandardTextCursorView {}
59);
60
61#[cfg(all(
62 feature = "UIDynamicBehavior",
63 feature = "UIResponder",
64 feature = "UIView"
65))]
66extern_conformance!(
67 unsafe impl UIDynamicItem for UIStandardTextCursorView {}
68);
69
70#[cfg(all(feature = "UIFocus", feature = "UIResponder", feature = "UIView"))]
71extern_conformance!(
72 unsafe impl UIFocusEnvironment for UIStandardTextCursorView {}
73);
74
75#[cfg(all(feature = "UIFocus", feature = "UIResponder", feature = "UIView"))]
76extern_conformance!(
77 unsafe impl UIFocusItem for UIStandardTextCursorView {}
78);
79
80#[cfg(all(feature = "UIFocus", feature = "UIResponder", feature = "UIView"))]
81extern_conformance!(
82 unsafe impl UIFocusItemContainer for UIStandardTextCursorView {}
83);
84
85#[cfg(all(feature = "UIResponder", feature = "UIView"))]
86extern_conformance!(
87 unsafe impl UIResponderStandardEditActions for UIStandardTextCursorView {}
88);
89
90#[cfg(all(
91 feature = "UIResponder",
92 feature = "UITextCursorView",
93 feature = "UIView"
94))]
95extern_conformance!(
96 unsafe impl UITextCursorView for UIStandardTextCursorView {}
97);
98
99#[cfg(all(
100 feature = "UIResponder",
101 feature = "UITraitCollection",
102 feature = "UIView"
103))]
104extern_conformance!(
105 unsafe impl UITraitEnvironment for UIStandardTextCursorView {}
106);
107
108#[cfg(all(feature = "UIResponder", feature = "UIView"))]
109impl UIStandardTextCursorView {
110 extern_methods!();
111}
112
113#[cfg(all(feature = "UIResponder", feature = "UIView"))]
115impl UIStandardTextCursorView {
116 extern_methods!(
117 #[cfg(feature = "objc2-core-foundation")]
118 #[unsafe(method(initWithFrame:))]
119 #[unsafe(method_family = init)]
120 pub unsafe fn initWithFrame(this: Allocated<Self>, frame: CGRect) -> Retained<Self>;
121
122 #[unsafe(method(initWithCoder:))]
123 #[unsafe(method_family = init)]
124 pub unsafe fn initWithCoder(
125 this: Allocated<Self>,
126 coder: &NSCoder,
127 ) -> Option<Retained<Self>>;
128 );
129}
130
131#[cfg(all(feature = "UIResponder", feature = "UIView"))]
133impl UIStandardTextCursorView {
134 extern_methods!(
135 #[unsafe(method(init))]
136 #[unsafe(method_family = init)]
137 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
138
139 #[unsafe(method(new))]
140 #[unsafe(method_family = new)]
141 pub unsafe fn new(mtm: MainThreadMarker) -> Retained<Self>;
142 );
143}