Class XEvent

All Implemented Interfaces:
AutoCloseable, NativeResource, Pointer

public class XEvent extends Struct<XEvent> implements NativeResource

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