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
,NativeResource
,Pointer
public class CGEventTapInformation extends Struct implements NativeResource
The structure used to report information about event taps.Member documentation
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
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 Modifier and Type Class Description static class
CGEventTapInformation.Buffer
An array ofCGEventTapInformation
structs.-
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
-
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.-
Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
-
-
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 Modifier and Type Method Description float
avgUsecLatency()
Returns the value of theavgUsecLatency
field.static CGEventTapInformation
calloc()
Returns a newCGEventTapInformation
instance allocated withmemCalloc
.static CGEventTapInformation.Buffer
calloc(int capacity)
Returns a newCGEventTapInformation.Buffer
instance allocated withmemCalloc
.static CGEventTapInformation
callocStack()
Returns a newCGEventTapInformation
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static CGEventTapInformation.Buffer
callocStack(int capacity)
Returns a newCGEventTapInformation.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static CGEventTapInformation.Buffer
callocStack(int capacity, MemoryStack stack)
Returns a newCGEventTapInformation.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static CGEventTapInformation
callocStack(MemoryStack stack)
Returns a newCGEventTapInformation
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.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()
Returns the value of theenabled
field.long
eventsOfInterest()
Returns the value of theeventsOfInterest
field.int
eventTapID()
Returns the value of theeventTapID
field.static CGEventTapInformation
malloc()
Returns a newCGEventTapInformation
instance allocated withmemAlloc
.static CGEventTapInformation.Buffer
malloc(int capacity)
Returns a newCGEventTapInformation.Buffer
instance allocated withmemAlloc
.static CGEventTapInformation
mallocStack()
Returns a newCGEventTapInformation
instance allocated on the thread-localMemoryStack
.static CGEventTapInformation.Buffer
mallocStack(int capacity)
Returns a newCGEventTapInformation.Buffer
instance allocated on the thread-localMemoryStack
.static CGEventTapInformation.Buffer
mallocStack(int capacity, MemoryStack stack)
Returns a newCGEventTapInformation.Buffer
instance allocated on the specifiedMemoryStack
.static CGEventTapInformation
mallocStack(MemoryStack stack)
Returns a newCGEventTapInformation
instance allocated on the specifiedMemoryStack
.float
maxUsecLatency()
Returns the value of themaxUsecLatency
field.float
minUsecLatency()
Returns the value of theminUsecLatency
field.static 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()
Returns the value of theoptions
field.long
processBeingTapped()
Returns the value of theprocessBeingTapped
field.int
sizeof()
Returnssizeof(struct)
.long
tappingProcess()
Returns the value of thetappingProcess
field.int
tapPoint()
Returns the value of thetapPoint
field.-
Methods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
-
-
-
-
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()
Description copied from class:Struct
Returnssizeof(struct)
.
-
eventTapID
public int eventTapID()
Returns the value of theeventTapID
field.
-
tapPoint
public int tapPoint()
Returns the value of thetapPoint
field.
-
options
public int options()
Returns the value of theoptions
field.
-
eventsOfInterest
public long eventsOfInterest()
Returns the value of theeventsOfInterest
field.
-
tappingProcess
public long tappingProcess()
Returns the value of thetappingProcess
field.
-
processBeingTapped
public long processBeingTapped()
Returns the value of theprocessBeingTapped
field.
-
enabled
public boolean enabled()
Returns the value of theenabled
field.
-
minUsecLatency
public float minUsecLatency()
Returns the value of theminUsecLatency
field.
-
avgUsecLatency
public float avgUsecLatency()
Returns the value of theavgUsecLatency
field.
-
maxUsecLatency
public float maxUsecLatency()
Returns the value of themaxUsecLatency
field.
-
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
public static CGEventTapInformation mallocStack()
Returns a newCGEventTapInformation
instance allocated on the thread-localMemoryStack
.
-
callocStack
public static CGEventTapInformation callocStack()
Returns a newCGEventTapInformation
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.
-
mallocStack
public static CGEventTapInformation mallocStack(MemoryStack stack)
Returns a newCGEventTapInformation
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
callocStack
public static CGEventTapInformation callocStack(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
-
mallocStack
public static CGEventTapInformation.Buffer mallocStack(int capacity)
Returns a newCGEventTapInformation.Buffer
instance allocated on the thread-localMemoryStack
.- Parameters:
capacity
- the buffer capacity
-
callocStack
public static CGEventTapInformation.Buffer callocStack(int capacity)
Returns a newCGEventTapInformation.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacity
-
mallocStack
public static CGEventTapInformation.Buffer mallocStack(int capacity, MemoryStack stack)
Returns a newCGEventTapInformation.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocatecapacity
- the buffer capacity
-
callocStack
public static CGEventTapInformation.Buffer callocStack(int capacity, 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()
.
-
-