Class NkTextUndoState.Buffer

All Implemented Interfaces:
Iterable<NkTextUndoState>, Pointer
Enclosing class:
NkTextUndoState

public static class NkTextUndoState.Buffer extends StructBuffer<NkTextUndoState,NkTextUndoState.Buffer>
An array of NkTextUndoState structs.
  • Constructor Details

    • Buffer

      public Buffer(ByteBuffer container)
      Creates a new NkTextUndoState.Buffer instance backed by the specified container.

      Changes to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values will be independent. The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided by NkTextUndoState.SIZEOF, and its mark will be undefined.

      The created buffer instance holds a strong reference to the container object.

    • Buffer

      public Buffer(long address, int cap)
  • Method Details

    • undo_rec

      public NkTextUndoRecord.Buffer undo_rec()
      Returns:
      a NkTextUndoRecord.Buffer view of the undo_rec field.
    • undo_rec

      public NkTextUndoRecord undo_rec(int index)
      Returns:
      a NkTextUndoRecord view of the struct at the specified index of the undo_rec field.
    • undo_char

      public IntBuffer undo_char()
      Returns:
      a IntBuffer view of the undo_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.