public static class MSG.Buffer extends org.lwjgl.system.StructBuffer<MSG,MSG.Buffer> implements org.lwjgl.system.NativeResource
MSG structs.| Constructor and Description |
|---|
Buffer(java.nio.ByteBuffer container)
Creates a new
MSG.Buffer instance backed by the specified container. |
Buffer(long address,
int cap) |
| Modifier and Type | Method and Description |
|---|---|
long |
hwnd()
Returns the value of the
hwnd field. |
MSG.Buffer |
hwnd(long value)
Sets the specified value to the
hwnd field. |
long |
lParam()
Returns the value of the
lParam field. |
MSG.Buffer |
lParam(long value)
Sets the specified value to the
lParam field. |
int |
message()
Returns the value of the
message field. |
MSG.Buffer |
message(int value)
Sets the specified value to the
message field. |
POINT |
pt()
Returns a
POINT view of the pt field. |
MSG.Buffer |
pt(java.util.function.Consumer<POINT> consumer)
Passes the
pt field to the specified Consumer. |
MSG.Buffer |
pt(POINT value)
Copies the specified
POINT to the pt field. |
int |
time()
Returns the value of the
time field. |
MSG.Buffer |
time(int value)
Sets the specified value to the
time field. |
long |
wParam()
Returns the value of the
wParam field. |
MSG.Buffer |
wParam(long value)
Sets the specified value to the
wParam field. |
apply, apply, forEach, get, get, get, get, iterator, parallelStream, put, put, sizeof, spliterator, streampublic Buffer(java.nio.ByteBuffer container)
MSG.Buffer instance backed by the specified container.
Changes to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values
will be independent. The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided
by MSG.SIZEOF, and its mark will be undefined.
The created buffer instance holds a strong reference to the container object.
public Buffer(long address,
int cap)
public long hwnd()
hwnd field.public int message()
message field.public long wParam()
wParam field.public long lParam()
lParam field.public int time()
time field.public MSG.Buffer hwnd(long value)
hwnd field.public MSG.Buffer message(int value)
message field.public MSG.Buffer wParam(long value)
wParam field.public MSG.Buffer lParam(long value)
lParam field.public MSG.Buffer time(int value)
time field.public MSG.Buffer pt(POINT value)
POINT to the pt field.public MSG.Buffer pt(java.util.function.Consumer<POINT> consumer)
pt field to the specified Consumer.Copyright LWJGL. All Rights Reserved. License terms.