Class BNDwidgetTheme.Buffer

    • Constructor Detail

      • Buffer

        public Buffer​(java.nio.ByteBuffer container)
        Creates a new BNDwidgetTheme.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 BNDwidgetTheme.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

      • outlineColor

        public NVGColor outlineColor()
        Returns a NVGColor view of the outlineColor field.
      • itemColor

        public NVGColor itemColor()
        Returns a NVGColor view of the itemColor field.
      • innerColor

        public NVGColor innerColor()
        Returns a NVGColor view of the innerColor field.
      • innerSelectedColor

        public NVGColor innerSelectedColor()
        Returns a NVGColor view of the innerSelectedColor field.
      • textColor

        public NVGColor textColor()
        Returns a NVGColor view of the textColor field.
      • textSelectedColor

        public NVGColor textSelectedColor()
        Returns a NVGColor view of the textSelectedColor field.
      • shadeTop

        public int shadeTop()
        Returns the value of the shadeTop field.
      • shadeDown

        public int shadeDown()
        Returns the value of the shadeDown field.
      • outlineColor

        public BNDwidgetTheme.Buffer outlineColor​(java.util.function.Consumer<NVGColor> consumer)
        Passes the outlineColor field to the specified Consumer.
      • itemColor

        public BNDwidgetTheme.Buffer itemColor​(java.util.function.Consumer<NVGColor> consumer)
        Passes the itemColor field to the specified Consumer.
      • innerColor

        public BNDwidgetTheme.Buffer innerColor​(java.util.function.Consumer<NVGColor> consumer)
        Passes the innerColor field to the specified Consumer.
      • innerSelectedColor

        public BNDwidgetTheme.Buffer innerSelectedColor​(java.util.function.Consumer<NVGColor> consumer)
        Passes the innerSelectedColor field to the specified Consumer.
      • textColor

        public BNDwidgetTheme.Buffer textColor​(java.util.function.Consumer<NVGColor> consumer)
        Passes the textColor field to the specified Consumer.
      • textSelectedColor

        public BNDwidgetTheme.Buffer textSelectedColor​(java.util.function.Consumer<NVGColor> consumer)
        Passes the textSelectedColor field to the specified Consumer.
      • shadeTop

        public BNDwidgetTheme.Buffer shadeTop​(int value)
        Sets the specified value to the shadeTop field.
      • shadeDown

        public BNDwidgetTheme.Buffer shadeDown​(int value)
        Sets the specified value to the shadeDown field.