objc2_ui_kit/generated/
UITextCursorDropPositionAnimator.rs1use core::ffi::*;
4use core::ptr::NonNull;
5use objc2::__framework_prelude::*;
6
7use crate::*;
8
9extern_class!(
10 #[unsafe(super(NSObject))]
18 #[thread_kind = MainThreadOnly]
19 #[derive(Debug, PartialEq, Eq, Hash)]
20 pub struct UITextCursorDropPositionAnimator;
21);
22
23extern_conformance!(
24 unsafe impl NSObjectProtocol for UITextCursorDropPositionAnimator {}
25);
26
27impl UITextCursorDropPositionAnimator {
28 extern_methods!(
29 #[cfg(all(
30 feature = "UIResponder",
31 feature = "UITextCursorView",
32 feature = "UIView"
33 ))]
34 #[unsafe(method(cursorView))]
36 #[unsafe(method_family = none)]
37 pub fn cursorView(&self) -> Option<Retained<UIView>>;
38
39 #[cfg(all(
40 feature = "UIResponder",
41 feature = "UITextInput",
42 feature = "UITextInputTraits",
43 feature = "UIView"
44 ))]
45 #[unsafe(method(textInput))]
47 #[unsafe(method_family = none)]
48 pub fn textInput(&self) -> Option<Retained<UIView>>;
49
50 #[cfg(all(
51 feature = "UIResponder",
52 feature = "UITextCursorView",
53 feature = "UITextInput",
54 feature = "UITextInputTraits",
55 feature = "UIView"
56 ))]
57 #[unsafe(method(initWithTextCursorView:textInput:))]
66 #[unsafe(method_family = init)]
67 pub unsafe fn initWithTextCursorView_textInput(
68 this: Allocated<Self>,
69 cursor_view: Option<&UIView>,
70 text_input: Option<&UIView>,
71 ) -> Option<Retained<Self>>;
72
73 #[unsafe(method(setCursorVisible:animated:))]
75 #[unsafe(method_family = none)]
76 pub fn setCursorVisible_animated(&self, visible: bool, animated: bool);
77
78 #[cfg(feature = "UITextInput")]
79 #[unsafe(method(placeCursorAtPosition:animated:))]
87 #[unsafe(method_family = none)]
88 pub unsafe fn placeCursorAtPosition_animated(
89 &self,
90 position: Option<&UITextPosition>,
91 animated: bool,
92 );
93
94 #[cfg(feature = "block2")]
95 #[unsafe(method(animateAlongsideChanges:completion:))]
97 #[unsafe(method_family = none)]
98 pub fn animateAlongsideChanges_completion(
99 &self,
100 animation: Option<&block2::DynBlock<dyn Fn()>>,
101 completion: Option<&block2::DynBlock<dyn Fn()>>,
102 );
103
104 #[unsafe(method(init))]
105 #[unsafe(method_family = init)]
106 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
107 );
108}
109
110impl UITextCursorDropPositionAnimator {
112 extern_methods!(
113 #[unsafe(method(new))]
114 #[unsafe(method_family = new)]
115 pub unsafe fn new(mtm: MainThreadMarker) -> Retained<Self>;
116 );
117}