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"))]
17extern_conformance!(
18    unsafe impl GCAxisElement for GCSteeringWheelElement {}
19);
20
21#[cfg(feature = "GCPhysicalInputElement")]
22extern_conformance!(
23    unsafe impl GCPhysicalInputElement for GCSteeringWheelElement {}
24);
25
26extern_conformance!(
27    unsafe impl NSObjectProtocol for GCSteeringWheelElement {}
28);
29
30impl GCSteeringWheelElement {
31    extern_methods!(
32        #[unsafe(method(init))]
33        #[unsafe(method_family = init)]
34        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
35
36        #[unsafe(method(maximumDegreesOfRotation))]
37        #[unsafe(method_family = none)]
38        pub unsafe fn maximumDegreesOfRotation(&self) -> c_float;
39    );
40}
41
42/// Methods declared on superclass `NSObject`.
43impl GCSteeringWheelElement {
44    extern_methods!(
45        #[unsafe(method(new))]
46        #[unsafe(method_family = new)]
47        pub unsafe fn new() -> Retained<Self>;
48    );
49}