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 unsafe 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 unsafe 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:))]
59 #[unsafe(method_family = init)]
60 pub unsafe fn initWithTextCursorView_textInput(
61 this: Allocated<Self>,
62 cursor_view: Option<&UIView>,
63 text_input: Option<&UIView>,
64 ) -> Option<Retained<Self>>;
65
66 #[unsafe(method(setCursorVisible:animated:))]
68 #[unsafe(method_family = none)]
69 pub unsafe fn setCursorVisible_animated(&self, visible: bool, animated: bool);
70
71 #[cfg(feature = "UITextInput")]
72 #[unsafe(method(placeCursorAtPosition:animated:))]
76 #[unsafe(method_family = none)]
77 pub unsafe fn placeCursorAtPosition_animated(
78 &self,
79 position: Option<&UITextPosition>,
80 animated: bool,
81 );
82
83 #[cfg(feature = "block2")]
84 #[unsafe(method(animateAlongsideChanges:completion:))]
86 #[unsafe(method_family = none)]
87 pub unsafe fn animateAlongsideChanges_completion(
88 &self,
89 animation: Option<&block2::DynBlock<dyn Fn()>>,
90 completion: Option<&block2::DynBlock<dyn Fn()>>,
91 );
92
93 #[unsafe(method(init))]
94 #[unsafe(method_family = init)]
95 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
96 );
97}
98
99impl UITextCursorDropPositionAnimator {
101 extern_methods!(
102 #[unsafe(method(new))]
103 #[unsafe(method_family = new)]
104 pub unsafe fn new(mtm: MainThreadMarker) -> Retained<Self>;
105 );
106}