Package org.lwjgl.nuklear
Class NkTextUndoRecord
- All Implemented Interfaces:
Pointer
Layout
struct nk_text_undo_record {
int where;
short insert_length;
short delete_length;
short char_storage;
}
-
Nested Class Summary
Nested classes/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidation
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
The struct alignment in bytes.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct size in bytes.static final int
The struct member offsets.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
-
Constructor Summary
ConstructorDescriptionNkTextUndoRecord
(ByteBuffer container) Creates aNkTextUndoRecord
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionshort
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
short
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()
Returnssizeof(struct)
.int
where()
Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
-
Field Details
-
SIZEOF
public static final int SIZEOFThe struct size in bytes. -
ALIGNOF
public static final int ALIGNOFThe struct alignment in bytes. -
WHERE
public static final int WHEREThe struct member offsets. -
INSERT_LENGTH
public static final int INSERT_LENGTHThe struct member offsets. -
DELETE_LENGTH
public static final int DELETE_LENGTHThe struct member offsets. -
CHAR_STORAGE
public static final int CHAR_STORAGEThe struct member offsets.
-
-
Constructor Details
-
NkTextUndoRecord
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 Details
-
sizeof
public int sizeof()Description copied from class:Struct
Returnssizeof(struct)
.- Specified by:
sizeof
in classStruct<NkTextUndoRecord>
-
where
public int where()- Returns:
- the value of the
where
field.
-
insert_length
public short insert_length()- Returns:
- the value of the
insert_length
field.
-
delete_length
public short delete_length()- Returns:
- the value of the
delete_length
field.
-
char_storage
public short char_storage()- Returns:
- the value of the
char_storage
field.
-
create
Returns a newNkTextUndoRecord
instance for the specified memory address. -
createSafe
-
create
Create aNkTextUndoRecord.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
-
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()
.
-