Class MOUSEINPUT.Buffer

All Implemented Interfaces:
AutoCloseable, Iterable<MOUSEINPUT>, NativeResource, Pointer
Enclosing class:
MOUSEINPUT

public static class MOUSEINPUT.Buffer extends StructBuffer<MOUSEINPUT,MOUSEINPUT.Buffer> implements NativeResource
An array of MOUSEINPUT structs.
  • Constructor Details

    • Buffer

      public Buffer(ByteBuffer container)
      Creates a new MOUSEINPUT.Buffer instance backed by the specified container.

      Changes to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values will be independent. The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided by MOUSEINPUT.SIZEOF, and its mark will be undefined.

      The created buffer instance holds a strong reference to the container object.

    • Buffer

      public Buffer(long address, int cap)
  • Method Details

    • 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.Buffer dx(int value)
      Sets the specified value to the dx field.
    • dy

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

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

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

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

      public MOUSEINPUT.Buffer dwExtraInfo(long value)
      Sets the specified value to the dwExtraInfo field.