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.Struct
Layout
struct nk_window { unsigned int seq; nk_hash name; char name_string[64]; nk_flags flags;
struct nk_rect
bounds;struct nk_scroll
scrollbar;struct nk_command_buffer
buffer;struct nk_panel
* layout; float scrollbar_hiding_timer;struct nk_property_state
property;struct nk_popup_state
popup;struct nk_edit_state
edit; 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 class
NkWindow.Buffer
An array ofNkWindow
structs.
-
Field Summary
Fields Modifier and Type Field Description static int
ALIGNOF
The struct alignment in bytes.static int
BOUNDS
BUFFER
EDIT
FLAGS
LAYOUT
NAME
NAME_STRING
NEXT
PARENT
POPUP
PREV
PROPERTY
SCROLLBAR
SCROLLBAR_HIDING_TIMER
SCROLLED
SEQThe struct member offsets.static int
SIZEOF
The struct size in bytes.static int
TABLE_COUNT
TABLESThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description NkWindow(java.nio.ByteBuffer container)
Creates aNkWindow
instance at the current position of the specifiedByteBuffer
container.
-
Method Summary
All Methods Static 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.static NkWindow
create(long address)
Returns a newNkWindow
instance for the specified memory address.static NkWindow.Buffer
create(long address, int capacity)
Create aNkWindow.Buffer
instance at the specified memory.static NkWindow
createSafe(long address)
static NkWindow.Buffer
createSafe(long address, int capacity)
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.static NkRect
nbounds(long struct)
Unsafe version ofbounds()
.static NkCommandBuffer
nbuffer(long struct)
Unsafe version ofbuffer()
.static NkEditState
nedit(long struct)
Unsafe version ofedit()
.NkWindow
next()
Returns aNkWindow
view of the struct pointed to by thenext
field.static int
nflags(long struct)
Unsafe version offlags()
.static NkPanel
nlayout(long struct)
Unsafe version oflayout()
.static int
nname(long struct)
Unsafe version ofname()
.static java.nio.ByteBuffer
nname_string(long struct)
Unsafe version ofname_string()
.static java.lang.String
nname_stringString(long struct)
Unsafe version ofname_stringString()
.static NkWindow
nnext(long struct)
Unsafe version ofnext()
.static NkWindow
nparent(long struct)
Unsafe version ofparent()
.static NkPopupState
npopup(long struct)
Unsafe version ofpopup()
.static NkWindow
nprev(long struct)
Unsafe version ofprev()
.static NkPropertyState
nproperty(long struct)
Unsafe version ofproperty()
.static NkScroll
nscrollbar(long struct)
Unsafe version ofscrollbar()
.static float
nscrollbar_hiding_timer(long struct)
Unsafe version ofscrollbar_hiding_timer()
.static int
nscrolled(long struct)
Unsafe version ofscrolled()
.static int
nseq(long struct)
Unsafe version ofseq()
.static int
ntable_count(long struct)
Unsafe version oftable_count()
.static long
ntables(long struct)
Unsafe version oftables()
.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
sizeof()
int
table_count()
Returns the value of thetable_count
field.long
tables()
Returns the value of thetables
field.
-
-
-
Constructor Detail
-
NkWindow
public NkWindow(java.nio.ByteBuffer container)
Creates aNkWindow
instance at the current position of the specifiedByteBuffer
container. 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:
sizeof
in classorg.lwjgl.system.Struct
-
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.
-
parent
public NkWindow parent()
Returns aNkWindow
view of the struct pointed to by theparent
field.
-
create
public static NkWindow create(long address)
Returns a newNkWindow
instance 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.Buffer
instance 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()
.
-
-