icrate/generated/GameController/
GCColor.rs

1//! This file has been automatically generated by `objc2`'s `header-translator`.
2//! DO NOT EDIT
3use crate::common::*;
4use crate::AppKit::*;
5use crate::Foundation::*;
6use crate::GameController::*;
7
8extern_class!(
9    #[derive(Debug, PartialEq, Eq, Hash)]
10    #[cfg(feature = "GameController_GCColor")]
11    pub struct GCColor;
12
13    #[cfg(feature = "GameController_GCColor")]
14    unsafe impl ClassType for GCColor {
15        type Super = NSObject;
16        type Mutability = InteriorMutable;
17    }
18);
19
20#[cfg(feature = "GameController_GCColor")]
21unsafe impl NSCoding for GCColor {}
22
23#[cfg(feature = "GameController_GCColor")]
24unsafe impl NSCopying for GCColor {}
25
26#[cfg(feature = "GameController_GCColor")]
27unsafe impl NSObjectProtocol for GCColor {}
28
29#[cfg(feature = "GameController_GCColor")]
30unsafe impl NSSecureCoding for GCColor {}
31
32extern_methods!(
33    #[cfg(feature = "GameController_GCColor")]
34    unsafe impl GCColor {
35        #[method_id(@__retain_semantics Init init)]
36        pub unsafe fn init(this: Allocated<Self>) -> Id<Self>;
37
38        #[method_id(@__retain_semantics Init initWithRed:green:blue:)]
39        pub unsafe fn initWithRed_green_blue(
40            this: Allocated<Self>,
41            red: c_float,
42            green: c_float,
43            blue: c_float,
44        ) -> Id<Self>;
45
46        #[method(red)]
47        pub unsafe fn red(&self) -> c_float;
48
49        #[method(green)]
50        pub unsafe fn green(&self) -> c_float;
51
52        #[method(blue)]
53        pub unsafe fn blue(&self) -> c_float;
54    }
55);
56
57extern_methods!(
58    /// Methods declared on superclass `NSObject`
59    #[cfg(feature = "GameController_GCColor")]
60    unsafe impl GCColor {
61        #[method_id(@__retain_semantics New new)]
62        pub unsafe fn new() -> Id<Self>;
63    }
64);