objc2_app_kit/generated/
NSTextCheckingController.rs1use core::ffi::*;
4use core::ptr::NonNull;
5use objc2::__framework_prelude::*;
6use objc2_foundation::*;
7
8use crate::*;
9
10extern_class!(
11 #[unsafe(super(NSObject))]
13 #[derive(Debug, PartialEq, Eq, Hash)]
14 pub struct NSTextCheckingController;
15);
16
17unsafe impl NSObjectProtocol for NSTextCheckingController {}
18
19impl NSTextCheckingController {
20 extern_methods!(
21 #[cfg(all(feature = "NSTextCheckingClient", feature = "NSTextInputClient"))]
22 #[unsafe(method(initWithClient:))]
23 #[unsafe(method_family = init)]
24 pub unsafe fn initWithClient(
25 this: Allocated<Self>,
26 client: &ProtocolObject<dyn NSTextCheckingClient>,
27 ) -> Retained<Self>;
28
29 #[unsafe(method(init))]
30 #[unsafe(method_family = init)]
31 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
32
33 #[cfg(all(feature = "NSTextCheckingClient", feature = "NSTextInputClient"))]
34 #[unsafe(method(client))]
35 #[unsafe(method_family = none)]
36 pub unsafe fn client(&self) -> Retained<ProtocolObject<dyn NSTextCheckingClient>>;
37
38 #[unsafe(method(invalidate))]
39 #[unsafe(method_family = none)]
40 pub unsafe fn invalidate(&self);
41
42 #[unsafe(method(didChangeTextInRange:))]
43 #[unsafe(method_family = none)]
44 pub unsafe fn didChangeTextInRange(&self, range: NSRange);
45
46 #[unsafe(method(insertedTextInRange:))]
47 #[unsafe(method_family = none)]
48 pub unsafe fn insertedTextInRange(&self, range: NSRange);
49
50 #[unsafe(method(didChangeSelectedRange))]
51 #[unsafe(method_family = none)]
52 pub unsafe fn didChangeSelectedRange(&self);
53
54 #[unsafe(method(considerTextCheckingForRange:))]
55 #[unsafe(method_family = none)]
56 pub unsafe fn considerTextCheckingForRange(&self, range: NSRange);
57
58 #[cfg(feature = "NSSpellChecker")]
59 #[unsafe(method(checkTextInRange:types:options:))]
60 #[unsafe(method_family = none)]
61 pub unsafe fn checkTextInRange_types_options(
62 &self,
63 range: NSRange,
64 checking_types: NSTextCheckingTypes,
65 options: &NSDictionary<NSTextCheckingOptionKey, AnyObject>,
66 );
67
68 #[unsafe(method(checkTextInSelection:))]
69 #[unsafe(method_family = none)]
70 pub unsafe fn checkTextInSelection(&self, sender: Option<&AnyObject>);
71
72 #[unsafe(method(checkTextInDocument:))]
73 #[unsafe(method_family = none)]
74 pub unsafe fn checkTextInDocument(&self, sender: Option<&AnyObject>);
75
76 #[unsafe(method(orderFrontSubstitutionsPanel:))]
77 #[unsafe(method_family = none)]
78 pub unsafe fn orderFrontSubstitutionsPanel(&self, sender: Option<&AnyObject>);
79
80 #[unsafe(method(checkSpelling:))]
81 #[unsafe(method_family = none)]
82 pub unsafe fn checkSpelling(&self, sender: Option<&AnyObject>);
83
84 #[unsafe(method(showGuessPanel:))]
85 #[unsafe(method_family = none)]
86 pub unsafe fn showGuessPanel(&self, sender: Option<&AnyObject>);
87
88 #[unsafe(method(changeSpelling:))]
89 #[unsafe(method_family = none)]
90 pub unsafe fn changeSpelling(&self, sender: Option<&AnyObject>);
91
92 #[unsafe(method(ignoreSpelling:))]
93 #[unsafe(method_family = none)]
94 pub unsafe fn ignoreSpelling(&self, sender: Option<&AnyObject>);
95
96 #[unsafe(method(updateCandidates))]
97 #[unsafe(method_family = none)]
98 pub unsafe fn updateCandidates(&self);
99
100 #[unsafe(method(validAnnotations))]
101 #[unsafe(method_family = none)]
102 pub unsafe fn validAnnotations(&self) -> Retained<NSArray<NSAttributedStringKey>>;
103
104 #[cfg(feature = "NSMenu")]
105 #[unsafe(method(menuAtIndex:clickedOnSelection:effectiveRange:))]
106 #[unsafe(method_family = none)]
107 pub unsafe fn menuAtIndex_clickedOnSelection_effectiveRange(
108 &self,
109 location: NSUInteger,
110 clicked_on_selection: bool,
111 effective_range: NSRangePointer,
112 mtm: MainThreadMarker,
113 ) -> Option<Retained<NSMenu>>;
114
115 #[unsafe(method(spellCheckerDocumentTag))]
116 #[unsafe(method_family = none)]
117 pub unsafe fn spellCheckerDocumentTag(&self) -> NSInteger;
118
119 #[unsafe(method(setSpellCheckerDocumentTag:))]
121 #[unsafe(method_family = none)]
122 pub unsafe fn setSpellCheckerDocumentTag(&self, spell_checker_document_tag: NSInteger);
123 );
124}
125
126impl NSTextCheckingController {
128 extern_methods!(
129 #[unsafe(method(new))]
130 #[unsafe(method_family = new)]
131 pub unsafe fn new() -> Retained<Self>;
132 );
133}