Class XCrossingEvent

    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.
      • TYPE, SERIAL, SEND_EVENT, DISPLAY, WINDOW, ROOT, SUBWINDOW, TIME, X, Y, X_ROOT, Y_ROOT, MODE, DETAIL, SAME_SCREEN, FOCUS, STATE

        The struct member offsets.
    • Constructor Detail

      • XCrossingEvent

        public XCrossingEvent​(java.nio.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 Detail

      • sizeof

        public int sizeof()
        Specified by:
        sizeof in class org.lwjgl.system.Struct
      • type

        public int type()
        of event
      • serial

        public long serial()
        # of last request processed by server
      • display

        public long display()
        Display the event was read from
      • window

        public long window()
        window it reported relative to
      • root

        public long root()
        root window that the event occurred on
      • subwindow

        public long subwindow()
        child window
      • time

        public long time()
        milliseconds
      • x

        public int x()
        pointer x coordinate in event window
      • y

        public int y()
        pointer y coordinate in event window
      • x_root

        public int x_root()
        x coordinate relative to root
      • y_root

        public int y_root()
        y coordinate relative to root
      • detail

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

        public int same_screen()
        same screen flag
      • focus

        public int focus()
        boolean focus
      • state

        public int state()
        key or button mask
      • x

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

        public XCrossingEvent y​(int value)
        Sets the specified value to the y() field.
      • detail

        public XCrossingEvent detail​(int value)
        Sets the specified value to the detail field.
      • set

        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

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

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

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

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

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

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

        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

        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

        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

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

        @Deprecated
        public static XCrossingEvent mallocStack​(org.lwjgl.system.MemoryStack stack)
        Deprecated.
        Deprecated for removal in 3.4.0. Use malloc(MemoryStack) instead.
      • callocStack

        @Deprecated
        public static XCrossingEvent callocStack​(org.lwjgl.system.MemoryStack stack)
        Deprecated.
        Deprecated for removal in 3.4.0. Use calloc(MemoryStack) instead.
      • malloc

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

        public static XCrossingEvent calloc​(org.lwjgl.system.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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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