pub unsafe trait GCDevicePhysicalInput: GCDevicePhysicalInputState {
// Provided methods
unsafe fn device(&self) -> Option<Retained<ProtocolObject<dyn GCDevice>>>
where Self: Sized + Message { ... }
unsafe fn elementValueDidChangeHandler(
&self
) -> *mut Block<dyn Fn(NonNull<ProtocolObject<dyn GCDevicePhysicalInput>>, NonNull<ProtocolObject<dyn GCPhysicalInputElement>>)>
where Self: Sized + Message { ... }
unsafe fn setElementValueDidChangeHandler(
&self,
element_value_did_change_handler: Option<&Block<dyn Fn(NonNull<ProtocolObject<dyn GCDevicePhysicalInput>>, NonNull<ProtocolObject<dyn GCPhysicalInputElement>>)>>
)
where Self: Sized + Message { ... }
unsafe fn capture(
&self
) -> Retained<ProtocolObject<dyn GCDevicePhysicalInputState>>
where Self: Sized + Message { ... }
unsafe fn inputStateAvailableHandler(
&self
) -> *mut Block<dyn Fn(NonNull<ProtocolObject<dyn GCDevicePhysicalInput>>)>
where Self: Sized + Message { ... }
unsafe fn setInputStateAvailableHandler(
&self,
input_state_available_handler: Option<&Block<dyn Fn(NonNull<ProtocolObject<dyn GCDevicePhysicalInput>>)>>
)
where Self: Sized + Message { ... }
unsafe fn inputStateQueueDepth(&self) -> NSInteger
where Self: Sized + Message { ... }
unsafe fn setInputStateQueueDepth(&self, input_state_queue_depth: NSInteger)
where Self: Sized + Message { ... }
unsafe fn nextInputState(&self) -> Option<Retained<TodoProtocols>>
where Self: Sized + Message { ... }
}Available on crate features
GCDevicePhysicalInput and GCDevicePhysicalInputState only.Provided Methods§
unsafe fn device(&self) -> Option<Retained<ProtocolObject<dyn GCDevice>>>
Available on crate feature
GCDevice only.unsafe fn elementValueDidChangeHandler( &self ) -> *mut Block<dyn Fn(NonNull<ProtocolObject<dyn GCDevicePhysicalInput>>, NonNull<ProtocolObject<dyn GCPhysicalInputElement>>)>
Available on crate features
GCPhysicalInputElement and block2 only.unsafe fn setElementValueDidChangeHandler( &self, element_value_did_change_handler: Option<&Block<dyn Fn(NonNull<ProtocolObject<dyn GCDevicePhysicalInput>>, NonNull<ProtocolObject<dyn GCPhysicalInputElement>>)>> )
Available on crate features
GCPhysicalInputElement and block2 only.unsafe fn capture( &self ) -> Retained<ProtocolObject<dyn GCDevicePhysicalInputState>>
unsafe fn inputStateAvailableHandler( &self ) -> *mut Block<dyn Fn(NonNull<ProtocolObject<dyn GCDevicePhysicalInput>>)>
Available on crate feature
block2 only.unsafe fn setInputStateAvailableHandler( &self, input_state_available_handler: Option<&Block<dyn Fn(NonNull<ProtocolObject<dyn GCDevicePhysicalInput>>)>> )
Available on crate feature
block2 only.unsafe fn inputStateQueueDepth(&self) -> NSInteger
unsafe fn setInputStateQueueDepth(&self, input_state_queue_depth: NSInteger)
unsafe fn nextInputState(&self) -> Option<Retained<TodoProtocols>>
Available on crate feature
GCDevicePhysicalInputStateDiff only.Trait Implementations§
source§impl ProtocolType for dyn GCDevicePhysicalInput
impl ProtocolType for dyn GCDevicePhysicalInput
impl<T> ImplementedBy<T> for dyn GCDevicePhysicalInput
Implementations on Foreign Types§
impl<T> GCDevicePhysicalInput for ProtocolObject<T>where
T: ?Sized + GCDevicePhysicalInput,
Implementors§
impl GCDevicePhysicalInput for GCControllerLiveInput
Available on crate feature
GCControllerInput only.impl GCDevicePhysicalInput for GCRacingWheelInput
Available on crate feature
GCRacingWheelInput only.