Class NkStyleChart.Buffer

    • Constructor Detail

      • Buffer

        public Buffer​(java.nio.ByteBuffer container)
        Creates a new NkStyleChart.Buffer instance backed by the specified container. Changes to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values will be independent. The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided by NkStyleChart.SIZEOF, and its mark will be undefined.

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

      • Buffer

        public Buffer​(long address,
                      int cap)
    • Method Detail

      • border_color

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

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

        public NkColor color()
        Returns a NkColor view of the color field.
      • 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.
      • background

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

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

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

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

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

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

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