use core::ffi::*;
use core::ptr::NonNull;
use objc2::__framework_prelude::*;
use objc2_foundation::*;
use crate::*;
extern_class!(
#[unsafe(super(CLSActivityItem, CLSObject, NSObject))]
#[derive(Debug, PartialEq, Eq, Hash)]
#[cfg(all(feature = "CLSActivityItem", feature = "CLSObject"))]
pub struct CLSQuantityItem;
);
#[cfg(all(feature = "CLSActivityItem", feature = "CLSObject"))]
extern_conformance!(
unsafe impl NSCoding for CLSQuantityItem {}
);
#[cfg(all(feature = "CLSActivityItem", feature = "CLSObject"))]
extern_conformance!(
unsafe impl NSObjectProtocol for CLSQuantityItem {}
);
#[cfg(all(feature = "CLSActivityItem", feature = "CLSObject"))]
extern_conformance!(
unsafe impl NSSecureCoding for CLSQuantityItem {}
);
#[cfg(all(feature = "CLSActivityItem", feature = "CLSObject"))]
impl CLSQuantityItem {
extern_methods!(
#[unsafe(method(quantity))]
#[unsafe(method_family = none)]
pub unsafe fn quantity(&self) -> c_double;
#[unsafe(method(setQuantity:))]
#[unsafe(method_family = none)]
pub unsafe fn setQuantity(&self, quantity: c_double);
#[unsafe(method(initWithIdentifier:title:))]
#[unsafe(method_family = init)]
pub unsafe fn initWithIdentifier_title(
this: Allocated<Self>,
identifier: &NSString,
title: &NSString,
) -> Retained<Self>;
);
}
#[cfg(all(feature = "CLSActivityItem", feature = "CLSObject"))]
impl CLSQuantityItem {
extern_methods!(
#[unsafe(method(new))]
#[unsafe(method_family = new)]
pub unsafe fn new() -> Retained<Self>;
#[unsafe(method(init))]
#[unsafe(method_family = init)]
pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
);
}