public class CGEventTapInformation
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
tapPoint – HID, session, annotated sessionoptions – listener, filtereventsOfInterest – mask of events being tappedtappingProcess – process that is tapping eventsprocessBeingTapped – zero if not a per-process tapenabled – true if tap is enabledminUsecLatency – minimum latency in microsecondsavgUsecLatency – average latency in microsecondsmaxUsecLatency – maximum latency in microseconds
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;
}| Modifier and Type | Class and Description |
|---|---|
static class |
CGEventTapInformation.Buffer
An array of
CGEventTapInformation structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
AVGUSECLATENCY
The struct member offsets.
|
static int |
ENABLED
The struct member offsets.
|
static int |
EVENTSOFINTEREST
The struct member offsets.
|
static int |
EVENTTAPID
The struct member offsets.
|
static int |
MAXUSECLATENCY
The struct member offsets.
|
static int |
MINUSECLATENCY
The struct member offsets.
|
static int |
OPTIONS
The struct member offsets.
|
static int |
PROCESSBEINGTAPPED
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
static int |
TAPPINGPROCESS
The struct member offsets.
|
static int |
TAPPOINT
The struct member offsets.
|
| Constructor and Description |
|---|
CGEventTapInformation(java.nio.ByteBuffer container)
Creates a
CGEventTapInformation instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
float |
avgUsecLatency()
Returns the value of the
avgUsecLatency field. |
static CGEventTapInformation |
calloc()
Returns a new
CGEventTapInformation instance allocated with memCalloc. |
static CGEventTapInformation.Buffer |
calloc(int capacity)
Returns a new
CGEventTapInformation.Buffer instance allocated with memCalloc. |
static CGEventTapInformation |
callocStack()
Returns a new
CGEventTapInformation instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static CGEventTapInformation.Buffer |
callocStack(int capacity)
Returns a new
CGEventTapInformation.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static CGEventTapInformation.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
CGEventTapInformation.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static CGEventTapInformation |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
CGEventTapInformation instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static CGEventTapInformation |
create()
Returns a new
CGEventTapInformation instance allocated with BufferUtils. |
static CGEventTapInformation.Buffer |
create(int capacity)
Returns a new
CGEventTapInformation.Buffer instance allocated with BufferUtils. |
static CGEventTapInformation |
create(long address)
Returns a new
CGEventTapInformation instance for the specified memory address. |
static CGEventTapInformation.Buffer |
create(long address,
int capacity)
Create a
CGEventTapInformation.Buffer instance at the specified memory. |
static CGEventTapInformation |
createSafe(long address)
|
static CGEventTapInformation.Buffer |
createSafe(long address,
int capacity)
|
boolean |
enabled()
Returns the value of the
enabled field. |
long |
eventsOfInterest()
Returns the value of the
eventsOfInterest field. |
int |
eventTapID()
Returns the value of the
eventTapID field. |
static CGEventTapInformation |
malloc()
Returns a new
CGEventTapInformation instance allocated with memAlloc. |
static CGEventTapInformation.Buffer |
malloc(int capacity)
Returns a new
CGEventTapInformation.Buffer instance allocated with memAlloc. |
static CGEventTapInformation |
mallocStack()
Returns a new
CGEventTapInformation instance allocated on the thread-local MemoryStack. |
static CGEventTapInformation.Buffer |
mallocStack(int capacity)
Returns a new
CGEventTapInformation.Buffer instance allocated on the thread-local MemoryStack. |
static CGEventTapInformation.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
CGEventTapInformation.Buffer instance allocated on the specified MemoryStack. |
static CGEventTapInformation |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
CGEventTapInformation instance allocated on the specified MemoryStack. |
float |
maxUsecLatency()
Returns the value of the
maxUsecLatency field. |
float |
minUsecLatency()
Returns the value of the
minUsecLatency field. |
static float |
navgUsecLatency(long struct)
Unsafe version of
avgUsecLatency(). |
static boolean |
nenabled(long struct)
Unsafe version of
enabled(). |
static long |
neventsOfInterest(long struct)
Unsafe version of
eventsOfInterest(). |
static int |
neventTapID(long struct)
Unsafe version of
eventTapID(). |
static float |
nmaxUsecLatency(long struct)
Unsafe version of
maxUsecLatency(). |
static float |
nminUsecLatency(long struct)
Unsafe version of
minUsecLatency(). |
static int |
noptions(long struct)
Unsafe version of
options(). |
static long |
nprocessBeingTapped(long struct)
Unsafe version of
processBeingTapped(). |
static long |
ntappingProcess(long struct)
Unsafe version of
tappingProcess(). |
static int |
ntapPoint(long struct)
Unsafe version of
tapPoint(). |
int |
options()
Returns the value of the
options field. |
long |
processBeingTapped()
Returns the value of the
processBeingTapped field. |
int |
sizeof() |
long |
tappingProcess()
Returns the value of the
tappingProcess field. |
int |
tapPoint()
Returns the value of the
tapPoint field. |
public static final int SIZEOF
public static final int ALIGNOF
public static final int EVENTTAPID
public static final int TAPPOINT
public static final int OPTIONS
public static final int EVENTSOFINTEREST
public static final int TAPPINGPROCESS
public static final int PROCESSBEINGTAPPED
public static final int ENABLED
public static final int MINUSECLATENCY
public static final int AVGUSECLATENCY
public static final int MAXUSECLATENCY
public CGEventTapInformation(java.nio.ByteBuffer container)
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.
public int sizeof()
sizeof in class org.lwjgl.system.Structpublic int eventTapID()
eventTapID field.public int tapPoint()
tapPoint field.public int options()
options field.public long eventsOfInterest()
eventsOfInterest field.public long tappingProcess()
tappingProcess field.public long processBeingTapped()
processBeingTapped field.public boolean enabled()
enabled field.public float minUsecLatency()
minUsecLatency field.public float avgUsecLatency()
avgUsecLatency field.public float maxUsecLatency()
maxUsecLatency field.public static CGEventTapInformation malloc()
CGEventTapInformation instance allocated with memAlloc. The instance must be explicitly freed.public static CGEventTapInformation calloc()
CGEventTapInformation instance allocated with memCalloc. The instance must be explicitly freed.public static CGEventTapInformation create()
CGEventTapInformation instance allocated with BufferUtils.public static CGEventTapInformation create(long address)
CGEventTapInformation instance for the specified memory address.@Nullable public static CGEventTapInformation createSafe(long address)
public static CGEventTapInformation.Buffer malloc(int capacity)
CGEventTapInformation.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static CGEventTapInformation.Buffer calloc(int capacity)
CGEventTapInformation.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static CGEventTapInformation.Buffer create(int capacity)
CGEventTapInformation.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static CGEventTapInformation.Buffer create(long address, int capacity)
CGEventTapInformation.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static CGEventTapInformation.Buffer createSafe(long address, int capacity)
public static CGEventTapInformation mallocStack()
CGEventTapInformation instance allocated on the thread-local MemoryStack.public static CGEventTapInformation callocStack()
CGEventTapInformation instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static CGEventTapInformation mallocStack(org.lwjgl.system.MemoryStack stack)
CGEventTapInformation instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static CGEventTapInformation callocStack(org.lwjgl.system.MemoryStack stack)
CGEventTapInformation instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static CGEventTapInformation.Buffer mallocStack(int capacity)
CGEventTapInformation.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static CGEventTapInformation.Buffer callocStack(int capacity)
CGEventTapInformation.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static CGEventTapInformation.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
CGEventTapInformation.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static CGEventTapInformation.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
CGEventTapInformation.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatecapacity - the buffer capacitypublic static int neventTapID(long struct)
eventTapID().public static int ntapPoint(long struct)
tapPoint().public static int noptions(long struct)
options().public static long neventsOfInterest(long struct)
eventsOfInterest().public static long ntappingProcess(long struct)
tappingProcess().public static long nprocessBeingTapped(long struct)
processBeingTapped().public static boolean nenabled(long struct)
enabled().public static float nminUsecLatency(long struct)
minUsecLatency().public static float navgUsecLatency(long struct)
avgUsecLatency().public static float nmaxUsecLatency(long struct)
maxUsecLatency().Copyright LWJGL. All Rights Reserved. License terms.