Top Description Inners Fields Constructors Methods
org.lwjgl.nuklear

public Class NkPropertyState

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

Layout


struct nk_property_state {
    int active;
    int prev;
    char buffer[NK_MAX_NUMBER_BUFFER];
    int length;
    int cursor;
    int select_start;
    int select_end;
    nk_hash name;
    unsigned int seq;
    unsigned int old;
    int state;
}

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class

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
BUFFER

The struct member offsets.

public static final int
CURSOR

The struct member offsets.

public static final int
LENGTH

The struct member offsets.

public static final int
NAME

The struct member offsets.

public static final int
OLD

The struct member offsets.

public static final int
PREV

The struct member offsets.

public static final int
SELECT_END

The struct member offsets.

public static final int
SELECT_START

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
STATE

The struct member offsets.

Inherited from org.lwjgl.system.Struct:
containerDEFAULT_ALIGN_ASDEFAULT_PACK_ALIGNMENT

Constructor Summary

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

public
NkPropertyState(ByteBuffer container)

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

Method Summary

Modifier and TypeMethod and Description
public int

Returns:

the value of the active field.
active
()

public ByteBuffer

Returns:

a ByteBuffer view of the buffer field.
buffer
()

public byte

Returns:

the value at the specified index of the buffer field.
buffer
(int index)

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

Returns a new NkPropertyState instance for the specified memory address.

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

Create a NkPropertyState.Buffer instance at the specified memory.

public static NkPropertyState
createSafe(long address)

Like create, but returns null if address is NULL.

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

Like create, but returns null if address is NULL.

public int

Returns:

the value of the cursor field.
cursor
()

public int

Returns:

the value of the length field.
length
()

public static int
nactive(long struct)

Unsafe version of active.

public int

Returns:

the value of the name field.
name
()

public static ByteBuffer
nbuffer(long struct)

Unsafe version of buffer.

public static byte
nbuffer(long struct, int index)

Unsafe version of buffer.

public static int
ncursor(long struct)

Unsafe version of cursor.

public static int
nlength(long struct)

Unsafe version of length.

public static int
nname(long struct)

Unsafe version of name.

public static int
nold(long struct)

Unsafe version of old.

public static int
nprev(long struct)

Unsafe version of prev.

public static int
nselect_end(long struct)

Unsafe version of select_end.

public static int
nselect_start(long struct)

Unsafe version of select_start.

public static int
nseq(long struct)

Unsafe version of seq.

public static int
nstate(long struct)

Unsafe version of state.

public int

Returns:

the value of the old field.
old
()

public int

Returns:

the value of the prev field.
prev
()

public int

Returns:

the value of the select_end field.
select_end
()

public int

Returns:

the value of the select_start field.
select_start
()

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 state field.
state
()

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.

BUFFERback to summary
public static final int BUFFER

The struct member offsets.

CURSORback to summary
public static final int CURSOR

The struct member offsets.

LENGTHback to summary
public static final int LENGTH

The struct member offsets.

NAMEback to summary
public static final int NAME

The struct member offsets.

OLDback to summary
public static final int OLD

The struct member offsets.

PREVback to summary
public static final int PREV

The struct member offsets.

SELECT_ENDback to summary
public static final int SELECT_END

The struct member offsets.

SELECT_STARTback to summary
public static final int SELECT_START

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.

STATEback to summary
public static final int STATE

The struct member offsets.

Constructor Detail

NkPropertyStateback to summary
protected NkPropertyState(long address, ByteBuffer container)
NkPropertyStateback to summary
public NkPropertyState(ByteBuffer container)

Creates a NkPropertyState 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 int active()
Returns:int

the value of the active field.

bufferback to summary
public ByteBuffer buffer()
Returns:ByteBuffer

a ByteBuffer view of the buffer field.

Annotations
@NativeType:char[NK_MAX_NUMBER_BUFFER]
bufferback to summary
public byte buffer(int index)
Returns:byte

the value at the specified index of the buffer field.

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

Returns a new NkPropertyState instance for the specified memory address.

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

Create a NkPropertyState.Buffer instance at the specified memory.

Parameters
address:long

the memory address

capacity:int

the buffer capacity

createSafeback to summary
public static NkPropertyState createSafe(long address)

Like create, but returns null if address is NULL.

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

Like create, but returns null if address is NULL.

Annotations
@Nullable
cursorback to summary
public int cursor()
Returns:int

the value of the cursor field.

lengthback to summary
public int length()
Returns:int

the value of the length field.

nactiveback to summary
public static int nactive(long struct)

Unsafe version of active.

nameback to summary
public int name()
Returns:int

the value of the name field.

Annotations
@NativeType:nk_hash
nbufferback to summary
public static ByteBuffer nbuffer(long struct)

Unsafe version of buffer.

nbufferback to summary
public static byte nbuffer(long struct, int index)

Unsafe version of buffer.

ncursorback to summary
public static int ncursor(long struct)

Unsafe version of cursor.

nlengthback to summary
public static int nlength(long struct)

Unsafe version of length.

nnameback to summary
public static int nname(long struct)

Unsafe version of name.

noldback to summary
public static int nold(long struct)

Unsafe version of old.

nprevback to summary
public static int nprev(long struct)

Unsafe version of prev.

nselect_endback to summary
public static int nselect_end(long struct)

Unsafe version of select_end.

nselect_startback to summary
public static int nselect_start(long struct)

Unsafe version of select_start.

nseqback to summary
public static int nseq(long struct)

Unsafe version of seq.

nstateback to summary
public static int nstate(long struct)

Unsafe version of state.

oldback to summary
public int old()
Returns:int

the value of the old field.

Annotations
@NativeType:unsigned int
prevback to summary
public int prev()
Returns:int

the value of the prev field.

select_endback to summary
public int select_end()
Returns:int

the value of the select_end field.

select_startback to summary
public int select_start()
Returns:int

the value of the select_start field.

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
stateback to summary
public int state()
Returns:int

the value of the state field.

org.lwjgl.nuklear back to summary

public Class NkPropertyState.Buffer

extends StructBuffer<NkPropertyState, NkPropertyState.Buffer>
Class Inheritance

An array of NkPropertyState structs.

Field Summary

Modifier and TypeField and Description
private static final NkPropertyState

Constructor Summary

AccessConstructor and Description
public
Buffer(ByteBuffer container)

Creates a new NkPropertyState.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 int

Returns:

the value of the active field.
active
()

public ByteBuffer

Returns:

a ByteBuffer view of the buffer field.
buffer
()

public byte

Returns:

the value at the specified index of the buffer field.
buffer
(int index)

public int

Returns:

the value of the cursor field.
cursor
()

protected NkPropertyState
public int

Returns:

the value of the length field.
length
()

public int

Returns:

the value of the name field.
name
()

public int

Returns:

the value of the old field.
old
()

public int

Returns:

the value of the prev field.
prev
()

public int

Returns:

the value of the select_end field.
select_end
()

public int

Returns:

the value of the select_start field.
select_start
()

protected NkPropertyState.Buffer
public int

Returns:

the value of the seq field.
seq
()

public int

Returns:

the value of the state field.
state
()

Inherited from org.lwjgl.system.StructBuffer:
applyapplyforEachgetgetgetgetiteratorparallelStreamputputsizeofspliteratorstream

Field Detail

ELEMENT_FACTORYback to summary
private static final NkPropertyState ELEMENT_FACTORY

Constructor Detail

Bufferback to summary
public Buffer(ByteBuffer container)

Creates a new NkPropertyState.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 NkPropertyState#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 int active()
Returns:int

the value of the active field.

bufferback to summary
public ByteBuffer buffer()
Returns:ByteBuffer

a ByteBuffer view of the buffer field.

Annotations
@NativeType:char[NK_MAX_NUMBER_BUFFER]
bufferback to summary
public byte buffer(int index)
Returns:byte

the value at the specified index of the buffer field.

Annotations
@NativeType:char
cursorback to summary
public int cursor()
Returns:int

the value of the cursor field.

getElementFactoryback to summary
protected NkPropertyState getElementFactory()

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

Annotations
@Override
lengthback to summary
public int length()
Returns:int

the value of the length field.

nameback to summary
public int name()
Returns:int

the value of the name field.

Annotations
@NativeType:nk_hash
oldback to summary
public int old()
Returns:int

the value of the old field.

Annotations
@NativeType:unsigned int
prevback to summary
public int prev()
Returns:int

the value of the prev field.

select_endback to summary
public int select_end()
Returns:int

the value of the select_end field.

select_startback to summary
public int select_start()
Returns:int

the value of the select_start field.

selfback to summary
protected NkPropertyState.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
stateback to summary
public int state()
Returns:int

the value of the state field.