objc2_game_kit/generated/
GKLeaderboardEntry.rs

1//! This file has been automatically generated by `objc2`'s `header-translator`.
2//! DO NOT EDIT
3use core::ptr::NonNull;
4use objc2::__framework_prelude::*;
5use objc2_foundation::*;
6
7use crate::*;
8
9extern_class!(
10    /// [Apple's documentation](https://developer.apple.com/documentation/gamekit/gkleaderboardentry?language=objc)
11    #[unsafe(super(NSObject))]
12    #[derive(Debug, PartialEq, Eq, Hash)]
13    pub struct GKLeaderboardEntry;
14);
15
16extern_conformance!(
17    unsafe impl NSObjectProtocol for GKLeaderboardEntry {}
18);
19
20impl GKLeaderboardEntry {
21    extern_methods!(
22        #[cfg(all(feature = "GKBasePlayer", feature = "GKPlayer"))]
23        #[unsafe(method(player))]
24        #[unsafe(method_family = none)]
25        pub unsafe fn player(&self) -> Retained<GKPlayer>;
26
27        #[unsafe(method(rank))]
28        #[unsafe(method_family = none)]
29        pub unsafe fn rank(&self) -> NSInteger;
30
31        #[unsafe(method(score))]
32        #[unsafe(method_family = none)]
33        pub unsafe fn score(&self) -> NSInteger;
34
35        #[unsafe(method(formattedScore))]
36        #[unsafe(method_family = none)]
37        pub unsafe fn formattedScore(&self) -> Retained<NSString>;
38
39        #[unsafe(method(context))]
40        #[unsafe(method_family = none)]
41        pub unsafe fn context(&self) -> NSUInteger;
42
43        #[unsafe(method(date))]
44        #[unsafe(method_family = none)]
45        pub unsafe fn date(&self) -> Retained<NSDate>;
46
47        #[unsafe(method(init))]
48        #[unsafe(method_family = init)]
49        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
50    );
51}
52
53/// Methods declared on superclass `NSObject`.
54impl GKLeaderboardEntry {
55    extern_methods!(
56        #[unsafe(method(new))]
57        #[unsafe(method_family = new)]
58        pub unsafe fn new() -> Retained<Self>;
59    );
60}