objc2_accessibility/generated/
AXMathExpression.rs1use core::ptr::NonNull;
4use objc2::__framework_prelude::*;
5use objc2_foundation::*;
6
7use crate::*;
8
9extern_class!(
10 #[unsafe(super(NSObject))]
12 #[derive(Debug, PartialEq, Eq, Hash)]
13 pub struct AXMathExpression;
14);
15
16unsafe impl Send for AXMathExpression {}
17
18unsafe impl Sync for AXMathExpression {}
19
20unsafe impl NSObjectProtocol for AXMathExpression {}
21
22impl AXMathExpression {
23 extern_methods!();
24}
25
26impl AXMathExpression {
28 extern_methods!(
29 #[unsafe(method(init))]
30 #[unsafe(method_family = init)]
31 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
32
33 #[unsafe(method(new))]
34 #[unsafe(method_family = new)]
35 pub unsafe fn new() -> Retained<Self>;
36 );
37}
38
39extern_class!(
40 #[unsafe(super(AXMathExpression, NSObject))]
42 #[derive(Debug, PartialEq, Eq, Hash)]
43 pub struct AXMathExpressionNumber;
44);
45
46unsafe impl NSObjectProtocol for AXMathExpressionNumber {}
47
48impl AXMathExpressionNumber {
49 extern_methods!(
50 #[unsafe(method(initWithContent:))]
51 #[unsafe(method_family = init)]
52 pub unsafe fn initWithContent(this: Allocated<Self>, content: &NSString) -> Retained<Self>;
53
54 #[unsafe(method(content))]
55 #[unsafe(method_family = none)]
56 pub unsafe fn content(&self) -> Retained<NSString>;
57 );
58}
59
60impl AXMathExpressionNumber {
62 extern_methods!(
63 #[unsafe(method(init))]
64 #[unsafe(method_family = init)]
65 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
66
67 #[unsafe(method(new))]
68 #[unsafe(method_family = new)]
69 pub unsafe fn new() -> Retained<Self>;
70 );
71}
72
73extern_class!(
74 #[unsafe(super(AXMathExpression, NSObject))]
76 #[derive(Debug, PartialEq, Eq, Hash)]
77 pub struct AXMathExpressionIdentifier;
78);
79
80unsafe impl NSObjectProtocol for AXMathExpressionIdentifier {}
81
82impl AXMathExpressionIdentifier {
83 extern_methods!(
84 #[unsafe(method(initWithContent:))]
85 #[unsafe(method_family = init)]
86 pub unsafe fn initWithContent(this: Allocated<Self>, content: &NSString) -> Retained<Self>;
87
88 #[unsafe(method(content))]
89 #[unsafe(method_family = none)]
90 pub unsafe fn content(&self) -> Retained<NSString>;
91 );
92}
93
94impl AXMathExpressionIdentifier {
96 extern_methods!(
97 #[unsafe(method(init))]
98 #[unsafe(method_family = init)]
99 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
100
101 #[unsafe(method(new))]
102 #[unsafe(method_family = new)]
103 pub unsafe fn new() -> Retained<Self>;
104 );
105}
106
107extern_class!(
108 #[unsafe(super(AXMathExpression, NSObject))]
110 #[derive(Debug, PartialEq, Eq, Hash)]
111 pub struct AXMathExpressionOperator;
112);
113
114unsafe impl NSObjectProtocol for AXMathExpressionOperator {}
115
116impl AXMathExpressionOperator {
117 extern_methods!(
118 #[unsafe(method(initWithContent:))]
119 #[unsafe(method_family = init)]
120 pub unsafe fn initWithContent(this: Allocated<Self>, content: &NSString) -> Retained<Self>;
121
122 #[unsafe(method(content))]
123 #[unsafe(method_family = none)]
124 pub unsafe fn content(&self) -> Retained<NSString>;
125 );
126}
127
128impl AXMathExpressionOperator {
130 extern_methods!(
131 #[unsafe(method(init))]
132 #[unsafe(method_family = init)]
133 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
134
135 #[unsafe(method(new))]
136 #[unsafe(method_family = new)]
137 pub unsafe fn new() -> Retained<Self>;
138 );
139}
140
141extern_class!(
142 #[unsafe(super(AXMathExpression, NSObject))]
144 #[derive(Debug, PartialEq, Eq, Hash)]
145 pub struct AXMathExpressionText;
146);
147
148unsafe impl NSObjectProtocol for AXMathExpressionText {}
149
150impl AXMathExpressionText {
151 extern_methods!(
152 #[unsafe(method(initWithContent:))]
153 #[unsafe(method_family = init)]
154 pub unsafe fn initWithContent(this: Allocated<Self>, content: &NSString) -> Retained<Self>;
155
156 #[unsafe(method(content))]
157 #[unsafe(method_family = none)]
158 pub unsafe fn content(&self) -> Retained<NSString>;
159 );
160}
161
162impl AXMathExpressionText {
164 extern_methods!(
165 #[unsafe(method(init))]
166 #[unsafe(method_family = init)]
167 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
168
169 #[unsafe(method(new))]
170 #[unsafe(method_family = new)]
171 pub unsafe fn new() -> Retained<Self>;
172 );
173}
174
175extern_class!(
176 #[unsafe(super(AXMathExpression, NSObject))]
178 #[derive(Debug, PartialEq, Eq, Hash)]
179 pub struct AXMathExpressionFenced;
180);
181
182unsafe impl NSObjectProtocol for AXMathExpressionFenced {}
183
184impl AXMathExpressionFenced {
185 extern_methods!(
186 #[unsafe(method(initWithExpressions:openString:closeString:))]
187 #[unsafe(method_family = init)]
188 pub unsafe fn initWithExpressions_openString_closeString(
189 this: Allocated<Self>,
190 expressions: &NSArray<AXMathExpression>,
191 open_string: &NSString,
192 close_string: &NSString,
193 ) -> Retained<Self>;
194
195 #[unsafe(method(expressions))]
196 #[unsafe(method_family = none)]
197 pub unsafe fn expressions(&self) -> Retained<NSArray<AXMathExpression>>;
198
199 #[unsafe(method(openString))]
200 #[unsafe(method_family = none)]
201 pub unsafe fn openString(&self) -> Retained<NSString>;
202
203 #[unsafe(method(closeString))]
204 #[unsafe(method_family = none)]
205 pub unsafe fn closeString(&self) -> Retained<NSString>;
206 );
207}
208
209impl AXMathExpressionFenced {
211 extern_methods!(
212 #[unsafe(method(init))]
213 #[unsafe(method_family = init)]
214 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
215
216 #[unsafe(method(new))]
217 #[unsafe(method_family = new)]
218 pub unsafe fn new() -> Retained<Self>;
219 );
220}
221
222extern_class!(
223 #[unsafe(super(AXMathExpression, NSObject))]
225 #[derive(Debug, PartialEq, Eq, Hash)]
226 pub struct AXMathExpressionRow;
227);
228
229unsafe impl NSObjectProtocol for AXMathExpressionRow {}
230
231impl AXMathExpressionRow {
232 extern_methods!(
233 #[unsafe(method(initWithExpressions:))]
234 #[unsafe(method_family = init)]
235 pub unsafe fn initWithExpressions(
236 this: Allocated<Self>,
237 expressions: &NSArray<AXMathExpression>,
238 ) -> Retained<Self>;
239
240 #[unsafe(method(expressions))]
241 #[unsafe(method_family = none)]
242 pub unsafe fn expressions(&self) -> Retained<NSArray<AXMathExpression>>;
243 );
244}
245
246impl AXMathExpressionRow {
248 extern_methods!(
249 #[unsafe(method(init))]
250 #[unsafe(method_family = init)]
251 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
252
253 #[unsafe(method(new))]
254 #[unsafe(method_family = new)]
255 pub unsafe fn new() -> Retained<Self>;
256 );
257}
258
259extern_class!(
260 #[unsafe(super(AXMathExpression, NSObject))]
262 #[derive(Debug, PartialEq, Eq, Hash)]
263 pub struct AXMathExpressionTable;
264);
265
266unsafe impl NSObjectProtocol for AXMathExpressionTable {}
267
268impl AXMathExpressionTable {
269 extern_methods!(
270 #[unsafe(method(initWithExpressions:))]
271 #[unsafe(method_family = init)]
272 pub unsafe fn initWithExpressions(
273 this: Allocated<Self>,
274 expressions: &NSArray<AXMathExpression>,
275 ) -> Retained<Self>;
276
277 #[unsafe(method(expressions))]
278 #[unsafe(method_family = none)]
279 pub unsafe fn expressions(&self) -> Retained<NSArray<AXMathExpression>>;
280 );
281}
282
283impl AXMathExpressionTable {
285 extern_methods!(
286 #[unsafe(method(init))]
287 #[unsafe(method_family = init)]
288 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
289
290 #[unsafe(method(new))]
291 #[unsafe(method_family = new)]
292 pub unsafe fn new() -> Retained<Self>;
293 );
294}
295
296extern_class!(
297 #[unsafe(super(AXMathExpression, NSObject))]
299 #[derive(Debug, PartialEq, Eq, Hash)]
300 pub struct AXMathExpressionTableRow;
301);
302
303unsafe impl NSObjectProtocol for AXMathExpressionTableRow {}
304
305impl AXMathExpressionTableRow {
306 extern_methods!(
307 #[unsafe(method(initWithExpressions:))]
308 #[unsafe(method_family = init)]
309 pub unsafe fn initWithExpressions(
310 this: Allocated<Self>,
311 expressions: &NSArray<AXMathExpression>,
312 ) -> Retained<Self>;
313
314 #[unsafe(method(expressions))]
315 #[unsafe(method_family = none)]
316 pub unsafe fn expressions(&self) -> Retained<NSArray<AXMathExpression>>;
317 );
318}
319
320impl AXMathExpressionTableRow {
322 extern_methods!(
323 #[unsafe(method(init))]
324 #[unsafe(method_family = init)]
325 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
326
327 #[unsafe(method(new))]
328 #[unsafe(method_family = new)]
329 pub unsafe fn new() -> Retained<Self>;
330 );
331}
332
333extern_class!(
334 #[unsafe(super(AXMathExpression, NSObject))]
336 #[derive(Debug, PartialEq, Eq, Hash)]
337 pub struct AXMathExpressionTableCell;
338);
339
340unsafe impl NSObjectProtocol for AXMathExpressionTableCell {}
341
342impl AXMathExpressionTableCell {
343 extern_methods!(
344 #[unsafe(method(initWithExpressions:))]
345 #[unsafe(method_family = init)]
346 pub unsafe fn initWithExpressions(
347 this: Allocated<Self>,
348 expressions: &NSArray<AXMathExpression>,
349 ) -> Retained<Self>;
350
351 #[unsafe(method(expressions))]
352 #[unsafe(method_family = none)]
353 pub unsafe fn expressions(&self) -> Retained<NSArray<AXMathExpression>>;
354 );
355}
356
357impl AXMathExpressionTableCell {
359 extern_methods!(
360 #[unsafe(method(init))]
361 #[unsafe(method_family = init)]
362 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
363
364 #[unsafe(method(new))]
365 #[unsafe(method_family = new)]
366 pub unsafe fn new() -> Retained<Self>;
367 );
368}
369
370extern_class!(
371 #[unsafe(super(AXMathExpression, NSObject))]
373 #[derive(Debug, PartialEq, Eq, Hash)]
374 pub struct AXMathExpressionUnderOver;
375);
376
377unsafe impl NSObjectProtocol for AXMathExpressionUnderOver {}
378
379impl AXMathExpressionUnderOver {
380 extern_methods!(
381 #[unsafe(method(initWithBaseExpression:underExpression:overExpression:))]
382 #[unsafe(method_family = init)]
383 pub unsafe fn initWithBaseExpression_underExpression_overExpression(
384 this: Allocated<Self>,
385 base_expression: &AXMathExpression,
386 under_expression: &AXMathExpression,
387 over_expression: &AXMathExpression,
388 ) -> Retained<Self>;
389
390 #[unsafe(method(baseExpression))]
391 #[unsafe(method_family = none)]
392 pub unsafe fn baseExpression(&self) -> Retained<AXMathExpression>;
393
394 #[unsafe(method(underExpression))]
395 #[unsafe(method_family = none)]
396 pub unsafe fn underExpression(&self) -> Retained<AXMathExpression>;
397
398 #[unsafe(method(overExpression))]
399 #[unsafe(method_family = none)]
400 pub unsafe fn overExpression(&self) -> Retained<AXMathExpression>;
401 );
402}
403
404impl AXMathExpressionUnderOver {
406 extern_methods!(
407 #[unsafe(method(init))]
408 #[unsafe(method_family = init)]
409 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
410
411 #[unsafe(method(new))]
412 #[unsafe(method_family = new)]
413 pub unsafe fn new() -> Retained<Self>;
414 );
415}
416
417extern_class!(
418 #[unsafe(super(AXMathExpression, NSObject))]
420 #[derive(Debug, PartialEq, Eq, Hash)]
421 pub struct AXMathExpressionSubSuperscript;
422);
423
424unsafe impl NSObjectProtocol for AXMathExpressionSubSuperscript {}
425
426impl AXMathExpressionSubSuperscript {
427 extern_methods!(
428 #[unsafe(method(initWithBaseExpression:subscriptExpressions:superscriptExpressions:))]
429 #[unsafe(method_family = init)]
430 pub unsafe fn initWithBaseExpression_subscriptExpressions_superscriptExpressions(
431 this: Allocated<Self>,
432 base_expression: &NSArray<AXMathExpression>,
433 subscript_expressions: &NSArray<AXMathExpression>,
434 superscript_expressions: &NSArray<AXMathExpression>,
435 ) -> Retained<Self>;
436
437 #[unsafe(method(baseExpression))]
438 #[unsafe(method_family = none)]
439 pub unsafe fn baseExpression(&self) -> Retained<AXMathExpression>;
440
441 #[unsafe(method(subscriptExpressions))]
442 #[unsafe(method_family = none)]
443 pub unsafe fn subscriptExpressions(&self) -> Retained<NSArray<AXMathExpression>>;
444
445 #[unsafe(method(superscriptExpressions))]
446 #[unsafe(method_family = none)]
447 pub unsafe fn superscriptExpressions(&self) -> Retained<NSArray<AXMathExpression>>;
448 );
449}
450
451impl AXMathExpressionSubSuperscript {
453 extern_methods!(
454 #[unsafe(method(init))]
455 #[unsafe(method_family = init)]
456 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
457
458 #[unsafe(method(new))]
459 #[unsafe(method_family = new)]
460 pub unsafe fn new() -> Retained<Self>;
461 );
462}
463
464extern_class!(
465 #[unsafe(super(AXMathExpression, NSObject))]
467 #[derive(Debug, PartialEq, Eq, Hash)]
468 pub struct AXMathExpressionFraction;
469);
470
471unsafe impl NSObjectProtocol for AXMathExpressionFraction {}
472
473impl AXMathExpressionFraction {
474 extern_methods!(
475 #[unsafe(method(initWithNumeratorExpression:denimonatorExpression:))]
476 #[unsafe(method_family = init)]
477 pub unsafe fn initWithNumeratorExpression_denimonatorExpression(
478 this: Allocated<Self>,
479 numerator_expression: &AXMathExpression,
480 denimonator_expression: &AXMathExpression,
481 ) -> Retained<Self>;
482
483 #[unsafe(method(numeratorExpression))]
484 #[unsafe(method_family = none)]
485 pub unsafe fn numeratorExpression(&self) -> Retained<AXMathExpression>;
486
487 #[unsafe(method(denimonatorExpression))]
488 #[unsafe(method_family = none)]
489 pub unsafe fn denimonatorExpression(&self) -> Retained<AXMathExpression>;
490 );
491}
492
493impl AXMathExpressionFraction {
495 extern_methods!(
496 #[unsafe(method(init))]
497 #[unsafe(method_family = init)]
498 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
499
500 #[unsafe(method(new))]
501 #[unsafe(method_family = new)]
502 pub unsafe fn new() -> Retained<Self>;
503 );
504}
505
506extern_class!(
507 #[unsafe(super(AXMathExpression, NSObject))]
509 #[derive(Debug, PartialEq, Eq, Hash)]
510 pub struct AXMathExpressionMultiscript;
511);
512
513unsafe impl NSObjectProtocol for AXMathExpressionMultiscript {}
514
515impl AXMathExpressionMultiscript {
516 extern_methods!(
517 #[unsafe(method(initWithBaseExpression:prescriptExpressions:postscriptExpressions:))]
518 #[unsafe(method_family = init)]
519 pub unsafe fn initWithBaseExpression_prescriptExpressions_postscriptExpressions(
520 this: Allocated<Self>,
521 base_expression: &AXMathExpression,
522 prescript_expressions: &NSArray<AXMathExpressionSubSuperscript>,
523 postscript_expressions: &NSArray<AXMathExpressionSubSuperscript>,
524 ) -> Retained<Self>;
525
526 #[unsafe(method(baseExpression))]
527 #[unsafe(method_family = none)]
528 pub unsafe fn baseExpression(&self) -> Retained<AXMathExpression>;
529
530 #[unsafe(method(prescriptExpressions))]
531 #[unsafe(method_family = none)]
532 pub unsafe fn prescriptExpressions(
533 &self,
534 ) -> Retained<NSArray<AXMathExpressionSubSuperscript>>;
535
536 #[unsafe(method(postscriptExpressions))]
537 #[unsafe(method_family = none)]
538 pub unsafe fn postscriptExpressions(
539 &self,
540 ) -> Retained<NSArray<AXMathExpressionSubSuperscript>>;
541 );
542}
543
544impl AXMathExpressionMultiscript {
546 extern_methods!(
547 #[unsafe(method(init))]
548 #[unsafe(method_family = init)]
549 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
550
551 #[unsafe(method(new))]
552 #[unsafe(method_family = new)]
553 pub unsafe fn new() -> Retained<Self>;
554 );
555}
556
557extern_class!(
558 #[unsafe(super(AXMathExpression, NSObject))]
560 #[derive(Debug, PartialEq, Eq, Hash)]
561 pub struct AXMathExpressionRoot;
562);
563
564unsafe impl NSObjectProtocol for AXMathExpressionRoot {}
565
566impl AXMathExpressionRoot {
567 extern_methods!(
568 #[unsafe(method(initWithRadicandExpressions:rootIndexExpression:))]
569 #[unsafe(method_family = init)]
570 pub unsafe fn initWithRadicandExpressions_rootIndexExpression(
571 this: Allocated<Self>,
572 radicand_expressions: &NSArray<AXMathExpression>,
573 root_index_expression: &AXMathExpression,
574 ) -> Retained<Self>;
575
576 #[unsafe(method(radicandExpressions))]
577 #[unsafe(method_family = none)]
578 pub unsafe fn radicandExpressions(&self) -> Retained<NSArray<AXMathExpression>>;
579
580 #[unsafe(method(rootIndexExpression))]
581 #[unsafe(method_family = none)]
582 pub unsafe fn rootIndexExpression(&self) -> Retained<AXMathExpression>;
583 );
584}
585
586impl AXMathExpressionRoot {
588 extern_methods!(
589 #[unsafe(method(init))]
590 #[unsafe(method_family = init)]
591 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
592
593 #[unsafe(method(new))]
594 #[unsafe(method_family = new)]
595 pub unsafe fn new() -> Retained<Self>;
596 );
597}
598
599extern_protocol!(
600 pub unsafe trait AXMathExpressionProvider: NSObjectProtocol {
602 #[unsafe(method(accessibilityMathExpression))]
603 #[unsafe(method_family = none)]
604 unsafe fn accessibilityMathExpression(&self) -> Option<Retained<AXMathExpression>>;
605 }
606);