Class NkStyleWindow.Buffer

    • Constructor Detail

      • Buffer

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

      • fixed_background

        public NkStyleItem fixed_background()
        Returns a NkStyleItem view of the fixed_background field.
      • fixed_background

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

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

        public NkStyleWindow.Buffer background​(java.util.function.Consumer<NkColor> 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 NkStyleWindow.Buffer border_color​(java.util.function.Consumer<NkColor> consumer)
        Passes the border_color field to the specified Consumer.
      • popup_border_color

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

        public NkStyleWindow.Buffer popup_border_color​(java.util.function.Consumer<NkColor> consumer)
        Passes the popup_border_color field to the specified Consumer.
      • combo_border_color

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

        public NkStyleWindow.Buffer combo_border_color​(java.util.function.Consumer<NkColor> consumer)
        Passes the combo_border_color field to the specified Consumer.
      • contextual_border_color

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

        public NkStyleWindow.Buffer contextual_border_color​(java.util.function.Consumer<NkColor> consumer)
        Passes the contextual_border_color field to the specified Consumer.
      • menu_border_color

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

        public NkStyleWindow.Buffer menu_border_color​(java.util.function.Consumer<NkColor> consumer)
        Passes the menu_border_color field to the specified Consumer.
      • group_border_color

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

        public NkStyleWindow.Buffer group_border_color​(java.util.function.Consumer<NkColor> consumer)
        Passes the group_border_color field to the specified Consumer.
      • tooltip_border_color

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

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

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

        public float combo_border()
        Returns the value of the combo_border field.
      • contextual_border

        public float contextual_border()
        Returns the value of the contextual_border field.
      • menu_border

        public float menu_border()
        Returns the value of the menu_border field.
      • group_border

        public float group_border()
        Returns the value of the group_border field.
      • tooltip_border

        public float tooltip_border()
        Returns the value of the tooltip_border field.
      • popup_border

        public float popup_border()
        Returns the value of the popup_border field.
      • min_row_height_padding

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

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

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

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

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

        public NkStyleWindow.Buffer scrollbar_size​(java.util.function.Consumer<NkVec2> consumer)
        Passes the scrollbar_size field to the specified Consumer.
      • min_size

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

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

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

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

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

        public NkStyleWindow.Buffer group_padding​(java.util.function.Consumer<NkVec2> consumer)
        Passes the group_padding field to the specified Consumer.
      • popup_padding

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

        public NkStyleWindow.Buffer popup_padding​(java.util.function.Consumer<NkVec2> consumer)
        Passes the popup_padding field to the specified Consumer.
      • combo_padding

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

        public NkStyleWindow.Buffer combo_padding​(java.util.function.Consumer<NkVec2> consumer)
        Passes the combo_padding field to the specified Consumer.
      • contextual_padding

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

        public NkStyleWindow.Buffer contextual_padding​(java.util.function.Consumer<NkVec2> consumer)
        Passes the contextual_padding field to the specified Consumer.
      • menu_padding

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

        public NkStyleWindow.Buffer menu_padding​(java.util.function.Consumer<NkVec2> consumer)
        Passes the menu_padding field to the specified Consumer.
      • tooltip_padding

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

        public NkStyleWindow.Buffer tooltip_padding​(java.util.function.Consumer<NkVec2> consumer)
        Passes the tooltip_padding field to the specified Consumer.
      • border

        public NkStyleWindow.Buffer border​(float value)
        Sets the specified value to the border field.
      • combo_border

        public NkStyleWindow.Buffer combo_border​(float value)
        Sets the specified value to the combo_border field.
      • contextual_border

        public NkStyleWindow.Buffer contextual_border​(float value)
        Sets the specified value to the contextual_border field.
      • menu_border

        public NkStyleWindow.Buffer menu_border​(float value)
        Sets the specified value to the menu_border field.
      • group_border

        public NkStyleWindow.Buffer group_border​(float value)
        Sets the specified value to the group_border field.
      • tooltip_border

        public NkStyleWindow.Buffer tooltip_border​(float value)
        Sets the specified value to the tooltip_border field.
      • popup_border

        public NkStyleWindow.Buffer popup_border​(float value)
        Sets the specified value to the popup_border field.
      • min_row_height_padding

        public NkStyleWindow.Buffer min_row_height_padding​(float value)
        Sets the specified value to the min_row_height_padding field.
      • rounding

        public NkStyleWindow.Buffer rounding​(float value)
        Sets the specified value to the rounding field.