objc2_ui_kit/generated/
UILexicon.rs

1//! This file has been automatically generated by `objc2`'s `header-translator`.
2//! DO NOT EDIT
3use core::ptr::NonNull;
4use objc2::__framework_prelude::*;
5use objc2_foundation::*;
6
7use crate::*;
8
9extern_class!(
10    /// [Apple's documentation](https://developer.apple.com/documentation/uikit/uilexiconentry?language=objc)
11    #[unsafe(super(NSObject))]
12    #[thread_kind = MainThreadOnly]
13    #[derive(Debug, PartialEq, Eq, Hash)]
14    pub struct UILexiconEntry;
15);
16
17unsafe impl NSCopying for UILexiconEntry {}
18
19unsafe impl CopyingHelper for UILexiconEntry {
20    type Result = Self;
21}
22
23unsafe impl NSObjectProtocol for UILexiconEntry {}
24
25impl UILexiconEntry {
26    extern_methods!(
27        #[unsafe(method(documentText))]
28        #[unsafe(method_family = none)]
29        pub unsafe fn documentText(&self) -> Retained<NSString>;
30
31        #[unsafe(method(userInput))]
32        #[unsafe(method_family = none)]
33        pub unsafe fn userInput(&self) -> Retained<NSString>;
34    );
35}
36
37/// Methods declared on superclass `NSObject`.
38impl UILexiconEntry {
39    extern_methods!(
40        #[unsafe(method(init))]
41        #[unsafe(method_family = init)]
42        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
43
44        #[unsafe(method(new))]
45        #[unsafe(method_family = new)]
46        pub unsafe fn new(mtm: MainThreadMarker) -> Retained<Self>;
47    );
48}
49
50extern_class!(
51    /// [Apple's documentation](https://developer.apple.com/documentation/uikit/uilexicon?language=objc)
52    #[unsafe(super(NSObject))]
53    #[thread_kind = MainThreadOnly]
54    #[derive(Debug, PartialEq, Eq, Hash)]
55    pub struct UILexicon;
56);
57
58unsafe impl NSCopying for UILexicon {}
59
60unsafe impl CopyingHelper for UILexicon {
61    type Result = Self;
62}
63
64unsafe impl NSObjectProtocol for UILexicon {}
65
66impl UILexicon {
67    extern_methods!(
68        #[unsafe(method(entries))]
69        #[unsafe(method_family = none)]
70        pub unsafe fn entries(&self) -> Retained<NSArray<UILexiconEntry>>;
71    );
72}
73
74/// Methods declared on superclass `NSObject`.
75impl UILexicon {
76    extern_methods!(
77        #[unsafe(method(init))]
78        #[unsafe(method_family = init)]
79        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
80
81        #[unsafe(method(new))]
82        #[unsafe(method_family = new)]
83        pub unsafe fn new(mtm: MainThreadMarker) -> Retained<Self>;
84    );
85}