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:
java.lang.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()
; CGEventTapOptionsoptions()
; CGEventMaskeventsOfInterest()
; pid_ttappingProcess()
; pid_tprocessBeingTapped()
; boolenabled()
; floatminUsecLatency()
; floatavgUsecLatency()
; floatmaxUsecLatency()
; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
CGEventTapInformation.Buffer
An array ofCGEventTapInformation
structs.
-
Field Summary
Fields Modifier and Type Field Description static int
ALIGNOF
The struct alignment in bytes.static int
AVGUSECLATENCY
ENABLED
EVENTSOFINTEREST
EVENTTAPID
MAXUSECLATENCY
MINUSECLATENCY
OPTIONS
PROCESSBEINGTAPPEDThe struct member offsets.static int
SIZEOF
The struct size in bytes.static int
TAPPINGPROCESS
TAPPOINTThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description CGEventTapInformation(java.nio.ByteBuffer container)
Creates aCGEventTapInformation
instance at the current position of the specifiedByteBuffer
container.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description float
avgUsecLatency()
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
callocStack()
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
eventsOfInterest()
mask of events being tappedint
eventTapID()
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
mallocStack()
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
maxUsecLatency()
maximum latency in microsecondsfloat
minUsecLatency()
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
processBeingTapped()
zero if not a per-process tapint
sizeof()
long
tappingProcess()
process that is tapping eventsint
tapPoint()
HID, session, annotated session
-
-
-
Constructor Detail
-
CGEventTapInformation
public CGEventTapInformation(java.nio.ByteBuffer container)
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 Detail
-
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
public static CGEventTapInformation malloc()
Returns a newCGEventTapInformation
instance allocated withmemAlloc
. The instance must be explicitly freed.
-
calloc
public static CGEventTapInformation calloc()
Returns a newCGEventTapInformation
instance allocated withmemCalloc
. The instance must be explicitly freed.
-
create
public static CGEventTapInformation create()
Returns a newCGEventTapInformation
instance allocated withBufferUtils
.
-
create
public static CGEventTapInformation create(long address)
Returns a newCGEventTapInformation
instance for the specified memory address.
-
createSafe
@Nullable public static CGEventTapInformation createSafe(long address)
-
malloc
public static CGEventTapInformation.Buffer malloc(int capacity)
Returns a newCGEventTapInformation.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
public static CGEventTapInformation.Buffer calloc(int capacity)
Returns a newCGEventTapInformation.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
public static CGEventTapInformation.Buffer create(int capacity)
Returns a newCGEventTapInformation.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
public static CGEventTapInformation.Buffer create(long address, int capacity)
Create aCGEventTapInformation.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
@Nullable public static CGEventTapInformation.Buffer createSafe(long address, int capacity)
-
mallocStack
@Deprecated public static CGEventTapInformation mallocStack()
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)
instead.
-
callocStack
@Deprecated public static CGEventTapInformation callocStack()
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)
instead.
-
mallocStack
@Deprecated public static CGEventTapInformation mallocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)
instead.
-
callocStack
@Deprecated public static CGEventTapInformation callocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)
instead.
-
mallocStack
@Deprecated public static CGEventTapInformation.Buffer mallocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)
instead.
-
callocStack
@Deprecated public static CGEventTapInformation.Buffer callocStack(int capacity)
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
public static CGEventTapInformation malloc(org.lwjgl.system.MemoryStack stack)
Returns a newCGEventTapInformation
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
public static CGEventTapInformation calloc(org.lwjgl.system.MemoryStack stack)
Returns a newCGEventTapInformation
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
public static CGEventTapInformation.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newCGEventTapInformation.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocatecapacity
- the buffer capacity
-
calloc
public 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.- Parameters:
stack
- the stack from which to allocatecapacity
- the buffer capacity
-
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()
.
-
navgUsecLatency
public static float navgUsecLatency(long struct)
Unsafe version ofavgUsecLatency()
.
-
nmaxUsecLatency
public static float nmaxUsecLatency(long struct)
Unsafe version ofmaxUsecLatency()
.
-
-