Package org.lwjgl.nuklear
Class NkWindow.Buffer
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.CustomBuffer<SELF>
-
- org.lwjgl.system.StructBuffer<NkWindow,NkWindow.Buffer>
-
- org.lwjgl.nuklear.NkWindow.Buffer
-
- All Implemented Interfaces:
java.lang.Iterable<NkWindow>
,org.lwjgl.system.Pointer
- Enclosing class:
- NkWindow
public static class NkWindow.Buffer extends org.lwjgl.system.StructBuffer<NkWindow,NkWindow.Buffer>
An array ofNkWindow
structs.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NkRect
bounds()
Returns aNkRect
view of thebounds
field.NkCommandBuffer
buffer()
Returns aNkCommandBuffer
view of thebuffer
field.NkEditState
edit()
Returns aNkEditState
view of theedit
field.int
flags()
Returns the value of theflags
field.NkPanel
layout()
Returns aNkPanel
view of the struct pointed to by thelayout
field.int
name()
Returns the value of thename
field.java.nio.ByteBuffer
name_string()
Returns aByteBuffer
view of thename_string
field.java.lang.String
name_stringString()
Decodes the null-terminated string stored in thename_string
field.NkWindow
next()
Returns aNkWindow
view of the struct pointed to by thenext
field.NkWindow
parent()
Returns aNkWindow
view of the struct pointed to by theparent
field.NkPopupState
popup()
Returns aNkPopupState
view of thepopup
field.NkWindow
prev()
Returns aNkWindow
view of the struct pointed to by theprev
field.NkPropertyState
property()
Returns aNkPropertyState
view of theproperty
field.NkScroll
scrollbar()
Returns aNkScroll
view of thescrollbar
field.float
scrollbar_hiding_timer()
Returns the value of thescrollbar_hiding_timer
field.int
scrolled()
Returns the value of thescrolled
field.int
seq()
Returns the value of theseq
field.int
table_count()
Returns the value of thetable_count
field.long
tables()
Returns the value of thetables
field.
-
-
-
Constructor Detail
-
Buffer
public Buffer(java.nio.ByteBuffer container)
Creates a newNkWindow.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 byNkWindow.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
-
seq
public int seq()
Returns the value of theseq
field.
-
name
public int name()
Returns the value of thename
field.
-
name_string
public java.nio.ByteBuffer name_string()
Returns aByteBuffer
view of thename_string
field.
-
name_stringString
public java.lang.String name_stringString()
Decodes the null-terminated string stored in thename_string
field.
-
flags
public int flags()
Returns the value of theflags
field.
-
buffer
public NkCommandBuffer buffer()
Returns aNkCommandBuffer
view of thebuffer
field.
-
scrollbar_hiding_timer
public float scrollbar_hiding_timer()
Returns the value of thescrollbar_hiding_timer
field.
-
property
public NkPropertyState property()
Returns aNkPropertyState
view of theproperty
field.
-
popup
public NkPopupState popup()
Returns aNkPopupState
view of thepopup
field.
-
edit
public NkEditState edit()
Returns aNkEditState
view of theedit
field.
-
scrolled
public int scrolled()
Returns the value of thescrolled
field.
-
tables
public long tables()
Returns the value of thetables
field.
-
table_count
public int table_count()
Returns the value of thetable_count
field.
-
-