Class NkTextUndoState.Buffer

    • Constructor Detail

      • Buffer

        public Buffer​(java.nio.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 Detail

      • undo_char

        public java.nio.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.