Top Description Inners Fields Constructors Methods
org.lwjgl.nuklear

public Class NkWindow

extends Struct<NkWindow>
Class Inheritance
Annotations
@NativeType:struct nk_window
Imports
javax.annotation.*, java.nio.*, org.lwjgl.system.*

Layout


struct nk_window {
    unsigned int seq;
    nk_hash name;
    char name_string[NK_WINDOW_MAX_NAME];
    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 and Inner Type Summary

Modifier and TypeClass and Description
public static class
NkWindow.Buffer

An array of NkWindow structs.

Field Summary

Modifier and TypeField and Description
public static final int
ALIGNOF

The struct alignment in bytes.

public static final int
BOUNDS

The struct member offsets.

public static final int
BUFFER

The struct member offsets.

public static final int
EDIT

The struct member offsets.

public static final int
FLAGS

The struct member offsets.

public static final int
LAYOUT

The struct member offsets.

public static final int
NAME

The struct member offsets.

public static final int
NAME_STRING

The struct member offsets.

public static final int
NEXT

The struct member offsets.

public static final int
PARENT

The struct member offsets.

public static final int
POPUP

The struct member offsets.

public static final int
PREV

The struct member offsets.

public static final int
PROPERTY

The struct member offsets.

public static final int
SCROLLBAR

The struct member offsets.

public static final int
SCROLLBAR_HIDING_TIMER

The struct member offsets.

public static final int
SCROLLED

The struct member offsets.

public static final int
SEQ

The struct member offsets.

public static final int
SIZEOF

The struct size in bytes.

public static final int
TABLE_COUNT

The struct member offsets.

public static final int
TABLES

The struct member offsets.

Inherited from org.lwjgl.system.Struct:
containerDEFAULT_ALIGN_ASDEFAULT_PACK_ALIGNMENT

Constructor Summary

AccessConstructor and Description
protected
NkWindow(long address, ByteBuffer container)

public
NkWindow(ByteBuffer container)

Creates a NkWindow instance at the current position of the specified ByteBuffer container.

Method Summary

Modifier and TypeMethod and Description
public NkRect

Returns:

a NkRect view of the bounds field.
bounds
()

public NkCommandBuffer

Returns:

a NkCommandBuffer view of the buffer field.
buffer
()

protected NkWindow
create(long
the struct memory address
address
,
ByteBuffer
an optional container buffer, to be referenced strongly by the struct instance.
container
)

Implements abstract org.lwjgl.system.Struct.create.

Similar to the constructor, but returns the exact type of the Struct subclass.
public static NkWindow
create(long address)

Returns a new NkWindow instance for the specified memory address.

public static NkWindow.Buffer
create(long
the memory address
address
,
int
the buffer capacity
capacity
)

Create a NkWindow.Buffer instance at the specified memory.

public static NkWindow
createSafe(long address)

Like create, but returns null if address is NULL.

public static NkWindow.Buffer
createSafe(long address, int capacity)

Like create, but returns null if address is NULL.

public NkEditState

Returns:

a NkEditState view of the edit field.
edit
()

public int

Returns:

the value of the flags field.
flags
()

public NkPanel

Returns:

a NkPanel view of the struct pointed to by the layout field.
layout
()

public int

Returns:

the value of the name field.
name
()

public ByteBuffer

Returns:

a ByteBuffer view of the name_string field.
name_string
()

public String

Returns:

the null-terminated string stored in the name_string field.
name_stringString
()

public static NkRect
nbounds(long struct)

Unsafe version of bounds.

public static NkCommandBuffer
nbuffer(long struct)

Unsafe version of buffer.

public static NkEditState
nedit(long struct)

Unsafe version of edit.

public NkWindow

Returns:

a NkWindow view of the struct pointed to by the next field.
next
()

public static int
nflags(long struct)

Unsafe version of flags.

public static NkPanel
nlayout(long struct)

Unsafe version of layout.

public static int
nname(long struct)

Unsafe version of name.

public static ByteBuffer
nname_string(long struct)

Unsafe version of name_string.

public static String
nname_stringString(long struct)

Unsafe version of name_stringString.

public static NkWindow
nnext(long struct)

Unsafe version of next.

public static NkWindow
nparent(long struct)

Unsafe version of parent.

public static NkPopupState
npopup(long struct)

Unsafe version of popup.

public static NkWindow
nprev(long struct)

Unsafe version of prev.

public static NkPropertyState
nproperty(long struct)

Unsafe version of property.

public static NkScroll
nscrollbar(long struct)

Unsafe version of scrollbar.

public static float
nscrollbar_hiding_timer(long struct)

Unsafe version of scrollbar_hiding_timer.

public static int
nscrolled(long struct)

Unsafe version of scrolled.

public static int
nseq(long struct)

Unsafe version of seq.

public static int
ntable_count(long struct)

Unsafe version of table_count.

public static long
ntables(long struct)

Unsafe version of tables.

public NkWindow

Returns:

a NkWindow view of the struct pointed to by the parent field.
parent
()

public NkWindow

Returns:

a NkWindow view of the struct pointed to by the prev field.
prev
()

public NkPropertyState

Returns:

a NkPropertyState view of the property field.
property
()

public NkScroll

Returns:

a NkScroll view of the scrollbar field.
scrollbar
()

public float

Returns:

the value of the scrollbar_hiding_timer field.
scrollbar_hiding_timer
()

public int

Returns:

the value of the scrolled field.
scrolled
()

public int

Returns:

the value of the seq field.
seq
()

public int
sizeof()

Implements abstract org.lwjgl.system.Struct.sizeof.

Returns sizeof(struct).
public int

Returns:

the value of the table_count field.
table_count
()

public long

Returns:

the value of the tables field.
tables
()

Inherited from org.lwjgl.system.Struct:
__array__array__array__checkContainer__checkMalloc__create__getContainer__getContainer__member__member__member__padding__padding__struct__struct__union__unionclearfreeisNullvalidate

Field Detail

ALIGNOFback to summary
public static final int ALIGNOF

The struct alignment in bytes.

BOUNDSback to summary
public static final int BOUNDS

The struct member offsets.

BUFFERback to summary
public static final int BUFFER

The struct member offsets.

EDITback to summary
public static final int EDIT

The struct member offsets.

FLAGSback to summary
public static final int FLAGS

The struct member offsets.

LAYOUTback to summary
public static final int LAYOUT

The struct member offsets.

NAMEback to summary
public static final int NAME

The struct member offsets.

NAME_STRINGback to summary
public static final int NAME_STRING

The struct member offsets.

NEXTback to summary
public static final int NEXT

The struct member offsets.

PARENTback to summary
public static final int PARENT

The struct member offsets.

PREVback to summary
public static final int PREV

The struct member offsets.

PROPERTYback to summary
public static final int PROPERTY

The struct member offsets.

SCROLLBARback to summary
public static final int SCROLLBAR

The struct member offsets.

SCROLLBAR_HIDING_TIMERback to summary
public static final int SCROLLBAR_HIDING_TIMER

The struct member offsets.

SCROLLEDback to summary
public static final int SCROLLED

The struct member offsets.

SEQback to summary
public static final int SEQ

The struct member offsets.

SIZEOFback to summary
public static final int SIZEOF

The struct size in bytes.

TABLE_COUNTback to summary
public static final int TABLE_COUNT

The struct member offsets.

TABLESback to summary
public static final int TABLES

The struct member offsets.

Constructor Detail

NkWindowback to summary
protected NkWindow(long address, ByteBuffer container)
NkWindowback to summary
public NkWindow(ByteBuffer container)

Creates a NkWindow instance at the current position of the specified ByteBuffer 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

boundsback to summary
public NkRect bounds()
Returns:NkRect

a NkRect view of the bounds field.

Annotations
@NativeType:struct nk_rect
bufferback to summary
public NkCommandBuffer buffer()
Returns:NkCommandBuffer

a NkCommandBuffer view of the buffer field.

Annotations
@NativeType:struct nk_command_buffer
createback to summary
protected NkWindow create(long address, ByteBuffer container)

Implements abstract org.lwjgl.system.Struct.create.

Doc from org.lwjgl.system.Struct.create.

Similar to the constructor, but returns the exact type of the Struct subclass.

Effectively, every Struct instance is a factory for more instances of the same type. This is used by StructBuffer.

Parameters
address:long

the struct memory address

container:ByteBuffer

an optional container buffer, to be referenced strongly by the struct instance.

Annotations
@Override
createback to summary
public static NkWindow create(long address)

Returns a new NkWindow instance for the specified memory address.

createback to summary
public static NkWindow.Buffer create(long address, int capacity)

Create a NkWindow.Buffer instance at the specified memory.

Parameters
address:long

the memory address

capacity:int

the buffer capacity

createSafeback to summary
public static NkWindow createSafe(long address)

Like create, but returns null if address is NULL.

Annotations
@Nullable
createSafeback to summary
public static NkWindow.Buffer createSafe(long address, int capacity)

Like create, but returns null if address is NULL.

Annotations
@Nullable
editback to summary
public NkEditState edit()
Returns:NkEditState

a NkEditState view of the edit field.

Annotations
@NativeType:struct nk_edit_state
flagsback to summary
public int flags()
Returns:int

the value of the flags field.

Annotations
@NativeType:nk_flags
layoutback to summary
public NkPanel layout()
Returns:NkPanel

a NkPanel view of the struct pointed to by the layout field.

Annotations
@NativeType:struct nk_panel *
nameback to summary
public int name()
Returns:int

the value of the name field.

Annotations
@NativeType:nk_hash
name_stringback to summary
public ByteBuffer name_string()
Returns:ByteBuffer

a ByteBuffer view of the name_string field.

Annotations
@NativeType:char[NK_WINDOW_MAX_NAME]
name_stringStringback to summary
public String name_stringString()
Returns:String

the null-terminated string stored in the name_string field.

Annotations
@NativeType:char[NK_WINDOW_MAX_NAME]
nboundsback to summary
public static NkRect nbounds(long struct)

Unsafe version of bounds.

nbufferback to summary
public static NkCommandBuffer nbuffer(long struct)

Unsafe version of buffer.

neditback to summary
public static NkEditState nedit(long struct)

Unsafe version of edit.

nextback to summary
public NkWindow next()
Returns:NkWindow

a NkWindow view of the struct pointed to by the next field.

Annotations
@NativeType:struct nk_window *
nflagsback to summary
public static int nflags(long struct)

Unsafe version of flags.

nlayoutback to summary
public static NkPanel nlayout(long struct)

Unsafe version of layout.

nnameback to summary
public static int nname(long struct)

Unsafe version of name.

nname_stringback to summary
public static ByteBuffer nname_string(long struct)

Unsafe version of name_string.

nname_stringStringback to summary
public static String nname_stringString(long struct)

Unsafe version of name_stringString.

nnextback to summary
public static NkWindow nnext(long struct)

Unsafe version of next.

nparentback to summary
public static NkWindow nparent(long struct)

Unsafe version of parent.

npopupback to summary
public static NkPopupState npopup(long struct)

Unsafe version of popup.

nprevback to summary
public static NkWindow nprev(long struct)

Unsafe version of prev.

npropertyback to summary
public static NkPropertyState nproperty(long struct)

Unsafe version of property.

nscrollbarback to summary
public static NkScroll nscrollbar(long struct)

Unsafe version of scrollbar.

nscrollbar_hiding_timerback to summary
public static float nscrollbar_hiding_timer(long struct)

Unsafe version of scrollbar_hiding_timer.

nscrolledback to summary
public static int nscrolled(long struct)

Unsafe version of scrolled.

nseqback to summary
public static int nseq(long struct)

Unsafe version of seq.

ntable_countback to summary
public static int ntable_count(long struct)

Unsafe version of table_count.

ntablesback to summary
public static long ntables(long struct)

Unsafe version of tables.

parentback to summary
public NkWindow parent()
Returns:NkWindow

a NkWindow view of the struct pointed to by the parent field.

Annotations
@NativeType:struct nk_window *
prevback to summary
public NkWindow prev()
Returns:NkWindow

a NkWindow view of the struct pointed to by the prev field.

Annotations
@NativeType:struct nk_window *
propertyback to summary
public NkPropertyState property()
Returns:NkPropertyState

a NkPropertyState view of the property field.

Annotations
@NativeType:struct nk_property_state
scrollbarback to summary
public NkScroll scrollbar()
Returns:NkScroll

a NkScroll view of the scrollbar field.

Annotations
@NativeType:struct nk_scroll
scrollbar_hiding_timerback to summary
public float scrollbar_hiding_timer()
Returns:float

the value of the scrollbar_hiding_timer field.

scrolledback to summary
public int scrolled()
Returns:int

the value of the scrolled field.

Annotations
@NativeType:unsigned int
seqback to summary
public int seq()
Returns:int

the value of the seq field.

Annotations
@NativeType:unsigned int
sizeofback to summary
public int sizeof()

Implements abstract org.lwjgl.system.Struct.sizeof.

Doc from org.lwjgl.system.Struct.sizeof.

Returns sizeof(struct).

Annotations
@Override
table_countback to summary
public int table_count()
Returns:int

the value of the table_count field.

Annotations
@NativeType:unsigned int
tablesback to summary
public long tables()
Returns:long

the value of the tables field.

Annotations
@NativeType:struct nk_table *
org.lwjgl.nuklear back to summary

public Class NkWindow.Buffer

extends StructBuffer<NkWindow, NkWindow.Buffer>
Class Inheritance

An array of NkWindow structs.

Field Summary

Modifier and TypeField and Description
private static final NkWindow

Constructor Summary

AccessConstructor and Description
public
Buffer(ByteBuffer container)

Creates a new NkWindow.Buffer instance backed by the specified container.

public
Buffer(long address, int cap)

pack-priv
Buffer(long address, ByteBuffer container, int mark, int pos, int lim, int cap)

Method Summary

Modifier and TypeMethod and Description
public NkRect

Returns:

a NkRect view of the bounds field.
bounds
()

public NkCommandBuffer

Returns:

a NkCommandBuffer view of the buffer field.
buffer
()

public NkEditState

Returns:

a NkEditState view of the edit field.
edit
()

public int

Returns:

the value of the flags field.
flags
()

protected NkWindow
public NkPanel

Returns:

a NkPanel view of the struct pointed to by the layout field.
layout
()

public int

Returns:

the value of the name field.
name
()

public ByteBuffer

Returns:

a ByteBuffer view of the name_string field.
name_string
()

public String

Returns:

the null-terminated string stored in the name_string field.
name_stringString
()

public NkWindow

Returns:

a NkWindow view of the struct pointed to by the next field.
next
()

public NkWindow

Returns:

a NkWindow view of the struct pointed to by the parent field.
parent
()

public NkPopupState

Returns:

a NkPopupState view of the popup field.
popup
()

public NkWindow

Returns:

a NkWindow view of the struct pointed to by the prev field.
prev
()

public NkPropertyState

Returns:

a NkPropertyState view of the property field.
property
()

public NkScroll

Returns:

a NkScroll view of the scrollbar field.
scrollbar
()

public float

Returns:

the value of the scrollbar_hiding_timer field.
scrollbar_hiding_timer
()

public int

Returns:

the value of the scrolled field.
scrolled
()

protected NkWindow.Buffer
public int

Returns:

the value of the seq field.
seq
()

public int

Returns:

the value of the table_count field.
table_count
()

public long

Returns:

the value of the tables field.
tables
()

Inherited from org.lwjgl.system.StructBuffer:
applyapplyforEachgetgetgetgetiteratorparallelStreamputputsizeofspliteratorstream

Field Detail

ELEMENT_FACTORYback to summary
private static final NkWindow ELEMENT_FACTORY

Constructor Detail

Bufferback to summary
public Buffer(ByteBuffer container)

Creates a new NkWindow.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 by NkWindow#SIZEOF, and its mark will be undefined.

The created buffer instance holds a strong reference to the container object.

Bufferback to summary
public Buffer(long address, int cap)
Bufferback to summary
pack-priv Buffer(long address, ByteBuffer container, int mark, int pos, int lim, int cap)

Method Detail

boundsback to summary
public NkRect bounds()
Returns:NkRect

a NkRect view of the bounds field.

Annotations
@NativeType:struct nk_rect
bufferback to summary
public NkCommandBuffer buffer()
Returns:NkCommandBuffer

a NkCommandBuffer view of the buffer field.

Annotations
@NativeType:struct nk_command_buffer
editback to summary
public NkEditState edit()
Returns:NkEditState

a NkEditState view of the edit field.

Annotations
@NativeType:struct nk_edit_state
flagsback to summary
public int flags()
Returns:int

the value of the flags field.

Annotations
@NativeType:nk_flags
getElementFactoryback to summary
protected NkWindow getElementFactory()

Implements abstract org.lwjgl.system.StructBuffer.getElementFactory.

Annotations
@Override
layoutback to summary
public NkPanel layout()
Returns:NkPanel

a NkPanel view of the struct pointed to by the layout field.

Annotations
@NativeType:struct nk_panel *
nameback to summary
public int name()
Returns:int

the value of the name field.

Annotations
@NativeType:nk_hash
name_stringback to summary
public ByteBuffer name_string()
Returns:ByteBuffer

a ByteBuffer view of the name_string field.

Annotations
@NativeType:char[NK_WINDOW_MAX_NAME]
name_stringStringback to summary
public String name_stringString()
Returns:String

the null-terminated string stored in the name_string field.

Annotations
@NativeType:char[NK_WINDOW_MAX_NAME]
nextback to summary
public NkWindow next()
Returns:NkWindow

a NkWindow view of the struct pointed to by the next field.

Annotations
@NativeType:struct nk_window *
parentback to summary
public NkWindow parent()
Returns:NkWindow

a NkWindow view of the struct pointed to by the parent field.

Annotations
@NativeType:struct nk_window *
popupback to summary
public NkPopupState popup()
Returns:NkPopupState

a NkPopupState view of the popup field.

Annotations
@NativeType:struct nk_popup_state
prevback to summary
public NkWindow prev()
Returns:NkWindow

a NkWindow view of the struct pointed to by the prev field.

Annotations
@NativeType:struct nk_window *
propertyback to summary
public NkPropertyState property()
Returns:NkPropertyState

a NkPropertyState view of the property field.

Annotations
@NativeType:struct nk_property_state
scrollbarback to summary
public NkScroll scrollbar()
Returns:NkScroll

a NkScroll view of the scrollbar field.

Annotations
@NativeType:struct nk_scroll
scrollbar_hiding_timerback to summary
public float scrollbar_hiding_timer()
Returns:float

the value of the scrollbar_hiding_timer field.

scrolledback to summary
public int scrolled()
Returns:int

the value of the scrolled field.

Annotations
@NativeType:unsigned int
selfback to summary
protected NkWindow.Buffer self()

Implements abstract org.lwjgl.system.CustomBuffer.self.

Annotations
@Override
seqback to summary
public int seq()
Returns:int

the value of the seq field.

Annotations
@NativeType:unsigned int
table_countback to summary
public int table_count()
Returns:int

the value of the table_count field.

Annotations
@NativeType:unsigned int
tablesback to summary
public long tables()
Returns:long

the value of the tables field.

Annotations
@NativeType:struct nk_table *