use core::ptr::NonNull;
use objc2::__framework_prelude::*;
use objc2_foundation::*;
use crate::*;
extern_class!(
#[unsafe(super(NSObject))]
#[derive(Debug, PartialEq, Eq, Hash)]
pub struct AXMathExpression;
);
unsafe impl Send for AXMathExpression {}
unsafe impl Sync for AXMathExpression {}
extern_conformance!(
unsafe impl NSObjectProtocol for AXMathExpression {}
);
impl AXMathExpression {
extern_methods!();
}
impl AXMathExpression {
extern_methods!(
#[unsafe(method(init))]
#[unsafe(method_family = init)]
pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
#[unsafe(method(new))]
#[unsafe(method_family = new)]
pub unsafe fn new() -> Retained<Self>;
);
}
extern_class!(
#[unsafe(super(AXMathExpression, NSObject))]
#[derive(Debug, PartialEq, Eq, Hash)]
pub struct AXMathExpressionNumber;
);
extern_conformance!(
unsafe impl NSObjectProtocol for AXMathExpressionNumber {}
);
impl AXMathExpressionNumber {
extern_methods!(
#[unsafe(method(initWithContent:))]
#[unsafe(method_family = init)]
pub unsafe fn initWithContent(this: Allocated<Self>, content: &NSString) -> Retained<Self>;
#[unsafe(method(content))]
#[unsafe(method_family = none)]
pub unsafe fn content(&self) -> Retained<NSString>;
);
}
impl AXMathExpressionNumber {
extern_methods!(
#[unsafe(method(init))]
#[unsafe(method_family = init)]
pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
#[unsafe(method(new))]
#[unsafe(method_family = new)]
pub unsafe fn new() -> Retained<Self>;
);
}
extern_class!(
#[unsafe(super(AXMathExpression, NSObject))]
#[derive(Debug, PartialEq, Eq, Hash)]
pub struct AXMathExpressionIdentifier;
);
extern_conformance!(
unsafe impl NSObjectProtocol for AXMathExpressionIdentifier {}
);
impl AXMathExpressionIdentifier {
extern_methods!(
#[unsafe(method(initWithContent:))]
#[unsafe(method_family = init)]
pub unsafe fn initWithContent(this: Allocated<Self>, content: &NSString) -> Retained<Self>;
#[unsafe(method(content))]
#[unsafe(method_family = none)]
pub unsafe fn content(&self) -> Retained<NSString>;
);
}
impl AXMathExpressionIdentifier {
extern_methods!(
#[unsafe(method(init))]
#[unsafe(method_family = init)]
pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
#[unsafe(method(new))]
#[unsafe(method_family = new)]
pub unsafe fn new() -> Retained<Self>;
);
}
extern_class!(
#[unsafe(super(AXMathExpression, NSObject))]
#[derive(Debug, PartialEq, Eq, Hash)]
pub struct AXMathExpressionOperator;
);
extern_conformance!(
unsafe impl NSObjectProtocol for AXMathExpressionOperator {}
);
impl AXMathExpressionOperator {
extern_methods!(
#[unsafe(method(initWithContent:))]
#[unsafe(method_family = init)]
pub unsafe fn initWithContent(this: Allocated<Self>, content: &NSString) -> Retained<Self>;
#[unsafe(method(content))]
#[unsafe(method_family = none)]
pub unsafe fn content(&self) -> Retained<NSString>;
);
}
impl AXMathExpressionOperator {
extern_methods!(
#[unsafe(method(init))]
#[unsafe(method_family = init)]
pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
#[unsafe(method(new))]
#[unsafe(method_family = new)]
pub unsafe fn new() -> Retained<Self>;
);
}
extern_class!(
#[unsafe(super(AXMathExpression, NSObject))]
#[derive(Debug, PartialEq, Eq, Hash)]
pub struct AXMathExpressionText;
);
extern_conformance!(
unsafe impl NSObjectProtocol for AXMathExpressionText {}
);
impl AXMathExpressionText {
extern_methods!(
#[unsafe(method(initWithContent:))]
#[unsafe(method_family = init)]
pub unsafe fn initWithContent(this: Allocated<Self>, content: &NSString) -> Retained<Self>;
#[unsafe(method(content))]
#[unsafe(method_family = none)]
pub unsafe fn content(&self) -> Retained<NSString>;
);
}
impl AXMathExpressionText {
extern_methods!(
#[unsafe(method(init))]
#[unsafe(method_family = init)]
pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
#[unsafe(method(new))]
#[unsafe(method_family = new)]
pub unsafe fn new() -> Retained<Self>;
);
}
extern_class!(
#[unsafe(super(AXMathExpression, NSObject))]
#[derive(Debug, PartialEq, Eq, Hash)]
pub struct AXMathExpressionFenced;
);
extern_conformance!(
unsafe impl NSObjectProtocol for AXMathExpressionFenced {}
);
impl AXMathExpressionFenced {
extern_methods!(
#[unsafe(method(initWithExpressions:openString:closeString:))]
#[unsafe(method_family = init)]
pub unsafe fn initWithExpressions_openString_closeString(
this: Allocated<Self>,
expressions: &NSArray<AXMathExpression>,
open_string: &NSString,
close_string: &NSString,
) -> Retained<Self>;
#[unsafe(method(expressions))]
#[unsafe(method_family = none)]
pub unsafe fn expressions(&self) -> Retained<NSArray<AXMathExpression>>;
#[unsafe(method(openString))]
#[unsafe(method_family = none)]
pub unsafe fn openString(&self) -> Retained<NSString>;
#[unsafe(method(closeString))]
#[unsafe(method_family = none)]
pub unsafe fn closeString(&self) -> Retained<NSString>;
);
}
impl AXMathExpressionFenced {
extern_methods!(
#[unsafe(method(init))]
#[unsafe(method_family = init)]
pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
#[unsafe(method(new))]
#[unsafe(method_family = new)]
pub unsafe fn new() -> Retained<Self>;
);
}
extern_class!(
#[unsafe(super(AXMathExpression, NSObject))]
#[derive(Debug, PartialEq, Eq, Hash)]
pub struct AXMathExpressionRow;
);
extern_conformance!(
unsafe impl NSObjectProtocol for AXMathExpressionRow {}
);
impl AXMathExpressionRow {
extern_methods!(
#[unsafe(method(initWithExpressions:))]
#[unsafe(method_family = init)]
pub unsafe fn initWithExpressions(
this: Allocated<Self>,
expressions: &NSArray<AXMathExpression>,
) -> Retained<Self>;
#[unsafe(method(expressions))]
#[unsafe(method_family = none)]
pub unsafe fn expressions(&self) -> Retained<NSArray<AXMathExpression>>;
);
}
impl AXMathExpressionRow {
extern_methods!(
#[unsafe(method(init))]
#[unsafe(method_family = init)]
pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
#[unsafe(method(new))]
#[unsafe(method_family = new)]
pub unsafe fn new() -> Retained<Self>;
);
}
extern_class!(
#[unsafe(super(AXMathExpression, NSObject))]
#[derive(Debug, PartialEq, Eq, Hash)]
pub struct AXMathExpressionTable;
);
extern_conformance!(
unsafe impl NSObjectProtocol for AXMathExpressionTable {}
);
impl AXMathExpressionTable {
extern_methods!(
#[unsafe(method(initWithExpressions:))]
#[unsafe(method_family = init)]
pub unsafe fn initWithExpressions(
this: Allocated<Self>,
expressions: &NSArray<AXMathExpression>,
) -> Retained<Self>;
#[unsafe(method(expressions))]
#[unsafe(method_family = none)]
pub unsafe fn expressions(&self) -> Retained<NSArray<AXMathExpression>>;
);
}
impl AXMathExpressionTable {
extern_methods!(
#[unsafe(method(init))]
#[unsafe(method_family = init)]
pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
#[unsafe(method(new))]
#[unsafe(method_family = new)]
pub unsafe fn new() -> Retained<Self>;
);
}
extern_class!(
#[unsafe(super(AXMathExpression, NSObject))]
#[derive(Debug, PartialEq, Eq, Hash)]
pub struct AXMathExpressionTableRow;
);
extern_conformance!(
unsafe impl NSObjectProtocol for AXMathExpressionTableRow {}
);
impl AXMathExpressionTableRow {
extern_methods!(
#[unsafe(method(initWithExpressions:))]
#[unsafe(method_family = init)]
pub unsafe fn initWithExpressions(
this: Allocated<Self>,
expressions: &NSArray<AXMathExpression>,
) -> Retained<Self>;
#[unsafe(method(expressions))]
#[unsafe(method_family = none)]
pub unsafe fn expressions(&self) -> Retained<NSArray<AXMathExpression>>;
);
}
impl AXMathExpressionTableRow {
extern_methods!(
#[unsafe(method(init))]
#[unsafe(method_family = init)]
pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
#[unsafe(method(new))]
#[unsafe(method_family = new)]
pub unsafe fn new() -> Retained<Self>;
);
}
extern_class!(
#[unsafe(super(AXMathExpression, NSObject))]
#[derive(Debug, PartialEq, Eq, Hash)]
pub struct AXMathExpressionTableCell;
);
extern_conformance!(
unsafe impl NSObjectProtocol for AXMathExpressionTableCell {}
);
impl AXMathExpressionTableCell {
extern_methods!(
#[unsafe(method(initWithExpressions:))]
#[unsafe(method_family = init)]
pub unsafe fn initWithExpressions(
this: Allocated<Self>,
expressions: &NSArray<AXMathExpression>,
) -> Retained<Self>;
#[unsafe(method(expressions))]
#[unsafe(method_family = none)]
pub unsafe fn expressions(&self) -> Retained<NSArray<AXMathExpression>>;
);
}
impl AXMathExpressionTableCell {
extern_methods!(
#[unsafe(method(init))]
#[unsafe(method_family = init)]
pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
#[unsafe(method(new))]
#[unsafe(method_family = new)]
pub unsafe fn new() -> Retained<Self>;
);
}
extern_class!(
#[unsafe(super(AXMathExpression, NSObject))]
#[derive(Debug, PartialEq, Eq, Hash)]
pub struct AXMathExpressionUnderOver;
);
extern_conformance!(
unsafe impl NSObjectProtocol for AXMathExpressionUnderOver {}
);
impl AXMathExpressionUnderOver {
extern_methods!(
#[unsafe(method(initWithBaseExpression:underExpression:overExpression:))]
#[unsafe(method_family = init)]
pub unsafe fn initWithBaseExpression_underExpression_overExpression(
this: Allocated<Self>,
base_expression: &AXMathExpression,
under_expression: &AXMathExpression,
over_expression: &AXMathExpression,
) -> Retained<Self>;
#[unsafe(method(baseExpression))]
#[unsafe(method_family = none)]
pub unsafe fn baseExpression(&self) -> Retained<AXMathExpression>;
#[unsafe(method(underExpression))]
#[unsafe(method_family = none)]
pub unsafe fn underExpression(&self) -> Retained<AXMathExpression>;
#[unsafe(method(overExpression))]
#[unsafe(method_family = none)]
pub unsafe fn overExpression(&self) -> Retained<AXMathExpression>;
);
}
impl AXMathExpressionUnderOver {
extern_methods!(
#[unsafe(method(init))]
#[unsafe(method_family = init)]
pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
#[unsafe(method(new))]
#[unsafe(method_family = new)]
pub unsafe fn new() -> Retained<Self>;
);
}
extern_class!(
#[unsafe(super(AXMathExpression, NSObject))]
#[derive(Debug, PartialEq, Eq, Hash)]
pub struct AXMathExpressionSubSuperscript;
);
extern_conformance!(
unsafe impl NSObjectProtocol for AXMathExpressionSubSuperscript {}
);
impl AXMathExpressionSubSuperscript {
extern_methods!(
#[unsafe(method(initWithBaseExpression:subscriptExpressions:superscriptExpressions:))]
#[unsafe(method_family = init)]
pub unsafe fn initWithBaseExpression_subscriptExpressions_superscriptExpressions(
this: Allocated<Self>,
base_expression: &NSArray<AXMathExpression>,
subscript_expressions: &NSArray<AXMathExpression>,
superscript_expressions: &NSArray<AXMathExpression>,
) -> Retained<Self>;
#[unsafe(method(baseExpression))]
#[unsafe(method_family = none)]
pub unsafe fn baseExpression(&self) -> Retained<AXMathExpression>;
#[unsafe(method(subscriptExpressions))]
#[unsafe(method_family = none)]
pub unsafe fn subscriptExpressions(&self) -> Retained<NSArray<AXMathExpression>>;
#[unsafe(method(superscriptExpressions))]
#[unsafe(method_family = none)]
pub unsafe fn superscriptExpressions(&self) -> Retained<NSArray<AXMathExpression>>;
);
}
impl AXMathExpressionSubSuperscript {
extern_methods!(
#[unsafe(method(init))]
#[unsafe(method_family = init)]
pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
#[unsafe(method(new))]
#[unsafe(method_family = new)]
pub unsafe fn new() -> Retained<Self>;
);
}
extern_class!(
#[unsafe(super(AXMathExpression, NSObject))]
#[derive(Debug, PartialEq, Eq, Hash)]
pub struct AXMathExpressionFraction;
);
extern_conformance!(
unsafe impl NSObjectProtocol for AXMathExpressionFraction {}
);
impl AXMathExpressionFraction {
extern_methods!(
#[unsafe(method(initWithNumeratorExpression:denimonatorExpression:))]
#[unsafe(method_family = init)]
pub unsafe fn initWithNumeratorExpression_denimonatorExpression(
this: Allocated<Self>,
numerator_expression: &AXMathExpression,
denimonator_expression: &AXMathExpression,
) -> Retained<Self>;
#[unsafe(method(numeratorExpression))]
#[unsafe(method_family = none)]
pub unsafe fn numeratorExpression(&self) -> Retained<AXMathExpression>;
#[unsafe(method(denimonatorExpression))]
#[unsafe(method_family = none)]
pub unsafe fn denimonatorExpression(&self) -> Retained<AXMathExpression>;
);
}
impl AXMathExpressionFraction {
extern_methods!(
#[unsafe(method(init))]
#[unsafe(method_family = init)]
pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
#[unsafe(method(new))]
#[unsafe(method_family = new)]
pub unsafe fn new() -> Retained<Self>;
);
}
extern_class!(
#[unsafe(super(AXMathExpression, NSObject))]
#[derive(Debug, PartialEq, Eq, Hash)]
pub struct AXMathExpressionMultiscript;
);
extern_conformance!(
unsafe impl NSObjectProtocol for AXMathExpressionMultiscript {}
);
impl AXMathExpressionMultiscript {
extern_methods!(
#[unsafe(method(initWithBaseExpression:prescriptExpressions:postscriptExpressions:))]
#[unsafe(method_family = init)]
pub unsafe fn initWithBaseExpression_prescriptExpressions_postscriptExpressions(
this: Allocated<Self>,
base_expression: &AXMathExpression,
prescript_expressions: &NSArray<AXMathExpressionSubSuperscript>,
postscript_expressions: &NSArray<AXMathExpressionSubSuperscript>,
) -> Retained<Self>;
#[unsafe(method(baseExpression))]
#[unsafe(method_family = none)]
pub unsafe fn baseExpression(&self) -> Retained<AXMathExpression>;
#[unsafe(method(prescriptExpressions))]
#[unsafe(method_family = none)]
pub unsafe fn prescriptExpressions(
&self,
) -> Retained<NSArray<AXMathExpressionSubSuperscript>>;
#[unsafe(method(postscriptExpressions))]
#[unsafe(method_family = none)]
pub unsafe fn postscriptExpressions(
&self,
) -> Retained<NSArray<AXMathExpressionSubSuperscript>>;
);
}
impl AXMathExpressionMultiscript {
extern_methods!(
#[unsafe(method(init))]
#[unsafe(method_family = init)]
pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
#[unsafe(method(new))]
#[unsafe(method_family = new)]
pub unsafe fn new() -> Retained<Self>;
);
}
extern_class!(
#[unsafe(super(AXMathExpression, NSObject))]
#[derive(Debug, PartialEq, Eq, Hash)]
pub struct AXMathExpressionRoot;
);
extern_conformance!(
unsafe impl NSObjectProtocol for AXMathExpressionRoot {}
);
impl AXMathExpressionRoot {
extern_methods!(
#[unsafe(method(initWithRadicandExpressions:rootIndexExpression:))]
#[unsafe(method_family = init)]
pub unsafe fn initWithRadicandExpressions_rootIndexExpression(
this: Allocated<Self>,
radicand_expressions: &NSArray<AXMathExpression>,
root_index_expression: &AXMathExpression,
) -> Retained<Self>;
#[unsafe(method(radicandExpressions))]
#[unsafe(method_family = none)]
pub unsafe fn radicandExpressions(&self) -> Retained<NSArray<AXMathExpression>>;
#[unsafe(method(rootIndexExpression))]
#[unsafe(method_family = none)]
pub unsafe fn rootIndexExpression(&self) -> Retained<AXMathExpression>;
);
}
impl AXMathExpressionRoot {
extern_methods!(
#[unsafe(method(init))]
#[unsafe(method_family = init)]
pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
#[unsafe(method(new))]
#[unsafe(method_family = new)]
pub unsafe fn new() -> Retained<Self>;
);
}
extern_protocol!(
pub unsafe trait AXMathExpressionProvider: NSObjectProtocol {
#[unsafe(method(accessibilityMathExpression))]
#[unsafe(method_family = none)]
unsafe fn accessibilityMathExpression(&self) -> Option<Retained<AXMathExpression>>;
}
);