Package org.lwjgl.system.macosx
Interface CGEventTapCallBackI
-
- All Superinterfaces:
CallbackI
,CallbackI.P
,Pointer
- All Known Implementing Classes:
CGEventTapCallBack
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface CGEventTapCallBackI extends CallbackI.P
Instances of this interface may be passed to theEventTapCreate
method.Type
CGEventRef (*) ( CGEventTapProxy proxy, CGEventType type, CGEventRef event, void *userInfo )
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.lwjgl.system.CallbackI
CallbackI.B, CallbackI.D, CallbackI.F, CallbackI.I, CallbackI.J, CallbackI.N, CallbackI.P, CallbackI.S, CallbackI.V, CallbackI.Z
-
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
SIGNATURE
-
Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default long
callback(long args)
Will be called by native code.default java.lang.String
getSignature()
Returns the dyncall signature for this callback function.long
invoke(long proxy, int type, long event, long userInfo)
A client-supplied callback function that’s invoked whenever an associated event tap receives a Quartz event.
-
-
-
Field Detail
-
SIGNATURE
static final java.lang.String SIGNATURE
- See Also:
- Constant Field Values
-
-
Method Detail
-
getSignature
default java.lang.String getSignature()
Description copied from interface:CallbackI
Returns the dyncall signature for this callback function. [INTERNAL API]- Specified by:
getSignature
in interfaceCallbackI
- Returns:
- the dyncall signature
-
callback
default long callback(long args)
Description copied from interface:CallbackI.P
Will be called by native code.- Specified by:
callback
in interfaceCallbackI.P
- Parameters:
args
- pointer to aDCArgs
iterator- Returns:
- the value to store to the result
DCValue
-
invoke
long invoke(long proxy, int type, long event, long userInfo)
A client-supplied callback function that’s invoked whenever an associated event tap receives a Quartz event.The callback is passed a proxy for the tap, the event type, the incoming event, and the user-defined data specified when the event tap was created. The function should return the (possibly modified) passed-in event, a newly constructed event, or
NULL
if the event is to be deleted. The event passed to the callback is retained by the calling code, and is released after the callback returns and the data is passed back to the event system. If a different event is returned by the callback function, then that event will be released by the calling code along with the original event, after the event data has been passed back to the event system.
-
-