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.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe struct alignment in bytes.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct size in bytes.static final intThe struct member offsets.static final intThe 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 aTOUCHINPUTinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic TOUCHINPUTcalloc()Returns a newTOUCHINPUTinstance allocated withmemCalloc.static TOUCHINPUT.Buffercalloc(int capacity) Returns a newTOUCHINPUT.Bufferinstance allocated withmemCalloc.static TOUCHINPUT.Buffercalloc(int capacity, MemoryStack stack) Returns a newTOUCHINPUT.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static TOUCHINPUTcalloc(MemoryStack stack) Returns a newTOUCHINPUTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static TOUCHINPUTDeprecated.static TOUCHINPUT.BuffercallocStack(int capacity) Deprecated.static TOUCHINPUT.BuffercallocStack(int capacity, MemoryStack stack) Deprecated.static TOUCHINPUTcallocStack(MemoryStack stack) Deprecated.static TOUCHINPUTcreate()Returns a newTOUCHINPUTinstance allocated withBufferUtils.static TOUCHINPUT.Buffercreate(int capacity) Returns a newTOUCHINPUT.Bufferinstance allocated withBufferUtils.static TOUCHINPUTcreate(long address) Returns a newTOUCHINPUTinstance for the specified memory address.static TOUCHINPUT.Buffercreate(long address, int capacity) Create aTOUCHINPUT.Bufferinstance at the specified memory.static @Nullable TOUCHINPUTcreateSafe(long address) static @Nullable TOUCHINPUT.BuffercreateSafe(long address, int capacity) intintlongintdwFlags()intdwID()intdwMask()intdwTime()longhSource()static TOUCHINPUTmalloc()Returns a newTOUCHINPUTinstance allocated withmemAlloc.static TOUCHINPUT.Buffermalloc(int capacity) Returns a newTOUCHINPUT.Bufferinstance allocated withmemAlloc.static TOUCHINPUT.Buffermalloc(int capacity, MemoryStack stack) Returns a newTOUCHINPUT.Bufferinstance allocated on the specifiedMemoryStack.static TOUCHINPUTmalloc(MemoryStack stack) Returns a newTOUCHINPUTinstance allocated on the specifiedMemoryStack.static TOUCHINPUTDeprecated.static TOUCHINPUT.BuffermallocStack(int capacity) Deprecated.static TOUCHINPUT.BuffermallocStack(int capacity, MemoryStack stack) Deprecated.static TOUCHINPUTmallocStack(MemoryStack stack) Deprecated.static intncxContact(long struct) Unsafe version ofcxContact().static intncyContact(long struct) Unsafe version ofcyContact().static longndwExtraInfo(long struct) Unsafe version ofdwExtraInfo().static intndwFlags(long struct) Unsafe version ofdwFlags().static intndwID(long struct) Unsafe version ofdwID().static intndwMask(long struct) Unsafe version ofdwMask().static intndwTime(long struct) Unsafe version ofdwTime().static longnhSource(long struct) Unsafe version ofhSource().static intnx(long struct) Unsafe version ofx().static intny(long struct) Unsafe version ofy().intsizeof()Returnssizeof(struct).intx()inty()Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toStringMethods 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 aTOUCHINPUTinstance at the current position of the specifiedByteBuffercontainer. 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:StructReturnssizeof(struct).- Specified by:
sizeofin classStruct<TOUCHINPUT>
-
x
public int x()- Returns:
- the value of the
xfield.
-
y
public int y()- Returns:
- the value of the
yfield.
-
hSource
public long hSource()- Returns:
- the value of the
hSourcefield.
-
dwID
public int dwID()- Returns:
- the value of the
dwIDfield.
-
dwFlags
public int dwFlags()- Returns:
- the value of the
dwFlagsfield.
-
dwMask
public int dwMask()- Returns:
- the value of the
dwMaskfield.
-
dwTime
public int dwTime()- Returns:
- the value of the
dwTimefield.
-
dwExtraInfo
public long dwExtraInfo()- Returns:
- the value of the
dwExtraInfofield.
-
cxContact
public int cxContact()- Returns:
- the value of the
cxContactfield.
-
cyContact
public int cyContact()- Returns:
- the value of the
cyContactfield.
-
malloc
Returns a newTOUCHINPUTinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newTOUCHINPUTinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newTOUCHINPUTinstance allocated withBufferUtils. -
create
Returns a newTOUCHINPUTinstance for the specified memory address. -
createSafe
-
malloc
Returns a newTOUCHINPUT.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newTOUCHINPUT.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newTOUCHINPUT.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aTOUCHINPUT.Bufferinstance 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 newTOUCHINPUTinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newTOUCHINPUTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newTOUCHINPUT.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newTOUCHINPUT.Bufferinstance allocated on the specifiedMemoryStackand 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().
-