Class NkStyleTab.Buffer

    • Constructor Detail

      • Buffer

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

      • background

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

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

        public NkStyleTab.Buffer text​(java.util.function.Consumer<NkColor> consumer)
        Passes the text field to the specified Consumer.
      • tab_maximize_button

        public NkStyleTab.Buffer tab_maximize_button​(java.util.function.Consumer<NkStyleButton> consumer)
        Passes the tab_maximize_button field to the specified Consumer.
      • tab_minimize_button

        public NkStyleTab.Buffer tab_minimize_button​(java.util.function.Consumer<NkStyleButton> consumer)
        Passes the tab_minimize_button field to the specified Consumer.
      • node_maximize_button

        public NkStyleButton node_maximize_button()
        Returns a NkStyleButton view of the node_maximize_button field.
      • node_maximize_button

        public NkStyleTab.Buffer node_maximize_button​(java.util.function.Consumer<NkStyleButton> consumer)
        Passes the node_maximize_button field to the specified Consumer.
      • node_minimize_button

        public NkStyleButton node_minimize_button()
        Returns a NkStyleButton view of the node_minimize_button field.
      • node_minimize_button

        public NkStyleTab.Buffer node_minimize_button​(java.util.function.Consumer<NkStyleButton> consumer)
        Passes the node_minimize_button field to the specified Consumer.
      • sym_minimize

        public int sym_minimize()
        Returns the value of the sym_minimize field.
      • sym_maximize

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

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

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

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

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

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

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

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

        public NkStyleTab.Buffer sym_minimize​(int value)
        Sets the specified value to the sym_minimize field.
      • sym_maximize

        public NkStyleTab.Buffer sym_maximize​(int value)
        Sets the specified value to the sym_maximize field.
      • border

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

        public NkStyleTab.Buffer rounding​(float value)
        Sets the specified value to the rounding field.
      • indent

        public NkStyleTab.Buffer indent​(float value)
        Sets the specified value to the indent field.