1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
//! This file has been automatically generated by `objc2`'s `header-translator`.
//! DO NOT EDIT
use core::ptr::NonNull;
#[cfg(feature = "objc2")]
use objc2::__framework_prelude::*;
use objc2_core_foundation::*;
use crate::*;
extern "C" {
/// A dictionary (a
/// <code>
/// CFDictionaryRef
/// </code>
/// ) of two or more font keys.
///
/// The dictionary associated with this attribute must contain the {
///
/// ```text
/// kAXFontNameKey} and
/// {@link kAXFontSizeKey} font keys. It may also contain the {@link kAXFontFamilyKey} and
/// {@link kAXVisibleNameKey} font keys.
///
///
/// ```
///
/// See also [Apple's documentation](https://developer.apple.com/documentation/applicationservices/kaxfonttextattribute?language=objc)
pub static kAXFontTextAttribute: &'static CFString;
}
extern "C" {
/// A
/// <code>
/// CGColorRef
/// </code>
/// value that describes the foreground color.
///
/// See also [Apple's documentation](https://developer.apple.com/documentation/applicationservices/kaxforegroundcolortextattribute?language=objc)
pub static kAXForegroundColorTextAttribute: &'static CFString;
}
extern "C" {
/// A
/// <code>
/// CGColorRef
/// </code>
/// value that describes the background color.
///
/// See also [Apple's documentation](https://developer.apple.com/documentation/applicationservices/kaxbackgroundcolortextattribute?language=objc)
pub static kAXBackgroundColorTextAttribute: &'static CFString;
}
extern "C" {
/// A
/// <code>
/// CGColorRef
/// </code>
/// value that describes the color of the underlining.
///
/// See also [Apple's documentation](https://developer.apple.com/documentation/applicationservices/kaxunderlinecolortextattribute?language=objc)
pub static kAXUnderlineColorTextAttribute: &'static CFString;
}
extern "C" {
/// A
/// <code>
/// CGColorRef
/// </code>
/// value that describes the color of the strikethrough.
///
/// See also [Apple's documentation](https://developer.apple.com/documentation/applicationservices/kaxstrikethroughcolortextattribute?language=objc)
pub static kAXStrikethroughColorTextAttribute: &'static CFString;
}
extern "C" {
/// A
/// <code>
/// CFNumberRef
/// </code>
/// value that describes the underline style (see {
///
/// ```text
/// //apple_ref/c/tdef/AXUnderlineStyle AXUnderlineStyle} for possible values).
///
///
/// ```
///
/// See also [Apple's documentation](https://developer.apple.com/documentation/applicationservices/kaxunderlinetextattribute?language=objc)
pub static kAXUnderlineTextAttribute: &'static CFString;
}
extern "C" {
/// A
/// <code>
/// CFNumberRef
/// </code>
/// value that indicates whether the text is superscript (value > 0) or subscript (value
/// <
/// 0).
///
/// See also [Apple's documentation](https://developer.apple.com/documentation/applicationservices/kaxsuperscripttextattribute?language=objc)
pub static kAXSuperscriptTextAttribute: &'static CFString;
}
extern "C" {
/// A
/// <code>
/// CFBooleanRef
/// </code>
/// value that indicates whether the text displays strikethrough.
///
/// See also [Apple's documentation](https://developer.apple.com/documentation/applicationservices/kaxstrikethroughtextattribute?language=objc)
pub static kAXStrikethroughTextAttribute: &'static CFString;
}
extern "C" {
/// A
/// <code>
/// CFBooleanRef
/// </code>
/// value that indicates whether the text displays shadow.
///
/// See also [Apple's documentation](https://developer.apple.com/documentation/applicationservices/kaxshadowtextattribute?language=objc)
pub static kAXShadowTextAttribute: &'static CFString;
}
extern "C" {
/// An
/// <code>
/// AXUIElementRef
/// </code>
/// value for the accessibility object representing the text attachment.
///
/// See also [Apple's documentation](https://developer.apple.com/documentation/applicationservices/kaxattachmenttextattribute?language=objc)
pub static kAXAttachmentTextAttribute: &'static CFString;
}
extern "C" {
/// An
/// <code>
/// AXUIElementRef
/// </code>
/// value used to access the object to which the specified range of text links.
///
/// See also [Apple's documentation](https://developer.apple.com/documentation/applicationservices/kaxlinktextattribute?language=objc)
pub static kAXLinkTextAttribute: &'static CFString;
}
extern "C" {
/// A
/// <code>
/// CFStringRef
/// </code>
/// value that indicates the language in which the text will be spoken aloud by the system.
///
/// See also [Apple's documentation](https://developer.apple.com/documentation/applicationservices/kaxnaturallanguagetextattribute?language=objc)
pub static kAXNaturalLanguageTextAttribute: &'static CFString;
}
extern "C" {
/// A
/// <code>
/// CFStringRef
/// </code>
/// value that indicates the string that will replace the text.
///
/// See also [Apple's documentation](https://developer.apple.com/documentation/applicationservices/kaxreplacementstringtextattribute?language=objc)
pub static kAXReplacementStringTextAttribute: &'static CFString;
}
extern "C" {
/// A
/// <code>
/// CFBooleanRef
/// </code>
/// value that indicates whether the text is misspelled.
///
/// See also [Apple's documentation](https://developer.apple.com/documentation/applicationservices/kaxmisspelledtextattribute?language=objc)
pub static kAXMisspelledTextAttribute: &'static CFString;
}
extern "C" {
/// A
/// <code>
/// CFBooleanRef
/// </code>
/// value that indicates whether the text is visibly shown as misspelled
/// (for example, with a squiggle underneath the text).
///
/// See also [Apple's documentation](https://developer.apple.com/documentation/applicationservices/kaxmarkedmisspelledtextattribute?language=objc)
pub static kAXMarkedMisspelledTextAttribute: &'static CFString;
}
extern "C" {
/// A
/// <code>
/// CFBooleanRef
/// </code>
/// value that indicates whether the text was autocorrected.
///
/// See also [Apple's documentation](https://developer.apple.com/documentation/applicationservices/kaxautocorrectedtextattribute?language=objc)
pub static kAXAutocorrectedTextAttribute: &'static CFString;
}
extern "C" {
/// A
/// <code>
/// CFAttributedStringRef
/// </code>
/// value that indicates the prepended string of the list item. If the string is a common unicode character (e.g. a bullet •), return that unicode character. For lists with images before the text, return a reasonable label of the image.
///
/// See also [Apple's documentation](https://developer.apple.com/documentation/applicationservices/kaxlistitemprefixtextattribute?language=objc)
pub static kAXListItemPrefixTextAttribute: &'static CFString;
}
extern "C" {
/// A
/// <code>
/// CFNumberRef
/// </code>
/// value that indicates the line index. Each list item increments the index, even for unordered lists. The first item should have index 0.
///
/// See also [Apple's documentation](https://developer.apple.com/documentation/applicationservices/kaxlistitemindextextattribute?language=objc)
pub static kAXListItemIndexTextAttribute: &'static CFString;
}
extern "C" {
/// A
/// <code>
/// CFNumberRef
/// </code>
/// value that indicates the indent level. Each sublist increments the level. The first item should have level 0.
///
/// See also [Apple's documentation](https://developer.apple.com/documentation/applicationservices/kaxlistitemleveltextattribute?language=objc)
pub static kAXListItemLevelTextAttribute: &'static CFString;
}
extern "C" {
/// Required key of the {
///
/// ```text
/// kAXFontTextAttribute} dictionary for the font name in a <code>CFStringRef</code>.
///
///
/// ```
///
/// See also [Apple's documentation](https://developer.apple.com/documentation/applicationservices/kaxfontnamekey?language=objc)
pub static kAXFontNameKey: &'static CFString;
}
extern "C" {
/// Optional key of the {
///
/// ```text
/// kAXFontTextAttribute} dictionary for the font family name in a <code>CFStringRef</code>.
///
///
/// ```
///
/// See also [Apple's documentation](https://developer.apple.com/documentation/applicationservices/kaxfontfamilykey?language=objc)
pub static kAXFontFamilyKey: &'static CFString;
}
extern "C" {
/// Optional key of the {
///
/// ```text
/// kAXFontTextAttribute} dictionary for the font display name in a <code>CFStringRef</code>.
///
///
/// ```
///
/// See also [Apple's documentation](https://developer.apple.com/documentation/applicationservices/kaxvisiblenamekey?language=objc)
pub static kAXVisibleNameKey: &'static CFString;
}
extern "C" {
/// Required key of the {
///
/// ```text
/// kAXFontTextAttribute} dictionary for the font size in a <code>CFNumberRef</code>.
///
///
/// ```
///
/// See also [Apple's documentation](https://developer.apple.com/documentation/applicationservices/kaxfontsizekey?language=objc)
pub static kAXFontSizeKey: &'static CFString;
}
/// Values that describe the style of underlining (used with the {
///
/// ```text
/// kAXUnderlineTextAttribute} attribute).
///
///
/// ```
///
/// See also [Apple's documentation](https://developer.apple.com/documentation/applicationservices/axunderlinestyle?language=objc)
// NS_ENUM
#[repr(transparent)]
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
pub struct AXUnderlineStyle(pub u32);
impl AXUnderlineStyle {
#[doc(alias = "kAXUnderlineStyleNone")]
pub const None: Self = Self(0x0);
#[doc(alias = "kAXUnderlineStyleSingle")]
pub const Single: Self = Self(0x1);
#[doc(alias = "kAXUnderlineStyleThick")]
pub const Thick: Self = Self(0x2);
#[doc(alias = "kAXUnderlineStyleDouble")]
pub const Double: Self = Self(0x9);
}
#[cfg(feature = "objc2")]
unsafe impl Encode for AXUnderlineStyle {
const ENCODING: Encoding = u32::ENCODING;
}
#[cfg(feature = "objc2")]
unsafe impl RefEncode for AXUnderlineStyle {
const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
}
extern "C" {
/// [Apple's documentation](https://developer.apple.com/documentation/applicationservices/kaxforegoundcolortextattribute?language=objc)
pub static kAXForegoundColorTextAttribute: &'static CFString;
}