Package org.lwjgl.system.macosx
Class CGEventTapInformation
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct
org.lwjgl.system.macosx.CGEventTapInformation
- All Implemented Interfaces:
AutoCloseable
,org.lwjgl.system.NativeResource
,org.lwjgl.system.Pointer
public class CGEventTapInformation
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
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 Class Summary
Nested classes/interfaces inherited from class org.lwjgl.system.Struct
org.lwjgl.system.Struct.StructValidation
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
org.lwjgl.system.Pointer.Default
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
The struct alignment in bytes.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct size in bytes.static final int
The struct member offsets.static final int
The struct member offsets.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
-
Constructor Summary
ConstructorDescriptionCGEventTapInformation
(ByteBuffer container) Creates aCGEventTapInformation
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionfloat
average latency in microsecondsstatic CGEventTapInformation
calloc()
Returns a newCGEventTapInformation
instance allocated withmemCalloc
.static CGEventTapInformation.Buffer
calloc
(int capacity) Returns a newCGEventTapInformation.Buffer
instance allocated withmemCalloc
.static CGEventTapInformation.Buffer
calloc
(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newCGEventTapInformation.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static CGEventTapInformation
calloc
(org.lwjgl.system.MemoryStack stack) Returns a newCGEventTapInformation
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static CGEventTapInformation
Deprecated.static CGEventTapInformation.Buffer
callocStack
(int capacity) Deprecated.static CGEventTapInformation.Buffer
callocStack
(int capacity, org.lwjgl.system.MemoryStack stack) Deprecated.static CGEventTapInformation
callocStack
(org.lwjgl.system.MemoryStack stack) Deprecated.static CGEventTapInformation
create()
Returns a newCGEventTapInformation
instance allocated withBufferUtils
.static CGEventTapInformation.Buffer
create
(int capacity) Returns a newCGEventTapInformation.Buffer
instance allocated withBufferUtils
.static CGEventTapInformation
create
(long address) Returns a newCGEventTapInformation
instance for the specified memory address.static CGEventTapInformation.Buffer
create
(long address, int capacity) Create aCGEventTapInformation.Buffer
instance at the specified memory.static CGEventTapInformation
createSafe
(long address) static CGEventTapInformation.Buffer
createSafe
(long address, int capacity) boolean
enabled()
true if tap is enabledlong
mask of events being tappedint
static CGEventTapInformation
malloc()
Returns a newCGEventTapInformation
instance allocated withmemAlloc
.static CGEventTapInformation.Buffer
malloc
(int capacity) Returns a newCGEventTapInformation.Buffer
instance allocated withmemAlloc
.static CGEventTapInformation.Buffer
malloc
(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newCGEventTapInformation.Buffer
instance allocated on the specifiedMemoryStack
.static CGEventTapInformation
malloc
(org.lwjgl.system.MemoryStack stack) Returns a newCGEventTapInformation
instance allocated on the specifiedMemoryStack
.static CGEventTapInformation
Deprecated.static CGEventTapInformation.Buffer
mallocStack
(int capacity) Deprecated.static CGEventTapInformation.Buffer
mallocStack
(int capacity, org.lwjgl.system.MemoryStack stack) Deprecated.static CGEventTapInformation
mallocStack
(org.lwjgl.system.MemoryStack stack) Deprecated.float
maximum latency in microsecondsfloat
minimum latency in microsecondsstatic float
navgUsecLatency
(long struct) Unsafe version ofavgUsecLatency()
.static boolean
nenabled
(long struct) Unsafe version ofenabled()
.static long
neventsOfInterest
(long struct) Unsafe version ofeventsOfInterest()
.static int
neventTapID
(long struct) Unsafe version ofeventTapID()
.static float
nmaxUsecLatency
(long struct) Unsafe version ofmaxUsecLatency()
.static float
nminUsecLatency
(long struct) Unsafe version ofminUsecLatency()
.static int
noptions
(long struct) Unsafe version ofoptions()
.static long
nprocessBeingTapped
(long struct) Unsafe version ofprocessBeingTapped()
.static long
ntappingProcess
(long struct) Unsafe version oftappingProcess()
.static int
ntapPoint
(long struct) Unsafe version oftapPoint()
.int
options()
listener, filterlong
zero if not a per-process tapint
sizeof()
long
process that is tapping eventsint
tapPoint()
HID, session, annotated sessionMethods inherited from class org.lwjgl.system.Struct
clear, free, isNull, validate
Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
Methods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Field Details
-
SIZEOF
public static final int SIZEOFThe struct size in bytes. -
ALIGNOF
public static final int ALIGNOFThe struct alignment in bytes. -
EVENTTAPID
public static final int EVENTTAPIDThe struct member offsets. -
TAPPOINT
public static final int TAPPOINTThe struct member offsets. -
OPTIONS
public static final int OPTIONSThe struct member offsets. -
EVENTSOFINTEREST
public static final int EVENTSOFINTERESTThe struct member offsets. -
TAPPINGPROCESS
public static final int TAPPINGPROCESSThe struct member offsets. -
PROCESSBEINGTAPPED
public static final int PROCESSBEINGTAPPEDThe struct member offsets. -
ENABLED
public static final int ENABLEDThe struct member offsets. -
MINUSECLATENCY
public static final int MINUSECLATENCYThe struct member offsets. -
AVGUSECLATENCY
public static final int AVGUSECLATENCYThe struct member offsets. -
MAXUSECLATENCY
public static final int MAXUSECLATENCYThe struct member offsets.
-
-
Constructor Details
-
CGEventTapInformation
Creates aCGEventTapInformation
instance at the current position of the specifiedByteBuffer
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 Details
-
sizeof
public int sizeof()- Specified by:
sizeof
in classorg.lwjgl.system.Struct
-
eventTapID
public int eventTapID()- Returns:
- the value of the
eventTapID
field.
-
tapPoint
public int tapPoint()HID, session, annotated session -
options
public int options()listener, filter -
eventsOfInterest
public long eventsOfInterest()mask of events being tapped -
tappingProcess
public long tappingProcess()process that is tapping events -
processBeingTapped
public long processBeingTapped()zero if not a per-process tap -
enabled
public boolean enabled()true if tap is enabled -
minUsecLatency
public float minUsecLatency()minimum latency in microseconds -
avgUsecLatency
public float avgUsecLatency()average latency in microseconds -
maxUsecLatency
public float maxUsecLatency()maximum latency in microseconds -
malloc
Returns a newCGEventTapInformation
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newCGEventTapInformation
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newCGEventTapInformation
instance allocated withBufferUtils
. -
create
Returns a newCGEventTapInformation
instance for the specified memory address. -
createSafe
-
malloc
Returns a newCGEventTapInformation.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newCGEventTapInformation.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newCGEventTapInformation.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aCGEventTapInformation.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
-
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)
instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)
instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)
instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)
instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)
instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)
instead. -
mallocStack
@Deprecated public static CGEventTapInformation.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack) Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)
instead. -
callocStack
@Deprecated public static CGEventTapInformation.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack) Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)
instead. -
malloc
Returns a newCGEventTapInformation
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newCGEventTapInformation
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newCGEventTapInformation.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newCGEventTapInformation.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
neventTapID
public static int neventTapID(long struct) Unsafe version ofeventTapID()
. -
ntapPoint
public static int ntapPoint(long struct) Unsafe version oftapPoint()
. -
noptions
public static int noptions(long struct) Unsafe version ofoptions()
. -
neventsOfInterest
public static long neventsOfInterest(long struct) Unsafe version ofeventsOfInterest()
. -
ntappingProcess
public static long ntappingProcess(long struct) Unsafe version oftappingProcess()
. -
nprocessBeingTapped
public static long nprocessBeingTapped(long struct) Unsafe version ofprocessBeingTapped()
. -
nenabled
public static boolean nenabled(long struct) Unsafe version ofenabled()
. -
nminUsecLatency
public static float nminUsecLatency(long struct) Unsafe version ofminUsecLatency()
. -
nmaxUsecLatency
public static float nmaxUsecLatency(long struct) Unsafe version ofmaxUsecLatency()
.
-