Trait objc2_game_controller::GCRelativeInput

source ·
pub unsafe trait GCRelativeInput: NSObjectProtocol {
    // Provided methods
    unsafe fn deltaDidChangeHandler(
        &self
    ) -> *mut Block<dyn Fn(NonNull<ProtocolObject<dyn GCPhysicalInputElement>>, NonNull<ProtocolObject<dyn GCRelativeInput>>, c_float)>
       where Self: Sized + Message { ... }
    unsafe fn setDeltaDidChangeHandler(
        &self,
        delta_did_change_handler: Option<&Block<dyn Fn(NonNull<ProtocolObject<dyn GCPhysicalInputElement>>, NonNull<ProtocolObject<dyn GCRelativeInput>>, c_float)>>
    )
       where Self: Sized + Message { ... }
    unsafe fn delta(&self) -> c_float
       where Self: Sized + Message { ... }
    unsafe fn isAnalog(&self) -> bool
       where Self: Sized + Message { ... }
    unsafe fn lastDeltaTimestamp(&self) -> NSTimeInterval
       where Self: Sized + Message { ... }
    unsafe fn lastDeltaLatency(&self) -> NSTimeInterval
       where Self: Sized + Message { ... }
    unsafe fn sources(
        &self
    ) -> Id<NSSet<ProtocolObject<dyn GCPhysicalInputSource>>>
       where Self: Sized + Message { ... }
}
Available on crate feature GCRelativeInput only.

Provided Methods§

source

unsafe fn deltaDidChangeHandler( &self ) -> *mut Block<dyn Fn(NonNull<ProtocolObject<dyn GCPhysicalInputElement>>, NonNull<ProtocolObject<dyn GCRelativeInput>>, c_float)>
where Self: Sized + Message,

Available on crate features GCPhysicalInputElement and block2 only.
source

unsafe fn setDeltaDidChangeHandler( &self, delta_did_change_handler: Option<&Block<dyn Fn(NonNull<ProtocolObject<dyn GCPhysicalInputElement>>, NonNull<ProtocolObject<dyn GCRelativeInput>>, c_float)>> )
where Self: Sized + Message,

Available on crate features GCPhysicalInputElement and block2 only.
source

unsafe fn delta(&self) -> c_float
where Self: Sized + Message,

source

unsafe fn isAnalog(&self) -> bool
where Self: Sized + Message,

source

unsafe fn lastDeltaTimestamp(&self) -> NSTimeInterval
where Self: Sized + Message,

source

unsafe fn lastDeltaLatency(&self) -> NSTimeInterval
where Self: Sized + Message,

source

unsafe fn sources(&self) -> Id<NSSet<ProtocolObject<dyn GCPhysicalInputSource>>>
where Self: Sized + Message,

Available on crate feature GCPhysicalInputSource only.

Trait Implementations§

source§

impl ProtocolType for dyn GCRelativeInput

source§

const NAME: &'static str = "GCRelativeInput"

The name of the Objective-C protocol that this type represents.
source§

fn protocol() -> Option<&'static AnyProtocol>

Get a reference to the Objective-C protocol object that this type represents. Read more
source§

impl<T> ImplementedBy<T> for dyn GCRelativeInput

Implementations on Foreign Types§

source§

impl<T> GCRelativeInput for ProtocolObject<T>
where T: ?Sized + GCRelativeInput,

Implementors§