Class NkStyleEdit.Buffer

    • Constructor Detail

      • Buffer

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

      • normal

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

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

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

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

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

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

        public NkStyleEdit.Buffer cursor_normal​(java.util.function.Consumer<NkColor> consumer)
        Passes the cursor_normal field to the specified Consumer.
      • cursor_hover

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

        public NkStyleEdit.Buffer cursor_hover​(java.util.function.Consumer<NkColor> consumer)
        Passes the cursor_hover field to the specified Consumer.
      • cursor_text_normal

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

        public NkStyleEdit.Buffer cursor_text_normal​(java.util.function.Consumer<NkColor> consumer)
        Passes the cursor_text_normal field to the specified Consumer.
      • cursor_text_hover

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

        public NkStyleEdit.Buffer cursor_text_hover​(java.util.function.Consumer<NkColor> consumer)
        Passes the cursor_text_hover field to the specified Consumer.
      • text_normal

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

        public NkStyleEdit.Buffer text_normal​(java.util.function.Consumer<NkColor> consumer)
        Passes the text_normal field to the specified Consumer.
      • text_hover

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

        public NkStyleEdit.Buffer text_hover​(java.util.function.Consumer<NkColor> consumer)
        Passes the text_hover field to the specified Consumer.
      • text_active

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

        public NkStyleEdit.Buffer text_active​(java.util.function.Consumer<NkColor> consumer)
        Passes the text_active field to the specified Consumer.
      • selected_normal

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

        public NkStyleEdit.Buffer selected_normal​(java.util.function.Consumer<NkColor> consumer)
        Passes the selected_normal field to the specified Consumer.
      • selected_hover

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

        public NkStyleEdit.Buffer selected_hover​(java.util.function.Consumer<NkColor> consumer)
        Passes the selected_hover field to the specified Consumer.
      • selected_text_normal

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

        public NkStyleEdit.Buffer selected_text_normal​(java.util.function.Consumer<NkColor> consumer)
        Passes the selected_text_normal field to the specified Consumer.
      • selected_text_hover

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

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

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

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

        public float cursor_size()
        Returns the value of the cursor_size field.
      • scrollbar_size

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

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

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

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

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

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

        public NkStyleEdit.Buffer rounding​(float value)
        Sets the specified value to the rounding field.
      • cursor_size

        public NkStyleEdit.Buffer cursor_size​(float value)
        Sets the specified value to the cursor_size field.
      • row_padding

        public NkStyleEdit.Buffer row_padding​(float value)
        Sets the specified value to the row_padding field.