public class NkTextUndoRecord
extends org.lwjgl.system.Struct
struct nk_text_undo_record {
int where;
short insert_length;
short delete_length;
short char_storage;
}| Modifier and Type | Class and Description |
|---|---|
static class |
NkTextUndoRecord.Buffer
An array of
NkTextUndoRecord structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
CHAR_STORAGE
The struct member offsets.
|
static int |
DELETE_LENGTH
The struct member offsets.
|
static int |
INSERT_LENGTH
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
static int |
WHERE
The struct member offsets.
|
| Constructor and Description |
|---|
NkTextUndoRecord(java.nio.ByteBuffer container)
Creates a
NkTextUndoRecord instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
short |
char_storage()
Returns the value of the
char_storage field. |
static NkTextUndoRecord |
create(long address)
Returns a new
NkTextUndoRecord instance for the specified memory address. |
static NkTextUndoRecord.Buffer |
create(long address,
int capacity)
Create a
NkTextUndoRecord.Buffer instance at the specified memory. |
static NkTextUndoRecord |
createSafe(long address)
|
static NkTextUndoRecord.Buffer |
createSafe(long address,
int capacity)
|
short |
delete_length()
Returns the value of the
delete_length field. |
short |
insert_length()
Returns the value of the
insert_length field. |
static short |
nchar_storage(long struct)
Unsafe version of
char_storage(). |
static short |
ndelete_length(long struct)
Unsafe version of
delete_length(). |
static short |
ninsert_length(long struct)
Unsafe version of
insert_length(). |
static int |
nwhere(long struct)
Unsafe version of
where(). |
int |
sizeof() |
int |
where()
Returns the value of the
where field. |
public static final int SIZEOF
public static final int ALIGNOF
public static final int WHERE
public static final int INSERT_LENGTH
public static final int DELETE_LENGTH
public static final int CHAR_STORAGE
public NkTextUndoRecord(java.nio.ByteBuffer container)
NkTextUndoRecord 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 int where()
where field.public short insert_length()
insert_length field.public short delete_length()
delete_length field.public short char_storage()
char_storage field.public static NkTextUndoRecord create(long address)
NkTextUndoRecord instance for the specified memory address.@Nullable public static NkTextUndoRecord createSafe(long address)
public static NkTextUndoRecord.Buffer create(long address, int capacity)
NkTextUndoRecord.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static NkTextUndoRecord.Buffer createSafe(long address, int capacity)
public static int nwhere(long struct)
where().public static short ninsert_length(long struct)
insert_length().public static short ndelete_length(long struct)
delete_length().public static short nchar_storage(long struct)
char_storage().Copyright LWJGL. All Rights Reserved. License terms.