Package org.lwjgl.nuklear
Class NkTextUndoRecord
- All Implemented Interfaces:
Pointer
struct nk_text_undo_record {
int where;
short insert_length;
short delete_length;
short char_storage;
}-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe struct alignment in bytes.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct size in bytes.static final intThe struct member offsets.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionNkTextUndoRecord(ByteBuffer container) Creates aNkTextUndoRecordinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionshortstatic NkTextUndoRecordcreate(long address) Returns a newNkTextUndoRecordinstance for the specified memory address.static NkTextUndoRecord.Buffercreate(long address, int capacity) Create aNkTextUndoRecord.Bufferinstance at the specified memory.static @Nullable NkTextUndoRecordcreateSafe(long address) static @Nullable NkTextUndoRecord.BuffercreateSafe(long address, int capacity) shortshortstatic shortnchar_storage(long struct) Unsafe version ofchar_storage().static shortndelete_length(long struct) Unsafe version ofdelete_length().static shortninsert_length(long struct) Unsafe version ofinsert_length().static intnwhere(long struct) Unsafe version ofwhere().intsizeof()Returnssizeof(struct).intwhere()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 aNkTextUndoRecordinstance at the current position of the specifiedByteBuffercontainer. 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:StructReturnssizeof(struct).- Specified by:
sizeofin classStruct<NkTextUndoRecord>
-
where
public int where()- Returns:
- the value of the
wherefield.
-
insert_length
public short insert_length()- Returns:
- the value of the
insert_lengthfield.
-
delete_length
public short delete_length()- Returns:
- the value of the
delete_lengthfield.
-
char_storage
public short char_storage()- Returns:
- the value of the
char_storagefield.
-
create
Returns a newNkTextUndoRecordinstance for the specified memory address. -
createSafe
-
create
Create aNkTextUndoRecord.Bufferinstance 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().
-