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,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class CGEventTapInformation extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceThe structure used to report information about event taps.Layout
struct CGEventTapInformation { uint32_t eventTapID; CGEventTapLocationtapPoint(); CGEventTapOptionsoptions(); CGEventMaskeventsOfInterest(); pid_ttappingProcess(); pid_tprocessBeingTapped(); boolenabled(); floatminUsecLatency(); floatavgUsecLatency(); floatmaxUsecLatency(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCGEventTapInformation.BufferAn array ofCGEventTapInformationstructs.
-
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.
-
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 Deprecated Methods Modifier and Type Method Description floatavgUsecLatency()average 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 CGEventTapInformationcallocStack()Deprecated.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 CGEventTapInformationcreateSafe(long address)static CGEventTapInformation.BuffercreateSafe(long address, int capacity)booleanenabled()true if tap is enabledlongeventsOfInterest()mask of events being tappedinteventTapID()static 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 CGEventTapInformationmallocStack()Deprecated.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.floatmaxUsecLatency()maximum latency in microsecondsfloatminUsecLatency()minimum 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, filterlongprocessBeingTapped()zero if not a per-process tapintsizeof()longtappingProcess()process that is tapping eventsinttapPoint()HID, session, annotated session
-
-
-
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()
- Specified by:
sizeofin classorg.lwjgl.system.Struct
-
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
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
@Deprecated public static CGEventTapInformation mallocStack()
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static CGEventTapInformation callocStack()
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static CGEventTapInformation mallocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static CGEventTapInformation callocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static CGEventTapInformation.Buffer mallocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static CGEventTapInformation.Buffer callocStack(int capacity)
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
public static CGEventTapInformation malloc(org.lwjgl.system.MemoryStack stack)
Returns a newCGEventTapInformationinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static CGEventTapInformation calloc(org.lwjgl.system.MemoryStack stack)
Returns a newCGEventTapInformationinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static CGEventTapInformation.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newCGEventTapInformation.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static CGEventTapInformation.Buffer calloc(int capacity, org.lwjgl.system.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().
-
-