objc2_game_controller/generated/
GCColor.rs1use core::ffi::*;
4use core::ptr::NonNull;
5use objc2::__framework_prelude::*;
6use objc2_foundation::*;
7
8use crate::*;
9
10extern_class!(
11 #[unsafe(super(NSObject))]
18 #[derive(Debug, PartialEq, Eq, Hash)]
19 pub struct GCColor;
20);
21
22unsafe impl NSCoding for GCColor {}
23
24unsafe impl NSCopying for GCColor {}
25
26unsafe impl CopyingHelper for GCColor {
27 type Result = Self;
28}
29
30unsafe impl NSObjectProtocol for GCColor {}
31
32unsafe impl NSSecureCoding for GCColor {}
33
34impl GCColor {
35 extern_methods!(
36 #[unsafe(method(init))]
37 #[unsafe(method_family = init)]
38 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
39
40 #[unsafe(method(initWithRed:green:blue:))]
41 #[unsafe(method_family = init)]
42 pub unsafe fn initWithRed_green_blue(
43 this: Allocated<Self>,
44 red: c_float,
45 green: c_float,
46 blue: c_float,
47 ) -> Retained<Self>;
48
49 #[unsafe(method(red))]
50 #[unsafe(method_family = none)]
51 pub unsafe fn red(&self) -> c_float;
52
53 #[unsafe(method(green))]
54 #[unsafe(method_family = none)]
55 pub unsafe fn green(&self) -> c_float;
56
57 #[unsafe(method(blue))]
58 #[unsafe(method_family = none)]
59 pub unsafe fn blue(&self) -> c_float;
60 );
61}
62
63impl GCColor {
65 extern_methods!(
66 #[unsafe(method(new))]
67 #[unsafe(method_family = new)]
68 pub unsafe fn new() -> Retained<Self>;
69 );
70}