Class FT_Vector.Buffer

All Implemented Interfaces:
AutoCloseable, Iterable<FT_Vector>, NativeResource, Pointer
Enclosing class:
FT_Vector

public static class FT_Vector.Buffer extends StructBuffer<FT_Vector,FT_Vector.Buffer> implements NativeResource
An array of FT_Vector structs.
  • Constructor Details Link icon

    • Buffer Link icon

      public Buffer(ByteBuffer container)
      Creates a new FT_Vector.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 FT_Vector.SIZEOF, and its mark will be undefined.

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

    • Buffer Link icon

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

    • x Link icon

      public long x()
      Returns:
      the value of the x field.
    • y Link icon

      public long y()
      Returns:
      the value of the y field.
    • x Link icon

      public FT_Vector.Buffer x(long value)
      Sets the specified value to the x field.
    • y Link icon

      public FT_Vector.Buffer y(long value)
      Sets the specified value to the y field.