objc2_game_controller/generated/
GCGearShifterElement.rs1use core::ptr::NonNull;
4use objc2::__framework_prelude::*;
5
6use crate::*;
7
8extern_class!(
9 #[unsafe(super(NSObject))]
15 #[derive(Debug, PartialEq, Eq, Hash)]
16 pub struct GCGearShifterElement;
17);
18
19#[cfg(feature = "GCPhysicalInputElement")]
20extern_conformance!(
21 unsafe impl GCPhysicalInputElement for GCGearShifterElement {}
22);
23
24extern_conformance!(
25 unsafe impl NSObjectProtocol for GCGearShifterElement {}
26);
27
28impl GCGearShifterElement {
29 extern_methods!(
30 #[cfg(feature = "GCSwitchPositionInput")]
31 #[unsafe(method(patternInput))]
40 #[unsafe(method_family = none)]
41 pub unsafe fn patternInput(
42 &self,
43 ) -> Option<Retained<ProtocolObject<dyn GCSwitchPositionInput>>>;
44
45 #[cfg(feature = "GCRelativeInput")]
46 #[unsafe(method(sequentialInput))]
50 #[unsafe(method_family = none)]
51 pub unsafe fn sequentialInput(
52 &self,
53 ) -> Option<Retained<ProtocolObject<dyn GCRelativeInput>>>;
54 );
55}
56
57impl GCGearShifterElement {
59 extern_methods!(
60 #[unsafe(method(init))]
61 #[unsafe(method_family = init)]
62 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
63
64 #[unsafe(method(new))]
65 #[unsafe(method_family = new)]
66 pub unsafe fn new() -> Retained<Self>;
67 );
68}