Class NkRowLayout

    • Nested Class Summary

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

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

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

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int columns()
      Returns the value of the columns field.
      static NkRowLayout create​(long address)
      Returns a new NkRowLayout instance for the specified memory address.
      static NkRowLayout.Buffer create​(long address, int capacity)
      Create a NkRowLayout.Buffer instance at the specified memory.
      static NkRowLayout createSafe​(long address)
      Like create, but returns null if address is NULL.
      static NkRowLayout.Buffer createSafe​(long address, int capacity)
      Like create, but returns null if address is NULL.
      float filled()
      Returns the value of the filled field.
      float height()
      Returns the value of the height field.
      int index()
      Returns the value of the index field.
      NkRect item()
      Returns a NkRect view of the item field.
      float item_height()
      Returns the value of the item_height field.
      float item_offset()
      Returns the value of the item_offset field.
      float item_width()
      Returns the value of the item_width field.
      float min_height()
      Returns the value of the min_height field.
      static int ncolumns​(long struct)
      Unsafe version of columns().
      static float nfilled​(long struct)
      Unsafe version of filled().
      static float nheight​(long struct)
      Unsafe version of height().
      static int nindex​(long struct)
      Unsafe version of index().
      static NkRect nitem​(long struct)
      Unsafe version of item().
      static float nitem_height​(long struct)
      Unsafe version of item_height().
      static float nitem_offset​(long struct)
      Unsafe version of item_offset().
      static float nitem_width​(long struct)
      Unsafe version of item_width().
      static float nmin_height​(long struct)
      Unsafe version of min_height().
      static java.nio.FloatBuffer nratio​(long struct, int capacity)
      Unsafe version of ratio.
      static java.nio.FloatBuffer ntemplates​(long struct)
      Unsafe version of templates().
      static float ntemplates​(long struct, int index)
      Unsafe version of templates.
      static int ntree_depth​(long struct)
      Unsafe version of tree_depth().
      static int ntype​(long struct)
      Unsafe version of type().
      java.nio.FloatBuffer ratio​(int capacity)
      Returns a FloatBuffer view of the data pointed to by the ratio field.
      int sizeof()  
      java.nio.FloatBuffer templates()
      Returns a FloatBuffer view of the templates field.
      float templates​(int index)
      Returns the value at the specified index of the templates field.
      int tree_depth()
      Returns the value of the tree_depth field.
      int type()
      Returns the value of the type field.
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
      • Methods inherited from class org.lwjgl.system.Pointer.Default

        address, equals, hashCode, toString
      • Methods inherited from class org.lwjgl.system.Struct

        clear, free, isNull
    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.
      • TYPE, INDEX, HEIGHT, MIN_HEIGHT, COLUMNS, RATIO, ITEM_WIDTH, ITEM_HEIGHT, ITEM_OFFSET, FILLED, ITEM, TREE_DEPTH, TEMPLATES

        The struct member offsets.
    • Constructor Detail

      • NkRowLayout

        public NkRowLayout​(java.nio.ByteBuffer container)
        Creates a NkRowLayout 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
      • type

        public int type()
        Returns the value of the type field.
      • index

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

        public float height()
        Returns the value of the height field.
      • min_height

        public float min_height()
        Returns the value of the min_height field.
      • columns

        public int columns()
        Returns the value of the columns field.
      • ratio

        public java.nio.FloatBuffer ratio​(int capacity)
        Returns a FloatBuffer view of the data pointed to by the ratio field.
        Parameters:
        capacity - the number of elements in the returned buffer
      • item_width

        public float item_width()
        Returns the value of the item_width field.
      • item_height

        public float item_height()
        Returns the value of the item_height field.
      • item_offset

        public float item_offset()
        Returns the value of the item_offset field.
      • filled

        public float filled()
        Returns the value of the filled field.
      • item

        public NkRect item()
        Returns a NkRect view of the item field.
      • tree_depth

        public int tree_depth()
        Returns the value of the tree_depth field.
      • templates

        public java.nio.FloatBuffer templates()
        Returns a FloatBuffer view of the templates field.
      • templates

        public float templates​(int index)
        Returns the value at the specified index of the templates field.
      • create

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

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

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

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

        public static int ntype​(long struct)
        Unsafe version of type().
      • nindex

        public static int nindex​(long struct)
        Unsafe version of index().
      • nheight

        public static float nheight​(long struct)
        Unsafe version of height().
      • nmin_height

        public static float nmin_height​(long struct)
        Unsafe version of min_height().
      • ncolumns

        public static int ncolumns​(long struct)
        Unsafe version of columns().
      • nratio

        public static java.nio.FloatBuffer nratio​(long struct,
                                                  int capacity)
        Unsafe version of ratio.
      • nitem_width

        public static float nitem_width​(long struct)
        Unsafe version of item_width().
      • nitem_height

        public static float nitem_height​(long struct)
        Unsafe version of item_height().
      • nitem_offset

        public static float nitem_offset​(long struct)
        Unsafe version of item_offset().
      • nfilled

        public static float nfilled​(long struct)
        Unsafe version of filled().
      • nitem

        public static NkRect nitem​(long struct)
        Unsafe version of item().
      • ntree_depth

        public static int ntree_depth​(long struct)
        Unsafe version of tree_depth().
      • ntemplates

        public static java.nio.FloatBuffer ntemplates​(long struct)
        Unsafe version of templates().
      • ntemplates

        public static float ntemplates​(long struct,
                                       int index)
        Unsafe version of templates.