objc2_ui_kit/generated/
UITextFormattingViewControllerChangeValue.rs1use core::ptr::NonNull;
4use objc2::__framework_prelude::*;
5use objc2_foundation::*;
6
7use crate::*;
8
9pub type UITextFormattingViewControllerChangeType = NSString;
14
15extern "C" {
16 pub static UITextFormattingViewControllerUndefinedChangeType:
18 &'static UITextFormattingViewControllerChangeType;
19}
20
21extern "C" {
22 pub static UITextFormattingViewControllerSetBoldChangeType:
24 &'static UITextFormattingViewControllerChangeType;
25}
26
27extern "C" {
28 pub static UITextFormattingViewControllerRemoveBoldChangeType:
30 &'static UITextFormattingViewControllerChangeType;
31}
32
33extern "C" {
34 pub static UITextFormattingViewControllerSetItalicChangeType:
36 &'static UITextFormattingViewControllerChangeType;
37}
38
39extern "C" {
40 pub static UITextFormattingViewControllerRemoveItalicChangeType:
42 &'static UITextFormattingViewControllerChangeType;
43}
44
45extern "C" {
46 pub static UITextFormattingViewControllerSetUnderlineChangeType:
48 &'static UITextFormattingViewControllerChangeType;
49}
50
51extern "C" {
52 pub static UITextFormattingViewControllerRemoveUnderlineChangeType:
54 &'static UITextFormattingViewControllerChangeType;
55}
56
57extern "C" {
58 pub static UITextFormattingViewControllerSetStrikethroughChangeType:
60 &'static UITextFormattingViewControllerChangeType;
61}
62
63extern "C" {
64 pub static UITextFormattingViewControllerRemoveStrikethroughChangeType:
66 &'static UITextFormattingViewControllerChangeType;
67}
68
69extern "C" {
70 pub static UITextFormattingViewControllerFontChangeType:
72 &'static UITextFormattingViewControllerChangeType;
73}
74
75extern "C" {
76 pub static UITextFormattingViewControllerFontSizeChangeType:
78 &'static UITextFormattingViewControllerChangeType;
79}
80
81extern "C" {
82 pub static UITextFormattingViewControllerIncreaseFontSizeChangeType:
84 &'static UITextFormattingViewControllerChangeType;
85}
86
87extern "C" {
88 pub static UITextFormattingViewControllerDecreaseFontSizeChangeType:
90 &'static UITextFormattingViewControllerChangeType;
91}
92
93extern "C" {
94 pub static UITextFormattingViewControllerTextColorChangeType:
96 &'static UITextFormattingViewControllerChangeType;
97}
98
99extern "C" {
100 pub static UITextFormattingViewControllerLineHeightPointSizeChangeType:
102 &'static UITextFormattingViewControllerChangeType;
103}
104
105extern "C" {
106 pub static UITextFormattingViewControllerIncreaseIndentationChangeType:
108 &'static UITextFormattingViewControllerChangeType;
109}
110
111extern "C" {
112 pub static UITextFormattingViewControllerDecreaseIndentationChangeType:
114 &'static UITextFormattingViewControllerChangeType;
115}
116
117extern "C" {
118 pub static UITextFormattingViewControllerFormattingStyleChangeType:
120 &'static UITextFormattingViewControllerChangeType;
121}
122
123extern "C" {
124 pub static UITextFormattingViewControllerTextListChangeType:
126 &'static UITextFormattingViewControllerChangeType;
127}
128
129extern "C" {
130 pub static UITextFormattingViewControllerTextAlignmentChangeType:
132 &'static UITextFormattingViewControllerChangeType;
133}
134
135extern "C" {
136 pub static UITextFormattingViewControllerHighlightChangeType:
138 &'static UITextFormattingViewControllerChangeType;
139}
140
141extern_class!(
142 #[unsafe(super(NSObject))]
147 #[derive(Debug, PartialEq, Eq, Hash)]
148 pub struct UITextFormattingViewControllerChangeValue;
149);
150
151extern_conformance!(
152 unsafe impl NSCoding for UITextFormattingViewControllerChangeValue {}
153);
154
155extern_conformance!(
156 unsafe impl NSCopying for UITextFormattingViewControllerChangeValue {}
157);
158
159unsafe impl CopyingHelper for UITextFormattingViewControllerChangeValue {
160 type Result = Self;
161}
162
163extern_conformance!(
164 unsafe impl NSObjectProtocol for UITextFormattingViewControllerChangeValue {}
165);
166
167extern_conformance!(
168 unsafe impl NSSecureCoding for UITextFormattingViewControllerChangeValue {}
169);
170
171impl UITextFormattingViewControllerChangeValue {
172 extern_methods!(
173 #[unsafe(method(changeType))]
175 #[unsafe(method_family = none)]
176 pub unsafe fn changeType(&self) -> Retained<UITextFormattingViewControllerChangeType>;
177
178 #[unsafe(method(formattingStyleKey))]
180 #[unsafe(method_family = none)]
181 pub unsafe fn formattingStyleKey(&self) -> Option<Retained<NSString>>;
182
183 #[cfg(feature = "UIFont")]
184 #[unsafe(method(font))]
187 #[unsafe(method_family = none)]
188 pub unsafe fn font(&self) -> Option<Retained<UIFont>>;
189
190 #[cfg(feature = "UIColor")]
191 #[unsafe(method(color))]
194 #[unsafe(method_family = none)]
195 pub unsafe fn color(&self) -> Option<Retained<UIColor>>;
196
197 #[unsafe(method(numberValue))]
200 #[unsafe(method_family = none)]
201 pub unsafe fn numberValue(&self) -> Option<Retained<NSNumber>>;
202
203 #[cfg(feature = "UITextFormattingViewControllerFormattingDescriptor")]
204 #[unsafe(method(textList))]
207 #[unsafe(method_family = none)]
208 pub unsafe fn textList(&self) -> Option<Retained<UITextFormattingViewControllerTextList>>;
209
210 #[cfg(feature = "NSText")]
211 #[unsafe(method(textAlignment))]
213 #[unsafe(method_family = none)]
214 pub unsafe fn textAlignment(&self) -> NSTextAlignment;
215
216 #[cfg(feature = "UITextFormattingViewControllerFormattingDescriptor")]
217 #[unsafe(method(highlight))]
220 #[unsafe(method_family = none)]
221 pub unsafe fn highlight(&self)
222 -> Option<Retained<UITextFormattingViewControllerHighlight>>;
223
224 #[unsafe(method(init))]
225 #[unsafe(method_family = init)]
226 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
227
228 #[unsafe(method(new))]
229 #[unsafe(method_family = new)]
230 pub unsafe fn new() -> Retained<Self>;
231 );
232}