Package org.lwjgl.system.windows
Class MSG
- All Implemented Interfaces:
AutoCloseable
,NativeResource
,Pointer
struct MSG {
HWND hwnd;
UINT message;
WPARAM wParam;
LPARAM lParam;
DWORD time;
{@link POINT POINT} pt;
}
-
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 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
ConstructorsConstructorDescriptionMSG
(ByteBuffer container) Creates aMSG
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionstatic MSG
calloc()
Returns a newMSG
instance allocated withmemCalloc
.static MSG.Buffer
calloc
(int capacity) Returns a newMSG.Buffer
instance allocated withmemCalloc
.static MSG.Buffer
calloc
(int capacity, MemoryStack stack) Returns a newMSG.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static MSG
calloc
(MemoryStack stack) Returns a newMSG
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static MSG
Deprecated.static MSG.Buffer
callocStack
(int capacity) Deprecated.static MSG.Buffer
callocStack
(int capacity, MemoryStack stack) Deprecated.static MSG
callocStack
(MemoryStack stack) Deprecated.static MSG
create()
Returns a newMSG
instance allocated withBufferUtils
.static MSG.Buffer
create
(int capacity) Returns a newMSG.Buffer
instance allocated withBufferUtils
.static MSG
create
(long address) Returns a newMSG
instance for the specified memory address.static MSG.Buffer
create
(long address, int capacity) Create aMSG.Buffer
instance at the specified memory.static @Nullable MSG
createSafe
(long address) static @Nullable MSG.Buffer
createSafe
(long address, int capacity) long
hwnd()
hwnd
(long value) Sets the specified value to thehwnd
field.long
lParam()
lParam
(long value) Sets the specified value to thelParam
field.static MSG
malloc()
Returns a newMSG
instance allocated withmemAlloc
.static MSG.Buffer
malloc
(int capacity) Returns a newMSG.Buffer
instance allocated withmemAlloc
.static MSG.Buffer
malloc
(int capacity, MemoryStack stack) Returns a newMSG.Buffer
instance allocated on the specifiedMemoryStack
.static MSG
malloc
(MemoryStack stack) Returns a newMSG
instance allocated on the specifiedMemoryStack
.static MSG
Deprecated.static MSG.Buffer
mallocStack
(int capacity) Deprecated.static MSG.Buffer
mallocStack
(int capacity, MemoryStack stack) Deprecated.static MSG
mallocStack
(MemoryStack stack) Deprecated.int
message()
message
(int value) Sets the specified value to themessage
field.static long
nhwnd
(long struct) Unsafe version ofhwnd()
.static void
nhwnd
(long struct, long value) Unsafe version ofhwnd
.static long
nlParam
(long struct) Unsafe version oflParam()
.static void
nlParam
(long struct, long value) Unsafe version oflParam
.static int
nmessage
(long struct) Unsafe version ofmessage()
.static void
nmessage
(long struct, int value) Unsafe version ofmessage
.static POINT
npt
(long struct) Unsafe version ofpt()
.static void
Unsafe version ofpt
.static int
ntime
(long struct) Unsafe version oftime()
.static void
ntime
(long struct, int value) Unsafe version oftime
.static long
nwParam
(long struct) Unsafe version ofwParam()
.static void
nwParam
(long struct, long value) Unsafe version ofwParam
.pt()
Passes thept
field to the specifiedConsumer
.Copies the specifiedPOINT
to thept
field.Initializes this struct with the specified values.Copies the specified struct data to this struct.int
sizeof()
Returnssizeof(struct)
.int
time()
time
(int value) Sets the specified value to thetime
field.long
wParam()
wParam
(long value) Sets the specified value to thewParam
field.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. -
HWND
public static final int HWNDThe struct member offsets. -
MESSAGE
public static final int MESSAGEThe struct member offsets. -
WPARAM
public static final int WPARAMThe struct member offsets. -
LPARAM
public static final int LPARAMThe struct member offsets. -
TIME
public static final int TIMEThe struct member offsets. -
PT
public static final int PTThe struct member offsets.
-
-
Constructor Details
-
MSG
Creates aMSG
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)
. -
hwnd
public long hwnd()- Returns:
- the value of the
hwnd
field.
-
message
public int message()- Returns:
- the value of the
message
field.
-
wParam
public long wParam()- Returns:
- the value of the
wParam
field.
-
lParam
public long lParam()- Returns:
- the value of the
lParam
field.
-
time
public int time()- Returns:
- the value of the
time
field.
-
pt
- Returns:
- a
POINT
view of thept
field.
-
hwnd
Sets the specified value to thehwnd
field. -
message
Sets the specified value to themessage
field. -
wParam
Sets the specified value to thewParam
field. -
lParam
Sets the specified value to thelParam
field. -
time
Sets the specified value to thetime
field. -
pt
Copies the specifiedPOINT
to thept
field. -
pt
Passes thept
field to the specifiedConsumer
. -
set
Initializes this struct with the specified values. -
set
Copies the specified struct data to this struct.- Parameters:
src
- the source struct- Returns:
- this struct
-
malloc
Returns a newMSG
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newMSG
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newMSG
instance allocated withBufferUtils
. -
create
Returns a newMSG
instance for the specified memory address. -
createSafe
-
malloc
Returns a newMSG.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newMSG.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newMSG.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aMSG.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 newMSG
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newMSG
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newMSG.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newMSG.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
nhwnd
public static long nhwnd(long struct) Unsafe version ofhwnd()
. -
nmessage
public static int nmessage(long struct) Unsafe version ofmessage()
. -
nwParam
public static long nwParam(long struct) Unsafe version ofwParam()
. -
nlParam
public static long nlParam(long struct) Unsafe version oflParam()
. -
ntime
public static int ntime(long struct) Unsafe version oftime()
. -
npt
Unsafe version ofpt()
. -
nhwnd
public static void nhwnd(long struct, long value) Unsafe version ofhwnd
. -
nmessage
public static void nmessage(long struct, int value) Unsafe version ofmessage
. -
nwParam
public static void nwParam(long struct, long value) Unsafe version ofwParam
. -
nlParam
public static void nlParam(long struct, long value) Unsafe version oflParam
. -
ntime
public static void ntime(long struct, int value) Unsafe version oftime
. -
npt
Unsafe version ofpt
.
-