Class XCrossingEvent

All Implemented Interfaces:
AutoCloseable, NativeResource, Pointer

public class XCrossingEvent extends Struct<XCrossingEvent> implements NativeResource

 struct XCrossingEvent {
     int type;
     unsigned long serial;
     Bool send_event;
     Display * display;
     Window window;
     Window root;
     Window subwindow;
     Time time;
     int x;
     int y;
     int x_root;
     int y_root;
     int mode;
     int detail;
     int same_screen;
     int focus;
     unsigned int state;
 }
  • Field Details Link icon

    • SIZEOF Link icon

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

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

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

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

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

      public static final int DISPLAY
      The struct member offsets.
    • WINDOW Link icon

      public static final int WINDOW
      The struct member offsets.
    • ROOT Link icon

      public static final int ROOT
      The struct member offsets.
    • SUBWINDOW Link icon

      public static final int SUBWINDOW
      The struct member offsets.
    • TIME Link icon

      public static final int TIME
      The struct member offsets.
    • X Link icon

      public static final int X
      The struct member offsets.
    • Y Link icon

      public static final int Y
      The struct member offsets.
    • X_ROOT Link icon

      public static final int X_ROOT
      The struct member offsets.
    • Y_ROOT Link icon

      public static final int Y_ROOT
      The struct member offsets.
    • MODE Link icon

      public static final int MODE
      The struct member offsets.
    • DETAIL Link icon

      public static final int DETAIL
      The struct member offsets.
    • SAME_SCREEN Link icon

      public static final int SAME_SCREEN
      The struct member offsets.
    • FOCUS Link icon

      public static final int FOCUS
      The struct member offsets.
    • STATE Link icon

      public static final int STATE
      The struct member offsets.
  • Constructor Details Link icon

    • XCrossingEvent Link icon

      public XCrossingEvent(ByteBuffer container)
      Creates a XCrossingEvent 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 Link icon

    • sizeof Link icon

      public int sizeof()
      Description copied from class: Struct
      Returns sizeof(struct).
      Specified by:
      sizeof in class Struct<XCrossingEvent>
    • type Link icon

      public int type()
      Returns:
      the value of the type field.
    • serial Link icon

      public long serial()
      Returns:
      the value of the serial field.
    • send_event Link icon

      public boolean send_event()
      Returns:
      the value of the send_event field.
    • display Link icon

      public long display()
      Returns:
      the value of the display field.
    • window Link icon

      public long window()
      Returns:
      the value of the window field.
    • root Link icon

      public long root()
      Returns:
      the value of the root field.
    • subwindow Link icon

      public long subwindow()
      Returns:
      the value of the subwindow field.
    • time Link icon

      public long time()
      Returns:
      the value of the time field.
    • x Link icon

      public int x()
      Returns:
      the value of the x field.
    • y Link icon

      public int y()
      Returns:
      the value of the y field.
    • x_root Link icon

      public int x_root()
      Returns:
      the value of the x_root field.
    • y_root Link icon

      public int y_root()
      Returns:
      the value of the y_root field.
    • mode Link icon

      public int mode()
      Returns:
      the value of the mode field.
    • detail Link icon

      public int detail()
      Returns:
      the value of the detail field.
    • same_screen Link icon

      public int same_screen()
      Returns:
      the value of the same_screen field.
    • focus Link icon

      public int focus()
      Returns:
      the value of the focus field.
    • state Link icon

      public int state()
      Returns:
      the value of the state field.
    • type Link icon

      public XCrossingEvent type(int value)
      Sets the specified value to the type field.
    • serial Link icon

      public XCrossingEvent serial(long value)
      Sets the specified value to the serial field.
    • send_event Link icon

      public XCrossingEvent send_event(boolean value)
      Sets the specified value to the send_event field.
    • display Link icon

      public XCrossingEvent display(long value)
      Sets the specified value to the display field.
    • window Link icon

      public XCrossingEvent window(long value)
      Sets the specified value to the window field.
    • root Link icon

      public XCrossingEvent root(long value)
      Sets the specified value to the root field.
    • subwindow Link icon

      public XCrossingEvent subwindow(long value)
      Sets the specified value to the subwindow field.
    • time Link icon

      public XCrossingEvent time(long value)
      Sets the specified value to the time field.
    • x Link icon

      public XCrossingEvent x(int value)
      Sets the specified value to the x field.
    • y Link icon

      public XCrossingEvent y(int value)
      Sets the specified value to the y field.
    • x_root Link icon

      public XCrossingEvent x_root(int value)
      Sets the specified value to the x_root field.
    • y_root Link icon

      public XCrossingEvent y_root(int value)
      Sets the specified value to the y_root field.
    • mode Link icon

      public XCrossingEvent mode(int value)
      Sets the specified value to the mode field.
    • detail Link icon

      public XCrossingEvent detail(int value)
      Sets the specified value to the detail field.
    • same_screen Link icon

      public XCrossingEvent same_screen(int value)
      Sets the specified value to the same_screen field.
    • focus Link icon

      public XCrossingEvent focus(int value)
      Sets the specified value to the focus field.
    • state Link icon

      public XCrossingEvent state(int value)
      Sets the specified value to the state field.
    • set Link icon

      public XCrossingEvent set(int type, long serial, boolean send_event, long display, long window, long root, long subwindow, long time, int x, int y, int x_root, int y_root, int mode, int detail, int same_screen, int focus, int state)
      Initializes this struct with the specified values.
    • set Link icon

      public XCrossingEvent set(XCrossingEvent src)
      Copies the specified struct data to this struct.
      Parameters:
      src - the source struct
      Returns:
      this struct
    • malloc Link icon

      public static XCrossingEvent malloc()
      Returns a new XCrossingEvent instance allocated with memAlloc. The instance must be explicitly freed.
    • calloc Link icon

      public static XCrossingEvent calloc()
      Returns a new XCrossingEvent instance allocated with memCalloc. The instance must be explicitly freed.
    • create Link icon

      public static XCrossingEvent create()
      Returns a new XCrossingEvent instance allocated with BufferUtils.
    • create Link icon

      public static XCrossingEvent create(long address)
      Returns a new XCrossingEvent instance for the specified memory address.
    • createSafe Link icon

      public static @Nullable XCrossingEvent createSafe(long address)
      Like create, but returns null if address is NULL.
    • malloc Link icon

      public static XCrossingEvent.Buffer malloc(int capacity)
      Returns a new XCrossingEvent.Buffer instance allocated with memAlloc. The instance must be explicitly freed.
      Parameters:
      capacity - the buffer capacity
    • calloc Link icon

      public static XCrossingEvent.Buffer calloc(int capacity)
      Returns a new XCrossingEvent.Buffer instance allocated with memCalloc. The instance must be explicitly freed.
      Parameters:
      capacity - the buffer capacity
    • create Link icon

      public static XCrossingEvent.Buffer create(int capacity)
      Returns a new XCrossingEvent.Buffer instance allocated with BufferUtils.
      Parameters:
      capacity - the buffer capacity
    • create Link icon

      public static XCrossingEvent.Buffer create(long address, int capacity)
      Create a XCrossingEvent.Buffer instance at the specified memory.
      Parameters:
      address - the memory address
      capacity - the buffer capacity
    • createSafe Link icon

      public static @Nullable XCrossingEvent.Buffer createSafe(long address, int capacity)
      Like create, but returns null if address is NULL.
    • mallocStack Link icon

      @Deprecated public static XCrossingEvent mallocStack()
      Deprecated.
      Deprecated for removal in 3.4.0. Use malloc(MemoryStack) instead.
    • callocStack Link icon

      @Deprecated public static XCrossingEvent callocStack()
      Deprecated.
      Deprecated for removal in 3.4.0. Use calloc(MemoryStack) instead.
    • mallocStack Link icon

      @Deprecated public static XCrossingEvent mallocStack(MemoryStack stack)
      Deprecated.
      Deprecated for removal in 3.4.0. Use malloc(MemoryStack) instead.
    • callocStack Link icon

      @Deprecated public static XCrossingEvent callocStack(MemoryStack stack)
      Deprecated.
      Deprecated for removal in 3.4.0. Use calloc(MemoryStack) instead.
    • mallocStack Link icon

      @Deprecated public static XCrossingEvent.Buffer mallocStack(int capacity)
      Deprecated.
      Deprecated for removal in 3.4.0. Use malloc(int, MemoryStack) instead.
    • callocStack Link icon

      @Deprecated public static XCrossingEvent.Buffer callocStack(int capacity)
      Deprecated.
      Deprecated for removal in 3.4.0. Use calloc(int, MemoryStack) instead.
    • mallocStack Link icon

      @Deprecated public static XCrossingEvent.Buffer mallocStack(int capacity, MemoryStack stack)
      Deprecated.
      Deprecated for removal in 3.4.0. Use malloc(int, MemoryStack) instead.
    • callocStack Link icon

      @Deprecated public static XCrossingEvent.Buffer callocStack(int capacity, MemoryStack stack)
      Deprecated.
      Deprecated for removal in 3.4.0. Use calloc(int, MemoryStack) instead.
    • malloc Link icon

      public static XCrossingEvent malloc(MemoryStack stack)
      Returns a new XCrossingEvent instance allocated on the specified MemoryStack.
      Parameters:
      stack - the stack from which to allocate
    • calloc Link icon

      public static XCrossingEvent calloc(MemoryStack stack)
      Returns a new XCrossingEvent instance allocated on the specified MemoryStack and initializes all its bits to zero.
      Parameters:
      stack - the stack from which to allocate
    • malloc Link icon

      public static XCrossingEvent.Buffer malloc(int capacity, MemoryStack stack)
      Returns a new XCrossingEvent.Buffer instance allocated on the specified MemoryStack.
      Parameters:
      capacity - the buffer capacity
      stack - the stack from which to allocate
    • calloc Link icon

      public static XCrossingEvent.Buffer calloc(int capacity, MemoryStack stack)
      Returns a new XCrossingEvent.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.
      Parameters:
      capacity - the buffer capacity
      stack - the stack from which to allocate
    • ntype Link icon

      public static int ntype(long struct)
      Unsafe version of type().
    • nserial Link icon

      public static long nserial(long struct)
      Unsafe version of serial().
    • nsend_event Link icon

      public static int nsend_event(long struct)
      Unsafe version of send_event().
    • ndisplay Link icon

      public static long ndisplay(long struct)
      Unsafe version of display().
    • nwindow Link icon

      public static long nwindow(long struct)
      Unsafe version of window().
    • nroot Link icon

      public static long nroot(long struct)
      Unsafe version of root().
    • nsubwindow Link icon

      public static long nsubwindow(long struct)
      Unsafe version of subwindow().
    • ntime Link icon

      public static long ntime(long struct)
      Unsafe version of time().
    • nx Link icon

      public static int nx(long struct)
      Unsafe version of x().
    • ny Link icon

      public static int ny(long struct)
      Unsafe version of y().
    • nx_root Link icon

      public static int nx_root(long struct)
      Unsafe version of x_root().
    • ny_root Link icon

      public static int ny_root(long struct)
      Unsafe version of y_root().
    • nmode Link icon

      public static int nmode(long struct)
      Unsafe version of mode().
    • ndetail Link icon

      public static int ndetail(long struct)
      Unsafe version of detail().
    • nsame_screen Link icon

      public static int nsame_screen(long struct)
      Unsafe version of same_screen().
    • nfocus Link icon

      public static int nfocus(long struct)
      Unsafe version of focus().
    • nstate Link icon

      public static int nstate(long struct)
      Unsafe version of state().
    • ntype Link icon

      public static void ntype(long struct, int value)
      Unsafe version of type.
    • nserial Link icon

      public static void nserial(long struct, long value)
      Unsafe version of serial.
    • nsend_event Link icon

      public static void nsend_event(long struct, int value)
      Unsafe version of send_event.
    • ndisplay Link icon

      public static void ndisplay(long struct, long value)
      Unsafe version of display.
    • nwindow Link icon

      public static void nwindow(long struct, long value)
      Unsafe version of window.
    • nroot Link icon

      public static void nroot(long struct, long value)
      Unsafe version of root.
    • nsubwindow Link icon

      public static void nsubwindow(long struct, long value)
      Unsafe version of subwindow.
    • ntime Link icon

      public static void ntime(long struct, long value)
      Unsafe version of time.
    • nx Link icon

      public static void nx(long struct, int value)
      Unsafe version of x.
    • ny Link icon

      public static void ny(long struct, int value)
      Unsafe version of y.
    • nx_root Link icon

      public static void nx_root(long struct, int value)
      Unsafe version of x_root.
    • ny_root Link icon

      public static void ny_root(long struct, int value)
      Unsafe version of y_root.
    • nmode Link icon

      public static void nmode(long struct, int value)
      Unsafe version of mode.
    • ndetail Link icon

      public static void ndetail(long struct, int value)
      Unsafe version of detail.
    • nsame_screen Link icon

      public static void nsame_screen(long struct, int value)
      Unsafe version of same_screen.
    • nfocus Link icon

      public static void nfocus(long struct, int value)
      Unsafe version of focus.
    • nstate Link icon

      public static void nstate(long struct, int value)
      Unsafe version of state.
    • validate Link icon

      public static void validate(long struct)
      Validates pointer members that should not be NULL.
      Parameters:
      struct - the struct to validate