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.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
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 TypeMethodDescriptionfloatstatic CGEventTapInformationcalloc()Returns a newCGEventTapInformationinstance allocated withmemCalloc.static CGEventTapInformation.Buffercalloc(int capacity) Returns a newCGEventTapInformation.Bufferinstance allocated withmemCalloc.static CGEventTapInformation.Buffercalloc(int capacity, MemoryStack stack) Returns a newCGEventTapInformation.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static CGEventTapInformationcalloc(MemoryStack stack) Returns a newCGEventTapInformationinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.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()longintstatic CGEventTapInformationmalloc()Returns a newCGEventTapInformationinstance allocated withmemAlloc.static CGEventTapInformation.Buffermalloc(int capacity) Returns a newCGEventTapInformation.Bufferinstance allocated withmemAlloc.static CGEventTapInformation.Buffermalloc(int capacity, MemoryStack stack) Returns a newCGEventTapInformation.Bufferinstance allocated on the specifiedMemoryStack.static CGEventTapInformationmalloc(MemoryStack stack) Returns a newCGEventTapInformationinstance allocated on the specifiedMemoryStack.floatfloatstatic 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()longintsizeof()Returnssizeof(struct).longinttapPoint()Methods 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()Description copied from class:StructReturnssizeof(struct).- Specified by:
sizeofin classStruct<CGEventTapInformation>
-
eventTapID
public int eventTapID()- Returns:
- the value of the
eventTapIDfield.
-
tapPoint
public int tapPoint()- Returns:
- the value of the
tapPointfield.
-
options
public int options()- Returns:
- the value of the
optionsfield.
-
eventsOfInterest
public long eventsOfInterest()- Returns:
- the value of the
eventsOfInterestfield.
-
tappingProcess
public long tappingProcess()- Returns:
- the value of the
tappingProcessfield.
-
processBeingTapped
public long processBeingTapped()- Returns:
- the value of the
processBeingTappedfield.
-
enabled
public boolean enabled()- Returns:
- the value of the
enabledfield.
-
minUsecLatency
public float minUsecLatency()- Returns:
- the value of the
minUsecLatencyfield.
-
avgUsecLatency
public float avgUsecLatency()- Returns:
- the value of the
avgUsecLatencyfield.
-
maxUsecLatency
public float maxUsecLatency()- Returns:
- the value of the
maxUsecLatencyfield.
-
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
-
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().
-