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