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 ofNkWindowstructs.
-
-
Constructor Summary
Constructors Constructor Description Buffer(long address, int cap)Buffer(java.nio.ByteBuffer container)Creates a newNkWindow.Bufferinstance backed by the specified container.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NkRectbounds()Returns aNkRectview of theboundsfield.NkWindow.Bufferbounds(java.util.function.Consumer<NkRect> consumer)Passes theboundsfield to the specifiedConsumer.NkCommandBufferbuffer()Returns aNkCommandBufferview of thebufferfield.NkEditStateedit()Returns aNkEditStateview of theeditfield.intflags()Returns the value of theflagsfield.NkPanellayout()Returns aNkPanelview of the struct pointed to by thelayoutfield.intname()Returns the value of thenamefield.java.nio.ByteBuffername_string()Returns aByteBufferview of thename_stringfield.java.lang.Stringname_stringString()Decodes the null-terminated string stored in thename_stringfield.NkWindownext()Returns aNkWindowview of the struct pointed to by thenextfield.NkWindowparent()Returns aNkWindowview of the struct pointed to by theparentfield.NkPopupStatepopup()Returns aNkPopupStateview of thepopupfield.NkWindowprev()Returns aNkWindowview of the struct pointed to by theprevfield.NkPropertyStateproperty()Returns aNkPropertyStateview of thepropertyfield.NkScrollscrollbar()Returns aNkScrollview of thescrollbarfield.floatscrollbar_hiding_timer()Returns the value of thescrollbar_hiding_timerfield.intscrolled()Returns the value of thescrolledfield.intseq()Returns the value of theseqfield.inttable_count()Returns the value of thetable_countfield.longtables()Returns the value of thetablesfield.
-
-
-
Constructor Detail
-
Buffer
public Buffer(java.nio.ByteBuffer container)
Creates a newNkWindow.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 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 theseqfield.
-
name
public int name()
Returns the value of thenamefield.
-
name_string
public java.nio.ByteBuffer name_string()
Returns aByteBufferview of thename_stringfield.
-
name_stringString
public java.lang.String name_stringString()
Decodes the null-terminated string stored in thename_stringfield.
-
flags
public int flags()
Returns the value of theflagsfield.
-
bounds
public NkWindow.Buffer bounds(java.util.function.Consumer<NkRect> consumer)
Passes theboundsfield to the specifiedConsumer.
-
buffer
public NkCommandBuffer buffer()
Returns aNkCommandBufferview of thebufferfield.
-
scrollbar_hiding_timer
public float scrollbar_hiding_timer()
Returns the value of thescrollbar_hiding_timerfield.
-
property
public NkPropertyState property()
Returns aNkPropertyStateview of thepropertyfield.
-
popup
public NkPopupState popup()
Returns aNkPopupStateview of thepopupfield.
-
edit
public NkEditState edit()
Returns aNkEditStateview of theeditfield.
-
scrolled
public int scrolled()
Returns the value of thescrolledfield.
-
tables
public long tables()
Returns the value of thetablesfield.
-
table_count
public int table_count()
Returns the value of thetable_countfield.
-
-