objc2_game_controller/generated/
GCSteeringWheelElement.rs

1//! This file has been automatically generated by `objc2`'s `header-translator`.
2//! DO NOT EDIT
3use core::ffi::*;
4use core::ptr::NonNull;
5use objc2::__framework_prelude::*;
6
7use crate::*;
8
9extern_class!(
10    /// [Apple's documentation](https://developer.apple.com/documentation/gamecontroller/gcsteeringwheelelement?language=objc)
11    #[unsafe(super(NSObject))]
12    #[derive(Debug, PartialEq, Eq, Hash)]
13    pub struct GCSteeringWheelElement;
14);
15
16#[cfg(all(feature = "GCAxisElement", feature = "GCPhysicalInputElement"))]
17unsafe impl GCAxisElement for GCSteeringWheelElement {}
18
19#[cfg(feature = "GCPhysicalInputElement")]
20unsafe impl GCPhysicalInputElement for GCSteeringWheelElement {}
21
22unsafe impl NSObjectProtocol for GCSteeringWheelElement {}
23
24impl GCSteeringWheelElement {
25    extern_methods!(
26        #[unsafe(method(init))]
27        #[unsafe(method_family = init)]
28        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
29
30        #[unsafe(method(maximumDegreesOfRotation))]
31        #[unsafe(method_family = none)]
32        pub unsafe fn maximumDegreesOfRotation(&self) -> c_float;
33    );
34}
35
36/// Methods declared on superclass `NSObject`.
37impl GCSteeringWheelElement {
38    extern_methods!(
39        #[unsafe(method(new))]
40        #[unsafe(method_family = new)]
41        pub unsafe fn new() -> Retained<Self>;
42    );
43}