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 |
|---|---|
| public static class | CGEventTapInformation.
An array of |
| Modifier and Type | Field 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. |
| Access | Constructor and Description |
|---|---|
| protected | |
| public | CGEventTapInformation(ByteBuffer container)
Creates a |
| Modifier and Type | Method and Description |
|---|---|
| public float | |
| public static CGEventTapInformation | |
| public static CGEventTapInformation. | calloc(int
the buffer capacity capacity)Returns a new |
| public static CGEventTapInformation | calloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static CGEventTapInformation. | calloc(int
the buffer capacity capacity, MemoryStack the stack from which to allocate stack)Returns a new |
| public static CGEventTapInformation | |
| public static CGEventTapInformation | |
| public static CGEventTapInformation. | |
| public static CGEventTapInformation. | |
| 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. the constructor, but returns the exact type of the Struct subclass.
|
| public static CGEventTapInformation | |
| public static CGEventTapInformation | |
| public static CGEventTapInformation. | create(int
the buffer capacity capacity)Returns a new |
| public static CGEventTapInformation. | create(long
the memory address address, int the buffer capacity capacity)Create a |
| public static CGEventTapInformation | |
| public static CGEventTapInformation. | |
| public boolean | |
| public long | |
| public int | |
| public static CGEventTapInformation | |
| public static CGEventTapInformation. | malloc(int
the buffer capacity capacity)Returns a new |
| public static CGEventTapInformation | malloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static CGEventTapInformation. | malloc(int
the buffer capacity capacity, MemoryStack the stack from which to allocate stack)Returns a new |
| public static CGEventTapInformation | |
| public static CGEventTapInformation | |
| public static CGEventTapInformation. | |
| public static CGEventTapInformation. | |
| public float | |
| public float | |
| public static float | |
| public static boolean | |
| public static long | |
| public static int | |
| public static float | |
| public static float | |
| public static int | |
| public static long | |
| public static long | |
| public static int | |
| public int | |
| public long | |
| public int | |
| public long | |
| public int |
| ALIGNOF | back to summary |
|---|---|
| public static final int ALIGNOF The struct alignment in bytes. | |
| AVGUSECLATENCY | back to summary |
|---|---|
| public static final int AVGUSECLATENCY The struct member offsets. | |
| ENABLED | back to summary |
|---|---|
| public static final int ENABLED The struct member offsets. | |
| EVENTSOFINTEREST | back to summary |
|---|---|
| public static final int EVENTSOFINTEREST The struct member offsets. | |
| EVENTTAPID | back to summary |
|---|---|
| public static final int EVENTTAPID The struct member offsets. | |
| MAXUSECLATENCY | back to summary |
|---|---|
| public static final int MAXUSECLATENCY The struct member offsets. | |
| MINUSECLATENCY | back to summary |
|---|---|
| public static final int MINUSECLATENCY The struct member offsets. | |
| OPTIONS | back to summary |
|---|---|
| public static final int OPTIONS The struct member offsets. | |
| PROCESSBEINGTAPPED | back to summary |
|---|---|
| public static final int PROCESSBEINGTAPPED The struct member offsets. | |
| SIZEOF | back to summary |
|---|---|
| public static final int SIZEOF The struct size in bytes. | |
| TAPPINGPROCESS | back to summary |
|---|---|
| public static final int TAPPINGPROCESS The struct member offsets. | |
| TAPPOINT | back to summary |
|---|---|
| public static final int TAPPOINT The struct member offsets. | |
| CGEventTapInformation | back to summary |
|---|---|
| protected CGEventTapInformation(long address, ByteBuffer container) | |
| CGEventTapInformation | back to summary |
|---|---|
| public CGEventTapInformation(ByteBuffer container) Creates a The created instance holds a strong reference to the container object. | |
| avgUsecLatency | back to summary |
|---|---|
| public float avgUsecLatency() average latency in microseconds | |
| calloc | back to summary |
|---|---|
| public static CGEventTapInformation calloc() Returns a new | |
| calloc | back to summary |
|---|---|
| public static CGEventTapInformation. Returns a new
| |
| calloc | back to summary |
|---|---|
| public static CGEventTapInformation calloc(MemoryStack stack) Returns a new
| |
| calloc | back to summary |
|---|---|
| public static CGEventTapInformation. Returns a new
| |
| callocStack | back to summary |
|---|---|
| public static CGEventTapInformation callocStack()
Deprecated
Deprecated for removal in 3.4.0. Use
| |
| callocStack | back to summary |
|---|---|
| public static CGEventTapInformation callocStack(MemoryStack stack)
Deprecated
Deprecated for removal in 3.4.0. Use
| |
| callocStack | back to summary |
|---|---|
| public static CGEventTapInformation. Deprecated
Deprecated for removal in 3.4.0. Use
| |
| callocStack | back to summary |
|---|---|
| public static CGEventTapInformation. Deprecated
Deprecated for removal in 3.4.0. Use
| |
| create | back to summary |
|---|---|
| protected CGEventTapInformation create(long address, ByteBuffer container) Implements abstract org. Doc from org. Similar to Effectively, every
| |
| create | back to summary |
|---|---|
| public static CGEventTapInformation create() Returns a new | |
| create | back to summary |
|---|---|
| public static CGEventTapInformation create(long address) Returns a new | |
| create | back to summary |
|---|---|
| public static CGEventTapInformation. Returns a new
| |
| create | back to summary |
|---|---|
| public static CGEventTapInformation. Create a
| |
| createSafe | back to summary |
|---|---|
| public static CGEventTapInformation createSafe(long address) Like
| |
| createSafe | back to summary |
|---|---|
| public static CGEventTapInformation. Like
| |
| enabled | back to summary |
|---|---|
| public boolean enabled() true if tap is enabled
| |
| eventsOfInterest | back to summary |
|---|---|
| public long eventsOfInterest() mask of events being tapped
| |
| eventTapID | back to summary |
|---|---|
public int eventTapID()
| |
| malloc | back to summary |
|---|---|
| public static CGEventTapInformation malloc() Returns a new | |
| malloc | back to summary |
|---|---|
| public static CGEventTapInformation. Returns a new
| |
| malloc | back to summary |
|---|---|
| public static CGEventTapInformation malloc(MemoryStack stack) Returns a new
| |
| malloc | back to summary |
|---|---|
| public static CGEventTapInformation. Returns a new
| |
| mallocStack | back to summary |
|---|---|
| public static CGEventTapInformation mallocStack()
Deprecated
Deprecated for removal in 3.4.0. Use
| |
| mallocStack | back to summary |
|---|---|
| public static CGEventTapInformation mallocStack(MemoryStack stack)
Deprecated
Deprecated for removal in 3.4.0. Use
| |
| mallocStack | back to summary |
|---|---|
| public static CGEventTapInformation. Deprecated
Deprecated for removal in 3.4.0. Use
| |
| mallocStack | back to summary |
|---|---|
| public static CGEventTapInformation. Deprecated
Deprecated for removal in 3.4.0. Use
| |
| maxUsecLatency | back to summary |
|---|---|
| public float maxUsecLatency() maximum latency in microseconds | |
| minUsecLatency | back to summary |
|---|---|
| public float minUsecLatency() minimum latency in microseconds | |
| navgUsecLatency | back to summary |
|---|---|
| public static float navgUsecLatency(long struct) Unsafe version of | |
| nenabled | back to summary |
|---|---|
| public static boolean nenabled(long struct) Unsafe version of | |
| neventsOfInterest | back to summary |
|---|---|
| public static long neventsOfInterest(long struct) Unsafe version of | |
| neventTapID | back to summary |
|---|---|
| public static int neventTapID(long struct) Unsafe version of | |
| nmaxUsecLatency | back to summary |
|---|---|
| public static float nmaxUsecLatency(long struct) Unsafe version of | |
| nminUsecLatency | back to summary |
|---|---|
| public static float nminUsecLatency(long struct) Unsafe version of | |
| noptions | back to summary |
|---|---|
| public static int noptions(long struct) Unsafe version of | |
| nprocessBeingTapped | back to summary |
|---|---|
| public static long nprocessBeingTapped(long struct) Unsafe version of | |
| ntappingProcess | back to summary |
|---|---|
| public static long ntappingProcess(long struct) Unsafe version of | |
| ntapPoint | back to summary |
|---|---|
| public static int ntapPoint(long struct) Unsafe version of | |
| options | back to summary |
|---|---|
| public int options() listener, filter
| |
| processBeingTapped | back to summary |
|---|---|
| public long processBeingTapped() zero if not a per-process tap
| |
| sizeof | back to summary |
|---|---|
| public int sizeof() Implements abstract org. Doc from org. Returns
| |
| tappingProcess | back to summary |
|---|---|
| public long tappingProcess() process that is tapping events
| |
| tapPoint | back to summary |
|---|---|
| public int tapPoint() HID, session, annotated session
| |
CGEventTapInformation structs.
| Modifier and Type | Field and Description |
|---|---|
| private static final CGEventTapInformation |
| Access | Constructor and Description |
|---|---|
| public | Buffer(ByteBuffer container)
Creates a new |
| public | |
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public float | |
| public boolean | |
| public long | |
| public int | |
| protected CGEventTapInformation | |
| public float | |
| public float | |
| public int | |
| public long | |
| protected CGEventTapInformation. | |
| public long | |
| public int |
| ELEMENT_FACTORY | back to summary |
|---|---|
| private static final CGEventTapInformation ELEMENT_FACTORY | |
| Buffer | back to summary |
|---|---|
| public Buffer(ByteBuffer container) Creates a new 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 The created buffer instance holds a strong reference to the container object. | |
| Buffer | back to summary |
|---|---|
| public Buffer(long address, int cap) | |
| Buffer | back to summary |
|---|---|
| pack-priv Buffer(long address, ByteBuffer container, int mark, int pos, int lim, int cap) | |
| avgUsecLatency | back to summary |
|---|---|
public float avgUsecLatency()
| |
| enabled | back to summary |
|---|---|
public boolean enabled()
| |
| eventsOfInterest | back to summary |
|---|---|
public long eventsOfInterest()
| |
| eventTapID | back to summary |
|---|---|
public int eventTapID()
| |
| getElementFactory | back to summary |
|---|---|
| protected CGEventTapInformation getElementFactory() Implements abstract org.
| |
| maxUsecLatency | back to summary |
|---|---|
public float maxUsecLatency()
| |
| minUsecLatency | back to summary |
|---|---|
public float minUsecLatency()
| |
| options | back to summary |
|---|---|
public int options()
| |
| processBeingTapped | back to summary |
|---|---|
public long processBeingTapped()
| |
| self | back to summary |
|---|---|
| protected CGEventTapInformation. Implements abstract org.
| |
| tappingProcess | back to summary |
|---|---|
public long tappingProcess()
| |
| tapPoint | back to summary |
|---|---|
public int tapPoint()
| |