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