objc2_ui_kit/generated/
UILexicon.rs1use core::ptr::NonNull;
4use objc2::__framework_prelude::*;
5use objc2_foundation::*;
6
7use crate::*;
8
9extern_class!(
10 #[unsafe(super(NSObject))]
12 #[thread_kind = MainThreadOnly]
13 #[derive(Debug, PartialEq, Eq, Hash)]
14 pub struct UILexiconEntry;
15);
16
17extern_conformance!(
18 unsafe impl NSCopying for UILexiconEntry {}
19);
20
21unsafe impl CopyingHelper for UILexiconEntry {
22 type Result = Self;
23}
24
25extern_conformance!(
26 unsafe impl NSObjectProtocol for UILexiconEntry {}
27);
28
29impl UILexiconEntry {
30 extern_methods!(
31 #[unsafe(method(documentText))]
32 #[unsafe(method_family = none)]
33 pub fn documentText(&self) -> Retained<NSString>;
34
35 #[unsafe(method(userInput))]
36 #[unsafe(method_family = none)]
37 pub fn userInput(&self) -> Retained<NSString>;
38 );
39}
40
41impl UILexiconEntry {
43 extern_methods!(
44 #[unsafe(method(init))]
45 #[unsafe(method_family = init)]
46 pub fn init(this: Allocated<Self>) -> Retained<Self>;
47
48 #[unsafe(method(new))]
49 #[unsafe(method_family = new)]
50 pub fn new(mtm: MainThreadMarker) -> Retained<Self>;
51 );
52}
53
54extern_class!(
55 #[unsafe(super(NSObject))]
57 #[thread_kind = MainThreadOnly]
58 #[derive(Debug, PartialEq, Eq, Hash)]
59 pub struct UILexicon;
60);
61
62extern_conformance!(
63 unsafe impl NSCopying for UILexicon {}
64);
65
66unsafe impl CopyingHelper for UILexicon {
67 type Result = Self;
68}
69
70extern_conformance!(
71 unsafe impl NSObjectProtocol for UILexicon {}
72);
73
74impl UILexicon {
75 extern_methods!(
76 #[unsafe(method(entries))]
77 #[unsafe(method_family = none)]
78 pub fn entries(&self) -> Retained<NSArray<UILexiconEntry>>;
79 );
80}
81
82impl UILexicon {
84 extern_methods!(
85 #[unsafe(method(init))]
86 #[unsafe(method_family = init)]
87 pub fn init(this: Allocated<Self>) -> Retained<Self>;
88
89 #[unsafe(method(new))]
90 #[unsafe(method_family = new)]
91 pub fn new(mtm: MainThreadMarker) -> Retained<Self>;
92 );
93}