Package org.lwjgl.nuklear
Class NkTextUndoState
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.nuklear.NkTextUndoState
-
- All Implemented Interfaces:
org.lwjgl.system.Pointer
public class NkTextUndoState extends org.lwjgl.system.StructLayout
struct nk_text_undo_state {struct nk_text_undo_recordundo_rec[99]; nk_rune undo_char[999]; short undo_point; short redo_point; short undo_char_point; short redo_char_point; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classNkTextUndoState.BufferAn array ofNkTextUndoStatestructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intREDO_CHAR_POINT
REDO_POINTThe struct member offsets.static intSIZEOFThe struct size in bytes.static intUNDO_CHAR
UNDO_CHAR_POINT
UNDO_POINT
UNDO_RECThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description NkTextUndoState(java.nio.ByteBuffer container)Creates aNkTextUndoStateinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static NkTextUndoStatecreate(long address)Returns a newNkTextUndoStateinstance for the specified memory address.static NkTextUndoState.Buffercreate(long address, int capacity)Create aNkTextUndoState.Bufferinstance at the specified memory.static NkTextUndoStatecreateSafe(long address)static NkTextUndoState.BuffercreateSafe(long address, int capacity)static shortnredo_char_point(long struct)Unsafe version ofredo_char_point().static shortnredo_point(long struct)Unsafe version ofredo_point().static java.nio.IntBuffernundo_char(long struct)Unsafe version ofundo_char().static intnundo_char(long struct, int index)Unsafe version ofundo_char.static shortnundo_char_point(long struct)Unsafe version ofundo_char_point().static shortnundo_point(long struct)Unsafe version ofundo_point().static NkTextUndoRecord.Buffernundo_rec(long struct)Unsafe version ofundo_rec().static NkTextUndoRecordnundo_rec(long struct, int index)Unsafe version ofundo_rec.shortredo_char_point()shortredo_point()intsizeof()java.nio.IntBufferundo_char()intundo_char(int index)shortundo_char_point()shortundo_point()NkTextUndoRecord.Bufferundo_rec()NkTextUndoRecordundo_rec(int index)
-
-
-
Constructor Detail
-
NkTextUndoState
public NkTextUndoState(java.nio.ByteBuffer container)
Creates aNkTextUndoStateinstance 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
-
undo_rec
public NkTextUndoRecord.Buffer undo_rec()
- Returns:
- a
NkTextUndoRecord.Buffer view of theundo_recfield.
-
undo_rec
public NkTextUndoRecord undo_rec(int index)
- Returns:
- a
NkTextUndoRecordview of the struct at the specified index of theundo_recfield.
-
undo_char
public java.nio.IntBuffer undo_char()
- Returns:
- a
IntBufferview of theundo_charfield.
-
undo_char
public int undo_char(int index)
- Returns:
- the value at the specified index of the
undo_charfield.
-
undo_point
public short undo_point()
- Returns:
- the value of the
undo_pointfield.
-
redo_point
public short redo_point()
- Returns:
- the value of the
redo_pointfield.
-
undo_char_point
public short undo_char_point()
- Returns:
- the value of the
undo_char_pointfield.
-
redo_char_point
public short redo_char_point()
- Returns:
- the value of the
redo_char_pointfield.
-
create
public static NkTextUndoState create(long address)
Returns a newNkTextUndoStateinstance for the specified memory address.
-
createSafe
@Nullable public static NkTextUndoState createSafe(long address)
-
create
public static NkTextUndoState.Buffer create(long address, int capacity)
Create aNkTextUndoState.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static NkTextUndoState.Buffer createSafe(long address, int capacity)
-
nundo_rec
public static NkTextUndoRecord.Buffer nundo_rec(long struct)
Unsafe version ofundo_rec().
-
nundo_rec
public static NkTextUndoRecord nundo_rec(long struct, int index)
Unsafe version ofundo_rec.
-
nundo_char
public static java.nio.IntBuffer nundo_char(long struct)
Unsafe version ofundo_char().
-
nundo_char
public static int nundo_char(long struct, int index)Unsafe version ofundo_char.
-
nundo_point
public static short nundo_point(long struct)
Unsafe version ofundo_point().
-
nredo_point
public static short nredo_point(long struct)
Unsafe version ofredo_point().
-
nundo_char_point
public static short nundo_char_point(long struct)
Unsafe version ofundo_char_point().
-
nredo_char_point
public static short nredo_char_point(long struct)
Unsafe version ofredo_char_point().
-
-