objc2_accessibility/generated/
AXMathExpression.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/accessibility/axmathexpression?language=objc)
11    #[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
28/// Methods declared on superclass `NSObject`.
29impl 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    /// [Apple's documentation](https://developer.apple.com/documentation/accessibility/axmathexpressionnumber?language=objc)
43    #[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))]
59        #[unsafe(method_family = none)]
60        pub unsafe fn content(&self) -> Retained<NSString>;
61    );
62}
63
64/// Methods declared on superclass `NSObject`.
65impl AXMathExpressionNumber {
66    extern_methods!(
67        #[unsafe(method(init))]
68        #[unsafe(method_family = init)]
69        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
70
71        #[unsafe(method(new))]
72        #[unsafe(method_family = new)]
73        pub unsafe fn new() -> Retained<Self>;
74    );
75}
76
77extern_class!(
78    /// [Apple's documentation](https://developer.apple.com/documentation/accessibility/axmathexpressionidentifier?language=objc)
79    #[unsafe(super(AXMathExpression, NSObject))]
80    #[derive(Debug, PartialEq, Eq, Hash)]
81    pub struct AXMathExpressionIdentifier;
82);
83
84extern_conformance!(
85    unsafe impl NSObjectProtocol for AXMathExpressionIdentifier {}
86);
87
88impl AXMathExpressionIdentifier {
89    extern_methods!(
90        #[unsafe(method(initWithContent:))]
91        #[unsafe(method_family = init)]
92        pub unsafe fn initWithContent(this: Allocated<Self>, content: &NSString) -> Retained<Self>;
93
94        #[unsafe(method(content))]
95        #[unsafe(method_family = none)]
96        pub unsafe fn content(&self) -> Retained<NSString>;
97    );
98}
99
100/// Methods declared on superclass `NSObject`.
101impl AXMathExpressionIdentifier {
102    extern_methods!(
103        #[unsafe(method(init))]
104        #[unsafe(method_family = init)]
105        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
106
107        #[unsafe(method(new))]
108        #[unsafe(method_family = new)]
109        pub unsafe fn new() -> Retained<Self>;
110    );
111}
112
113extern_class!(
114    /// [Apple's documentation](https://developer.apple.com/documentation/accessibility/axmathexpressionoperator?language=objc)
115    #[unsafe(super(AXMathExpression, NSObject))]
116    #[derive(Debug, PartialEq, Eq, Hash)]
117    pub struct AXMathExpressionOperator;
118);
119
120extern_conformance!(
121    unsafe impl NSObjectProtocol for AXMathExpressionOperator {}
122);
123
124impl AXMathExpressionOperator {
125    extern_methods!(
126        #[unsafe(method(initWithContent:))]
127        #[unsafe(method_family = init)]
128        pub unsafe fn initWithContent(this: Allocated<Self>, content: &NSString) -> Retained<Self>;
129
130        #[unsafe(method(content))]
131        #[unsafe(method_family = none)]
132        pub unsafe fn content(&self) -> Retained<NSString>;
133    );
134}
135
136/// Methods declared on superclass `NSObject`.
137impl AXMathExpressionOperator {
138    extern_methods!(
139        #[unsafe(method(init))]
140        #[unsafe(method_family = init)]
141        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
142
143        #[unsafe(method(new))]
144        #[unsafe(method_family = new)]
145        pub unsafe fn new() -> Retained<Self>;
146    );
147}
148
149extern_class!(
150    /// [Apple's documentation](https://developer.apple.com/documentation/accessibility/axmathexpressiontext?language=objc)
151    #[unsafe(super(AXMathExpression, NSObject))]
152    #[derive(Debug, PartialEq, Eq, Hash)]
153    pub struct AXMathExpressionText;
154);
155
156extern_conformance!(
157    unsafe impl NSObjectProtocol for AXMathExpressionText {}
158);
159
160impl AXMathExpressionText {
161    extern_methods!(
162        #[unsafe(method(initWithContent:))]
163        #[unsafe(method_family = init)]
164        pub unsafe fn initWithContent(this: Allocated<Self>, content: &NSString) -> Retained<Self>;
165
166        #[unsafe(method(content))]
167        #[unsafe(method_family = none)]
168        pub unsafe fn content(&self) -> Retained<NSString>;
169    );
170}
171
172/// Methods declared on superclass `NSObject`.
173impl AXMathExpressionText {
174    extern_methods!(
175        #[unsafe(method(init))]
176        #[unsafe(method_family = init)]
177        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
178
179        #[unsafe(method(new))]
180        #[unsafe(method_family = new)]
181        pub unsafe fn new() -> Retained<Self>;
182    );
183}
184
185extern_class!(
186    /// [Apple's documentation](https://developer.apple.com/documentation/accessibility/axmathexpressionfenced?language=objc)
187    #[unsafe(super(AXMathExpression, NSObject))]
188    #[derive(Debug, PartialEq, Eq, Hash)]
189    pub struct AXMathExpressionFenced;
190);
191
192extern_conformance!(
193    unsafe impl NSObjectProtocol for AXMathExpressionFenced {}
194);
195
196impl AXMathExpressionFenced {
197    extern_methods!(
198        #[unsafe(method(initWithExpressions:openString:closeString:))]
199        #[unsafe(method_family = init)]
200        pub unsafe fn initWithExpressions_openString_closeString(
201            this: Allocated<Self>,
202            expressions: &NSArray<AXMathExpression>,
203            open_string: &NSString,
204            close_string: &NSString,
205        ) -> Retained<Self>;
206
207        #[unsafe(method(expressions))]
208        #[unsafe(method_family = none)]
209        pub unsafe fn expressions(&self) -> Retained<NSArray<AXMathExpression>>;
210
211        #[unsafe(method(openString))]
212        #[unsafe(method_family = none)]
213        pub unsafe fn openString(&self) -> Retained<NSString>;
214
215        #[unsafe(method(closeString))]
216        #[unsafe(method_family = none)]
217        pub unsafe fn closeString(&self) -> Retained<NSString>;
218    );
219}
220
221/// Methods declared on superclass `NSObject`.
222impl AXMathExpressionFenced {
223    extern_methods!(
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}
233
234extern_class!(
235    /// [Apple's documentation](https://developer.apple.com/documentation/accessibility/axmathexpressionrow?language=objc)
236    #[unsafe(super(AXMathExpression, NSObject))]
237    #[derive(Debug, PartialEq, Eq, Hash)]
238    pub struct AXMathExpressionRow;
239);
240
241extern_conformance!(
242    unsafe impl NSObjectProtocol for AXMathExpressionRow {}
243);
244
245impl AXMathExpressionRow {
246    extern_methods!(
247        #[unsafe(method(initWithExpressions:))]
248        #[unsafe(method_family = init)]
249        pub unsafe fn initWithExpressions(
250            this: Allocated<Self>,
251            expressions: &NSArray<AXMathExpression>,
252        ) -> Retained<Self>;
253
254        #[unsafe(method(expressions))]
255        #[unsafe(method_family = none)]
256        pub unsafe fn expressions(&self) -> Retained<NSArray<AXMathExpression>>;
257    );
258}
259
260/// Methods declared on superclass `NSObject`.
261impl AXMathExpressionRow {
262    extern_methods!(
263        #[unsafe(method(init))]
264        #[unsafe(method_family = init)]
265        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
266
267        #[unsafe(method(new))]
268        #[unsafe(method_family = new)]
269        pub unsafe fn new() -> Retained<Self>;
270    );
271}
272
273extern_class!(
274    /// [Apple's documentation](https://developer.apple.com/documentation/accessibility/axmathexpressiontable?language=objc)
275    #[unsafe(super(AXMathExpression, NSObject))]
276    #[derive(Debug, PartialEq, Eq, Hash)]
277    pub struct AXMathExpressionTable;
278);
279
280extern_conformance!(
281    unsafe impl NSObjectProtocol for AXMathExpressionTable {}
282);
283
284impl AXMathExpressionTable {
285    extern_methods!(
286        #[unsafe(method(initWithExpressions:))]
287        #[unsafe(method_family = init)]
288        pub unsafe fn initWithExpressions(
289            this: Allocated<Self>,
290            expressions: &NSArray<AXMathExpression>,
291        ) -> Retained<Self>;
292
293        #[unsafe(method(expressions))]
294        #[unsafe(method_family = none)]
295        pub unsafe fn expressions(&self) -> Retained<NSArray<AXMathExpression>>;
296    );
297}
298
299/// Methods declared on superclass `NSObject`.
300impl AXMathExpressionTable {
301    extern_methods!(
302        #[unsafe(method(init))]
303        #[unsafe(method_family = init)]
304        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
305
306        #[unsafe(method(new))]
307        #[unsafe(method_family = new)]
308        pub unsafe fn new() -> Retained<Self>;
309    );
310}
311
312extern_class!(
313    /// [Apple's documentation](https://developer.apple.com/documentation/accessibility/axmathexpressiontablerow?language=objc)
314    #[unsafe(super(AXMathExpression, NSObject))]
315    #[derive(Debug, PartialEq, Eq, Hash)]
316    pub struct AXMathExpressionTableRow;
317);
318
319extern_conformance!(
320    unsafe impl NSObjectProtocol for AXMathExpressionTableRow {}
321);
322
323impl AXMathExpressionTableRow {
324    extern_methods!(
325        #[unsafe(method(initWithExpressions:))]
326        #[unsafe(method_family = init)]
327        pub unsafe fn initWithExpressions(
328            this: Allocated<Self>,
329            expressions: &NSArray<AXMathExpression>,
330        ) -> Retained<Self>;
331
332        #[unsafe(method(expressions))]
333        #[unsafe(method_family = none)]
334        pub unsafe fn expressions(&self) -> Retained<NSArray<AXMathExpression>>;
335    );
336}
337
338/// Methods declared on superclass `NSObject`.
339impl AXMathExpressionTableRow {
340    extern_methods!(
341        #[unsafe(method(init))]
342        #[unsafe(method_family = init)]
343        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
344
345        #[unsafe(method(new))]
346        #[unsafe(method_family = new)]
347        pub unsafe fn new() -> Retained<Self>;
348    );
349}
350
351extern_class!(
352    /// [Apple's documentation](https://developer.apple.com/documentation/accessibility/axmathexpressiontablecell?language=objc)
353    #[unsafe(super(AXMathExpression, NSObject))]
354    #[derive(Debug, PartialEq, Eq, Hash)]
355    pub struct AXMathExpressionTableCell;
356);
357
358extern_conformance!(
359    unsafe impl NSObjectProtocol for AXMathExpressionTableCell {}
360);
361
362impl AXMathExpressionTableCell {
363    extern_methods!(
364        #[unsafe(method(initWithExpressions:))]
365        #[unsafe(method_family = init)]
366        pub unsafe fn initWithExpressions(
367            this: Allocated<Self>,
368            expressions: &NSArray<AXMathExpression>,
369        ) -> Retained<Self>;
370
371        #[unsafe(method(expressions))]
372        #[unsafe(method_family = none)]
373        pub unsafe fn expressions(&self) -> Retained<NSArray<AXMathExpression>>;
374    );
375}
376
377/// Methods declared on superclass `NSObject`.
378impl AXMathExpressionTableCell {
379    extern_methods!(
380        #[unsafe(method(init))]
381        #[unsafe(method_family = init)]
382        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
383
384        #[unsafe(method(new))]
385        #[unsafe(method_family = new)]
386        pub unsafe fn new() -> Retained<Self>;
387    );
388}
389
390extern_class!(
391    /// [Apple's documentation](https://developer.apple.com/documentation/accessibility/axmathexpressionunderover?language=objc)
392    #[unsafe(super(AXMathExpression, NSObject))]
393    #[derive(Debug, PartialEq, Eq, Hash)]
394    pub struct AXMathExpressionUnderOver;
395);
396
397extern_conformance!(
398    unsafe impl NSObjectProtocol for AXMathExpressionUnderOver {}
399);
400
401impl AXMathExpressionUnderOver {
402    extern_methods!(
403        #[unsafe(method(initWithBaseExpression:underExpression:overExpression:))]
404        #[unsafe(method_family = init)]
405        pub unsafe fn initWithBaseExpression_underExpression_overExpression(
406            this: Allocated<Self>,
407            base_expression: &AXMathExpression,
408            under_expression: &AXMathExpression,
409            over_expression: &AXMathExpression,
410        ) -> Retained<Self>;
411
412        #[unsafe(method(baseExpression))]
413        #[unsafe(method_family = none)]
414        pub unsafe fn baseExpression(&self) -> Retained<AXMathExpression>;
415
416        #[unsafe(method(underExpression))]
417        #[unsafe(method_family = none)]
418        pub unsafe fn underExpression(&self) -> Retained<AXMathExpression>;
419
420        #[unsafe(method(overExpression))]
421        #[unsafe(method_family = none)]
422        pub unsafe fn overExpression(&self) -> Retained<AXMathExpression>;
423    );
424}
425
426/// Methods declared on superclass `NSObject`.
427impl AXMathExpressionUnderOver {
428    extern_methods!(
429        #[unsafe(method(init))]
430        #[unsafe(method_family = init)]
431        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
432
433        #[unsafe(method(new))]
434        #[unsafe(method_family = new)]
435        pub unsafe fn new() -> Retained<Self>;
436    );
437}
438
439extern_class!(
440    /// [Apple's documentation](https://developer.apple.com/documentation/accessibility/axmathexpressionsubsuperscript?language=objc)
441    #[unsafe(super(AXMathExpression, NSObject))]
442    #[derive(Debug, PartialEq, Eq, Hash)]
443    pub struct AXMathExpressionSubSuperscript;
444);
445
446extern_conformance!(
447    unsafe impl NSObjectProtocol for AXMathExpressionSubSuperscript {}
448);
449
450impl AXMathExpressionSubSuperscript {
451    extern_methods!(
452        #[unsafe(method(initWithBaseExpression:subscriptExpressions:superscriptExpressions:))]
453        #[unsafe(method_family = init)]
454        pub unsafe fn initWithBaseExpression_subscriptExpressions_superscriptExpressions(
455            this: Allocated<Self>,
456            base_expression: &NSArray<AXMathExpression>,
457            subscript_expressions: &NSArray<AXMathExpression>,
458            superscript_expressions: &NSArray<AXMathExpression>,
459        ) -> Retained<Self>;
460
461        #[unsafe(method(baseExpression))]
462        #[unsafe(method_family = none)]
463        pub unsafe fn baseExpression(&self) -> Retained<AXMathExpression>;
464
465        #[unsafe(method(subscriptExpressions))]
466        #[unsafe(method_family = none)]
467        pub unsafe fn subscriptExpressions(&self) -> Retained<NSArray<AXMathExpression>>;
468
469        #[unsafe(method(superscriptExpressions))]
470        #[unsafe(method_family = none)]
471        pub unsafe fn superscriptExpressions(&self) -> Retained<NSArray<AXMathExpression>>;
472    );
473}
474
475/// Methods declared on superclass `NSObject`.
476impl AXMathExpressionSubSuperscript {
477    extern_methods!(
478        #[unsafe(method(init))]
479        #[unsafe(method_family = init)]
480        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
481
482        #[unsafe(method(new))]
483        #[unsafe(method_family = new)]
484        pub unsafe fn new() -> Retained<Self>;
485    );
486}
487
488extern_class!(
489    /// [Apple's documentation](https://developer.apple.com/documentation/accessibility/axmathexpressionfraction?language=objc)
490    #[unsafe(super(AXMathExpression, NSObject))]
491    #[derive(Debug, PartialEq, Eq, Hash)]
492    pub struct AXMathExpressionFraction;
493);
494
495extern_conformance!(
496    unsafe impl NSObjectProtocol for AXMathExpressionFraction {}
497);
498
499impl AXMathExpressionFraction {
500    extern_methods!(
501        #[unsafe(method(initWithNumeratorExpression:denimonatorExpression:))]
502        #[unsafe(method_family = init)]
503        pub unsafe fn initWithNumeratorExpression_denimonatorExpression(
504            this: Allocated<Self>,
505            numerator_expression: &AXMathExpression,
506            denimonator_expression: &AXMathExpression,
507        ) -> Retained<Self>;
508
509        #[unsafe(method(numeratorExpression))]
510        #[unsafe(method_family = none)]
511        pub unsafe fn numeratorExpression(&self) -> Retained<AXMathExpression>;
512
513        #[unsafe(method(denimonatorExpression))]
514        #[unsafe(method_family = none)]
515        pub unsafe fn denimonatorExpression(&self) -> Retained<AXMathExpression>;
516    );
517}
518
519/// Methods declared on superclass `NSObject`.
520impl AXMathExpressionFraction {
521    extern_methods!(
522        #[unsafe(method(init))]
523        #[unsafe(method_family = init)]
524        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
525
526        #[unsafe(method(new))]
527        #[unsafe(method_family = new)]
528        pub unsafe fn new() -> Retained<Self>;
529    );
530}
531
532extern_class!(
533    /// [Apple's documentation](https://developer.apple.com/documentation/accessibility/axmathexpressionmultiscript?language=objc)
534    #[unsafe(super(AXMathExpression, NSObject))]
535    #[derive(Debug, PartialEq, Eq, Hash)]
536    pub struct AXMathExpressionMultiscript;
537);
538
539extern_conformance!(
540    unsafe impl NSObjectProtocol for AXMathExpressionMultiscript {}
541);
542
543impl AXMathExpressionMultiscript {
544    extern_methods!(
545        #[unsafe(method(initWithBaseExpression:prescriptExpressions:postscriptExpressions:))]
546        #[unsafe(method_family = init)]
547        pub unsafe fn initWithBaseExpression_prescriptExpressions_postscriptExpressions(
548            this: Allocated<Self>,
549            base_expression: &AXMathExpression,
550            prescript_expressions: &NSArray<AXMathExpressionSubSuperscript>,
551            postscript_expressions: &NSArray<AXMathExpressionSubSuperscript>,
552        ) -> Retained<Self>;
553
554        #[unsafe(method(baseExpression))]
555        #[unsafe(method_family = none)]
556        pub unsafe fn baseExpression(&self) -> Retained<AXMathExpression>;
557
558        #[unsafe(method(prescriptExpressions))]
559        #[unsafe(method_family = none)]
560        pub unsafe fn prescriptExpressions(
561            &self,
562        ) -> Retained<NSArray<AXMathExpressionSubSuperscript>>;
563
564        #[unsafe(method(postscriptExpressions))]
565        #[unsafe(method_family = none)]
566        pub unsafe fn postscriptExpressions(
567            &self,
568        ) -> Retained<NSArray<AXMathExpressionSubSuperscript>>;
569    );
570}
571
572/// Methods declared on superclass `NSObject`.
573impl AXMathExpressionMultiscript {
574    extern_methods!(
575        #[unsafe(method(init))]
576        #[unsafe(method_family = init)]
577        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
578
579        #[unsafe(method(new))]
580        #[unsafe(method_family = new)]
581        pub unsafe fn new() -> Retained<Self>;
582    );
583}
584
585extern_class!(
586    /// [Apple's documentation](https://developer.apple.com/documentation/accessibility/axmathexpressionroot?language=objc)
587    #[unsafe(super(AXMathExpression, NSObject))]
588    #[derive(Debug, PartialEq, Eq, Hash)]
589    pub struct AXMathExpressionRoot;
590);
591
592extern_conformance!(
593    unsafe impl NSObjectProtocol for AXMathExpressionRoot {}
594);
595
596impl AXMathExpressionRoot {
597    extern_methods!(
598        #[unsafe(method(initWithRadicandExpressions:rootIndexExpression:))]
599        #[unsafe(method_family = init)]
600        pub unsafe fn initWithRadicandExpressions_rootIndexExpression(
601            this: Allocated<Self>,
602            radicand_expressions: &NSArray<AXMathExpression>,
603            root_index_expression: &AXMathExpression,
604        ) -> Retained<Self>;
605
606        #[unsafe(method(radicandExpressions))]
607        #[unsafe(method_family = none)]
608        pub unsafe fn radicandExpressions(&self) -> Retained<NSArray<AXMathExpression>>;
609
610        #[unsafe(method(rootIndexExpression))]
611        #[unsafe(method_family = none)]
612        pub unsafe fn rootIndexExpression(&self) -> Retained<AXMathExpression>;
613    );
614}
615
616/// Methods declared on superclass `NSObject`.
617impl AXMathExpressionRoot {
618    extern_methods!(
619        #[unsafe(method(init))]
620        #[unsafe(method_family = init)]
621        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
622
623        #[unsafe(method(new))]
624        #[unsafe(method_family = new)]
625        pub unsafe fn new() -> Retained<Self>;
626    );
627}
628
629extern_protocol!(
630    /// [Apple's documentation](https://developer.apple.com/documentation/accessibility/axmathexpressionprovider?language=objc)
631    pub unsafe trait AXMathExpressionProvider: NSObjectProtocol {
632        #[unsafe(method(accessibilityMathExpression))]
633        #[unsafe(method_family = none)]
634        unsafe fn accessibilityMathExpression(&self) -> Option<Retained<AXMathExpression>>;
635    }
636);