Package org.lwjgl.stb

Class STBRPNode

  • All Implemented Interfaces:
    org.lwjgl.system.Pointer


    public class STBRPNode
    extends org.lwjgl.system.Struct
    The opaque stbrp_node struct.

    Layout

     struct stbrp_node {
         stbrp_coord x;
         stbrp_coord y;
         stbrp_node * next;
     }
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class and Description
      static class  STBRPNode.Buffer
      An array of STBRPNode structs.
      • Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer

        org.lwjgl.system.Pointer.Default
    • Field Summary

      Fields 
      Modifier and Type Field and Description
      static int SIZEOF
      The struct size in bytes.
      • Fields inherited from interface org.lwjgl.system.Pointer

        POINTER_SHIFT, POINTER_SIZE
    • Constructor Summary

      Constructors 
      Constructor and Description
      STBRPNode(java.nio.ByteBuffer container)
      Creates a STBRPNode instance at the current position of the specified ByteBuffer container.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      static STBRPNode create(long address)
      Returns a new STBRPNode instance for the specified memory address.
      static STBRPNode.Buffer create(long address, int capacity)
      Create a STBRPNode.Buffer instance at the specified memory.
      static STBRPNode createSafe(long address)
      Like create, but returns null if address is NULL.
      static STBRPNode.Buffer createSafe(long address, int capacity)
      Like create, but returns null if address is NULL.
      STBRPNode next()
      Returns a STBRPNode view of the struct pointed to by the next field.
      int sizeof() 
      short x()
      Returns the value of the x field.
      short y()
      Returns the value of the y field.
      • Methods inherited from class org.lwjgl.system.Struct

        clear, free, isNull
      • Methods inherited from class org.lwjgl.system.Pointer.Default

        address, equals, hashCode, toString
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Field Detail

      • SIZEOF

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

      • STBRPNode

        public STBRPNode(java.nio.ByteBuffer container)
        Creates a STBRPNode 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 Detail

      • sizeof

        public int sizeof()
        Specified by:
        sizeof in class org.lwjgl.system.Struct
      • x

        public short x()
        Returns the value of the x field.
      • y

        public short y()
        Returns the value of the y field.
      • next

        @Nullable
        public STBRPNode next()
        Returns a STBRPNode view of the struct pointed to by the next field.
      • create

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

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

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

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