Class NkStyleChart

    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.
      • BACKGROUND, BORDER_COLOR, SELECTED_COLOR, COLOR, BORDER, ROUNDING, PADDING

        The struct member offsets.
    • Constructor Detail

      • NkStyleChart

        public NkStyleChart​(java.nio.ByteBuffer container)
        Creates a NkStyleChart 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()
        Description copied from class: Struct
        Returns sizeof(struct).
        Specified by:
        sizeof in class Struct
      • background

        public NkStyleChart background​(java.util.function.Consumer<NkStyleItem> consumer)
        Passes the background field to the specified Consumer.
      • border_color

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

        public NkStyleChart border_color​(java.util.function.Consumer<NkColor> consumer)
        Passes the border_color field to the specified Consumer.
      • selected_color

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

        public NkStyleChart selected_color​(java.util.function.Consumer<NkColor> consumer)
        Passes the selected_color field to the specified Consumer.
      • color

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

        public NkStyleChart color​(java.util.function.Consumer<NkColor> consumer)
        Passes the color field to the specified Consumer.
      • border

        public float border()
        Returns the value of the border field.
      • rounding

        public float rounding()
        Returns the value of the rounding field.
      • padding

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

        public NkStyleChart padding​(java.util.function.Consumer<NkVec2> consumer)
        Passes the padding field to the specified Consumer.
      • selected_color

        public NkStyleChart selected_color​(NkColor value)
        Copies the specified NkColor to the selected_color field.
      • border

        public NkStyleChart border​(float value)
        Sets the specified value to the border field.
      • rounding

        public NkStyleChart rounding​(float value)
        Sets the specified value to the rounding field.
      • set

        public NkStyleChart set​(NkStyleChart src)
        Copies the specified struct data to this struct.
        Parameters:
        src - the source struct
        Returns:
        this struct
      • create

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

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

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

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

        public static NkStyleChart callocStack​(MemoryStack stack)
        Returns a new NkStyleChart instance allocated on the specified MemoryStack and initializes all its bits to zero.
        Parameters:
        stack - the stack from which to allocate
      • callocStack

        public static NkStyleChart.Buffer callocStack​(int capacity)
        Returns a new NkStyleChart.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.
        Parameters:
        capacity - the buffer capacity
      • callocStack

        public static NkStyleChart.Buffer callocStack​(int capacity,
                                                      MemoryStack stack)
        Returns a new NkStyleChart.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.
        Parameters:
        stack - the stack from which to allocate
        capacity - the buffer capacity
      • ncolor

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

        public static float nborder​(long struct)
        Unsafe version of border().
      • nrounding

        public static float nrounding​(long struct)
        Unsafe version of rounding().
      • npadding

        public static NkVec2 npadding​(long struct)
        Unsafe version of padding().
      • nbackground

        public static void nbackground​(long struct,
                                       NkStyleItem value)
        Unsafe version of background.
      • nborder_color

        public static void nborder_color​(long struct,
                                         NkColor value)
        Unsafe version of border_color.
      • nselected_color

        public static void nselected_color​(long struct,
                                           NkColor value)
        Unsafe version of selected_color.
      • ncolor

        public static void ncolor​(long struct,
                                  NkColor value)
        Unsafe version of color.
      • nborder

        public static void nborder​(long struct,
                                   float value)
        Unsafe version of border.
      • nrounding

        public static void nrounding​(long struct,
                                     float value)
        Unsafe version of rounding.
      • npadding

        public static void npadding​(long struct,
                                    NkVec2 value)
        Unsafe version of padding.