Top Description Inners Fields Constructors Methods
org.lwjgl.nuklear

public Class NkPopupState

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

Layout


struct nk_popup_state {
    struct nk_window * win;
    enum nk_panel_type type;
    struct nk_popup_buffer buf;
    nk_hash name;
    nk_bool active;
    unsigned combo_count;
    unsigned con_count;
    unsigned con_old;
    unsigned active_con;
    struct nk_rect header;
}

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class
NkPopupState.Buffer

An array of NkPopupState structs.

Field Summary

Modifier and TypeField and Description
public static final int
ACTIVE

The struct member offsets.

public static final int
ACTIVE_CON

The struct member offsets.

public static final int
ALIGNOF

The struct alignment in bytes.

public static final int
BUF

The struct member offsets.

public static final int
COMBO_COUNT

The struct member offsets.

public static final int
CON_COUNT

The struct member offsets.

public static final int
CON_OLD

The struct member offsets.

public static final int
HEADER

The struct member offsets.

public static final int
NAME

The struct member offsets.

public static final int
SIZEOF

The struct size in bytes.

public static final int
TYPE

The struct member offsets.

public static final int
WIN

The struct member offsets.

Inherited from org.lwjgl.system.Struct:
containerDEFAULT_ALIGN_ASDEFAULT_PACK_ALIGNMENT

Constructor Summary

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

public
NkPopupState(ByteBuffer container)

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

Method Summary

Modifier and TypeMethod and Description
public boolean

Returns:

the value of the active field.
active
()

public int

Returns:

the value of the active_con field.
active_con
()

public NkPopupBuffer

Returns:

a NkPopupBuffer view of the buf field.
buf
()

public int

Returns:

the value of the combo_count field.
combo_count
()

public int

Returns:

the value of the con_count field.
con_count
()

public int

Returns:

the value of the con_old field.
con_old
()

protected NkPopupState
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 NkPopupState
create(long address)

Returns a new NkPopupState instance for the specified memory address.

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

Create a NkPopupState.Buffer instance at the specified memory.

public static NkPopupState
createSafe(long address)

Like create, but returns null if address is NULL.

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

Like create, but returns null if address is NULL.

public NkRect

Returns:

a NkRect view of the header field.
header
()

public static boolean
nactive(long struct)

Unsafe version of active.

public static int
nactive_con(long struct)

Unsafe version of active_con.

public int

Returns:

the value of the name field.
name
()

public static NkPopupBuffer
nbuf(long struct)

Unsafe version of buf.

public static int
ncombo_count(long struct)

Unsafe version of combo_count.

public static int
ncon_count(long struct)

Unsafe version of con_count.

public static int
ncon_old(long struct)

Unsafe version of con_old.

public static NkRect
nheader(long struct)

Unsafe version of header.

public static int
nname(long struct)

Unsafe version of name.

public static int
ntype(long struct)

Unsafe version of type.

public static NkWindow
nwin(long struct)

Unsafe version of win.

public int
sizeof()

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

Returns sizeof(struct).
public int
public NkWindow

Returns:

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

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

ACTIVEback to summary
public static final int ACTIVE

The struct member offsets.

ACTIVE_CONback to summary
public static final int ACTIVE_CON

The struct member offsets.

ALIGNOFback to summary
public static final int ALIGNOF

The struct alignment in bytes.

BUFback to summary
public static final int BUF

The struct member offsets.

COMBO_COUNTback to summary
public static final int COMBO_COUNT

The struct member offsets.

CON_COUNTback to summary
public static final int CON_COUNT

The struct member offsets.

CON_OLDback to summary
public static final int CON_OLD

The struct member offsets.

NAMEback to summary
public static final int NAME

The struct member offsets.

SIZEOFback to summary
public static final int SIZEOF

The struct size in bytes.

TYPEback to summary
public static final int TYPE

The struct member offsets.

WINback to summary
public static final int WIN

The struct member offsets.

Constructor Detail

NkPopupStateback to summary
protected NkPopupState(long address, ByteBuffer container)
NkPopupStateback to summary
public NkPopupState(ByteBuffer container)

Creates a NkPopupState 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

activeback to summary
public boolean active()
Returns:boolean

the value of the active field.

Annotations
@NativeType:nk_bool
active_conback to summary
public int active_con()
Returns:int

the value of the active_con field.

Annotations
@NativeType:unsigned
bufback to summary
public NkPopupBuffer buf()
Returns:NkPopupBuffer

a NkPopupBuffer view of the buf field.

Annotations
@NativeType:struct nk_popup_buffer
combo_countback to summary
public int combo_count()
Returns:int

the value of the combo_count field.

Annotations
@NativeType:unsigned
con_countback to summary
public int con_count()
Returns:int

the value of the con_count field.

Annotations
@NativeType:unsigned
con_oldback to summary
public int con_old()
Returns:int

the value of the con_old field.

Annotations
@NativeType:unsigned
createback to summary
protected NkPopupState 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 NkPopupState create(long address)

Returns a new NkPopupState instance for the specified memory address.

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

Create a NkPopupState.Buffer instance at the specified memory.

Parameters
address:long

the memory address

capacity:int

the buffer capacity

createSafeback to summary
public static NkPopupState createSafe(long address)

Like create, but returns null if address is NULL.

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

Like create, but returns null if address is NULL.

Annotations
@Nullable
headerback to summary
public NkRect header()
Returns:NkRect

a NkRect view of the header field.

Annotations
@NativeType:struct nk_rect
nactiveback to summary
public static boolean nactive(long struct)

Unsafe version of active.

nactive_conback to summary
public static int nactive_con(long struct)

Unsafe version of active_con.

nameback to summary
public int name()
Returns:int

the value of the name field.

Annotations
@NativeType:nk_hash
nbufback to summary
public static NkPopupBuffer nbuf(long struct)

Unsafe version of buf.

ncombo_countback to summary
public static int ncombo_count(long struct)

Unsafe version of combo_count.

ncon_countback to summary
public static int ncon_count(long struct)

Unsafe version of con_count.

ncon_oldback to summary
public static int ncon_old(long struct)

Unsafe version of con_old.

nheaderback to summary
public static NkRect nheader(long struct)

Unsafe version of header.

nnameback to summary
public static int nname(long struct)

Unsafe version of name.

ntypeback to summary
public static int ntype(long struct)

Unsafe version of type.

nwinback to summary
public static NkWindow nwin(long struct)

Unsafe version of win.

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
typeback to summary
public int type()

one of:

PANEL_NONEPANEL_WINDOWPANEL_GROUPPANEL_POPUPPANEL_CONTEXTUALPANEL_COMBO
PANEL_MENUPANEL_TOOLTIPPANEL_SET_NONBLOCKPANEL_SET_POPUPPANEL_SET_SUB
Annotations
@NativeType:enum nk_panel_type
winback to summary
public NkWindow win()
Returns:NkWindow

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

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

public Class NkPopupState.Buffer

extends StructBuffer<NkPopupState, NkPopupState.Buffer>
Class Inheritance

An array of NkPopupState structs.

Field Summary

Modifier and TypeField and Description
private static final NkPopupState

Constructor Summary

AccessConstructor and Description
public
Buffer(ByteBuffer container)

Creates a new NkPopupState.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 boolean

Returns:

the value of the active field.
active
()

public int

Returns:

the value of the active_con field.
active_con
()

public NkPopupBuffer

Returns:

a NkPopupBuffer view of the buf field.
buf
()

public int

Returns:

the value of the combo_count field.
combo_count
()

public int

Returns:

the value of the con_count field.
con_count
()

public int

Returns:

the value of the con_old field.
con_old
()

protected NkPopupState
public NkRect

Returns:

a NkRect view of the header field.
header
()

public int

Returns:

the value of the name field.
name
()

protected NkPopupState.Buffer
public int

Returns:

the value of the NkPopupState#type field.
type
()

public NkWindow

Returns:

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

Inherited from org.lwjgl.system.StructBuffer:
applyapplyforEachgetgetgetgetiteratorparallelStreamputputsizeofspliteratorstream

Field Detail

ELEMENT_FACTORYback to summary
private static final NkPopupState ELEMENT_FACTORY

Constructor Detail

Bufferback to summary
public Buffer(ByteBuffer container)

Creates a new NkPopupState.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 NkPopupState#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

activeback to summary
public boolean active()
Returns:boolean

the value of the active field.

Annotations
@NativeType:nk_bool
active_conback to summary
public int active_con()
Returns:int

the value of the active_con field.

Annotations
@NativeType:unsigned
bufback to summary
public NkPopupBuffer buf()
Returns:NkPopupBuffer

a NkPopupBuffer view of the buf field.

Annotations
@NativeType:struct nk_popup_buffer
combo_countback to summary
public int combo_count()
Returns:int

the value of the combo_count field.

Annotations
@NativeType:unsigned
con_countback to summary
public int con_count()
Returns:int

the value of the con_count field.

Annotations
@NativeType:unsigned
con_oldback to summary
public int con_old()
Returns:int

the value of the con_old field.

Annotations
@NativeType:unsigned
getElementFactoryback to summary
protected NkPopupState getElementFactory()

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

Annotations
@Override
headerback to summary
public NkRect header()
Returns:NkRect

a NkRect view of the header field.

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

the value of the name field.

Annotations
@NativeType:nk_hash
selfback to summary
protected NkPopupState.Buffer self()

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

Annotations
@Override
typeback to summary
public int type()
Returns:int

the value of the NkPopupState#type field.

Annotations
@NativeType:enum nk_panel_type
winback to summary
public NkWindow win()
Returns:NkWindow

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

Annotations
@NativeType:struct nk_window *