objc2_game_controller/generated/
GCDeviceCursor.rs

1//! This file has been automatically generated by `objc2`'s `header-translator`.
2//! DO NOT EDIT
3use core::ptr::NonNull;
4use objc2::__framework_prelude::*;
5
6use crate::*;
7
8extern_class!(
9    /// A cursor is a Direction Pad that has its axis extended from [-1; 1] to [width; height] range
10    /// Up, down, left, right allows to use mouse to simulate DirectionaPad or Thumbstick since values are normalized for these elements
11    ///
12    /// See also [Apple's documentation](https://developer.apple.com/documentation/gamecontroller/gcdevicecursor?language=objc)
13    #[unsafe(super(GCControllerDirectionPad, GCControllerElement, NSObject))]
14    #[derive(Debug, PartialEq, Eq, Hash)]
15    #[cfg(all(feature = "GCControllerDirectionPad", feature = "GCControllerElement"))]
16    pub struct GCDeviceCursor;
17);
18
19#[cfg(all(feature = "GCControllerDirectionPad", feature = "GCControllerElement"))]
20unsafe impl NSObjectProtocol for GCDeviceCursor {}
21
22#[cfg(all(feature = "GCControllerDirectionPad", feature = "GCControllerElement"))]
23impl GCDeviceCursor {
24    extern_methods!();
25}
26
27/// Methods declared on superclass `NSObject`.
28#[cfg(all(feature = "GCControllerDirectionPad", feature = "GCControllerElement"))]
29impl GCDeviceCursor {
30    extern_methods!(
31        #[unsafe(method(init))]
32        #[unsafe(method_family = init)]
33        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
34
35        #[unsafe(method(new))]
36        #[unsafe(method_family = new)]
37        pub unsafe fn new() -> Retained<Self>;
38    );
39}