Class hb_glyph_extents_t.Buffer

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

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

    • Buffer

      public Buffer(ByteBuffer container)
      Creates a new hb_glyph_extents_t.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 hb_glyph_extents_t.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

    • x_bearing

      public int x_bearing()
      Returns:
      the value of the x_bearing field.
    • y_bearing

      public int y_bearing()
      Returns:
      the value of the y_bearing field.
    • width

      public int width()
      Returns:
      the value of the width field.
    • height

      public int height()
      Returns:
      the value of the height field.
    • x_bearing

      public hb_glyph_extents_t.Buffer x_bearing(int value)
      Sets the specified value to the x_bearing field.
    • y_bearing

      public hb_glyph_extents_t.Buffer y_bearing(int value)
      Sets the specified value to the y_bearing field.
    • width

      public hb_glyph_extents_t.Buffer width(int value)
      Sets the specified value to the width field.
    • height

      public hb_glyph_extents_t.Buffer height(int value)
      Sets the specified value to the height field.