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§
unsafe fn deltaDidChangeHandler( &self ) -> *mut Block<dyn Fn(NonNull<ProtocolObject<dyn GCPhysicalInputElement>>, NonNull<ProtocolObject<dyn GCRelativeInput>>, c_float)>
Available on crate features
GCPhysicalInputElement
and block2
only.unsafe fn setDeltaDidChangeHandler( &self, delta_did_change_handler: Option<&Block<dyn Fn(NonNull<ProtocolObject<dyn GCPhysicalInputElement>>, NonNull<ProtocolObject<dyn GCRelativeInput>>, c_float)>> )
Available on crate features
GCPhysicalInputElement
and block2
only.unsafe fn delta(&self) -> c_float
unsafe fn isAnalog(&self) -> bool
unsafe fn lastDeltaTimestamp(&self) -> NSTimeInterval
unsafe fn lastDeltaLatency(&self) -> NSTimeInterval
unsafe fn sources(&self) -> Id<NSSet<ProtocolObject<dyn GCPhysicalInputSource>>>
Available on crate feature
GCPhysicalInputSource
only.