objc2_game_controller/generated/
GCDeviceLight.rs1use core::ffi::*;
4use core::ptr::NonNull;
5use objc2::__framework_prelude::*;
6
7use crate::*;
8
9extern_class!(
10 #[unsafe(super(NSObject))]
14 #[derive(Debug, PartialEq, Eq, Hash)]
15 pub struct GCDeviceLight;
16);
17
18unsafe impl NSObjectProtocol for GCDeviceLight {}
19
20impl GCDeviceLight {
21 extern_methods!(
22 #[cfg(feature = "GCColor")]
23 #[unsafe(method(color))]
24 #[unsafe(method_family = none)]
25 pub unsafe fn color(&self) -> Retained<GCColor>;
26
27 #[cfg(feature = "GCColor")]
28 #[unsafe(method(setColor:))]
30 #[unsafe(method_family = none)]
31 pub unsafe fn setColor(&self, color: &GCColor);
32
33 #[unsafe(method(init))]
34 #[unsafe(method_family = init)]
35 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
36 );
37}
38
39impl GCDeviceLight {
41 extern_methods!(
42 #[unsafe(method(new))]
43 #[unsafe(method_family = new)]
44 pub unsafe fn new() -> Retained<Self>;
45 );
46}