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.
-
-
Constructor Summary
Constructors Constructor Description Buffer(long address, int cap)Buffer(java.nio.ByteBuffer container)Creates a newNkPanel.Bufferinstance backed by the specified container.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description floatat_x()Returns the value of theat_xfield.floatat_y()Returns the value of theat_yfield.floatborder()Returns the value of theborderfield.NkRectbounds()Returns aNkRectview of theboundsfield.NkPanel.Bufferbounds(java.util.function.Consumer<NkRect> consumer)Passes theboundsfield to the specifiedConsumer.NkCommandBufferbuffer()Returns aNkCommandBufferview of the struct pointed to by thebufferfield.NkChartchart()Returns aNkChartview of thechartfield.NkRectclip()Returns aNkRectview of theclipfield.NkPanel.Bufferclip(java.util.function.Consumer<NkRect> consumer)Passes theclipfield to the specifiedConsumer.intflags()Returns the value of theflagsfield.floatfooter_height()Returns the value of thefooter_heightfield.inthas_scrolling()Returns the value of thehas_scrollingfield.floatheader_height()Returns the value of theheader_heightfield.floatmax_x()Returns the value of themax_xfield.NkMenuStatemenu()Returns aNkMenuStateview of themenufield.java.nio.IntBufferoffset_x(int capacity)Returns aIntBufferview of the data pointed to by theoffset_xfield.java.nio.IntBufferoffset_y(int capacity)Returns aIntBufferview of the data pointed to by theoffset_yfield.NkPanelparent()Returns aNkPanelview of the struct pointed to by theparentfield.NkRowLayoutrow()Returns aNkRowLayoutview of therowfield.inttype()Returns the value of thetypefield.
-
-
-
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 thetypefield.
-
flags
public int flags()
Returns the value of theflagsfield.
-
bounds
public NkPanel.Buffer bounds(java.util.function.Consumer<NkRect> consumer)
Passes theboundsfield to the specifiedConsumer.
-
offset_x
public java.nio.IntBuffer offset_x(int capacity)
Returns aIntBufferview of the data pointed to by theoffset_xfield.- Parameters:
capacity- the number of elements in the returned buffer
-
offset_y
public java.nio.IntBuffer offset_y(int capacity)
Returns aIntBufferview of the data pointed to by theoffset_yfield.- Parameters:
capacity- the number of elements in the returned buffer
-
at_x
public float at_x()
Returns the value of theat_xfield.
-
at_y
public float at_y()
Returns the value of theat_yfield.
-
max_x
public float max_x()
Returns the value of themax_xfield.
-
footer_height
public float footer_height()
Returns the value of thefooter_heightfield.
-
header_height
public float header_height()
Returns the value of theheader_heightfield.
-
border
public float border()
Returns the value of theborderfield.
-
has_scrolling
public int has_scrolling()
Returns the value of thehas_scrollingfield.
-
clip
public NkPanel.Buffer clip(java.util.function.Consumer<NkRect> consumer)
Passes theclipfield to the specifiedConsumer.
-
menu
public NkMenuState menu()
Returns aNkMenuStateview of themenufield.
-
row
public NkRowLayout row()
Returns aNkRowLayoutview of therowfield.
-
buffer
public NkCommandBuffer buffer()
Returns aNkCommandBufferview of the struct pointed to by thebufferfield.
-
-