Package org.lwjgl.system.windows
Class TOUCHINPUT
- All Implemented Interfaces:
AutoCloseable
,NativeResource
,Pointer
struct TOUCHINPUT {
LONG x;
LONG y;
HANDLE hSource;
DWORD dwID;
DWORD dwFlags;
DWORD dwMask;
DWORD dwTime;
ULONG_PTR dwExtraInfo;
DWORD cxContact;
DWORD cyContact;
}
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidation
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
The struct alignment in bytes.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct size in bytes.static final int
The struct member offsets.static final int
The struct member offsets.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
-
Constructor Summary
ConstructorsConstructorDescriptionTOUCHINPUT
(ByteBuffer container) Creates aTOUCHINPUT
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionstatic TOUCHINPUT
calloc()
Returns a newTOUCHINPUT
instance allocated withmemCalloc
.static TOUCHINPUT.Buffer
calloc
(int capacity) Returns a newTOUCHINPUT.Buffer
instance allocated withmemCalloc
.static TOUCHINPUT.Buffer
calloc
(int capacity, MemoryStack stack) Returns a newTOUCHINPUT.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static TOUCHINPUT
calloc
(MemoryStack stack) Returns a newTOUCHINPUT
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static TOUCHINPUT
Deprecated.static TOUCHINPUT.Buffer
callocStack
(int capacity) Deprecated.static TOUCHINPUT.Buffer
callocStack
(int capacity, MemoryStack stack) Deprecated.static TOUCHINPUT
callocStack
(MemoryStack stack) Deprecated.static TOUCHINPUT
create()
Returns a newTOUCHINPUT
instance allocated withBufferUtils
.static TOUCHINPUT.Buffer
create
(int capacity) Returns a newTOUCHINPUT.Buffer
instance allocated withBufferUtils
.static TOUCHINPUT
create
(long address) Returns a newTOUCHINPUT
instance for the specified memory address.static TOUCHINPUT.Buffer
create
(long address, int capacity) Create aTOUCHINPUT.Buffer
instance at the specified memory.static @Nullable TOUCHINPUT
createSafe
(long address) static @Nullable TOUCHINPUT.Buffer
createSafe
(long address, int capacity) int
int
long
int
dwFlags()
int
dwID()
int
dwMask()
int
dwTime()
long
hSource()
static TOUCHINPUT
malloc()
Returns a newTOUCHINPUT
instance allocated withmemAlloc
.static TOUCHINPUT.Buffer
malloc
(int capacity) Returns a newTOUCHINPUT.Buffer
instance allocated withmemAlloc
.static TOUCHINPUT.Buffer
malloc
(int capacity, MemoryStack stack) Returns a newTOUCHINPUT.Buffer
instance allocated on the specifiedMemoryStack
.static TOUCHINPUT
malloc
(MemoryStack stack) Returns a newTOUCHINPUT
instance allocated on the specifiedMemoryStack
.static TOUCHINPUT
Deprecated.static TOUCHINPUT.Buffer
mallocStack
(int capacity) Deprecated.static TOUCHINPUT.Buffer
mallocStack
(int capacity, MemoryStack stack) Deprecated.static TOUCHINPUT
mallocStack
(MemoryStack stack) Deprecated.static int
ncxContact
(long struct) Unsafe version ofcxContact()
.static int
ncyContact
(long struct) Unsafe version ofcyContact()
.static long
ndwExtraInfo
(long struct) Unsafe version ofdwExtraInfo()
.static int
ndwFlags
(long struct) Unsafe version ofdwFlags()
.static int
ndwID
(long struct) Unsafe version ofdwID()
.static int
ndwMask
(long struct) Unsafe version ofdwMask()
.static int
ndwTime
(long struct) Unsafe version ofdwTime()
.static long
nhSource
(long struct) Unsafe version ofhSource()
.static int
nx
(long struct) Unsafe version ofx()
.static int
ny
(long struct) Unsafe version ofy()
.int
sizeof()
Returnssizeof(struct)
.int
x()
int
y()
Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
Methods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Field Details
-
SIZEOF
public static final int SIZEOFThe struct size in bytes. -
ALIGNOF
public static final int ALIGNOFThe struct alignment in bytes. -
X
public static final int XThe struct member offsets. -
Y
public static final int YThe struct member offsets. -
HSOURCE
public static final int HSOURCEThe struct member offsets. -
DWID
public static final int DWIDThe struct member offsets. -
DWFLAGS
public static final int DWFLAGSThe struct member offsets. -
DWMASK
public static final int DWMASKThe struct member offsets. -
DWTIME
public static final int DWTIMEThe struct member offsets. -
DWEXTRAINFO
public static final int DWEXTRAINFOThe struct member offsets. -
CXCONTACT
public static final int CXCONTACTThe struct member offsets. -
CYCONTACT
public static final int CYCONTACTThe struct member offsets.
-
-
Constructor Details
-
TOUCHINPUT
Creates aTOUCHINPUT
instance at the current position of the specifiedByteBuffer
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
Returnssizeof(struct)
.- Specified by:
sizeof
in classStruct<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
Returns a newTOUCHINPUT
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newTOUCHINPUT
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newTOUCHINPUT
instance allocated withBufferUtils
. -
create
Returns a newTOUCHINPUT
instance for the specified memory address. -
createSafe
-
malloc
Returns a newTOUCHINPUT.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newTOUCHINPUT.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newTOUCHINPUT.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aTOUCHINPUT.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
-
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)
instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)
instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)
instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)
instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)
instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)
instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)
instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)
instead. -
malloc
Returns a newTOUCHINPUT
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newTOUCHINPUT
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newTOUCHINPUT.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newTOUCHINPUT.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
nx
public static int nx(long struct) Unsafe version ofx()
. -
ny
public static int ny(long struct) Unsafe version ofy()
. -
nhSource
public static long nhSource(long struct) Unsafe version ofhSource()
. -
ndwID
public static int ndwID(long struct) Unsafe version ofdwID()
. -
ndwFlags
public static int ndwFlags(long struct) Unsafe version ofdwFlags()
. -
ndwMask
public static int ndwMask(long struct) Unsafe version ofdwMask()
. -
ndwTime
public static int ndwTime(long struct) Unsafe version ofdwTime()
. -
ndwExtraInfo
public static long ndwExtraInfo(long struct) Unsafe version ofdwExtraInfo()
. -
ncxContact
public static int ncxContact(long struct) Unsafe version ofcxContact()
. -
ncyContact
public static int ncyContact(long struct) Unsafe version ofcyContact()
.
-