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

public Class CGEventTapInformation

extends Struct<CGEventTapInformation>
implements NativeResource
Class Inheritance
All Implemented Interfaces
org.lwjgl.system.NativeResource, java.lang.AutoCloseable
Imports
javax.annotation.*, java.nio.*, org.lwjgl.*, org.lwjgl.system.*

The structure used to report information about event taps.

Layout


struct CGEventTapInformation {
    uint32_t eventTapID;
    CGEventTapLocation tapPoint;
    CGEventTapOptions options;
    CGEventMask eventsOfInterest;
    pid_t tappingProcess;
    pid_t processBeingTapped;
    bool enabled;
    float minUsecLatency;
    float avgUsecLatency;
    float maxUsecLatency;
}

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class

Field Summary

Modifier and TypeField and Description
public static final int
ALIGNOF

The struct alignment in bytes.

public static final int
AVGUSECLATENCY

The struct member offsets.

public static final int
ENABLED

The struct member offsets.

public static final int
EVENTSOFINTEREST

The struct member offsets.

public static final int
EVENTTAPID

The struct member offsets.

public static final int
MAXUSECLATENCY

The struct member offsets.

public static final int
MINUSECLATENCY

The struct member offsets.

public static final int
OPTIONS

The struct member offsets.

public static final int
PROCESSBEINGTAPPED

The struct member offsets.

public static final int
SIZEOF

The struct size in bytes.

public static final int
TAPPINGPROCESS

The struct member offsets.

public static final int
TAPPOINT

The struct member offsets.

Inherited from org.lwjgl.system.Struct:
containerDEFAULT_ALIGN_ASDEFAULT_PACK_ALIGNMENT

Constructor Summary

AccessConstructor and Description
protected
CGEventTapInformation(long address, ByteBuffer container)

public
CGEventTapInformation(ByteBuffer container)

Creates a CGEventTapInformation instance at the current position of the specified ByteBuffer container.

Method Summary

Modifier and TypeMethod and Description
public float
avgUsecLatency()

average latency in microseconds

public static CGEventTapInformation
calloc()

Returns a new CGEventTapInformation instance allocated with memCalloc.

public static CGEventTapInformation.Buffer
calloc(int
the buffer capacity
capacity
)

Returns a new CGEventTapInformation.Buffer instance allocated with memCalloc.

public static CGEventTapInformation
calloc(MemoryStack
the stack from which to allocate
stack
)

Returns a new CGEventTapInformation instance allocated on the specified MemoryStack and initializes all its bits to zero.

public static CGEventTapInformation.Buffer
calloc(int
the buffer capacity
capacity
,
MemoryStack
the stack from which to allocate
stack
)

Returns a new CGEventTapInformation.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.

public static CGEventTapInformation
callocStack()

Deprecated
Deprecated for removal in 3.4.0.
public static CGEventTapInformation
callocStack(MemoryStack stack)

Deprecated
Deprecated for removal in 3.4.0.
public static CGEventTapInformation.Buffer
callocStack(int capacity)

Deprecated
Deprecated for removal in 3.4.0.
public static CGEventTapInformation.Buffer
callocStack(int capacity, MemoryStack stack)

Deprecated
Deprecated for removal in 3.4.0.
protected CGEventTapInformation
create(long
the struct memory address
address
,
ByteBuffer
an optional container buffer, to be referenced strongly by the struct instance.
container
)

Implements abstract org.lwjgl.system.Struct.create.

Similar to the constructor, but returns the exact type of the Struct subclass.
public static CGEventTapInformation
create()

Returns a new CGEventTapInformation instance allocated with BufferUtils.

public static CGEventTapInformation
create(long address)

Returns a new CGEventTapInformation instance for the specified memory address.

public static CGEventTapInformation.Buffer
create(int
the buffer capacity
capacity
)

Returns a new CGEventTapInformation.Buffer instance allocated with BufferUtils.

public static CGEventTapInformation.Buffer
create(long
the memory address
address
,
int
the buffer capacity
capacity
)

Create a CGEventTapInformation.Buffer instance at the specified memory.

public static CGEventTapInformation
createSafe(long address)

Like create, but returns null if address is NULL.

public static CGEventTapInformation.Buffer
createSafe(long address, int capacity)

Like create, but returns null if address is NULL.

public boolean
enabled()

true if tap is enabled

public long
eventsOfInterest()

mask of events being tapped

public int

Returns:

the value of the eventTapID field.
eventTapID
()

public static CGEventTapInformation
malloc()

Returns a new CGEventTapInformation instance allocated with memAlloc.

public static CGEventTapInformation.Buffer
malloc(int
the buffer capacity
capacity
)

Returns a new CGEventTapInformation.Buffer instance allocated with memAlloc.

public static CGEventTapInformation
malloc(MemoryStack
the stack from which to allocate
stack
)

Returns a new CGEventTapInformation instance allocated on the specified MemoryStack.

public static CGEventTapInformation.Buffer
malloc(int
the buffer capacity
capacity
,
MemoryStack
the stack from which to allocate
stack
)

Returns a new CGEventTapInformation.Buffer instance allocated on the specified MemoryStack.

public static CGEventTapInformation
mallocStack()

Deprecated
Deprecated for removal in 3.4.0.
public static CGEventTapInformation
mallocStack(MemoryStack stack)

Deprecated
Deprecated for removal in 3.4.0.
public static CGEventTapInformation.Buffer
mallocStack(int capacity)

Deprecated
Deprecated for removal in 3.4.0.
public static CGEventTapInformation.Buffer
mallocStack(int capacity, MemoryStack stack)

Deprecated
Deprecated for removal in 3.4.0.
public float
maxUsecLatency()

maximum latency in microseconds

public float
minUsecLatency()

minimum latency in microseconds

public static boolean
nenabled(long struct)

Unsafe version of enabled.

public static long
neventsOfInterest(long struct)

Unsafe version of eventsOfInterest.

public static int
neventTapID(long struct)

Unsafe version of eventTapID.

public static float
nmaxUsecLatency(long struct)

Unsafe version of maxUsecLatency.

public static float
nminUsecLatency(long struct)

Unsafe version of minUsecLatency.

public static int
noptions(long struct)

Unsafe version of options.

public static long
nprocessBeingTapped(long struct)

Unsafe version of processBeingTapped.

public static long
ntappingProcess(long struct)

Unsafe version of tappingProcess.

public static int
ntapPoint(long struct)

Unsafe version of tapPoint.

public int
options()

listener, filter

public long
processBeingTapped()

zero if not a per-process tap

public int
sizeof()

Implements abstract org.lwjgl.system.Struct.sizeof.

Returns sizeof(struct).
public long
tappingProcess()

process that is tapping events

public int
tapPoint()

HID, session, annotated session

Inherited from org.lwjgl.system.Struct:
__array__array__array__checkContainer__checkMalloc__create__getContainer__getContainer__member__member__member__padding__padding__struct__struct__union__unionclearfreeisNullvalidate

Field Detail

ALIGNOFback to summary
public static final int ALIGNOF

The struct alignment in bytes.

AVGUSECLATENCYback to summary
public static final int AVGUSECLATENCY

The struct member offsets.

ENABLEDback to summary
public static final int ENABLED

The struct member offsets.

EVENTSOFINTERESTback to summary
public static final int EVENTSOFINTEREST

The struct member offsets.

EVENTTAPIDback to summary
public static final int EVENTTAPID

The struct member offsets.

MAXUSECLATENCYback to summary
public static final int MAXUSECLATENCY

The struct member offsets.

MINUSECLATENCYback to summary
public static final int MINUSECLATENCY

The struct member offsets.

OPTIONSback to summary
public static final int OPTIONS

The struct member offsets.

PROCESSBEINGTAPPEDback to summary
public static final int PROCESSBEINGTAPPED

The struct member offsets.

SIZEOFback to summary
public static final int SIZEOF

The struct size in bytes.

TAPPINGPROCESSback to summary
public static final int TAPPINGPROCESS

The struct member offsets.

TAPPOINTback to summary
public static final int TAPPOINT

The struct member offsets.

Constructor Detail

CGEventTapInformationback to summary
protected CGEventTapInformation(long address, ByteBuffer container)
CGEventTapInformationback to summary
public CGEventTapInformation(ByteBuffer container)

Creates a CGEventTapInformation instance at the current position of the specified ByteBuffer container. Changes to the buffer's content will be visible to the struct instance and vice versa.

The created instance holds a strong reference to the container object.

Method Detail

avgUsecLatencyback to summary
public float avgUsecLatency()

average latency in microseconds

callocback to summary
public static CGEventTapInformation calloc()

Returns a new CGEventTapInformation instance allocated with memCalloc. The instance must be explicitly freed.

callocback to summary
public static CGEventTapInformation.Buffer calloc(int capacity)

Returns a new CGEventTapInformation.Buffer instance allocated with memCalloc. The instance must be explicitly freed.

Parameters
capacity:int

the buffer capacity

callocback to summary
public static CGEventTapInformation calloc(MemoryStack stack)

Returns a new CGEventTapInformation instance allocated on the specified MemoryStack and initializes all its bits to zero.

Parameters
stack:MemoryStack

the stack from which to allocate

callocback to summary
public static CGEventTapInformation.Buffer calloc(int capacity, MemoryStack stack)

Returns a new CGEventTapInformation.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.

Parameters
capacity:int

the buffer capacity

stack:MemoryStack

the stack from which to allocate

callocStackback to summary
public static CGEventTapInformation callocStack()

Deprecated

Deprecated for removal in 3.4.0. Use calloc(MemoryStack) instead.

Annotations
@Deprecated
callocStackback to summary
public static CGEventTapInformation callocStack(MemoryStack stack)

Deprecated

Deprecated for removal in 3.4.0. Use calloc(MemoryStack) instead.

Annotations
@Deprecated
callocStackback to summary
public static CGEventTapInformation.Buffer callocStack(int capacity)

Deprecated

Deprecated for removal in 3.4.0. Use calloc(int, MemoryStack) instead.

Annotations
@Deprecated
callocStackback to summary
public static CGEventTapInformation.Buffer callocStack(int capacity, MemoryStack stack)

Deprecated

Deprecated for removal in 3.4.0. Use calloc(int, MemoryStack) instead.

Annotations
@Deprecated
createback to summary
protected CGEventTapInformation create(long address, ByteBuffer container)

Implements abstract org.lwjgl.system.Struct.create.

Doc from org.lwjgl.system.Struct.create.

Similar to the constructor, but returns the exact type of the Struct subclass.

Effectively, every Struct instance is a factory for more instances of the same type. This is used by StructBuffer.

Parameters
address:long

the struct memory address

container:ByteBuffer

an optional container buffer, to be referenced strongly by the struct instance.

Annotations
@Override
createback to summary
public static CGEventTapInformation create()

Returns a new CGEventTapInformation instance allocated with BufferUtils.

createback to summary
public static CGEventTapInformation create(long address)

Returns a new CGEventTapInformation instance for the specified memory address.

createback to summary
public static CGEventTapInformation.Buffer create(int capacity)

Returns a new CGEventTapInformation.Buffer instance allocated with BufferUtils.

Parameters
capacity:int

the buffer capacity

createback to summary
public static CGEventTapInformation.Buffer create(long address, int capacity)

Create a CGEventTapInformation.Buffer instance at the specified memory.

Parameters
address:long

the memory address

capacity:int

the buffer capacity

createSafeback to summary
public static CGEventTapInformation createSafe(long address)

Like create, but returns null if address is NULL.

Annotations
@Nullable
createSafeback to summary
public static CGEventTapInformation.Buffer createSafe(long address, int capacity)

Like create, but returns null if address is NULL.

Annotations
@Nullable
enabledback to summary
public boolean enabled()

true if tap is enabled

Annotations
@NativeType:bool
eventsOfInterestback to summary
public long eventsOfInterest()

mask of events being tapped

Annotations
@NativeType:CGEventMask
eventTapIDback to summary
public int eventTapID()
Returns:int

the value of the eventTapID field.

Annotations
@NativeType:uint32_t
mallocback to summary
public static CGEventTapInformation malloc()

Returns a new CGEventTapInformation instance allocated with memAlloc. The instance must be explicitly freed.

mallocback to summary
public static CGEventTapInformation.Buffer malloc(int capacity)

Returns a new CGEventTapInformation.Buffer instance allocated with memAlloc. The instance must be explicitly freed.

Parameters
capacity:int

the buffer capacity

mallocback to summary
public static CGEventTapInformation malloc(MemoryStack stack)

Returns a new CGEventTapInformation instance allocated on the specified MemoryStack.

Parameters
stack:MemoryStack

the stack from which to allocate

mallocback to summary
public static CGEventTapInformation.Buffer malloc(int capacity, MemoryStack stack)

Returns a new CGEventTapInformation.Buffer instance allocated on the specified MemoryStack.

Parameters
capacity:int

the buffer capacity

stack:MemoryStack

the stack from which to allocate

mallocStackback to summary
public static CGEventTapInformation mallocStack()

Deprecated

Deprecated for removal in 3.4.0. Use malloc(MemoryStack) instead.

Annotations
@Deprecated
mallocStackback to summary
public static CGEventTapInformation mallocStack(MemoryStack stack)

Deprecated

Deprecated for removal in 3.4.0. Use malloc(MemoryStack) instead.

Annotations
@Deprecated
mallocStackback to summary
public static CGEventTapInformation.Buffer mallocStack(int capacity)

Deprecated

Deprecated for removal in 3.4.0. Use malloc(int, MemoryStack) instead.

Annotations
@Deprecated
mallocStackback to summary
public static CGEventTapInformation.Buffer mallocStack(int capacity, MemoryStack stack)

Deprecated

Deprecated for removal in 3.4.0. Use malloc(int, MemoryStack) instead.

Annotations
@Deprecated
maxUsecLatencyback to summary
public float maxUsecLatency()

maximum latency in microseconds

minUsecLatencyback to summary
public float minUsecLatency()

minimum latency in microseconds

nenabledback to summary
public static boolean nenabled(long struct)

Unsafe version of enabled.

neventsOfInterestback to summary
public static long neventsOfInterest(long struct)

Unsafe version of eventsOfInterest.

neventTapIDback to summary
public static int neventTapID(long struct)

Unsafe version of eventTapID.

nmaxUsecLatencyback to summary
public static float nmaxUsecLatency(long struct)

Unsafe version of maxUsecLatency.

nminUsecLatencyback to summary
public static float nminUsecLatency(long struct)

Unsafe version of minUsecLatency.

noptionsback to summary
public static int noptions(long struct)

Unsafe version of options.

nprocessBeingTappedback to summary
public static long nprocessBeingTapped(long struct)

Unsafe version of processBeingTapped.

ntappingProcessback to summary
public static long ntappingProcess(long struct)

Unsafe version of tappingProcess.

ntapPointback to summary
public static int ntapPoint(long struct)

Unsafe version of tapPoint.

optionsback to summary
public int options()

listener, filter

Annotations
@NativeType:CGEventTapOptions
processBeingTappedback to summary
public long processBeingTapped()

zero if not a per-process tap

Annotations
@NativeType:pid_t
sizeofback to summary
public int sizeof()

Implements abstract org.lwjgl.system.Struct.sizeof.

Doc from org.lwjgl.system.Struct.sizeof.

Returns sizeof(struct).

Annotations
@Override
tappingProcessback to summary
public long tappingProcess()

process that is tapping events

Annotations
@NativeType:pid_t
tapPointback to summary
public int tapPoint()

HID, session, annotated session

Annotations
@NativeType:CGEventTapLocation
org.lwjgl.system.macosx back to summary

public Class CGEventTapInformation.Buffer

extends StructBuffer<CGEventTapInformation, CGEventTapInformation.Buffer>
implements NativeResource
Class Inheritance
All Implemented Interfaces
org.lwjgl.system.NativeResource, java.lang.AutoCloseable

An array of CGEventTapInformation structs.

Field Summary

Modifier and TypeField and Description
private static final CGEventTapInformation

Constructor Summary

AccessConstructor and Description
public
Buffer(ByteBuffer container)

Creates a new CGEventTapInformation.Buffer instance backed by the specified container.

public
Buffer(long address, int cap)

pack-priv
Buffer(long address, ByteBuffer container, int mark, int pos, int lim, int cap)

Method Summary

Modifier and TypeMethod and Description
public float

Returns:

the value of the CGEventTapInformation#avgUsecLatency field.
avgUsecLatency
()

public boolean

Returns:

the value of the CGEventTapInformation#enabled field.
enabled
()

public long

Returns:

the value of the CGEventTapInformation#eventsOfInterest field.
eventsOfInterest
()

public int

Returns:

the value of the eventTapID field.
eventTapID
()

protected CGEventTapInformation
public float

Returns:

the value of the CGEventTapInformation#maxUsecLatency field.
maxUsecLatency
()

public float

Returns:

the value of the CGEventTapInformation#minUsecLatency field.
minUsecLatency
()

public int

Returns:

the value of the CGEventTapInformation#options field.
options
()

public long
protected CGEventTapInformation.Buffer
public long

Returns:

the value of the CGEventTapInformation#tappingProcess field.
tappingProcess
()

public int

Returns:

the value of the CGEventTapInformation#tapPoint field.
tapPoint
()

Inherited from org.lwjgl.system.StructBuffer:
applyapplyforEachgetgetgetgetiteratorparallelStreamputputsizeofspliteratorstream

Field Detail

ELEMENT_FACTORYback to summary
private static final CGEventTapInformation ELEMENT_FACTORY

Constructor Detail

Bufferback to summary
public Buffer(ByteBuffer container)

Creates a new CGEventTapInformation.Buffer instance backed by the specified container.

Changes to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values will be independent. The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided by CGEventTapInformation#SIZEOF, and its mark will be undefined.

The created buffer instance holds a strong reference to the container object.

Bufferback to summary
public Buffer(long address, int cap)
Bufferback to summary
pack-priv Buffer(long address, ByteBuffer container, int mark, int pos, int lim, int cap)

Method Detail

avgUsecLatencyback to summary
public float avgUsecLatency()
Returns:float

the value of the CGEventTapInformation#avgUsecLatency field.

enabledback to summary
public boolean enabled()
Returns:boolean

the value of the CGEventTapInformation#enabled field.

Annotations
@NativeType:bool
eventsOfInterestback to summary
public long eventsOfInterest()
Returns:long

the value of the CGEventTapInformation#eventsOfInterest field.

Annotations
@NativeType:CGEventMask
eventTapIDback to summary
public int eventTapID()
Returns:int

the value of the eventTapID field.

Annotations
@NativeType:uint32_t
getElementFactoryback to summary
protected CGEventTapInformation getElementFactory()

Implements abstract org.lwjgl.system.StructBuffer.getElementFactory.

Annotations
@Override
maxUsecLatencyback to summary
public float maxUsecLatency()
Returns:float

the value of the CGEventTapInformation#maxUsecLatency field.

minUsecLatencyback to summary
public float minUsecLatency()
Returns:float

the value of the CGEventTapInformation#minUsecLatency field.

optionsback to summary
public int options()
Returns:int

the value of the CGEventTapInformation#options field.

Annotations
@NativeType:CGEventTapOptions
processBeingTappedback to summary
public long processBeingTapped()
Returns:long

the value of the CGEventTapInformation#processBeingTapped field.

Annotations
@NativeType:pid_t
selfback to summary
protected CGEventTapInformation.Buffer self()

Implements abstract org.lwjgl.system.CustomBuffer.self.

Annotations
@Override
tappingProcessback to summary
public long tappingProcess()
Returns:long

the value of the CGEventTapInformation#tappingProcess field.

Annotations
@NativeType:pid_t
tapPointback to summary
public int tapPoint()
Returns:int

the value of the CGEventTapInformation#tapPoint field.

Annotations
@NativeType:CGEventTapLocation