Top Description Inners Fields Constructors Methods
org.lwjgl.nuklear

public Class NkPopupBuffer

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

Layout


struct nk_popup_buffer {
    nk_size begin;
    nk_size parent;
    nk_size last;
    nk_size end;
    nk_bool active;
}

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class
NkPopupBuffer.Buffer

An array of NkPopupBuffer structs.

Field Summary

Modifier and TypeField and Description
public static final int
ACTIVE

The struct member offsets.

public static final int
ALIGNOF

The struct alignment in bytes.

public static final int
BEGIN

The struct member offsets.

public static final int
END

The struct member offsets.

public static final int
LAST

The struct member offsets.

public static final int
PARENT

The struct member offsets.

public static final int
SIZEOF

The struct size in bytes.

Inherited from org.lwjgl.system.Struct:
containerDEFAULT_ALIGN_ASDEFAULT_PACK_ALIGNMENT

Constructor Summary

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

public
NkPopupBuffer(ByteBuffer container)

Creates a NkPopupBuffer 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 long

Returns:

the value of the begin field.
begin
()

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

Returns a new NkPopupBuffer instance for the specified memory address.

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

Create a NkPopupBuffer.Buffer instance at the specified memory.

public static NkPopupBuffer
createSafe(long address)

Like create, but returns null if address is NULL.

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

Like create, but returns null if address is NULL.

public long

Returns:

the value of the end field.
end
()

public long

Returns:

the value of the last field.
last
()

public static boolean
nactive(long struct)

Unsafe version of active.

public static long
nbegin(long struct)

Unsafe version of begin.

public static long
nend(long struct)

Unsafe version of end.

public static long
nlast(long struct)

Unsafe version of last.

public static long
nparent(long struct)

Unsafe version of parent.

public long

Returns:

the value of the parent field.
parent
()

public int
sizeof()

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

Returns sizeof(struct).
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.

ALIGNOFback to summary
public static final int ALIGNOF

The struct alignment in bytes.

BEGINback to summary
public static final int BEGIN

The struct member offsets.

ENDback to summary
public static final int END

The struct member offsets.

LASTback to summary
public static final int LAST

The struct member offsets.

PARENTback to summary
public static final int PARENT

The struct member offsets.

SIZEOFback to summary
public static final int SIZEOF

The struct size in bytes.

Constructor Detail

NkPopupBufferback to summary
protected NkPopupBuffer(long address, ByteBuffer container)
NkPopupBufferback to summary
public NkPopupBuffer(ByteBuffer container)

Creates a NkPopupBuffer 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
beginback to summary
public long begin()
Returns:long

the value of the begin field.

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

Returns a new NkPopupBuffer instance for the specified memory address.

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

Create a NkPopupBuffer.Buffer instance at the specified memory.

Parameters
address:long

the memory address

capacity:int

the buffer capacity

createSafeback to summary
public static NkPopupBuffer createSafe(long address)

Like create, but returns null if address is NULL.

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

Like create, but returns null if address is NULL.

Annotations
@Nullable
endback to summary
public long end()
Returns:long

the value of the end field.

Annotations
@NativeType:nk_size
lastback to summary
public long last()
Returns:long

the value of the last field.

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

Unsafe version of active.

nbeginback to summary
public static long nbegin(long struct)

Unsafe version of begin.

nendback to summary
public static long nend(long struct)

Unsafe version of end.

nlastback to summary
public static long nlast(long struct)

Unsafe version of last.

nparentback to summary
public static long nparent(long struct)

Unsafe version of parent.

parentback to summary
public long parent()
Returns:long

the value of the parent field.

Annotations
@NativeType:nk_size
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
org.lwjgl.nuklear back to summary

public Class NkPopupBuffer.Buffer

extends StructBuffer<NkPopupBuffer, NkPopupBuffer.Buffer>
Class Inheritance

An array of NkPopupBuffer structs.

Field Summary

Modifier and TypeField and Description
private static final NkPopupBuffer

Constructor Summary

AccessConstructor and Description
public
Buffer(ByteBuffer container)

Creates a new NkPopupBuffer.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 long

Returns:

the value of the begin field.
begin
()

public long

Returns:

the value of the end field.
end
()

protected NkPopupBuffer
public long

Returns:

the value of the last field.
last
()

public long

Returns:

the value of the parent field.
parent
()

protected NkPopupBuffer.Buffer
Inherited from org.lwjgl.system.StructBuffer:
applyapplyforEachgetgetgetgetiteratorparallelStreamputputsizeofspliteratorstream

Field Detail

ELEMENT_FACTORYback to summary
private static final NkPopupBuffer ELEMENT_FACTORY

Constructor Detail

Bufferback to summary
public Buffer(ByteBuffer container)

Creates a new NkPopupBuffer.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 NkPopupBuffer#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
beginback to summary
public long begin()
Returns:long

the value of the begin field.

Annotations
@NativeType:nk_size
endback to summary
public long end()
Returns:long

the value of the end field.

Annotations
@NativeType:nk_size
getElementFactoryback to summary
protected NkPopupBuffer getElementFactory()

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

Annotations
@Override
lastback to summary
public long last()
Returns:long

the value of the last field.

Annotations
@NativeType:nk_size
parentback to summary
public long parent()
Returns:long

the value of the parent field.

Annotations
@NativeType:nk_size
selfback to summary
protected NkPopupBuffer.Buffer self()

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

Annotations
@Override