public class NkTextUndoState
extends org.lwjgl.system.Struct
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;
}| Modifier and Type | Class and Description |
|---|---|
static class |
NkTextUndoState.Buffer
An array of
NkTextUndoState structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
REDO_CHAR_POINT
The struct member offsets.
|
static int |
REDO_POINT
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
static int |
UNDO_CHAR
The struct member offsets.
|
static int |
UNDO_CHAR_POINT
The struct member offsets.
|
static int |
UNDO_POINT
The struct member offsets.
|
static int |
UNDO_REC
The struct member offsets.
|
| Constructor and Description |
|---|
NkTextUndoState(java.nio.ByteBuffer container)
Creates a
NkTextUndoState instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static NkTextUndoState |
create(long address)
Returns a new
NkTextUndoState instance for the specified memory address. |
static NkTextUndoState.Buffer |
create(long address,
int capacity)
Create a
NkTextUndoState.Buffer instance at the specified memory. |
static NkTextUndoState |
createSafe(long address)
|
static NkTextUndoState.Buffer |
createSafe(long address,
int capacity)
|
static short |
nredo_char_point(long struct)
Unsafe version of
redo_char_point(). |
static short |
nredo_point(long struct)
Unsafe version of
redo_point(). |
static short |
nundo_char_point(long struct)
Unsafe version of
undo_char_point(). |
static java.nio.IntBuffer |
nundo_char(long struct)
Unsafe version of
undo_char(). |
static int |
nundo_char(long struct,
int index)
Unsafe version of
undo_char. |
static short |
nundo_point(long struct)
Unsafe version of
undo_point(). |
static NkTextUndoRecord.Buffer |
nundo_rec(long struct)
Unsafe version of
undo_rec(). |
static NkTextUndoRecord |
nundo_rec(long struct,
int index)
Unsafe version of
undo_rec. |
short |
redo_char_point()
Returns the value of the
redo_char_point field. |
short |
redo_point()
Returns the value of the
redo_point field. |
int |
sizeof() |
short |
undo_char_point()
Returns the value of the
undo_char_point field. |
java.nio.IntBuffer |
undo_char()
Returns a
IntBuffer view of the undo_char field. |
int |
undo_char(int index)
Returns the value at the specified index of the
undo_char field. |
short |
undo_point()
Returns the value of the
undo_point field. |
NkTextUndoRecord.Buffer |
undo_rec()
Returns a
NkTextUndoRecord.Buffer view of the undo_rec field. |
NkTextUndoRecord |
undo_rec(int index)
Returns a
NkTextUndoRecord view of the struct at the specified index of the undo_rec field. |
public static final int SIZEOF
public static final int ALIGNOF
public static final int UNDO_REC
public static final int UNDO_CHAR
public static final int UNDO_POINT
public static final int REDO_POINT
public static final int UNDO_CHAR_POINT
public static final int REDO_CHAR_POINT
public NkTextUndoState(java.nio.ByteBuffer container)
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.
public int sizeof()
sizeof in class org.lwjgl.system.Structpublic NkTextUndoRecord.Buffer undo_rec()
NkTextUndoRecord.Buffer view of the undo_rec field.public NkTextUndoRecord undo_rec(int index)
NkTextUndoRecord view of the struct at the specified index of the undo_rec field.public java.nio.IntBuffer undo_char()
IntBuffer view of the undo_char field.public int undo_char(int index)
undo_char field.public short undo_point()
undo_point field.public short redo_point()
redo_point field.public short undo_char_point()
undo_char_point field.public short redo_char_point()
redo_char_point field.public static NkTextUndoState create(long address)
NkTextUndoState instance for the specified memory address.@Nullable public static NkTextUndoState createSafe(long address)
public static NkTextUndoState.Buffer create(long address, int capacity)
NkTextUndoState.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static NkTextUndoState.Buffer createSafe(long address, int capacity)
public static NkTextUndoRecord.Buffer nundo_rec(long struct)
undo_rec().public static NkTextUndoRecord nundo_rec(long struct, int index)
undo_rec.public static java.nio.IntBuffer nundo_char(long struct)
undo_char().public static int nundo_char(long struct,
int index)
undo_char.public static short nundo_point(long struct)
undo_point().public static short nredo_point(long struct)
redo_point().public static short nundo_char_point(long struct)
undo_char_point().public static short nredo_char_point(long struct)
redo_char_point().Copyright LWJGL. All Rights Reserved. License terms.