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.StructLayout
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 classNkTextUndoRecord.BufferAn array ofNkTextUndoRecordstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intCHAR_STORAGE
DELETE_LENGTH
INSERT_LENGTHThe struct member offsets.static intSIZEOFThe struct size in bytes.static intWHEREThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description NkTextUndoRecord(java.nio.ByteBuffer container)Creates aNkTextUndoRecordinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description shortchar_storage()static 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 NkTextUndoRecordcreateSafe(long address)static NkTextUndoRecord.BuffercreateSafe(long address, int capacity)shortdelete_length()shortinsert_length()static 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()intwhere()
-
-
-
Constructor Detail
-
NkTextUndoRecord
public NkTextUndoRecord(java.nio.ByteBuffer container)
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 Detail
-
sizeof
public int sizeof()
- Specified by:
sizeofin classorg.lwjgl.system.Struct
-
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
public static NkTextUndoRecord create(long address)
Returns a newNkTextUndoRecordinstance 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.Bufferinstance 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().
-
-