Class NkStyleCombo.Buffer

    • Constructor Detail

      • Buffer

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

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

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

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

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

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

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

        public int sym_normal()
        Returns the value of the sym_normal field.
      • sym_hover

        public int sym_hover()
        Returns the value of the sym_hover field.
      • sym_active

        public int sym_active()
        Returns the value of the sym_active field.
      • border

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

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

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

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

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

        public NkStyleCombo.Buffer normal​(java.util.function.Consumer<NkStyleItem> consumer)
        Passes the normal field to the specified Consumer.
      • active

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

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

        public NkStyleCombo.Buffer label_normal​(java.util.function.Consumer<NkColor> consumer)
        Passes the label_normal field to the specified Consumer.
      • label_hover

        public NkStyleCombo.Buffer label_hover​(java.util.function.Consumer<NkColor> consumer)
        Passes the label_hover field to the specified Consumer.
      • label_active

        public NkStyleCombo.Buffer label_active​(java.util.function.Consumer<NkColor> consumer)
        Passes the label_active field to the specified Consumer.
      • symbol_normal

        public NkStyleCombo.Buffer symbol_normal​(java.util.function.Consumer<NkColor> consumer)
        Passes the symbol_normal field to the specified Consumer.
      • symbol_hover

        public NkStyleCombo.Buffer symbol_hover​(java.util.function.Consumer<NkColor> consumer)
        Passes the symbol_hover field to the specified Consumer.
      • symbol_active

        public NkStyleCombo.Buffer symbol_active​(java.util.function.Consumer<NkColor> consumer)
        Passes the symbol_active field to the specified Consumer.
      • sym_normal

        public NkStyleCombo.Buffer sym_normal​(int value)
        Sets the specified value to the sym_normal field.
      • sym_hover

        public NkStyleCombo.Buffer sym_hover​(int value)
        Sets the specified value to the sym_hover field.
      • sym_active

        public NkStyleCombo.Buffer sym_active​(int value)
        Sets the specified value to the sym_active field.
      • border

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

        public NkStyleCombo.Buffer rounding​(float value)
        Sets the specified value to the rounding field.
      • content_padding

        public NkStyleCombo.Buffer content_padding​(java.util.function.Consumer<NkVec2> consumer)
        Passes the content_padding field to the specified Consumer.
      • button_padding

        public NkStyleCombo.Buffer button_padding​(java.util.function.Consumer<NkVec2> consumer)
        Passes the button_padding field to the specified Consumer.
      • spacing

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