Class CGEventTapInformation

All Implemented Interfaces:
AutoCloseable, NativeResource, Pointer

public class CGEventTapInformation extends Struct<CGEventTapInformation> implements NativeResource

 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;
 }
  • Field Details

    • SIZEOF

      public static final int SIZEOF
      The struct size in bytes.
    • ALIGNOF

      public static final int ALIGNOF
      The struct alignment in bytes.
    • EVENTTAPID

      public static final int EVENTTAPID
      The struct member offsets.
    • TAPPOINT

      public static final int TAPPOINT
      The struct member offsets.
    • OPTIONS

      public static final int OPTIONS
      The struct member offsets.
    • EVENTSOFINTEREST

      public static final int EVENTSOFINTEREST
      The struct member offsets.
    • TAPPINGPROCESS

      public static final int TAPPINGPROCESS
      The struct member offsets.
    • PROCESSBEINGTAPPED

      public static final int PROCESSBEINGTAPPED
      The struct member offsets.
    • ENABLED

      public static final int ENABLED
      The struct member offsets.
    • MINUSECLATENCY

      public static final int MINUSECLATENCY
      The struct member offsets.
    • AVGUSECLATENCY

      public static final int AVGUSECLATENCY
      The struct member offsets.
    • MAXUSECLATENCY

      public static final int MAXUSECLATENCY
      The struct member offsets.
  • Constructor Details

    • CGEventTapInformation

      public CGEventTapInformation(ByteBuffer container)
      Creates a CGEventTapInformation instance at the current position of the specified ByteBuffer 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