Class hb_raster_extents_t.Buffer

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

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

    • Buffer

      public Buffer(ByteBuffer container)
      Creates a new hb_raster_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_raster_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_origin

      public int x_origin()
      Returns:
      the value of the x_origin field.
    • y_origin

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

      @NativeType("unsigned int") public int width()
      Returns:
      the value of the width field.
    • height

      @NativeType("unsigned int") public int height()
      Returns:
      the value of the height field.
    • stride

      @NativeType("unsigned int") public int stride()
      Returns:
      the value of the stride field.
    • x_origin

      public hb_raster_extents_t.Buffer x_origin(int value)
      Sets the specified value to the x_origin field.
    • y_origin

      public hb_raster_extents_t.Buffer y_origin(int value)
      Sets the specified value to the y_origin field.
    • width

      public hb_raster_extents_t.Buffer width(@NativeType("unsigned int") int value)
      Sets the specified value to the width field.
    • height

      public hb_raster_extents_t.Buffer height(@NativeType("unsigned int") int value)
      Sets the specified value to the height field.
    • stride

      public hb_raster_extents_t.Buffer stride(@NativeType("unsigned int") int value)
      Sets the specified value to the stride field.