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
18extern_conformance!(
19 unsafe impl NSObjectProtocol for GCDeviceLight {}
20);
21
22impl GCDeviceLight {
23 extern_methods!(
24 #[cfg(feature = "GCColor")]
25 #[unsafe(method(color))]
26 #[unsafe(method_family = none)]
27 pub unsafe fn color(&self) -> Retained<GCColor>;
28
29 #[cfg(feature = "GCColor")]
30 #[unsafe(method(setColor:))]
32 #[unsafe(method_family = none)]
33 pub unsafe fn setColor(&self, color: &GCColor);
34
35 #[unsafe(method(init))]
36 #[unsafe(method_family = init)]
37 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
38 );
39}
40
41impl GCDeviceLight {
43 extern_methods!(
44 #[unsafe(method(new))]
45 #[unsafe(method_family = new)]
46 pub unsafe fn new() -> Retained<Self>;
47 );
48}