Package org.lwjgl.nuklear
Class NkPanel.Buffer
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.CustomBuffer<SELF>
-
- org.lwjgl.system.StructBuffer<NkPanel,NkPanel.Buffer>
-
- org.lwjgl.nuklear.NkPanel.Buffer
-
- All Implemented Interfaces:
java.lang.Iterable<NkPanel>,org.lwjgl.system.Pointer
- Enclosing class:
- NkPanel
public static class NkPanel.Buffer extends org.lwjgl.system.StructBuffer<NkPanel,NkPanel.Buffer>
An array ofNkPanelstructs.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description floatat_x()floatat_y()floatborder()NkRectbounds()NkCommandBufferbuffer()NkChartchart()NkRectclip()intflags()floatfooter_height()inthas_scrolling()floatheader_height()floatmax_x()NkMenuStatemenu()java.nio.IntBufferoffset_x(int capacity)java.nio.IntBufferoffset_y(int capacity)NkPanelparent()NkRowLayoutrow()inttype()
-
-
-
Constructor Detail
-
Buffer
public Buffer(java.nio.ByteBuffer container)
Creates a newNkPanel.Bufferinstance 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 byNkPanel.SIZEOF, and its mark will be undefined.The created buffer instance holds a strong reference to the container object.
-
Buffer
public Buffer(long address, int cap)
-
-
Method Detail
-
type
public int type()
- Returns:
- the value of the
NkPanel.type()field.
-
flags
public int flags()
- Returns:
- the value of the
flagsfield.
-
offset_x
public java.nio.IntBuffer offset_x(int capacity)
- Parameters:
capacity- the number of elements in the returned buffer- Returns:
- a
IntBufferview of the data pointed to by theoffset_xfield.
-
offset_y
public java.nio.IntBuffer offset_y(int capacity)
- Parameters:
capacity- the number of elements in the returned buffer- Returns:
- a
IntBufferview of the data pointed to by theoffset_yfield.
-
at_x
public float at_x()
- Returns:
- the value of the
at_xfield.
-
at_y
public float at_y()
- Returns:
- the value of the
at_yfield.
-
max_x
public float max_x()
- Returns:
- the value of the
max_xfield.
-
footer_height
public float footer_height()
- Returns:
- the value of the
footer_heightfield.
-
header_height
public float header_height()
- Returns:
- the value of the
header_heightfield.
-
border
public float border()
- Returns:
- the value of the
borderfield.
-
has_scrolling
public int has_scrolling()
- Returns:
- the value of the
has_scrollingfield.
-
menu
public NkMenuState menu()
- Returns:
- a
NkMenuStateview of themenufield.
-
row
public NkRowLayout row()
- Returns:
- a
NkRowLayoutview of therowfield.
-
buffer
public NkCommandBuffer buffer()
- Returns:
- a
NkCommandBufferview of the struct pointed to by thebufferfield.
-
-