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"))]
20extern_conformance!(
21    unsafe impl NSObjectProtocol for GCDeviceCursor {}
22);
23
24#[cfg(all(feature = "GCControllerDirectionPad", feature = "GCControllerElement"))]
25impl GCDeviceCursor {
26    extern_methods!();
27}
28
29/// Methods declared on superclass `NSObject`.
30#[cfg(all(feature = "GCControllerDirectionPad", feature = "GCControllerElement"))]
31impl GCDeviceCursor {
32    extern_methods!(
33        #[unsafe(method(init))]
34        #[unsafe(method_family = init)]
35        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
36
37        #[unsafe(method(new))]
38        #[unsafe(method_family = new)]
39        pub unsafe fn new() -> Retained<Self>;
40    );
41}