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;
POINT pt;
}-
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 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
ConstructorsConstructorDescriptionMSG(ByteBuffer container) Creates aMSGinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic MSGcalloc()Returns a newMSGinstance allocated withmemCalloc.static MSG.Buffercalloc(int capacity) Returns a newMSG.Bufferinstance allocated withmemCalloc.static MSG.Buffercalloc(int capacity, MemoryStack stack) Returns a newMSG.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static MSGcalloc(MemoryStack stack) Returns a newMSGinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static MSGcreate()Returns a newMSGinstance allocated withBufferUtils.static MSG.Buffercreate(int capacity) Returns a newMSG.Bufferinstance allocated withBufferUtils.static MSGcreate(long address) Returns a newMSGinstance for the specified memory address.static MSG.Buffercreate(long address, int capacity) Create aMSG.Bufferinstance at the specified memory.static @Nullable MSGcreateSafe(long address) static @Nullable MSG.BuffercreateSafe(long address, int capacity) longhwnd()hwnd(long value) Sets the specified value to thehwndfield.longlParam()lParam(long value) Sets the specified value to thelParamfield.static MSGmalloc()Returns a newMSGinstance allocated withmemAlloc.static MSG.Buffermalloc(int capacity) Returns a newMSG.Bufferinstance allocated withmemAlloc.static MSG.Buffermalloc(int capacity, MemoryStack stack) Returns a newMSG.Bufferinstance allocated on the specifiedMemoryStack.static MSGmalloc(MemoryStack stack) Returns a newMSGinstance allocated on the specifiedMemoryStack.intmessage()message(int value) Sets the specified value to themessagefield.static longnhwnd(long struct) Unsafe version ofhwnd().static voidnhwnd(long struct, long value) Unsafe version ofhwnd.static longnlParam(long struct) Unsafe version oflParam().static voidnlParam(long struct, long value) Unsafe version oflParam.static intnmessage(long struct) Unsafe version ofmessage().static voidnmessage(long struct, int value) Unsafe version ofmessage.static POINTnpt(long struct) Unsafe version ofpt().static voidUnsafe version ofpt.static intntime(long struct) Unsafe version oftime().static voidntime(long struct, int value) Unsafe version oftime.static longnwParam(long struct) Unsafe version ofwParam().static voidnwParam(long struct, long value) Unsafe version ofwParam.pt()Passes theptfield to the specifiedConsumer.Copies the specifiedPOINTto theptfield.Initializes this struct with the specified values.Copies the specified struct data to this struct.intsizeof()Returnssizeof(struct).inttime()time(int value) Sets the specified value to thetimefield.longwParam()wParam(long value) Sets the specified value to thewParamfield.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. -
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 aMSGinstance 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). -
hwnd
public long hwnd()- Returns:
- the value of the
hwndfield.
-
message
public int message()- Returns:
- the value of the
messagefield.
-
wParam
public long wParam()- Returns:
- the value of the
wParamfield.
-
lParam
public long lParam()- Returns:
- the value of the
lParamfield.
-
time
public int time()- Returns:
- the value of the
timefield.
-
pt
- Returns:
- a
POINTview of theptfield.
-
hwnd
Sets the specified value to thehwndfield. -
message
Sets the specified value to themessagefield. -
wParam
Sets the specified value to thewParamfield. -
lParam
Sets the specified value to thelParamfield. -
time
Sets the specified value to thetimefield. -
pt
Copies the specifiedPOINTto theptfield. -
pt
Passes theptfield 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 newMSGinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newMSGinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newMSGinstance allocated withBufferUtils. -
create
Returns a newMSGinstance for the specified memory address. -
createSafe
-
malloc
Returns a newMSG.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newMSG.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newMSG.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aMSG.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newMSGinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newMSGinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newMSG.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newMSG.Bufferinstance allocated on the specifiedMemoryStackand 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.
-