public static class NkPanel.Buffer extends org.lwjgl.system.StructBuffer<NkPanel,NkPanel.Buffer>
NkPanel structs.| Constructor and Description |
|---|
Buffer(java.nio.ByteBuffer container)
Creates a new
NkPanel.Buffer instance backed by the specified container. |
Buffer(long address,
int cap) |
| Modifier and Type | Method and Description |
|---|---|
float |
at_x()
Returns the value of the
at_x field. |
float |
at_y()
Returns the value of the
at_y field. |
float |
border()
Returns the value of the
border field. |
NkRect |
bounds()
Returns a
NkRect view of the bounds field. |
NkCommandBuffer |
buffer()
Returns a
NkCommandBuffer view of the struct pointed to by the buffer field. |
NkChart |
chart()
Returns a
NkChart view of the chart field. |
NkRect |
clip()
Returns a
NkRect view of the clip field. |
int |
flags()
Returns the value of the
flags field. |
float |
footer_height()
Returns the value of the
footer_height field. |
int |
has_scrolling()
Returns the value of the
has_scrolling field. |
float |
header_height()
Returns the value of the
header_height field. |
float |
max_x()
Returns the value of the
max_x field. |
NkMenuState |
menu()
Returns a
NkMenuState view of the menu field. |
java.nio.IntBuffer |
offset_x(int capacity)
Returns a
IntBuffer view of the data pointed to by the offset_x field. |
java.nio.IntBuffer |
offset_y(int capacity)
Returns a
IntBuffer view of the data pointed to by the offset_y field. |
NkPanel |
parent()
Returns a
NkPanel view of the struct pointed to by the parent field. |
NkRowLayout |
row()
Returns a
NkRowLayout view of the row field. |
int |
type()
Returns the value of the
type field. |
apply, apply, forEach, get, get, get, get, iterator, parallelStream, put, put, sizeof, spliterator, streampublic Buffer(java.nio.ByteBuffer container)
NkPanel.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 NkPanel.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 type()
type field.public int flags()
flags field.public java.nio.IntBuffer offset_x(int capacity)
IntBuffer view of the data pointed to by the offset_x field.capacity - the number of elements in the returned bufferpublic java.nio.IntBuffer offset_y(int capacity)
IntBuffer view of the data pointed to by the offset_y field.capacity - the number of elements in the returned bufferpublic float at_x()
at_x field.public float at_y()
at_y field.public float max_x()
max_x field.public float footer_height()
footer_height field.public float header_height()
header_height field.public float border()
border field.public int has_scrolling()
has_scrolling field.public NkMenuState menu()
NkMenuState view of the menu field.public NkRowLayout row()
NkRowLayout view of the row field.public NkCommandBuffer buffer()
NkCommandBuffer view of the struct pointed to by the buffer field.Copyright LWJGL. All Rights Reserved. License terms.