Class NSVGPath

All Implemented Interfaces:
Pointer

public class NSVGPath extends Struct<NSVGPath>

 struct NSVGpath {
     float * pts;
     int npts;
     char closed;
     float bounds[4];
     {@link NSVGPath NSVGpath} * next;
 }
  • Field Details

    • SIZEOF

      public static final int SIZEOF
      The struct size in bytes.
    • ALIGNOF

      public static final int ALIGNOF
      The struct alignment in bytes.
    • PTS

      public static final int PTS
      The struct member offsets.
    • NPTS

      public static final int NPTS
      The struct member offsets.
    • CLOSED

      public static final int CLOSED
      The struct member offsets.
    • BOUNDS

      public static final int BOUNDS
      The struct member offsets.
    • NEXT

      public static final int NEXT
      The struct member offsets.
  • Constructor Details

    • NSVGPath

      public NSVGPath(ByteBuffer container)
      Creates a NSVGPath instance at the current position of the specified ByteBuffer container. Changes to the buffer's content will be visible to the struct instance and vice versa.

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

  • Method Details

    • sizeof

      public int sizeof()
      Description copied from class: Struct
      Returns sizeof(struct).
      Specified by:
      sizeof in class Struct<NSVGPath>
    • pts

      public FloatBuffer pts()
      Returns:
      a FloatBuffer view of the data pointed to by the pts field.
    • npts

      public int npts()
      Returns:
      the value of the npts field.
    • closed

      public byte closed()
      Returns:
      the value of the closed field.
    • bounds

      public FloatBuffer bounds()
      Returns:
      a FloatBuffer view of the bounds field.
    • bounds

      public float bounds(int index)
      Returns:
      the value at the specified index of the bounds field.
    • next

      public NSVGPath next()
      Returns:
      a NSVGPath view of the struct pointed to by the next field.
    • create

      public static NSVGPath create(long address)
      Returns a new NSVGPath instance for the specified memory address.
    • createSafe

      public static @Nullable NSVGPath createSafe(long address)
      Like create, but returns null if address is NULL.
    • create

      public static NSVGPath.Buffer create(long address, int capacity)
      Create a NSVGPath.Buffer instance at the specified memory.
      Parameters:
      address - the memory address
      capacity - the buffer capacity
    • createSafe

      public static @Nullable NSVGPath.Buffer createSafe(long address, int capacity)
      Like create, but returns null if address is NULL.
    • npts

      public static FloatBuffer npts(long struct)
      Unsafe version of pts.
    • nnpts

      public static int nnpts(long struct)
      Unsafe version of npts().
    • nclosed

      public static byte nclosed(long struct)
      Unsafe version of closed().
    • nbounds

      public static FloatBuffer nbounds(long struct)
      Unsafe version of bounds().
    • nbounds

      public static float nbounds(long struct, int index)
      Unsafe version of bounds.
    • nnext

      public static NSVGPath nnext(long struct)
      Unsafe version of next().