Package org.lwjgl.nuklear
Class NkTextUndoRecord
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.nuklear.NkTextUndoRecord
-
- All Implemented Interfaces:
org.lwjgl.system.Pointer
public class NkTextUndoRecord extends org.lwjgl.system.Struct
Layout
struct nk_text_undo_record { int where; short insert_length; short delete_length; short char_storage; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
NkTextUndoRecord.Buffer
An array ofNkTextUndoRecord
structs.
-
Field Summary
Fields Modifier and Type Field Description static int
ALIGNOF
The struct alignment in bytes.static int
CHAR_STORAGE
DELETE_LENGTH
INSERT_LENGTHThe struct member offsets.static int
SIZEOF
The struct size in bytes.static int
WHERE
The struct member offsets.
-
Constructor Summary
Constructors Constructor Description NkTextUndoRecord(java.nio.ByteBuffer container)
Creates aNkTextUndoRecord
instance at the current position of the specifiedByteBuffer
container.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description short
char_storage()
Returns the value of thechar_storage
field.static NkTextUndoRecord
create(long address)
Returns a newNkTextUndoRecord
instance for the specified memory address.static NkTextUndoRecord.Buffer
create(long address, int capacity)
Create aNkTextUndoRecord.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 thedelete_length
field.short
insert_length()
Returns the value of theinsert_length
field.static short
nchar_storage(long struct)
Unsafe version ofchar_storage()
.static short
ndelete_length(long struct)
Unsafe version ofdelete_length()
.static short
ninsert_length(long struct)
Unsafe version ofinsert_length()
.static int
nwhere(long struct)
Unsafe version ofwhere()
.int
sizeof()
int
where()
Returns the value of thewhere
field.
-
-
-
Constructor Detail
-
NkTextUndoRecord
public NkTextUndoRecord(java.nio.ByteBuffer container)
Creates aNkTextUndoRecord
instance at the current position of the specifiedByteBuffer
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
-
sizeof
public int sizeof()
- Specified by:
sizeof
in classorg.lwjgl.system.Struct
-
where
public int where()
Returns the value of thewhere
field.
-
insert_length
public short insert_length()
Returns the value of theinsert_length
field.
-
delete_length
public short delete_length()
Returns the value of thedelete_length
field.
-
char_storage
public short char_storage()
Returns the value of thechar_storage
field.
-
create
public static NkTextUndoRecord create(long address)
Returns a newNkTextUndoRecord
instance for the specified memory address.
-
createSafe
@Nullable public static NkTextUndoRecord createSafe(long address)
-
create
public static NkTextUndoRecord.Buffer create(long address, int capacity)
Create aNkTextUndoRecord.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
@Nullable public static NkTextUndoRecord.Buffer createSafe(long address, int capacity)
-
nwhere
public static int nwhere(long struct)
Unsafe version ofwhere()
.
-
ninsert_length
public static short ninsert_length(long struct)
Unsafe version ofinsert_length()
.
-
ndelete_length
public static short ndelete_length(long struct)
Unsafe version ofdelete_length()
.
-
nchar_storage
public static short nchar_storage(long struct)
Unsafe version ofchar_storage()
.
-
-