Top Description Inners Constructors Methods
org.lwjgl.system.macosx

public abstract Class CGEventTapCallBack

extends Callback
implements CGEventTapCallBackI
Class Inheritance
All Implemented Interfaces
org.lwjgl.system.macosx.CGEventTapCallBackI, org.lwjgl.system.CallbackI, org.lwjgl.system.Pointer
Known Direct Subclasses
org.lwjgl.system.macosx.CGEventTapCallBack.Container
Imports
javax.annotation.*, org.lwjgl.system.*

Instances of this class may be passed to the EventTapCreate method.

Type


CGEventRef (*invoke) (
    CGEventTapProxy proxy,
    CGEventType type,
    CGEventRef event,
    void *userInfo
)

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class

Constructor Summary

AccessConstructor and Description
protected
pack-priv
CGEventTapCallBack(long functionPointer)

Method Summary

Modifier and TypeMethod and Description
public static CGEventTapCallBack

Returns:

the new CGEventTapCallBack
create
(long functionPointer)

Creates a CGEventTapCallBack instance from the specified function pointer.

public static CGEventTapCallBack
create(CGEventTapCallBackI instance)

Creates a CGEventTapCallBack instance that delegates to the specified CGEventTapCallBackI instance.

public static CGEventTapCallBack
createSafe(long functionPointer)

Like create, but returns null if functionPointer is NULL.

Inherited from org.lwjgl.system.Callback:
addressequalsfreefreegetgetSafehashCodetoString

Constructor Detail

CGEventTapCallBackback to summary
protected CGEventTapCallBack()
CGEventTapCallBackback to summary
pack-priv CGEventTapCallBack(long functionPointer)

Method Detail

createback to summary
public static CGEventTapCallBack create(long functionPointer)

Creates a CGEventTapCallBack instance from the specified function pointer.

Returns:CGEventTapCallBack

the new CGEventTapCallBack

createback to summary
public static CGEventTapCallBack create(CGEventTapCallBackI instance)

Creates a CGEventTapCallBack instance that delegates to the specified CGEventTapCallBackI instance.

createSafeback to summary
public static CGEventTapCallBack createSafe(long functionPointer)

Like create, but returns null if functionPointer is NULL.

Annotations
@Nullable
org.lwjgl.system.macosx back to summary

private final Class CGEventTapCallBack.Container

extends CGEventTapCallBack
Class Inheritance

Field Summary

Modifier and TypeField and Description
private final CGEventTapCallBackI

Constructor Summary

AccessConstructor and Description
pack-priv
Container(long functionPointer, CGEventTapCallBackI delegate)

Method Summary

Modifier and TypeMethod and Description
public long
invoke(long proxy, int type, long event, long userInfo)

Implements org.lwjgl.system.macosx.CGEventTapCallBackI.invoke.

A client-supplied callback function that’s invoked whenever an associated event tap receives a Quartz event.
Inherited from org.lwjgl.system.macosx.CGEventTapCallBack:
createcreatecreateSafe

Field Detail

delegateback to summary
private final CGEventTapCallBackI delegate

Constructor Detail

Containerback to summary
pack-priv Container(long functionPointer, CGEventTapCallBackI delegate)

Method Detail

invokeback to summary
public long invoke(long proxy, int type, long event, long userInfo)

Implements org.lwjgl.system.macosx.CGEventTapCallBackI.invoke.

Doc from org.lwjgl.system.macosx.CGEventTapCallBackI.invoke.

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.

Annotations
@Override