Class MOUSEINPUT

    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.
      • DX, DY, MOUSEDATA, DWFLAGS, TIME, DWEXTRAINFO

        The struct member offsets.
    • Constructor Detail

      • MOUSEINPUT

        public MOUSEINPUT​(java.nio.ByteBuffer container)
        Creates a MOUSEINPUT 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()
        Description copied from class: Struct
        Returns sizeof(struct).
        Specified by:
        sizeof in class Struct
      • dx

        public int dx()
        Returns the value of the dx field.
      • dy

        public int dy()
        Returns the value of the dy field.
      • mouseData

        public int mouseData()
        Returns the value of the mouseData field.
      • dwFlags

        public int dwFlags()
        Returns the value of the dwFlags field.
      • time

        public int time()
        Returns the value of the time field.
      • dwExtraInfo

        public long dwExtraInfo()
        Returns the value of the dwExtraInfo field.
      • dx

        public MOUSEINPUT dx​(int value)
        Sets the specified value to the dx field.
      • dy

        public MOUSEINPUT dy​(int value)
        Sets the specified value to the dy field.
      • mouseData

        public MOUSEINPUT mouseData​(int value)
        Sets the specified value to the mouseData field.
      • dwFlags

        public MOUSEINPUT dwFlags​(int value)
        Sets the specified value to the dwFlags field.
      • time

        public MOUSEINPUT time​(int value)
        Sets the specified value to the time field.
      • dwExtraInfo

        public MOUSEINPUT dwExtraInfo​(long value)
        Sets the specified value to the dwExtraInfo field.
      • set

        public MOUSEINPUT set​(int dx,
                              int dy,
                              int mouseData,
                              int dwFlags,
                              int time,
                              long dwExtraInfo)
        Initializes this struct with the specified values.
      • set

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

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

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

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

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

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

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

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

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

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

        public static MOUSEINPUT mallocStack()
        Returns a new MOUSEINPUT instance allocated on the thread-local MemoryStack.
      • callocStack

        public static MOUSEINPUT callocStack()
        Returns a new MOUSEINPUT instance allocated on the thread-local MemoryStack and initializes all its bits to zero.
      • mallocStack

        public static MOUSEINPUT mallocStack​(MemoryStack stack)
        Returns a new MOUSEINPUT instance allocated on the specified MemoryStack.
        Parameters:
        stack - the stack from which to allocate
      • callocStack

        public static MOUSEINPUT callocStack​(MemoryStack stack)
        Returns a new MOUSEINPUT instance allocated on the specified MemoryStack and initializes all its bits to zero.
        Parameters:
        stack - the stack from which to allocate
      • callocStack

        public static MOUSEINPUT.Buffer callocStack​(int capacity)
        Returns a new MOUSEINPUT.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.
        Parameters:
        capacity - the buffer capacity
      • callocStack

        public static MOUSEINPUT.Buffer callocStack​(int capacity,
                                                    MemoryStack stack)
        Returns a new MOUSEINPUT.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
      • ndx

        public static int ndx​(long struct)
        Unsafe version of dx().
      • ndy

        public static int ndy​(long struct)
        Unsafe version of dy().
      • nmouseData

        public static int nmouseData​(long struct)
        Unsafe version of mouseData().
      • ndwFlags

        public static int ndwFlags​(long struct)
        Unsafe version of dwFlags().
      • ntime

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

        public static long ndwExtraInfo​(long struct)
        Unsafe version of dwExtraInfo().
      • ndx

        public static void ndx​(long struct,
                               int value)
        Unsafe version of dx.
      • ndy

        public static void ndy​(long struct,
                               int value)
        Unsafe version of dy.
      • nmouseData

        public static void nmouseData​(long struct,
                                      int value)
        Unsafe version of mouseData.
      • ndwFlags

        public static void ndwFlags​(long struct,
                                    int value)
        Unsafe version of dwFlags.
      • ntime

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

        public static void ndwExtraInfo​(long struct,
                                        long value)
        Unsafe version of dwExtraInfo.