Package org.lwjgl.nuklear
Class NkTextUndoState
- All Implemented Interfaces:
Pointer
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/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 size 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 member offsets.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
-
Constructor Summary
ConstructorDescriptionNkTextUndoState
(ByteBuffer container) Creates aNkTextUndoState
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionstatic 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 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
short
int
sizeof()
Returnssizeof(struct)
.int
undo_char
(int index) short
short
undo_rec()
undo_rec
(int index) 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. -
UNDO_REC
public static final int UNDO_RECThe struct member offsets. -
UNDO_CHAR
public static final int UNDO_CHARThe struct member offsets. -
UNDO_POINT
public static final int UNDO_POINTThe struct member offsets. -
REDO_POINT
public static final int REDO_POINTThe struct member offsets. -
UNDO_CHAR_POINT
public static final int UNDO_CHAR_POINTThe struct member offsets. -
REDO_CHAR_POINT
public static final int REDO_CHAR_POINTThe struct member offsets.
-
-
Constructor Details
-
NkTextUndoState
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 Details
-
sizeof
public int sizeof()Description copied from class:Struct
Returnssizeof(struct)
.- Specified by:
sizeof
in classStruct<NkTextUndoState>
-
undo_rec
- Returns:
- a
NkTextUndoRecord
.Buffer view of theundo_rec
field.
-
undo_rec
- Returns:
- a
NkTextUndoRecord
view of the struct at the specified index of theundo_rec
field.
-
undo_char
- Returns:
- a
IntBuffer
view of theundo_char
field.
-
undo_char
public int undo_char(int index) - Returns:
- the value at the specified index of the
undo_char
field.
-
undo_point
public short undo_point()- Returns:
- the value of the
undo_point
field.
-
redo_point
public short redo_point()- Returns:
- the value of the
redo_point
field.
-
undo_char_point
public short undo_char_point()- Returns:
- the value of the
undo_char_point
field.
-
redo_char_point
public short redo_char_point()- Returns:
- the value of the
redo_char_point
field.
-
create
Returns a newNkTextUndoState
instance for the specified memory address. -
createSafe
-
create
Create aNkTextUndoState.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
-
nundo_rec
Unsafe version ofundo_rec()
. -
nundo_rec
Unsafe version ofundo_rec
. -
nundo_char
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()
.
-