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 classCGEventTapInformation.BufferAn array ofCGEventTapInformationstructs.-
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intAVGUSECLATENCY
ENABLED
EVENTSOFINTEREST
EVENTTAPID
MAXUSECLATENCY
MINUSECLATENCY
OPTIONS
PROCESSBEINGTAPPEDThe struct member offsets.static intSIZEOFThe struct size in bytes.static intTAPPINGPROCESS
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 aCGEventTapInformationinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description floatavgUsecLatency()Returns the value of theavgUsecLatencyfield.static CGEventTapInformationcalloc()Returns a newCGEventTapInformationinstance allocated withmemCalloc.static CGEventTapInformation.Buffercalloc(int capacity)Returns a newCGEventTapInformation.Bufferinstance allocated withmemCalloc.static CGEventTapInformationcallocStack()Returns a newCGEventTapInformationinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static CGEventTapInformation.BuffercallocStack(int capacity)Returns a newCGEventTapInformation.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static CGEventTapInformation.BuffercallocStack(int capacity, MemoryStack stack)Returns a newCGEventTapInformation.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static CGEventTapInformationcallocStack(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 CGEventTapInformationcreateSafe(long address)static CGEventTapInformation.BuffercreateSafe(long address, int capacity)booleanenabled()Returns the value of theenabledfield.longeventsOfInterest()Returns the value of theeventsOfInterestfield.inteventTapID()Returns the value of theeventTapIDfield.static CGEventTapInformationmalloc()Returns a newCGEventTapInformationinstance allocated withmemAlloc.static CGEventTapInformation.Buffermalloc(int capacity)Returns a newCGEventTapInformation.Bufferinstance allocated withmemAlloc.static CGEventTapInformationmallocStack()Returns a newCGEventTapInformationinstance allocated on the thread-localMemoryStack.static CGEventTapInformation.BuffermallocStack(int capacity)Returns a newCGEventTapInformation.Bufferinstance allocated on the thread-localMemoryStack.static CGEventTapInformation.BuffermallocStack(int capacity, MemoryStack stack)Returns a newCGEventTapInformation.Bufferinstance allocated on the specifiedMemoryStack.static CGEventTapInformationmallocStack(MemoryStack stack)Returns a newCGEventTapInformationinstance allocated on the specifiedMemoryStack.floatmaxUsecLatency()Returns the value of themaxUsecLatencyfield.floatminUsecLatency()Returns the value of theminUsecLatencyfield.static 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()Returns the value of theoptionsfield.longprocessBeingTapped()Returns the value of theprocessBeingTappedfield.intsizeof()Returnssizeof(struct).longtappingProcess()Returns the value of thetappingProcessfield.inttapPoint()Returns the value of thetapPointfield.-
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 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 Detail
-
sizeof
public int sizeof()
Description copied from class:StructReturnssizeof(struct).
-
eventTapID
public int eventTapID()
Returns the value of theeventTapIDfield.
-
tapPoint
public int tapPoint()
Returns the value of thetapPointfield.
-
options
public int options()
Returns the value of theoptionsfield.
-
eventsOfInterest
public long eventsOfInterest()
Returns the value of theeventsOfInterestfield.
-
tappingProcess
public long tappingProcess()
Returns the value of thetappingProcessfield.
-
processBeingTapped
public long processBeingTapped()
Returns the value of theprocessBeingTappedfield.
-
enabled
public boolean enabled()
Returns the value of theenabledfield.
-
minUsecLatency
public float minUsecLatency()
Returns the value of theminUsecLatencyfield.
-
avgUsecLatency
public float avgUsecLatency()
Returns the value of theavgUsecLatencyfield.
-
maxUsecLatency
public float maxUsecLatency()
Returns the value of themaxUsecLatencyfield.
-
malloc
public static CGEventTapInformation malloc()
Returns a newCGEventTapInformationinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static CGEventTapInformation calloc()
Returns a newCGEventTapInformationinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static CGEventTapInformation create()
Returns a newCGEventTapInformationinstance allocated withBufferUtils.
-
create
public static CGEventTapInformation create(long address)
Returns a newCGEventTapInformationinstance for the specified memory address.
-
createSafe
@Nullable public static CGEventTapInformation createSafe(long address)
-
malloc
public static CGEventTapInformation.Buffer malloc(int capacity)
Returns a newCGEventTapInformation.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static CGEventTapInformation.Buffer calloc(int capacity)
Returns a newCGEventTapInformation.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static CGEventTapInformation.Buffer create(int capacity)
Returns a newCGEventTapInformation.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static CGEventTapInformation.Buffer create(long address, int capacity)
Create aCGEventTapInformation.Bufferinstance 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 newCGEventTapInformationinstance allocated on the thread-localMemoryStack.
-
callocStack
public static CGEventTapInformation callocStack()
Returns a newCGEventTapInformationinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.
-
mallocStack
public static CGEventTapInformation mallocStack(MemoryStack stack)
Returns a newCGEventTapInformationinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
callocStack
public static CGEventTapInformation callocStack(MemoryStack stack)
Returns a newCGEventTapInformationinstance allocated on the specifiedMemoryStackand 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.Bufferinstance allocated on the thread-localMemoryStack.- Parameters:
capacity- the buffer capacity
-
callocStack
public static CGEventTapInformation.Buffer callocStack(int capacity)
Returns a newCGEventTapInformation.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacity
-
mallocStack
public static CGEventTapInformation.Buffer mallocStack(int capacity, MemoryStack stack)
Returns a newCGEventTapInformation.Bufferinstance 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.Bufferinstance allocated on the specifiedMemoryStackand 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().
-
-