Top Description Inners Fields Constructors Methods
org.lwjgl.nuklear

public Class NkEditState

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

Layout


struct nk_edit_state {
    nk_hash name;
    unsigned int seq;
    unsigned int old;
    int active;
    int prev;
    int cursor;
    int sel_start;
    int sel_end;
    struct nk_scroll scrollbar;
    unsigned char mode;
    bool single_line;
}

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class
NkEditState.Buffer

An array of NkEditState 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
CURSOR

The struct member offsets.

public static final int
MODE

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
SCROLLBAR

The struct member offsets.

public static final int
SEL_END

The struct member offsets.

public static final int
SEL_START

The struct member offsets.

public static final int
SEQ

The struct member offsets.

public static final int
SINGLE_LINE

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
NkEditState(long address, ByteBuffer container)

public
NkEditState(ByteBuffer container)

Creates a NkEditState 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
()

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

Returns a new NkEditState instance for the specified memory address.

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

Create a NkEditState.Buffer instance at the specified memory.

public static NkEditState
createSafe(long address)

Like create, but returns null if address is NULL.

public static NkEditState.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 byte

Returns:

the value of the mode field.
mode
()

public static int
nactive(long struct)

Unsafe version of active.

public int

Returns:

the value of the name field.
name
()

public static int
ncursor(long struct)

Unsafe version of cursor.

public static byte
nmode(long struct)

Unsafe version of mode.

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 NkScroll
nscrollbar(long struct)

Unsafe version of scrollbar.

public static int
nsel_end(long struct)

Unsafe version of sel_end.

public static int
nsel_start(long struct)

Unsafe version of sel_start.

public static int
nseq(long struct)

Unsafe version of seq.

public static boolean
nsingle_line(long struct)

Unsafe version of single_line.

public int

Returns:

the value of the old field.
old
()

public int

Returns:

the value of the prev field.
prev
()

public NkScroll

Returns:

a NkScroll view of the scrollbar field.
scrollbar
()

public int

Returns:

the value of the sel_end field.
sel_end
()

public int

Returns:

the value of the sel_start field.
sel_start
()

public int

Returns:

the value of the seq field.
seq
()

public boolean

Returns:

the value of the single_line field.
single_line
()

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.

CURSORback to summary
public static final int CURSOR

The struct member offsets.

MODEback to summary
public static final int MODE

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.

SCROLLBARback to summary
public static final int SCROLLBAR

The struct member offsets.

SEL_ENDback to summary
public static final int SEL_END

The struct member offsets.

SEL_STARTback to summary
public static final int SEL_START

The struct member offsets.

SEQback to summary
public static final int SEQ

The struct member offsets.

SINGLE_LINEback to summary
public static final int SINGLE_LINE

The struct member offsets.

SIZEOFback to summary
public static final int SIZEOF

The struct size in bytes.

Constructor Detail

NkEditStateback to summary
protected NkEditState(long address, ByteBuffer container)
NkEditStateback to summary
public NkEditState(ByteBuffer container)

Creates a NkEditState 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.

createback to summary
protected NkEditState 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 NkEditState create(long address)

Returns a new NkEditState instance for the specified memory address.

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

Create a NkEditState.Buffer instance at the specified memory.

Parameters
address:long

the memory address

capacity:int

the buffer capacity

createSafeback to summary
public static NkEditState createSafe(long address)

Like create, but returns null if address is NULL.

Annotations
@Nullable
createSafeback to summary
public static NkEditState.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.

modeback to summary
public byte mode()
Returns:byte

the value of the mode field.

Annotations
@NativeType:unsigned char
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
ncursorback to summary
public static int ncursor(long struct)

Unsafe version of cursor.

nmodeback to summary
public static byte nmode(long struct)

Unsafe version of mode.

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.

nscrollbarback to summary
public static NkScroll nscrollbar(long struct)

Unsafe version of scrollbar.

nsel_endback to summary
public static int nsel_end(long struct)

Unsafe version of sel_end.

nsel_startback to summary
public static int nsel_start(long struct)

Unsafe version of sel_start.

nseqback to summary
public static int nseq(long struct)

Unsafe version of seq.

nsingle_lineback to summary
public static boolean nsingle_line(long struct)

Unsafe version of single_line.

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.

scrollbarback to summary
public NkScroll scrollbar()
Returns:NkScroll

a NkScroll view of the scrollbar field.

Annotations
@NativeType:struct nk_scroll
sel_endback to summary
public int sel_end()
Returns:int

the value of the sel_end field.

sel_startback to summary
public int sel_start()
Returns:int

the value of the sel_start field.

seqback to summary
public int seq()
Returns:int

the value of the seq field.

Annotations
@NativeType:unsigned int
single_lineback to summary
public boolean single_line()
Returns:boolean

the value of the single_line field.

Annotations
@NativeType:bool
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 NkEditState.Buffer

extends StructBuffer<NkEditState, NkEditState.Buffer>
Class Inheritance

An array of NkEditState structs.

Field Summary

Modifier and TypeField and Description
private static final NkEditState

Constructor Summary

AccessConstructor and Description
public
Buffer(ByteBuffer container)

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

Returns:

the value of the cursor field.
cursor
()

protected NkEditState
public byte

Returns:

the value of the mode field.
mode
()

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 NkScroll

Returns:

a NkScroll view of the scrollbar field.
scrollbar
()

public int

Returns:

the value of the sel_end field.
sel_end
()

public int

Returns:

the value of the sel_start field.
sel_start
()

protected NkEditState.Buffer
public int

Returns:

the value of the seq field.
seq
()

public boolean

Returns:

the value of the single_line field.
single_line
()

Inherited from org.lwjgl.system.StructBuffer:
applyapplyforEachgetgetgetgetiteratorparallelStreamputputsizeofspliteratorstream

Field Detail

ELEMENT_FACTORYback to summary
private static final NkEditState ELEMENT_FACTORY

Constructor Detail

Bufferback to summary
public Buffer(ByteBuffer container)

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

cursorback to summary
public int cursor()
Returns:int

the value of the cursor field.

getElementFactoryback to summary
protected NkEditState getElementFactory()

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

Annotations
@Override
modeback to summary
public byte mode()
Returns:byte

the value of the mode field.

Annotations
@NativeType:unsigned char
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.

scrollbarback to summary
public NkScroll scrollbar()
Returns:NkScroll

a NkScroll view of the scrollbar field.

Annotations
@NativeType:struct nk_scroll
sel_endback to summary
public int sel_end()
Returns:int

the value of the sel_end field.

sel_startback to summary
public int sel_start()
Returns:int

the value of the sel_start field.

selfback to summary
protected NkEditState.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
single_lineback to summary
public boolean single_line()
Returns:boolean

the value of the single_line field.

Annotations
@NativeType:bool