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 CLSScoreItem;
);
#[cfg(all(feature = "CLSActivityItem", feature = "CLSObject"))]
extern_conformance!(
unsafe impl NSCoding for CLSScoreItem {}
);
#[cfg(all(feature = "CLSActivityItem", feature = "CLSObject"))]
extern_conformance!(
unsafe impl NSObjectProtocol for CLSScoreItem {}
);
#[cfg(all(feature = "CLSActivityItem", feature = "CLSObject"))]
extern_conformance!(
unsafe impl NSSecureCoding for CLSScoreItem {}
);
#[cfg(all(feature = "CLSActivityItem", feature = "CLSObject"))]
impl CLSScoreItem {
extern_methods!(
#[unsafe(method(score))]
#[unsafe(method_family = none)]
pub unsafe fn score(&self) -> c_double;
#[unsafe(method(setScore:))]
#[unsafe(method_family = none)]
pub unsafe fn setScore(&self, score: c_double);
#[unsafe(method(maxScore))]
#[unsafe(method_family = none)]
pub unsafe fn maxScore(&self) -> c_double;
#[unsafe(method(setMaxScore:))]
#[unsafe(method_family = none)]
pub unsafe fn setMaxScore(&self, max_score: c_double);
#[unsafe(method(initWithIdentifier:title:score:maxScore:))]
#[unsafe(method_family = init)]
pub unsafe fn initWithIdentifier_title_score_maxScore(
this: Allocated<Self>,
identifier: &NSString,
title: &NSString,
score: c_double,
max_score: c_double,
) -> Retained<Self>;
);
}
#[cfg(all(feature = "CLSActivityItem", feature = "CLSObject"))]
impl CLSScoreItem {
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>;
);
}