60 lines
1.9 KiB
Rust
60 lines
1.9 KiB
Rust
//! This file has been automatically generated by `objc2`'s `header-translator`.
|
|
//! DO NOT EDIT
|
|
use objc2::__framework_prelude::*;
|
|
use objc2_foundation::*;
|
|
|
|
use crate::*;
|
|
|
|
extern_class!(
|
|
#[derive(Debug, PartialEq, Eq, Hash)]
|
|
#[cfg(feature = "NSPropertyDescription")]
|
|
pub struct NSExpressionDescription;
|
|
|
|
#[cfg(feature = "NSPropertyDescription")]
|
|
unsafe impl ClassType for NSExpressionDescription {
|
|
#[inherits(NSObject)]
|
|
type Super = NSPropertyDescription;
|
|
type Mutability = InteriorMutable;
|
|
}
|
|
);
|
|
|
|
#[cfg(feature = "NSPropertyDescription")]
|
|
unsafe impl NSCoding for NSExpressionDescription {}
|
|
|
|
#[cfg(feature = "NSPropertyDescription")]
|
|
unsafe impl NSCopying for NSExpressionDescription {}
|
|
|
|
#[cfg(feature = "NSPropertyDescription")]
|
|
unsafe impl NSObjectProtocol for NSExpressionDescription {}
|
|
|
|
extern_methods!(
|
|
#[cfg(feature = "NSPropertyDescription")]
|
|
unsafe impl NSExpressionDescription {
|
|
#[method_id(@__retain_semantics Other expression)]
|
|
pub unsafe fn expression(&self) -> Option<Retained<NSExpression>>;
|
|
|
|
#[method(setExpression:)]
|
|
pub unsafe fn setExpression(&self, expression: Option<&NSExpression>);
|
|
|
|
#[cfg(feature = "NSAttributeDescription")]
|
|
#[method(expressionResultType)]
|
|
pub unsafe fn expressionResultType(&self) -> NSAttributeType;
|
|
|
|
#[cfg(feature = "NSAttributeDescription")]
|
|
#[method(setExpressionResultType:)]
|
|
pub unsafe fn setExpressionResultType(&self, expression_result_type: NSAttributeType);
|
|
}
|
|
);
|
|
|
|
extern_methods!(
|
|
/// Methods declared on superclass `NSObject`
|
|
#[cfg(feature = "NSPropertyDescription")]
|
|
unsafe impl NSExpressionDescription {
|
|
#[method_id(@__retain_semantics Init init)]
|
|
pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
|
|
|
|
#[method_id(@__retain_semantics New new)]
|
|
pub unsafe fn new() -> Retained<Self>;
|
|
}
|
|
);
|