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")]
20unsafe impl GCPhysicalInputElement for GCGearShifterElement {}
21
22unsafe impl NSObjectProtocol for GCGearShifterElement {}
23
24impl GCGearShifterElement {
25 extern_methods!(
26 #[cfg(feature = "GCSwitchPositionInput")]
27 #[unsafe(method(patternInput))]
36 #[unsafe(method_family = none)]
37 pub unsafe fn patternInput(
38 &self,
39 ) -> Option<Retained<ProtocolObject<dyn GCSwitchPositionInput>>>;
40
41 #[cfg(feature = "GCRelativeInput")]
42 #[unsafe(method(sequentialInput))]
46 #[unsafe(method_family = none)]
47 pub unsafe fn sequentialInput(
48 &self,
49 ) -> Option<Retained<ProtocolObject<dyn GCRelativeInput>>>;
50 );
51}
52
53impl GCGearShifterElement {
55 extern_methods!(
56 #[unsafe(method(init))]
57 #[unsafe(method_family = init)]
58 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
59
60 #[unsafe(method(new))]
61 #[unsafe(method_family = new)]
62 pub unsafe fn new() -> Retained<Self>;
63 );
64}