icrate 0.1.2

Bindings to Apple's frameworks
Documentation
//! This file has been automatically generated by `objc2`'s `header-translator`.
//! DO NOT EDIT
use crate::common::*;
use crate::AppKit::*;
use crate::Foundation::*;
use crate::GameController::*;

extern_class!(
    #[derive(Debug, PartialEq, Eq, Hash)]
    #[cfg(feature = "GameController_GCControllerInputState")]
    pub struct GCControllerInputState;

    #[cfg(feature = "GameController_GCControllerInputState")]
    unsafe impl ClassType for GCControllerInputState {
        type Super = NSObject;
        type Mutability = InteriorMutable;
    }
);

#[cfg(feature = "GameController_GCControllerInputState")]
unsafe impl GCDevicePhysicalInputState for GCControllerInputState {}

#[cfg(feature = "GameController_GCControllerInputState")]
unsafe impl NSObjectProtocol for GCControllerInputState {}

extern_methods!(
    #[cfg(feature = "GameController_GCControllerInputState")]
    unsafe impl GCControllerInputState {}
);

extern_methods!(
    /// Methods declared on superclass `NSObject`
    #[cfg(feature = "GameController_GCControllerInputState")]
    unsafe impl GCControllerInputState {
        #[method_id(@__retain_semantics Init init)]
        pub unsafe fn init(this: Allocated<Self>) -> Id<Self>;

        #[method_id(@__retain_semantics New new)]
        pub unsafe fn new() -> Id<Self>;
    }
);

extern_class!(
    #[derive(Debug, PartialEq, Eq, Hash)]
    #[cfg(feature = "GameController_GCControllerLiveInput")]
    pub struct GCControllerLiveInput;

    #[cfg(feature = "GameController_GCControllerLiveInput")]
    unsafe impl ClassType for GCControllerLiveInput {
        #[inherits(NSObject)]
        type Super = GCControllerInputState;
        type Mutability = InteriorMutable;
    }
);

#[cfg(feature = "GameController_GCControllerLiveInput")]
unsafe impl GCDevicePhysicalInput for GCControllerLiveInput {}

#[cfg(feature = "GameController_GCControllerLiveInput")]
unsafe impl GCDevicePhysicalInputState for GCControllerLiveInput {}

#[cfg(feature = "GameController_GCControllerLiveInput")]
unsafe impl NSObjectProtocol for GCControllerLiveInput {}

extern_methods!(
    #[cfg(feature = "GameController_GCControllerLiveInput")]
    unsafe impl GCControllerLiveInput {
        #[method_id(@__retain_semantics Other unmappedInput)]
        pub unsafe fn unmappedInput(&self) -> Option<Id<GCControllerLiveInput>>;

        #[method_id(@__retain_semantics Other capture)]
        pub unsafe fn capture(&self) -> Id<GCControllerInputState>;

        #[method_id(@__retain_semantics Other nextInputState)]
        pub unsafe fn nextInputState(&self) -> Option<Id<GCControllerInputState>>;
    }
);

extern_methods!(
    /// Methods declared on superclass `NSObject`
    #[cfg(feature = "GameController_GCControllerLiveInput")]
    unsafe impl GCControllerLiveInput {
        #[method_id(@__retain_semantics Init init)]
        pub unsafe fn init(this: Allocated<Self>) -> Id<Self>;

        #[method_id(@__retain_semantics New new)]
        pub unsafe fn new() -> Id<Self>;
    }
);