Package org.lwjgl.nuklear
Class NkTextUndoState
- All Implemented Interfaces:
Pointer
struct nk_text_undo_state {
{@link NkTextUndoRecord 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 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 size in bytes.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.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
ConstructorsConstructorDescriptionNkTextUndoState(ByteBuffer container) Creates aNkTextUndoStateinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic 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 @Nullable NkTextUndoStatecreateSafe(long address) static @Nullable 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 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.shortshortintsizeof()Returnssizeof(struct).intundo_char(int index) shortshortundo_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 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 Details
-
sizeof
public int sizeof()Description copied from class:StructReturnssizeof(struct).- Specified by:
sizeofin classStruct<NkTextUndoState>
-
undo_rec
- Returns:
- a
NkTextUndoRecord.Buffer view of theundo_recfield.
-
undo_rec
- Returns:
- a
NkTextUndoRecordview of the struct at the specified index of theundo_recfield.
-
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
Returns a newNkTextUndoStateinstance for the specified memory address. -
createSafe
-
create
Create aNkTextUndoState.Bufferinstance 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().
-