Class TOUCHINPUT

All Implemented Interfaces:
AutoCloseable, NativeResource, Pointer

public class TOUCHINPUT extends Struct<TOUCHINPUT> implements NativeResource

 struct TOUCHINPUT {
     LONG x;
     LONG y;
     HANDLE hSource;
     DWORD dwID;
     DWORD dwFlags;
     DWORD dwMask;
     DWORD dwTime;
     ULONG_PTR dwExtraInfo;
     DWORD cxContact;
     DWORD cyContact;
 }
  • Field Details

    • SIZEOF

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

      public static final int ALIGNOF
      The struct alignment in bytes.
    • X

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

      public static final int Y
      The struct member offsets.
    • HSOURCE

      public static final int HSOURCE
      The struct member offsets.
    • DWID

      public static final int DWID
      The struct member offsets.
    • DWFLAGS

      public static final int DWFLAGS
      The struct member offsets.
    • DWMASK

      public static final int DWMASK
      The struct member offsets.
    • DWTIME

      public static final int DWTIME
      The struct member offsets.
    • DWEXTRAINFO

      public static final int DWEXTRAINFO
      The struct member offsets.
    • CXCONTACT

      public static final int CXCONTACT
      The struct member offsets.
    • CYCONTACT

      public static final int CYCONTACT
      The struct member offsets.
  • Constructor Details

    • TOUCHINPUT

      public TOUCHINPUT(ByteBuffer container)
      Creates a TOUCHINPUT 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

    • sizeof

      public int sizeof()
      Description copied from class: Struct
      Returns sizeof(struct).
      Specified by:
      sizeof in class Struct<TOUCHINPUT>
    • x

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

      public int y()
      Returns:
      the value of the y field.
    • hSource

      public long hSource()
      Returns:
      the value of the hSource field.
    • dwID

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

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

      public int dwMask()
      Returns:
      the value of the dwMask field.
    • dwTime

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

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

      public int cxContact()
      Returns:
      the value of the cxContact field.
    • cyContact

      public int cyContact()
      Returns:
      the value of the cyContact field.
    • malloc

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      public static TOUCHINPUT.Buffer calloc(int capacity, MemoryStack stack)
      Returns a new TOUCHINPUT.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
    • nx

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

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

      public static long nhSource(long struct)
      Unsafe version of hSource().
    • ndwID

      public static int ndwID(long struct)
      Unsafe version of dwID().
    • ndwFlags

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

      public static int ndwMask(long struct)
      Unsafe version of dwMask().
    • ndwTime

      public static int ndwTime(long struct)
      Unsafe version of dwTime().
    • ndwExtraInfo

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

      public static int ncxContact(long struct)
      Unsafe version of cxContact().
    • ncyContact

      public static int ncyContact(long struct)
      Unsafe version of cyContact().