pub unsafe trait GCPressedStateInput: NSObjectProtocol {
// Provided methods
unsafe fn pressedDidChangeHandler(
&self
) -> *mut Block<dyn Fn(NonNull<ProtocolObject<dyn GCPhysicalInputElement>>, NonNull<ProtocolObject<dyn GCPressedStateInput>>, Bool)>
where Self: Sized + Message { ... }
unsafe fn setPressedDidChangeHandler(
&self,
pressed_did_change_handler: Option<&Block<dyn Fn(NonNull<ProtocolObject<dyn GCPhysicalInputElement>>, NonNull<ProtocolObject<dyn GCPressedStateInput>>, Bool)>>
)
where Self: Sized + Message { ... }
unsafe fn isPressed(&self) -> bool
where Self: Sized + Message { ... }
unsafe fn lastPressedStateTimestamp(&self) -> NSTimeInterval
where Self: Sized + Message { ... }
unsafe fn lastPressedStateLatency(&self) -> NSTimeInterval
where Self: Sized + Message { ... }
unsafe fn sources(
&self
) -> Id<NSSet<ProtocolObject<dyn GCPhysicalInputSource>>>
where Self: Sized + Message { ... }
}
Available on crate feature
GCPressedStateInput
only.Provided Methods§
unsafe fn pressedDidChangeHandler( &self ) -> *mut Block<dyn Fn(NonNull<ProtocolObject<dyn GCPhysicalInputElement>>, NonNull<ProtocolObject<dyn GCPressedStateInput>>, Bool)>
Available on crate features
GCPhysicalInputElement
and block2
only.unsafe fn setPressedDidChangeHandler( &self, pressed_did_change_handler: Option<&Block<dyn Fn(NonNull<ProtocolObject<dyn GCPhysicalInputElement>>, NonNull<ProtocolObject<dyn GCPressedStateInput>>, Bool)>> )
Available on crate features
GCPhysicalInputElement
and block2
only.unsafe fn isPressed(&self) -> bool
unsafe fn lastPressedStateTimestamp(&self) -> NSTimeInterval
unsafe fn lastPressedStateLatency(&self) -> NSTimeInterval
unsafe fn sources(&self) -> Id<NSSet<ProtocolObject<dyn GCPhysicalInputSource>>>
Available on crate feature
GCPhysicalInputSource
only.