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
20extern_conformance!(
21 unsafe impl NSObjectProtocol for AXMathExpression {}
22);
23
24impl AXMathExpression {
25 extern_methods!();
26}
27
28impl AXMathExpression {
30 extern_methods!(
31 #[unsafe(method(init))]
32 #[unsafe(method_family = init)]
33 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
34
35 #[unsafe(method(new))]
36 #[unsafe(method_family = new)]
37 pub unsafe fn new() -> Retained<Self>;
38 );
39}
40
41extern_class!(
42 #[unsafe(super(AXMathExpression, NSObject))]
44 #[derive(Debug, PartialEq, Eq, Hash)]
45 pub struct AXMathExpressionNumber;
46);
47
48extern_conformance!(
49 unsafe impl NSObjectProtocol for AXMathExpressionNumber {}
50);
51
52impl AXMathExpressionNumber {
53 extern_methods!(
54 #[unsafe(method(initWithContent:))]
55 #[unsafe(method_family = init)]
56 pub unsafe fn initWithContent(this: Allocated<Self>, content: &NSString) -> Retained<Self>;
57
58 #[unsafe(method(content))]
64 #[unsafe(method_family = none)]
65 pub unsafe fn content(&self) -> Retained<NSString>;
66 );
67}
68
69impl AXMathExpressionNumber {
71 extern_methods!(
72 #[unsafe(method(init))]
73 #[unsafe(method_family = init)]
74 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
75
76 #[unsafe(method(new))]
77 #[unsafe(method_family = new)]
78 pub unsafe fn new() -> Retained<Self>;
79 );
80}
81
82extern_class!(
83 #[unsafe(super(AXMathExpression, NSObject))]
85 #[derive(Debug, PartialEq, Eq, Hash)]
86 pub struct AXMathExpressionIdentifier;
87);
88
89extern_conformance!(
90 unsafe impl NSObjectProtocol for AXMathExpressionIdentifier {}
91);
92
93impl AXMathExpressionIdentifier {
94 extern_methods!(
95 #[unsafe(method(initWithContent:))]
96 #[unsafe(method_family = init)]
97 pub unsafe fn initWithContent(this: Allocated<Self>, content: &NSString) -> Retained<Self>;
98
99 #[unsafe(method(content))]
105 #[unsafe(method_family = none)]
106 pub unsafe fn content(&self) -> Retained<NSString>;
107 );
108}
109
110impl AXMathExpressionIdentifier {
112 extern_methods!(
113 #[unsafe(method(init))]
114 #[unsafe(method_family = init)]
115 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
116
117 #[unsafe(method(new))]
118 #[unsafe(method_family = new)]
119 pub unsafe fn new() -> Retained<Self>;
120 );
121}
122
123extern_class!(
124 #[unsafe(super(AXMathExpression, NSObject))]
126 #[derive(Debug, PartialEq, Eq, Hash)]
127 pub struct AXMathExpressionOperator;
128);
129
130extern_conformance!(
131 unsafe impl NSObjectProtocol for AXMathExpressionOperator {}
132);
133
134impl AXMathExpressionOperator {
135 extern_methods!(
136 #[unsafe(method(initWithContent:))]
137 #[unsafe(method_family = init)]
138 pub unsafe fn initWithContent(this: Allocated<Self>, content: &NSString) -> Retained<Self>;
139
140 #[unsafe(method(content))]
146 #[unsafe(method_family = none)]
147 pub unsafe fn content(&self) -> Retained<NSString>;
148 );
149}
150
151impl AXMathExpressionOperator {
153 extern_methods!(
154 #[unsafe(method(init))]
155 #[unsafe(method_family = init)]
156 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
157
158 #[unsafe(method(new))]
159 #[unsafe(method_family = new)]
160 pub unsafe fn new() -> Retained<Self>;
161 );
162}
163
164extern_class!(
165 #[unsafe(super(AXMathExpression, NSObject))]
167 #[derive(Debug, PartialEq, Eq, Hash)]
168 pub struct AXMathExpressionText;
169);
170
171extern_conformance!(
172 unsafe impl NSObjectProtocol for AXMathExpressionText {}
173);
174
175impl AXMathExpressionText {
176 extern_methods!(
177 #[unsafe(method(initWithContent:))]
178 #[unsafe(method_family = init)]
179 pub unsafe fn initWithContent(this: Allocated<Self>, content: &NSString) -> Retained<Self>;
180
181 #[unsafe(method(content))]
187 #[unsafe(method_family = none)]
188 pub unsafe fn content(&self) -> Retained<NSString>;
189 );
190}
191
192impl AXMathExpressionText {
194 extern_methods!(
195 #[unsafe(method(init))]
196 #[unsafe(method_family = init)]
197 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
198
199 #[unsafe(method(new))]
200 #[unsafe(method_family = new)]
201 pub unsafe fn new() -> Retained<Self>;
202 );
203}
204
205extern_class!(
206 #[unsafe(super(AXMathExpression, NSObject))]
208 #[derive(Debug, PartialEq, Eq, Hash)]
209 pub struct AXMathExpressionFenced;
210);
211
212extern_conformance!(
213 unsafe impl NSObjectProtocol for AXMathExpressionFenced {}
214);
215
216impl AXMathExpressionFenced {
217 extern_methods!(
218 #[unsafe(method(initWithExpressions:openString:closeString:))]
219 #[unsafe(method_family = init)]
220 pub unsafe fn initWithExpressions_openString_closeString(
221 this: Allocated<Self>,
222 expressions: &NSArray<AXMathExpression>,
223 open_string: &NSString,
224 close_string: &NSString,
225 ) -> Retained<Self>;
226
227 #[unsafe(method(expressions))]
233 #[unsafe(method_family = none)]
234 pub unsafe fn expressions(&self) -> Retained<NSArray<AXMathExpression>>;
235
236 #[unsafe(method(openString))]
242 #[unsafe(method_family = none)]
243 pub unsafe fn openString(&self) -> Retained<NSString>;
244
245 #[unsafe(method(closeString))]
251 #[unsafe(method_family = none)]
252 pub unsafe fn closeString(&self) -> Retained<NSString>;
253 );
254}
255
256impl AXMathExpressionFenced {
258 extern_methods!(
259 #[unsafe(method(init))]
260 #[unsafe(method_family = init)]
261 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
262
263 #[unsafe(method(new))]
264 #[unsafe(method_family = new)]
265 pub unsafe fn new() -> Retained<Self>;
266 );
267}
268
269extern_class!(
270 #[unsafe(super(AXMathExpression, NSObject))]
272 #[derive(Debug, PartialEq, Eq, Hash)]
273 pub struct AXMathExpressionRow;
274);
275
276extern_conformance!(
277 unsafe impl NSObjectProtocol for AXMathExpressionRow {}
278);
279
280impl AXMathExpressionRow {
281 extern_methods!(
282 #[unsafe(method(initWithExpressions:))]
283 #[unsafe(method_family = init)]
284 pub unsafe fn initWithExpressions(
285 this: Allocated<Self>,
286 expressions: &NSArray<AXMathExpression>,
287 ) -> Retained<Self>;
288
289 #[unsafe(method(expressions))]
295 #[unsafe(method_family = none)]
296 pub unsafe fn expressions(&self) -> Retained<NSArray<AXMathExpression>>;
297 );
298}
299
300impl AXMathExpressionRow {
302 extern_methods!(
303 #[unsafe(method(init))]
304 #[unsafe(method_family = init)]
305 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
306
307 #[unsafe(method(new))]
308 #[unsafe(method_family = new)]
309 pub unsafe fn new() -> Retained<Self>;
310 );
311}
312
313extern_class!(
314 #[unsafe(super(AXMathExpression, NSObject))]
316 #[derive(Debug, PartialEq, Eq, Hash)]
317 pub struct AXMathExpressionTable;
318);
319
320extern_conformance!(
321 unsafe impl NSObjectProtocol for AXMathExpressionTable {}
322);
323
324impl AXMathExpressionTable {
325 extern_methods!(
326 #[unsafe(method(initWithExpressions:))]
327 #[unsafe(method_family = init)]
328 pub unsafe fn initWithExpressions(
329 this: Allocated<Self>,
330 expressions: &NSArray<AXMathExpression>,
331 ) -> Retained<Self>;
332
333 #[unsafe(method(expressions))]
339 #[unsafe(method_family = none)]
340 pub unsafe fn expressions(&self) -> Retained<NSArray<AXMathExpression>>;
341 );
342}
343
344impl AXMathExpressionTable {
346 extern_methods!(
347 #[unsafe(method(init))]
348 #[unsafe(method_family = init)]
349 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
350
351 #[unsafe(method(new))]
352 #[unsafe(method_family = new)]
353 pub unsafe fn new() -> Retained<Self>;
354 );
355}
356
357extern_class!(
358 #[unsafe(super(AXMathExpression, NSObject))]
360 #[derive(Debug, PartialEq, Eq, Hash)]
361 pub struct AXMathExpressionTableRow;
362);
363
364extern_conformance!(
365 unsafe impl NSObjectProtocol for AXMathExpressionTableRow {}
366);
367
368impl AXMathExpressionTableRow {
369 extern_methods!(
370 #[unsafe(method(initWithExpressions:))]
371 #[unsafe(method_family = init)]
372 pub unsafe fn initWithExpressions(
373 this: Allocated<Self>,
374 expressions: &NSArray<AXMathExpression>,
375 ) -> Retained<Self>;
376
377 #[unsafe(method(expressions))]
383 #[unsafe(method_family = none)]
384 pub unsafe fn expressions(&self) -> Retained<NSArray<AXMathExpression>>;
385 );
386}
387
388impl AXMathExpressionTableRow {
390 extern_methods!(
391 #[unsafe(method(init))]
392 #[unsafe(method_family = init)]
393 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
394
395 #[unsafe(method(new))]
396 #[unsafe(method_family = new)]
397 pub unsafe fn new() -> Retained<Self>;
398 );
399}
400
401extern_class!(
402 #[unsafe(super(AXMathExpression, NSObject))]
404 #[derive(Debug, PartialEq, Eq, Hash)]
405 pub struct AXMathExpressionTableCell;
406);
407
408extern_conformance!(
409 unsafe impl NSObjectProtocol for AXMathExpressionTableCell {}
410);
411
412impl AXMathExpressionTableCell {
413 extern_methods!(
414 #[unsafe(method(initWithExpressions:))]
415 #[unsafe(method_family = init)]
416 pub unsafe fn initWithExpressions(
417 this: Allocated<Self>,
418 expressions: &NSArray<AXMathExpression>,
419 ) -> Retained<Self>;
420
421 #[unsafe(method(expressions))]
427 #[unsafe(method_family = none)]
428 pub unsafe fn expressions(&self) -> Retained<NSArray<AXMathExpression>>;
429 );
430}
431
432impl AXMathExpressionTableCell {
434 extern_methods!(
435 #[unsafe(method(init))]
436 #[unsafe(method_family = init)]
437 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
438
439 #[unsafe(method(new))]
440 #[unsafe(method_family = new)]
441 pub unsafe fn new() -> Retained<Self>;
442 );
443}
444
445extern_class!(
446 #[unsafe(super(AXMathExpression, NSObject))]
448 #[derive(Debug, PartialEq, Eq, Hash)]
449 pub struct AXMathExpressionUnderOver;
450);
451
452extern_conformance!(
453 unsafe impl NSObjectProtocol for AXMathExpressionUnderOver {}
454);
455
456impl AXMathExpressionUnderOver {
457 extern_methods!(
458 #[unsafe(method(initWithBaseExpression:underExpression:overExpression:))]
459 #[unsafe(method_family = init)]
460 pub unsafe fn initWithBaseExpression_underExpression_overExpression(
461 this: Allocated<Self>,
462 base_expression: &AXMathExpression,
463 under_expression: &AXMathExpression,
464 over_expression: &AXMathExpression,
465 ) -> Retained<Self>;
466
467 #[unsafe(method(baseExpression))]
473 #[unsafe(method_family = none)]
474 pub unsafe fn baseExpression(&self) -> Retained<AXMathExpression>;
475
476 #[unsafe(method(underExpression))]
482 #[unsafe(method_family = none)]
483 pub unsafe fn underExpression(&self) -> Retained<AXMathExpression>;
484
485 #[unsafe(method(overExpression))]
491 #[unsafe(method_family = none)]
492 pub unsafe fn overExpression(&self) -> Retained<AXMathExpression>;
493 );
494}
495
496impl AXMathExpressionUnderOver {
498 extern_methods!(
499 #[unsafe(method(init))]
500 #[unsafe(method_family = init)]
501 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
502
503 #[unsafe(method(new))]
504 #[unsafe(method_family = new)]
505 pub unsafe fn new() -> Retained<Self>;
506 );
507}
508
509extern_class!(
510 #[unsafe(super(AXMathExpression, NSObject))]
512 #[derive(Debug, PartialEq, Eq, Hash)]
513 pub struct AXMathExpressionSubSuperscript;
514);
515
516extern_conformance!(
517 unsafe impl NSObjectProtocol for AXMathExpressionSubSuperscript {}
518);
519
520impl AXMathExpressionSubSuperscript {
521 extern_methods!(
522 #[unsafe(method(initWithBaseExpression:subscriptExpressions:superscriptExpressions:))]
523 #[unsafe(method_family = init)]
524 pub unsafe fn initWithBaseExpression_subscriptExpressions_superscriptExpressions(
525 this: Allocated<Self>,
526 base_expression: &NSArray<AXMathExpression>,
527 subscript_expressions: &NSArray<AXMathExpression>,
528 superscript_expressions: &NSArray<AXMathExpression>,
529 ) -> Retained<Self>;
530
531 #[unsafe(method(baseExpression))]
537 #[unsafe(method_family = none)]
538 pub unsafe fn baseExpression(&self) -> Retained<AXMathExpression>;
539
540 #[unsafe(method(subscriptExpressions))]
546 #[unsafe(method_family = none)]
547 pub unsafe fn subscriptExpressions(&self) -> Retained<NSArray<AXMathExpression>>;
548
549 #[unsafe(method(superscriptExpressions))]
555 #[unsafe(method_family = none)]
556 pub unsafe fn superscriptExpressions(&self) -> Retained<NSArray<AXMathExpression>>;
557 );
558}
559
560impl AXMathExpressionSubSuperscript {
562 extern_methods!(
563 #[unsafe(method(init))]
564 #[unsafe(method_family = init)]
565 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
566
567 #[unsafe(method(new))]
568 #[unsafe(method_family = new)]
569 pub unsafe fn new() -> Retained<Self>;
570 );
571}
572
573extern_class!(
574 #[unsafe(super(AXMathExpression, NSObject))]
576 #[derive(Debug, PartialEq, Eq, Hash)]
577 pub struct AXMathExpressionFraction;
578);
579
580extern_conformance!(
581 unsafe impl NSObjectProtocol for AXMathExpressionFraction {}
582);
583
584impl AXMathExpressionFraction {
585 extern_methods!(
586 #[unsafe(method(initWithNumeratorExpression:denimonatorExpression:))]
587 #[unsafe(method_family = init)]
588 pub unsafe fn initWithNumeratorExpression_denimonatorExpression(
589 this: Allocated<Self>,
590 numerator_expression: &AXMathExpression,
591 denimonator_expression: &AXMathExpression,
592 ) -> Retained<Self>;
593
594 #[unsafe(method(numeratorExpression))]
600 #[unsafe(method_family = none)]
601 pub unsafe fn numeratorExpression(&self) -> Retained<AXMathExpression>;
602
603 #[unsafe(method(denimonatorExpression))]
609 #[unsafe(method_family = none)]
610 pub unsafe fn denimonatorExpression(&self) -> Retained<AXMathExpression>;
611 );
612}
613
614impl AXMathExpressionFraction {
616 extern_methods!(
617 #[unsafe(method(init))]
618 #[unsafe(method_family = init)]
619 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
620
621 #[unsafe(method(new))]
622 #[unsafe(method_family = new)]
623 pub unsafe fn new() -> Retained<Self>;
624 );
625}
626
627extern_class!(
628 #[unsafe(super(AXMathExpression, NSObject))]
630 #[derive(Debug, PartialEq, Eq, Hash)]
631 pub struct AXMathExpressionMultiscript;
632);
633
634extern_conformance!(
635 unsafe impl NSObjectProtocol for AXMathExpressionMultiscript {}
636);
637
638impl AXMathExpressionMultiscript {
639 extern_methods!(
640 #[unsafe(method(initWithBaseExpression:prescriptExpressions:postscriptExpressions:))]
641 #[unsafe(method_family = init)]
642 pub unsafe fn initWithBaseExpression_prescriptExpressions_postscriptExpressions(
643 this: Allocated<Self>,
644 base_expression: &AXMathExpression,
645 prescript_expressions: &NSArray<AXMathExpressionSubSuperscript>,
646 postscript_expressions: &NSArray<AXMathExpressionSubSuperscript>,
647 ) -> Retained<Self>;
648
649 #[unsafe(method(baseExpression))]
655 #[unsafe(method_family = none)]
656 pub unsafe fn baseExpression(&self) -> Retained<AXMathExpression>;
657
658 #[unsafe(method(prescriptExpressions))]
664 #[unsafe(method_family = none)]
665 pub unsafe fn prescriptExpressions(
666 &self,
667 ) -> Retained<NSArray<AXMathExpressionSubSuperscript>>;
668
669 #[unsafe(method(postscriptExpressions))]
675 #[unsafe(method_family = none)]
676 pub unsafe fn postscriptExpressions(
677 &self,
678 ) -> Retained<NSArray<AXMathExpressionSubSuperscript>>;
679 );
680}
681
682impl AXMathExpressionMultiscript {
684 extern_methods!(
685 #[unsafe(method(init))]
686 #[unsafe(method_family = init)]
687 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
688
689 #[unsafe(method(new))]
690 #[unsafe(method_family = new)]
691 pub unsafe fn new() -> Retained<Self>;
692 );
693}
694
695extern_class!(
696 #[unsafe(super(AXMathExpression, NSObject))]
698 #[derive(Debug, PartialEq, Eq, Hash)]
699 pub struct AXMathExpressionRoot;
700);
701
702extern_conformance!(
703 unsafe impl NSObjectProtocol for AXMathExpressionRoot {}
704);
705
706impl AXMathExpressionRoot {
707 extern_methods!(
708 #[unsafe(method(initWithRadicandExpressions:rootIndexExpression:))]
709 #[unsafe(method_family = init)]
710 pub unsafe fn initWithRadicandExpressions_rootIndexExpression(
711 this: Allocated<Self>,
712 radicand_expressions: &NSArray<AXMathExpression>,
713 root_index_expression: &AXMathExpression,
714 ) -> Retained<Self>;
715
716 #[unsafe(method(radicandExpressions))]
722 #[unsafe(method_family = none)]
723 pub unsafe fn radicandExpressions(&self) -> Retained<NSArray<AXMathExpression>>;
724
725 #[unsafe(method(rootIndexExpression))]
731 #[unsafe(method_family = none)]
732 pub unsafe fn rootIndexExpression(&self) -> Retained<AXMathExpression>;
733 );
734}
735
736impl AXMathExpressionRoot {
738 extern_methods!(
739 #[unsafe(method(init))]
740 #[unsafe(method_family = init)]
741 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
742
743 #[unsafe(method(new))]
744 #[unsafe(method_family = new)]
745 pub unsafe fn new() -> Retained<Self>;
746 );
747}
748
749extern_protocol!(
750 pub unsafe trait AXMathExpressionProvider: NSObjectProtocol {
752 #[unsafe(method(accessibilityMathExpression))]
753 #[unsafe(method_family = none)]
754 unsafe fn accessibilityMathExpression(&self) -> Option<Retained<AXMathExpression>>;
755 }
756);