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 ofNkPanel
structs.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description float
at_x()
Returns the value of theat_x
field.float
at_y()
Returns the value of theat_y
field.float
border()
Returns the value of theborder
field.NkRect
bounds()
Returns aNkRect
view of thebounds
field.NkCommandBuffer
buffer()
Returns aNkCommandBuffer
view of the struct pointed to by thebuffer
field.NkChart
chart()
Returns aNkChart
view of thechart
field.NkRect
clip()
Returns aNkRect
view of theclip
field.int
flags()
Returns the value of theflags
field.float
footer_height()
Returns the value of thefooter_height
field.int
has_scrolling()
Returns the value of thehas_scrolling
field.float
header_height()
Returns the value of theheader_height
field.float
max_x()
Returns the value of themax_x
field.NkMenuState
menu()
Returns aNkMenuState
view of themenu
field.java.nio.IntBuffer
offset_x(int capacity)
Returns aIntBuffer
view of the data pointed to by theoffset_x
field.java.nio.IntBuffer
offset_y(int capacity)
Returns aIntBuffer
view of the data pointed to by theoffset_y
field.NkPanel
parent()
Returns aNkPanel
view of the struct pointed to by theparent
field.NkRowLayout
row()
Returns aNkRowLayout
view of therow
field.int
type()
Returns the value of thetype
field.
-
-
-
Constructor Detail
-
Buffer
public Buffer(java.nio.ByteBuffer container)
Creates a newNkPanel.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 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 thetype
field.
-
flags
public int flags()
Returns the value of theflags
field.
-
offset_x
public java.nio.IntBuffer offset_x(int capacity)
Returns aIntBuffer
view of the data pointed to by theoffset_x
field.- Parameters:
capacity
- the number of elements in the returned buffer
-
offset_y
public java.nio.IntBuffer offset_y(int capacity)
Returns aIntBuffer
view of the data pointed to by theoffset_y
field.- Parameters:
capacity
- the number of elements in the returned buffer
-
at_x
public float at_x()
Returns the value of theat_x
field.
-
at_y
public float at_y()
Returns the value of theat_y
field.
-
max_x
public float max_x()
Returns the value of themax_x
field.
-
footer_height
public float footer_height()
Returns the value of thefooter_height
field.
-
header_height
public float header_height()
Returns the value of theheader_height
field.
-
border
public float border()
Returns the value of theborder
field.
-
has_scrolling
public int has_scrolling()
Returns the value of thehas_scrolling
field.
-
menu
public NkMenuState menu()
Returns aNkMenuState
view of themenu
field.
-
row
public NkRowLayout row()
Returns aNkRowLayout
view of therow
field.
-
buffer
public NkCommandBuffer buffer()
Returns aNkCommandBuffer
view of the struct pointed to by thebuffer
field.
-
-