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.Struct
Layout
struct nk_text_undo_state {
struct nk_text_undo_record
undo_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 class
NkTextUndoState.Buffer
An array ofNkTextUndoState
structs.
-
Field Summary
Fields Modifier and Type Field Description static int
ALIGNOF
The struct alignment in bytes.static int
REDO_CHAR_POINT
REDO_POINTThe struct member offsets.static int
SIZEOF
The struct size in bytes.static int
UNDO_CHAR
UNDO_CHAR_POINT
UNDO_POINT
UNDO_RECThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description NkTextUndoState(java.nio.ByteBuffer container)
Creates aNkTextUndoState
instance at the current position of the specifiedByteBuffer
container.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static NkTextUndoState
create(long address)
Returns a newNkTextUndoState
instance for the specified memory address.static NkTextUndoState.Buffer
create(long address, int capacity)
Create aNkTextUndoState.Buffer
instance at the specified memory.static NkTextUndoState
createSafe(long address)
static NkTextUndoState.Buffer
createSafe(long address, int capacity)
static short
nredo_char_point(long struct)
Unsafe version ofredo_char_point()
.static short
nredo_point(long struct)
Unsafe version ofredo_point()
.static java.nio.IntBuffer
nundo_char(long struct)
Unsafe version ofundo_char()
.static int
nundo_char(long struct, int index)
Unsafe version ofundo_char
.static short
nundo_char_point(long struct)
Unsafe version ofundo_char_point()
.static short
nundo_point(long struct)
Unsafe version ofundo_point()
.static NkTextUndoRecord.Buffer
nundo_rec(long struct)
Unsafe version ofundo_rec()
.static NkTextUndoRecord
nundo_rec(long struct, int index)
Unsafe version ofundo_rec
.short
redo_char_point()
Returns the value of theredo_char_point
field.short
redo_point()
Returns the value of theredo_point
field.int
sizeof()
java.nio.IntBuffer
undo_char()
Returns aIntBuffer
view of theundo_char
field.int
undo_char(int index)
Returns the value at the specified index of theundo_char
field.short
undo_char_point()
Returns the value of theundo_char_point
field.short
undo_point()
Returns the value of theundo_point
field.NkTextUndoRecord.Buffer
undo_rec()
Returns aNkTextUndoRecord
.Buffer view of theundo_rec
field.NkTextUndoRecord
undo_rec(int index)
Returns aNkTextUndoRecord
view of the struct at the specified index of theundo_rec
field.
-
-
-
Constructor Detail
-
NkTextUndoState
public NkTextUndoState(java.nio.ByteBuffer container)
Creates aNkTextUndoState
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
-
undo_rec
public NkTextUndoRecord.Buffer undo_rec()
Returns aNkTextUndoRecord
.Buffer view of theundo_rec
field.
-
undo_rec
public NkTextUndoRecord undo_rec(int index)
Returns aNkTextUndoRecord
view of the struct at the specified index of theundo_rec
field.
-
undo_char
public java.nio.IntBuffer undo_char()
Returns aIntBuffer
view of theundo_char
field.
-
undo_char
public int undo_char(int index)
Returns the value at the specified index of theundo_char
field.
-
undo_point
public short undo_point()
Returns the value of theundo_point
field.
-
redo_point
public short redo_point()
Returns the value of theredo_point
field.
-
undo_char_point
public short undo_char_point()
Returns the value of theundo_char_point
field.
-
redo_char_point
public short redo_char_point()
Returns the value of theredo_char_point
field.
-
create
public static NkTextUndoState create(long address)
Returns a newNkTextUndoState
instance 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.Buffer
instance 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()
.
-
-