org.rococoa.cocoa.coregraphics
Interface CoreGraphicsLibrary.CGEventTapCallBack

All Superinterfaces:
Callback
Enclosing interface:
CoreGraphicsLibrary

public static interface CoreGraphicsLibrary.CGEventTapCallBack
extends Callback

The callback is passed a proxy for the tap, the event type, the incoming event,
and the refcon the callback was registered with.
The function should return the (possibly modified) passed in event,
a newly constructed event, or NULL if the event is to be deleted.
* The CGEventRef passed into 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.


Nested Class Summary
 
Nested classes/interfaces inherited from interface com.sun.jna.Callback
Callback.UncaughtExceptionHandler
 
Field Summary
 
Fields inherited from interface com.sun.jna.Callback
FORBIDDEN_NAMES, METHOD_NAME
 
Method Summary
 CoreGraphicsLibrary.__CGEvent invoke(CoreGraphicsLibrary.__CGEventTapProxy proxy, int type, CoreGraphicsLibrary.__CGEvent event, Pointer refcon)
           
 

Method Detail

invoke

CoreGraphicsLibrary.__CGEvent invoke(CoreGraphicsLibrary.__CGEventTapProxy proxy,
                                     int type,
                                     CoreGraphicsLibrary.__CGEvent event,
                                     Pointer refcon)