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_protocol!(
    pub unsafe trait GCRelativeInput: NSObjectProtocol {
        #[method(deltaDidChangeHandler)]
        unsafe fn deltaDidChangeHandler(
            &self,
        ) -> *mut Block<
            (
                NonNull<ProtocolObject<dyn GCPhysicalInputElement>>,
                NonNull<ProtocolObject<dyn GCRelativeInput>>,
                c_float,
            ),
            (),
        >;

        #[method(setDeltaDidChangeHandler:)]
        unsafe fn setDeltaDidChangeHandler(
            &self,
            delta_did_change_handler: Option<
                &Block<
                    (
                        NonNull<ProtocolObject<dyn GCPhysicalInputElement>>,
                        NonNull<ProtocolObject<dyn GCRelativeInput>>,
                        c_float,
                    ),
                    (),
                >,
            >,
        );

        #[method(delta)]
        unsafe fn delta(&self) -> c_float;

        #[method(isAnalog)]
        unsafe fn isAnalog(&self) -> bool;

        #[method(lastDeltaTimestamp)]
        unsafe fn lastDeltaTimestamp(&self) -> NSTimeInterval;

        #[method(lastDeltaLatency)]
        unsafe fn lastDeltaLatency(&self) -> NSTimeInterval;

        #[cfg(feature = "Foundation_NSSet")]
        #[method_id(@__retain_semantics Other sources)]
        unsafe fn sources(&self) -> Id<NSSet<ProtocolObject<dyn GCPhysicalInputSource>>>;
    }

    unsafe impl ProtocolType for dyn GCRelativeInput {}
);