pub unsafe trait GCDevicePhysicalInputStateDiff: NSObjectProtocol {
// Provided methods
unsafe fn changeForElement(
&self,
element: &ProtocolObject<dyn GCPhysicalInputElement>,
) -> GCDevicePhysicalInputElementChange
where Self: Sized + Message { ... }
unsafe fn changedElements(
&self,
) -> Option<Retained<NSEnumerator<ProtocolObject<dyn GCPhysicalInputElement>>>>
where Self: Sized + Message { ... }
}
GCDevicePhysicalInputStateDiff
only.Expand description
An object conforming to the
GCDevicePhysicalInputStateDiff
protocol
contains the input state differences between the current and previous
GCDevicePhysicalInputState
objects returned from the
-nextInputState
method of
GCDevicePhysicalInput.
See also Apple’s documentation
Provided Methods§
Sourceunsafe fn changeForElement(
&self,
element: &ProtocolObject<dyn GCPhysicalInputElement>,
) -> GCDevicePhysicalInputElementChange
Available on crate feature GCPhysicalInputElement
only.
unsafe fn changeForElement( &self, element: &ProtocolObject<dyn GCPhysicalInputElement>, ) -> GCDevicePhysicalInputElementChange
GCPhysicalInputElement
only.Check if a value of _element_changed, compared the previous input state.
Parameter element
: The element to check. This may be a pointer to either the “live” element
from the device’s physical input, or a pointer to an element from any input
state “snapshot” of the device’s physical input.
Sourceunsafe fn changedElements(
&self,
) -> Option<Retained<NSEnumerator<ProtocolObject<dyn GCPhysicalInputElement>>>>
Available on crate feature GCPhysicalInputElement
only.
unsafe fn changedElements( &self, ) -> Option<Retained<NSEnumerator<ProtocolObject<dyn GCPhysicalInputElement>>>>
GCPhysicalInputElement
only.Gets an enumerator that iterates over the elements that have changed, compared the previous input state.
This method returns
nil
if the changed elements could not be determined -
typically because the input state queue filled up and older input state
snapshots were dropped.