use objc2::__framework_prelude::*;
use objc2_foundation::*;
use crate::*;
extern_class!(
#[derive(Debug, PartialEq, Eq, Hash)]
#[cfg(all(feature = "CLSActivityItem", feature = "CLSObject"))]
pub struct CLSQuantityItem;
#[cfg(all(feature = "CLSActivityItem", feature = "CLSObject"))]
unsafe impl ClassType for CLSQuantityItem {
#[inherits(CLSObject, NSObject)]
type Super = CLSActivityItem;
type Mutability = InteriorMutable;
}
);
#[cfg(all(feature = "CLSActivityItem", feature = "CLSObject"))]
unsafe impl NSCoding for CLSQuantityItem {}
#[cfg(all(feature = "CLSActivityItem", feature = "CLSObject"))]
unsafe impl NSObjectProtocol for CLSQuantityItem {}
#[cfg(all(feature = "CLSActivityItem", feature = "CLSObject"))]
unsafe impl NSSecureCoding for CLSQuantityItem {}
extern_methods!(
#[cfg(all(feature = "CLSActivityItem", feature = "CLSObject"))]
unsafe impl CLSQuantityItem {
#[method(quantity)]
pub unsafe fn quantity(&self) -> c_double;
#[method(setQuantity:)]
pub unsafe fn setQuantity(&self, quantity: c_double);
#[method_id(@__retain_semantics Init initWithIdentifier:title:)]
pub unsafe fn initWithIdentifier_title(
this: Allocated<Self>,
identifier: &NSString,
title: &NSString,
) -> Retained<Self>;
}
);
extern_methods!(
#[cfg(all(feature = "CLSActivityItem", feature = "CLSObject"))]
unsafe impl CLSQuantityItem {
#[method_id(@__retain_semantics New new)]
pub unsafe fn new() -> Retained<Self>;
#[method_id(@__retain_semantics Init init)]
pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
}
);