Package org.lwjgl.system.macosx
Class CGEventTapInformation
- All Implemented Interfaces:
AutoCloseable
,NativeResource
,Pointer
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 ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidation
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
Field Summary
FieldsModifier 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
ConstructorsConstructorDescriptionCGEventTapInformation
(ByteBuffer container) Creates aCGEventTapInformation
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionfloat
static 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, MemoryStack stack) Returns a newCGEventTapInformation.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static CGEventTapInformation
calloc
(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, MemoryStack stack) Deprecated.static CGEventTapInformation
callocStack
(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 @Nullable CGEventTapInformation
createSafe
(long address) static @Nullable CGEventTapInformation.Buffer
createSafe
(long address, int capacity) boolean
enabled()
long
int
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, MemoryStack stack) Returns a newCGEventTapInformation.Buffer
instance allocated on the specifiedMemoryStack
.static CGEventTapInformation
malloc
(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, MemoryStack stack) Deprecated.static CGEventTapInformation
mallocStack
(MemoryStack stack) Deprecated.float
float
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()
long
int
sizeof()
Returnssizeof(struct)
.long
int
tapPoint()
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()Description copied from class:Struct
Returnssizeof(struct)
.- Specified by:
sizeof
in classStruct<CGEventTapInformation>
-
eventTapID
public int eventTapID()- Returns:
- the value of the
eventTapID
field.
-
tapPoint
public int tapPoint()- Returns:
- the value of the
tapPoint
field.
-
options
public int options()- Returns:
- the value of the
options
field.
-
eventsOfInterest
public long eventsOfInterest()- Returns:
- the value of the
eventsOfInterest
field.
-
tappingProcess
public long tappingProcess()- Returns:
- the value of the
tappingProcess
field.
-
processBeingTapped
public long processBeingTapped()- Returns:
- the value of the
processBeingTapped
field.
-
enabled
public boolean enabled()- Returns:
- the value of the
enabled
field.
-
minUsecLatency
public float minUsecLatency()- Returns:
- the value of the
minUsecLatency
field.
-
avgUsecLatency
public float avgUsecLatency()- Returns:
- the value of the
avgUsecLatency
field.
-
maxUsecLatency
public float maxUsecLatency()- Returns:
- the value of the
maxUsecLatency
field.
-
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.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)
instead. -
callocStack
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()
.
-