Class XGenericEventCookie

All Implemented Interfaces:
AutoCloseable, NativeResource, Pointer

public class XGenericEventCookie extends Struct<XGenericEventCookie> implements NativeResource
Additional information for an XGenericEvent.

Layout


 struct XGenericEventCookie {
     int type();
     unsigned long serial();
     Bool send_event();
     Display * display();
     int extension();
     int evtype();
     unsigned int cookie;
     void * data;
 }
  • Field Details

    • SIZEOF

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

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

      public static final int TYPE
      The struct member offsets.
    • SERIAL

      public static final int SERIAL
      The struct member offsets.
    • SEND_EVENT

      public static final int SEND_EVENT
      The struct member offsets.
    • DISPLAY

      public static final int DISPLAY
      The struct member offsets.
    • EXTENSION

      public static final int EXTENSION
      The struct member offsets.
    • EVTYPE

      public static final int EVTYPE
      The struct member offsets.
    • DATA

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

    • XGenericEventCookie

      public XGenericEventCookie(ByteBuffer container)
      Creates a XGenericEventCookie 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