public static class RECT.Buffer extends org.lwjgl.system.StructBuffer<RECT,RECT.Buffer> implements org.lwjgl.system.NativeResource
RECT structs.| Constructor and Description |
|---|
Buffer(java.nio.ByteBuffer container)
Creates a new
RECT.Buffer instance backed by the specified container. |
Buffer(long address,
int cap) |
| Modifier and Type | Method and Description |
|---|---|
int |
bottom()
Returns the value of the
bottom field. |
RECT.Buffer |
bottom(int value)
Sets the specified value to the
bottom field. |
int |
left()
Returns the value of the
left field. |
RECT.Buffer |
left(int value)
Sets the specified value to the
left field. |
int |
right()
Returns the value of the
right field. |
RECT.Buffer |
right(int value)
Sets the specified value to the
right field. |
int |
top()
Returns the value of the
top field. |
RECT.Buffer |
top(int value)
Sets the specified value to the
top field. |
apply, apply, forEach, get, get, get, get, iterator, parallelStream, put, put, sizeof, spliterator, streampublic Buffer(java.nio.ByteBuffer container)
RECT.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 RECT.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 int left()
left field.public int top()
top field.public int right()
right field.public int bottom()
bottom field.public RECT.Buffer left(int value)
left field.public RECT.Buffer top(int value)
top field.public RECT.Buffer right(int value)
right field.public RECT.Buffer bottom(int value)
bottom field.Copyright LWJGL. All Rights Reserved. License terms.