Package org.lwjgl.nuklear
Class NkWindow
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.nuklear.NkWindow
-
- All Implemented Interfaces:
org.lwjgl.system.Pointer
public class NkWindow extends org.lwjgl.system.StructLayout
struct nk_window { unsigned int seq; nk_hash name; char name_string[64]; nk_flags flags;struct nk_rectbounds;struct nk_scrollscrollbar;struct nk_command_bufferbuffer;struct nk_panel* layout; float scrollbar_hiding_timer;struct nk_property_stateproperty;struct nk_popup_statepopup;struct nk_edit_stateedit; unsigned int scrolled; struct nk_table * tables; unsigned int table_count;struct nk_window* next;struct nk_window* prev;struct nk_window* parent; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classNkWindow.BufferAn array ofNkWindowstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intBOUNDS
BUFFER
EDIT
FLAGS
LAYOUT
NAME
NAME_STRING
NEXT
PARENT
POPUP
PREV
PROPERTY
SCROLLBAR
SCROLLBAR_HIDING_TIMER
SCROLLED
SEQThe struct member offsets.static intSIZEOFThe struct size in bytes.static intTABLE_COUNT
TABLESThe struct member offsets.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description NkRectbounds()Returns aNkRectview of theboundsfield.NkWindowbounds(java.util.function.Consumer<NkRect> consumer)Passes theboundsfield to the specifiedConsumer.NkCommandBufferbuffer()Returns aNkCommandBufferview of thebufferfield.static NkWindowcreate(long address)Returns a newNkWindowinstance for the specified memory address.static NkWindow.Buffercreate(long address, int capacity)Create aNkWindow.Bufferinstance at the specified memory.static NkWindowcreateSafe(long address)static NkWindow.BuffercreateSafe(long address, int capacity)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.static NkRectnbounds(long struct)Unsafe version ofbounds().static NkCommandBuffernbuffer(long struct)Unsafe version ofbuffer().static NkEditStatenedit(long struct)Unsafe version ofedit().NkWindownext()Returns aNkWindowview of the struct pointed to by thenextfield.static intnflags(long struct)Unsafe version offlags().static NkPanelnlayout(long struct)Unsafe version oflayout().static intnname(long struct)Unsafe version ofname().static java.nio.ByteBuffernname_string(long struct)Unsafe version ofname_string().static java.lang.Stringnname_stringString(long struct)Unsafe version ofname_stringString().static NkWindownnext(long struct)Unsafe version ofnext().static NkWindownparent(long struct)Unsafe version ofparent().static NkPopupStatenpopup(long struct)Unsafe version ofpopup().static NkWindownprev(long struct)Unsafe version ofprev().static NkPropertyStatenproperty(long struct)Unsafe version ofproperty().static NkScrollnscrollbar(long struct)Unsafe version ofscrollbar().static floatnscrollbar_hiding_timer(long struct)Unsafe version ofscrollbar_hiding_timer().static intnscrolled(long struct)Unsafe version ofscrolled().static intnseq(long struct)Unsafe version ofseq().static intntable_count(long struct)Unsafe version oftable_count().static longntables(long struct)Unsafe version oftables().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.intsizeof()inttable_count()Returns the value of thetable_countfield.longtables()Returns the value of thetablesfield.
-
-
-
Constructor Detail
-
NkWindow
public NkWindow(java.nio.ByteBuffer container)
Creates aNkWindowinstance at the current position of the specifiedByteBuffercontainer. Changes to the buffer's content will be visible to the struct instance and vice versa.The created instance holds a strong reference to the container object.
-
-
Method Detail
-
sizeof
public int sizeof()
- Specified by:
sizeofin classorg.lwjgl.system.Struct
-
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 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.
-
parent
public NkWindow parent()
Returns aNkWindowview of the struct pointed to by theparentfield.
-
create
public static NkWindow create(long address)
Returns a newNkWindowinstance for the specified memory address.
-
createSafe
@Nullable public static NkWindow createSafe(long address)
-
create
public static NkWindow.Buffer create(long address, int capacity)
Create aNkWindow.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static NkWindow.Buffer createSafe(long address, int capacity)
-
nseq
public static int nseq(long struct)
Unsafe version ofseq().
-
nname
public static int nname(long struct)
Unsafe version ofname().
-
nname_string
public static java.nio.ByteBuffer nname_string(long struct)
Unsafe version ofname_string().
-
nname_stringString
public static java.lang.String nname_stringString(long struct)
Unsafe version ofname_stringString().
-
nflags
public static int nflags(long struct)
Unsafe version offlags().
-
nscrollbar
public static NkScroll nscrollbar(long struct)
Unsafe version ofscrollbar().
-
nbuffer
public static NkCommandBuffer nbuffer(long struct)
Unsafe version ofbuffer().
-
nscrollbar_hiding_timer
public static float nscrollbar_hiding_timer(long struct)
Unsafe version ofscrollbar_hiding_timer().
-
nproperty
public static NkPropertyState nproperty(long struct)
Unsafe version ofproperty().
-
npopup
public static NkPopupState npopup(long struct)
Unsafe version ofpopup().
-
nedit
public static NkEditState nedit(long struct)
Unsafe version ofedit().
-
nscrolled
public static int nscrolled(long struct)
Unsafe version ofscrolled().
-
ntables
public static long ntables(long struct)
Unsafe version oftables().
-
ntable_count
public static int ntable_count(long struct)
Unsafe version oftable_count().
-
-