use objc2::__framework_prelude::*;
use objc2_foundation::*;
use crate::*;
extern_class!(
#[derive(Debug, PartialEq, Eq, Hash)]
#[cfg(all(feature = "CLSActivityItem", feature = "CLSObject"))]
pub struct CLSScoreItem;
#[cfg(all(feature = "CLSActivityItem", feature = "CLSObject"))]
unsafe impl ClassType for CLSScoreItem {
#[inherits(CLSObject, NSObject)]
type Super = CLSActivityItem;
type Mutability = InteriorMutable;
}
);
#[cfg(all(feature = "CLSActivityItem", feature = "CLSObject"))]
unsafe impl NSCoding for CLSScoreItem {}
#[cfg(all(feature = "CLSActivityItem", feature = "CLSObject"))]
unsafe impl NSObjectProtocol for CLSScoreItem {}
#[cfg(all(feature = "CLSActivityItem", feature = "CLSObject"))]
unsafe impl NSSecureCoding for CLSScoreItem {}
extern_methods!(
#[cfg(all(feature = "CLSActivityItem", feature = "CLSObject"))]
unsafe impl CLSScoreItem {
#[method(score)]
pub unsafe fn score(&self) -> c_double;
#[method(setScore:)]
pub unsafe fn setScore(&self, score: c_double);
#[method(maxScore)]
pub unsafe fn maxScore(&self) -> c_double;
#[method(setMaxScore:)]
pub unsafe fn setMaxScore(&self, max_score: c_double);
#[method_id(@__retain_semantics Init initWithIdentifier:title:score:maxScore:)]
pub unsafe fn initWithIdentifier_title_score_maxScore(
this: Allocated<Self>,
identifier: &NSString,
title: &NSString,
score: c_double,
max_score: c_double,
) -> Retained<Self>;
}
);
extern_methods!(
#[cfg(all(feature = "CLSActivityItem", feature = "CLSObject"))]
unsafe impl CLSScoreItem {
#[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>;
}
);