Top Description Inners Fields Constructors Methods
org.lwjgl.nuklear

public Class NkTextUndoState

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

Layout


struct nk_text_undo_state {
    struct nk_text_undo_record undo_rec[99];
    nk_rune undo_char[999];
    short undo_point;
    short redo_point;
    short undo_char_point;
    short redo_char_point;
}

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class

Field Summary

Modifier and TypeField and Description
public static final int
ALIGNOF

The struct alignment in bytes.

public static final int
REDO_CHAR_POINT

The struct member offsets.

public static final int
REDO_POINT

The struct member offsets.

public static final int
SIZEOF

The struct size in bytes.

public static final int
UNDO_CHAR

The struct member offsets.

public static final int
UNDO_CHAR_POINT

The struct member offsets.

public static final int
UNDO_POINT

The struct member offsets.

public static final int
UNDO_REC

The struct member offsets.

Inherited from org.lwjgl.system.Struct:
containerDEFAULT_ALIGN_ASDEFAULT_PACK_ALIGNMENT

Constructor Summary

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

public
NkTextUndoState(ByteBuffer container)

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

Method Summary

Modifier and TypeMethod and Description
protected NkTextUndoState
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 NkTextUndoState
create(long address)

Returns a new NkTextUndoState instance for the specified memory address.

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

Create a NkTextUndoState.Buffer instance at the specified memory.

public static NkTextUndoState
createSafe(long address)

Like create, but returns null if address is NULL.

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

Like create, but returns null if address is NULL.

public static short
nredo_char_point(long struct)

Unsafe version of redo_char_point.

public static short
nredo_point(long struct)

Unsafe version of redo_point.

public static IntBuffer
nundo_char(long struct)

Unsafe version of undo_char.

public static int
nundo_char(long struct, int index)

Unsafe version of undo_char.

public static short
nundo_char_point(long struct)

Unsafe version of undo_char_point.

public static short
nundo_point(long struct)

Unsafe version of undo_point.

public static NkTextUndoRecord.Buffer
nundo_rec(long struct)

Unsafe version of undo_rec.

public static NkTextUndoRecord
nundo_rec(long struct, int index)

Unsafe version of undo_rec.

public short

Returns:

the value of the redo_char_point field.
redo_char_point
()

public short

Returns:

the value of the redo_point field.
redo_point
()

public int
sizeof()

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

Returns sizeof(struct).
public IntBuffer

Returns:

a IntBuffer view of the undo_char field.
undo_char
()

public int

Returns:

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

public short

Returns:

the value of the undo_char_point field.
undo_char_point
()

public short

Returns:

the value of the undo_point field.
undo_point
()

public NkTextUndoRecord.Buffer

Returns:

a NkTextUndoRecord.Buffer view of the undo_rec field.
undo_rec
()

public NkTextUndoRecord

Returns:

a NkTextUndoRecord view of the struct at the specified index of the undo_rec field.
undo_rec
(int index)

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.

REDO_CHAR_POINTback to summary
public static final int REDO_CHAR_POINT

The struct member offsets.

REDO_POINTback to summary
public static final int REDO_POINT

The struct member offsets.

SIZEOFback to summary
public static final int SIZEOF

The struct size in bytes.

UNDO_CHARback to summary
public static final int UNDO_CHAR

The struct member offsets.

UNDO_CHAR_POINTback to summary
public static final int UNDO_CHAR_POINT

The struct member offsets.

UNDO_POINTback to summary
public static final int UNDO_POINT

The struct member offsets.

UNDO_RECback to summary
public static final int UNDO_REC

The struct member offsets.

Constructor Detail

NkTextUndoStateback to summary
protected NkTextUndoState(long address, ByteBuffer container)
NkTextUndoStateback to summary
public NkTextUndoState(ByteBuffer container)

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

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

Returns a new NkTextUndoState instance for the specified memory address.

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

Create a NkTextUndoState.Buffer instance at the specified memory.

Parameters
address:long

the memory address

capacity:int

the buffer capacity

createSafeback to summary
public static NkTextUndoState createSafe(long address)

Like create, but returns null if address is NULL.

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

Like create, but returns null if address is NULL.

Annotations
@Nullable
nredo_char_pointback to summary
public static short nredo_char_point(long struct)

Unsafe version of redo_char_point.

nredo_pointback to summary
public static short nredo_point(long struct)

Unsafe version of redo_point.

nundo_charback to summary
public static IntBuffer nundo_char(long struct)

Unsafe version of undo_char.

nundo_charback to summary
public static int nundo_char(long struct, int index)

Unsafe version of undo_char.

nundo_char_pointback to summary
public static short nundo_char_point(long struct)

Unsafe version of undo_char_point.

nundo_pointback to summary
public static short nundo_point(long struct)

Unsafe version of undo_point.

nundo_recback to summary
public static NkTextUndoRecord.Buffer nundo_rec(long struct)

Unsafe version of undo_rec.

nundo_recback to summary
public static NkTextUndoRecord nundo_rec(long struct, int index)

Unsafe version of undo_rec.

redo_char_pointback to summary
public short redo_char_point()
Returns:short

the value of the redo_char_point field.

redo_pointback to summary
public short redo_point()
Returns:short

the value of the redo_point field.

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
undo_charback to summary
public IntBuffer undo_char()
Returns:IntBuffer

a IntBuffer view of the undo_char field.

Annotations
@NativeType:nk_rune[999]
undo_charback to summary
public int undo_char(int index)
Returns:int

the value at the specified index of the undo_char field.

Annotations
@NativeType:nk_rune
undo_char_pointback to summary
public short undo_char_point()
Returns:short

the value of the undo_char_point field.

undo_pointback to summary
public short undo_point()
Returns:short

the value of the undo_point field.

undo_recback to summary
public NkTextUndoRecord.Buffer undo_rec()
Returns:NkTextUndoRecord.Buffer

a NkTextUndoRecord.Buffer view of the undo_rec field.

Annotations
@NativeType:struct nk_text_undo_record[99]
undo_recback to summary
public NkTextUndoRecord undo_rec(int index)
Returns:NkTextUndoRecord

a NkTextUndoRecord view of the struct at the specified index of the undo_rec field.

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

public Class NkTextUndoState.Buffer

extends StructBuffer<NkTextUndoState, NkTextUndoState.Buffer>
Class Inheritance

An array of NkTextUndoState structs.

Field Summary

Modifier and TypeField and Description
private static final NkTextUndoState

Constructor Summary

AccessConstructor and Description
public
Buffer(ByteBuffer container)

Creates a new NkTextUndoState.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
protected NkTextUndoState
public short

Returns:

the value of the redo_char_point field.
redo_char_point
()

public short

Returns:

the value of the redo_point field.
redo_point
()

protected NkTextUndoState.Buffer
public IntBuffer

Returns:

a IntBuffer view of the undo_char field.
undo_char
()

public int

Returns:

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

public short

Returns:

the value of the undo_char_point field.
undo_char_point
()

public short

Returns:

the value of the undo_point field.
undo_point
()

public NkTextUndoRecord.Buffer

Returns:

a NkTextUndoRecord.Buffer view of the undo_rec field.
undo_rec
()

public NkTextUndoRecord

Returns:

a NkTextUndoRecord view of the struct at the specified index of the undo_rec field.
undo_rec
(int index)

Inherited from org.lwjgl.system.StructBuffer:
applyapplyforEachgetgetgetgetiteratorparallelStreamputputsizeofspliteratorstream

Field Detail

ELEMENT_FACTORYback to summary
private static final NkTextUndoState ELEMENT_FACTORY

Constructor Detail

Bufferback to summary
public Buffer(ByteBuffer container)

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

getElementFactoryback to summary
protected NkTextUndoState getElementFactory()

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

Annotations
@Override
redo_char_pointback to summary
public short redo_char_point()
Returns:short

the value of the redo_char_point field.

redo_pointback to summary
public short redo_point()
Returns:short

the value of the redo_point field.

selfback to summary
protected NkTextUndoState.Buffer self()

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

Annotations
@Override
undo_charback to summary
public IntBuffer undo_char()
Returns:IntBuffer

a IntBuffer view of the undo_char field.

Annotations
@NativeType:nk_rune[999]
undo_charback to summary
public int undo_char(int index)
Returns:int

the value at the specified index of the undo_char field.

Annotations
@NativeType:nk_rune
undo_char_pointback to summary
public short undo_char_point()
Returns:short

the value of the undo_char_point field.

undo_pointback to summary
public short undo_point()
Returns:short

the value of the undo_point field.

undo_recback to summary
public NkTextUndoRecord.Buffer undo_rec()
Returns:NkTextUndoRecord.Buffer

a NkTextUndoRecord.Buffer view of the undo_rec field.

Annotations
@NativeType:struct nk_text_undo_record[99]
undo_recback to summary
public NkTextUndoRecord undo_rec(int index)
Returns:NkTextUndoRecord

a NkTextUndoRecord view of the struct at the specified index of the undo_rec field.

Annotations
@NativeType:struct nk_text_undo_record