Class XEvent

All Implemented Interfaces:
AutoCloseable, NativeResource, Pointer

public class XEvent extends Struct<XEvent> implements NativeResource
union XEvent {
    int type;
    XAnyEvent xany;
    XKeyEvent xkey;
    XButtonEvent xbutton;
    XMotionEvent xmotion;
    XCrossingEvent xcrossing;
    XFocusChangeEvent xfocus;
    XExposeEvent xexpose;
    XGraphicsExposeEvent xgraphicsexpose;
    XNoExposeEvent xnoexpose;
    XVisibilityEvent xvisibility;
    XCreateWindowEvent xcreatewindow;
    XDestroyWindowEvent xdestroywindow;
    XUnmapEvent xunmap;
    XMapEvent xmap;
    XMapRequestEvent xmaprequest;
    XReparentEvent xreparent;
    XConfigureEvent xconfigure;
    XGravityEvent xgravity;
    XResizeRequestEvent xresizerequest;
    XConfigureRequestEvent xconfigurerequest;
    XCirculateEvent xcirculate;
    XCirculateRequestEvent xcirculaterequest;
    XPropertyEvent xproperty;
    XSelectionClearEvent xselectionclear;
    XSelectionRequestEvent xselectionrequest;
    XSelectionEvent xselection;
    XColormapEvent xcolormap;
    XClientMessageEvent xclient;
    XMappingEvent xmapping;
    XErrorEvent xerror;
    XKeymapEvent xkeymap;
    XGenericEvent xgeneric;
    XGenericEventCookie xcookie;
    long[24];
}
  • 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.
    • XANY

      public static final int XANY
      The struct member offsets.
    • XKEY

      public static final int XKEY
      The struct member offsets.
    • XBUTTON

      public static final int XBUTTON
      The struct member offsets.
    • XMOTION

      public static final int XMOTION
      The struct member offsets.
    • XCROSSING

      public static final int XCROSSING
      The struct member offsets.
    • XFOCUS

      public static final int XFOCUS
      The struct member offsets.
    • XEXPOSE

      public static final int XEXPOSE
      The struct member offsets.
    • XGRAPHICSEXPOSE

      public static final int XGRAPHICSEXPOSE
      The struct member offsets.
    • XNOEXPOSE

      public static final int XNOEXPOSE
      The struct member offsets.
    • XVISIBILITY

      public static final int XVISIBILITY
      The struct member offsets.
    • XCREATEWINDOW

      public static final int XCREATEWINDOW
      The struct member offsets.
    • XDESTROYWINDOW

      public static final int XDESTROYWINDOW
      The struct member offsets.
    • XUNMAP

      public static final int XUNMAP
      The struct member offsets.
    • XMAP

      public static final int XMAP
      The struct member offsets.
    • XMAPREQUEST

      public static final int XMAPREQUEST
      The struct member offsets.
    • XREPARENT

      public static final int XREPARENT
      The struct member offsets.
    • XCONFIGURE

      public static final int XCONFIGURE
      The struct member offsets.
    • XGRAVITY

      public static final int XGRAVITY
      The struct member offsets.
    • XRESIZEREQUEST

      public static final int XRESIZEREQUEST
      The struct member offsets.
    • XCONFIGUREREQUEST

      public static final int XCONFIGUREREQUEST
      The struct member offsets.
    • XCIRCULATE

      public static final int XCIRCULATE
      The struct member offsets.
    • XCIRCULATEREQUEST

      public static final int XCIRCULATEREQUEST
      The struct member offsets.
    • XPROPERTY

      public static final int XPROPERTY
      The struct member offsets.
    • XSELECTIONCLEAR

      public static final int XSELECTIONCLEAR
      The struct member offsets.
    • XSELECTIONREQUEST

      public static final int XSELECTIONREQUEST
      The struct member offsets.
    • XSELECTION

      public static final int XSELECTION
      The struct member offsets.
    • XCOLORMAP

      public static final int XCOLORMAP
      The struct member offsets.
    • XCLIENT

      public static final int XCLIENT
      The struct member offsets.
    • XMAPPING

      public static final int XMAPPING
      The struct member offsets.
    • XERROR

      public static final int XERROR
      The struct member offsets.
    • XKEYMAP

      public static final int XKEYMAP
      The struct member offsets.
    • XGENERIC

      public static final int XGENERIC
      The struct member offsets.
    • XCOOKIE

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

    • XEvent

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