Package org.lwjgl.system.macosx
Class CGEventTapInformation
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<CGEventTapInformation>
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<CGEventTapInformation>
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 ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
org.lwjgl.system.Struct.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
org.lwjgl.system.Pointer.Default -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe struct alignment in bytes.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct size in bytes.static final intThe struct member offsets.static final intThe 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 aCGEventTapInformationinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionfloataverage latency in microsecondsstatic CGEventTapInformationcalloc()Returns a newCGEventTapInformationinstance allocated withmemCalloc.static CGEventTapInformation.Buffercalloc(int capacity) Returns a newCGEventTapInformation.Bufferinstance allocated withmemCalloc.static CGEventTapInformation.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newCGEventTapInformation.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static CGEventTapInformationcalloc(org.lwjgl.system.MemoryStack stack) Returns a newCGEventTapInformationinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static CGEventTapInformationDeprecated.static CGEventTapInformation.BuffercallocStack(int capacity) Deprecated.static CGEventTapInformation.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack) Deprecated.static CGEventTapInformationcallocStack(org.lwjgl.system.MemoryStack stack) Deprecated.static CGEventTapInformationcreate()Returns a newCGEventTapInformationinstance allocated withBufferUtils.static CGEventTapInformation.Buffercreate(int capacity) Returns a newCGEventTapInformation.Bufferinstance allocated withBufferUtils.static CGEventTapInformationcreate(long address) Returns a newCGEventTapInformationinstance for the specified memory address.static CGEventTapInformation.Buffercreate(long address, int capacity) Create aCGEventTapInformation.Bufferinstance at the specified memory.static @Nullable CGEventTapInformationcreateSafe(long address) static @Nullable CGEventTapInformation.BuffercreateSafe(long address, int capacity) booleanenabled()true if tap is enabledlongmask of events being tappedintstatic CGEventTapInformationmalloc()Returns a newCGEventTapInformationinstance allocated withmemAlloc.static CGEventTapInformation.Buffermalloc(int capacity) Returns a newCGEventTapInformation.Bufferinstance allocated withmemAlloc.static CGEventTapInformation.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newCGEventTapInformation.Bufferinstance allocated on the specifiedMemoryStack.static CGEventTapInformationmalloc(org.lwjgl.system.MemoryStack stack) Returns a newCGEventTapInformationinstance allocated on the specifiedMemoryStack.static CGEventTapInformationDeprecated.static CGEventTapInformation.BuffermallocStack(int capacity) Deprecated.static CGEventTapInformation.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack) Deprecated.static CGEventTapInformationmallocStack(org.lwjgl.system.MemoryStack stack) Deprecated.floatmaximum latency in microsecondsfloatminimum latency in microsecondsstatic floatnavgUsecLatency(long struct) Unsafe version ofavgUsecLatency().static booleannenabled(long struct) Unsafe version ofenabled().static longneventsOfInterest(long struct) Unsafe version ofeventsOfInterest().static intneventTapID(long struct) Unsafe version ofeventTapID().static floatnmaxUsecLatency(long struct) Unsafe version ofmaxUsecLatency().static floatnminUsecLatency(long struct) Unsafe version ofminUsecLatency().static intnoptions(long struct) Unsafe version ofoptions().static longnprocessBeingTapped(long struct) Unsafe version ofprocessBeingTapped().static longntappingProcess(long struct) Unsafe version oftappingProcess().static intntapPoint(long struct) Unsafe version oftapPoint().intoptions()listener, filterlongzero if not a per-process tapintsizeof()longprocess that is tapping eventsinttapPoint()HID, session, annotated sessionMethods inherited from class org.lwjgl.system.Struct
clear, free, isNull, validate, validateMethods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toStringMethods 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 aCGEventTapInformationinstance at the current position of the specifiedByteBuffercontainer. 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:
sizeofin classorg.lwjgl.system.Struct<CGEventTapInformation>
-
eventTapID
public int eventTapID()- Returns:
- the value of the
eventTapIDfield.
-
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 newCGEventTapInformationinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newCGEventTapInformationinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newCGEventTapInformationinstance allocated withBufferUtils. -
create
Returns a newCGEventTapInformationinstance for the specified memory address. -
createSafe
-
malloc
Returns a newCGEventTapInformation.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newCGEventTapInformation.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newCGEventTapInformation.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aCGEventTapInformation.Bufferinstance 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 newCGEventTapInformationinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newCGEventTapInformationinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newCGEventTapInformation.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newCGEventTapInformation.Bufferinstance allocated on the specifiedMemoryStackand 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().
-