Class NkChartSlot

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

    public class NkChartSlot
    extends org.lwjgl.system.Struct

    Layout

    
     struct nk_chart_slot {
         enum nk_chart_type type;
         struct nk_color color;
         struct nk_color highlight;
         float min;
         float max;
         float range;
         int count;
         struct nk_vec2 last;
         int index;
     }
    • Nested Class Summary

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

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

      Fields 
      Modifier and Type Field Description
      static int ALIGNOF
      The struct alignment in bytes.
      static int COLOR
      COUNT
      HIGHLIGHT
      INDEX
      LAST
      MAX
      MIN
      RANGE
      The struct member offsets.
      static int SIZEOF
      The struct size in bytes.
      static int TYPE
      The struct member offsets.
      • Fields inherited from interface org.lwjgl.system.Pointer

        BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
    • Constructor Summary

      Constructors 
      Constructor Description
      NkChartSlot​(java.nio.ByteBuffer container)
      Creates a NkChartSlot instance at the current position of the specified ByteBuffer container.
    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.
      • TYPE, COLOR, HIGHLIGHT, MIN, MAX, RANGE, COUNT, LAST, INDEX

        The struct member offsets.
    • Constructor Detail

      • NkChartSlot

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

        public NkColor color()
        Returns a NkColor view of the color field.
      • highlight

        public NkColor highlight()
        Returns a NkColor view of the highlight field.
      • min

        public float min()
        Returns the value of the min field.
      • max

        public float max()
        Returns the value of the max field.
      • range

        public float range()
        Returns the value of the range field.
      • count

        public int count()
        Returns the value of the count field.
      • last

        public NkVec2 last()
        Returns a NkVec2 view of the last field.
      • index

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

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

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

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

        @Nullable
        public static NkChartSlot.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().
      • ncolor

        public static NkColor ncolor​(long struct)
        Unsafe version of color().
      • nhighlight

        public static NkColor nhighlight​(long struct)
        Unsafe version of highlight().
      • nmin

        public static float nmin​(long struct)
        Unsafe version of min().
      • nmax

        public static float nmax​(long struct)
        Unsafe version of max().
      • nrange

        public static float nrange​(long struct)
        Unsafe version of range().
      • ncount

        public static int ncount​(long struct)
        Unsafe version of count().
      • nlast

        public static NkVec2 nlast​(long struct)
        Unsafe version of last().
      • nindex

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