Class NkStyleEdit

    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.
      • NORMAL, HOVER, ACTIVE, BORDER_COLOR, SCROLLBAR, CURSOR_NORMAL, CURSOR_HOVER, CURSOR_TEXT_NORMAL, CURSOR_TEXT_HOVER, TEXT_NORMAL, TEXT_HOVER, TEXT_ACTIVE, SELECTED_NORMAL, SELECTED_HOVER, SELECTED_TEXT_NORMAL, SELECTED_TEXT_HOVER, BORDER, ROUNDING, CURSOR_SIZE, SCROLLBAR_SIZE, PADDING, ROW_PADDING

        The struct member offsets.
    • Constructor Detail

      • NkStyleEdit

        public NkStyleEdit​(java.nio.ByteBuffer container)
        Creates a NkStyleEdit instance at the current position of the specified ByteBuffer container. Changes to the buffer's content will be visible to the struct instance and vice versa.

        The created instance holds a strong reference to the container object.

    • Method Detail

      • sizeof

        public int sizeof()
        Description copied from class: Struct
        Returns sizeof(struct).
        Specified by:
        sizeof in class Struct
      • normal

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

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

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

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

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

        public NkStyleEdit 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 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 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 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 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 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 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 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 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 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 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 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 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.
      • cursor_normal

        public NkStyleEdit cursor_normal​(NkColor value)
        Copies the specified NkColor to the cursor_normal field.
      • cursor_text_normal

        public NkStyleEdit cursor_text_normal​(NkColor value)
        Copies the specified NkColor to the cursor_text_normal field.
      • cursor_text_hover

        public NkStyleEdit cursor_text_hover​(NkColor value)
        Copies the specified NkColor to the cursor_text_hover field.
      • selected_normal

        public NkStyleEdit selected_normal​(NkColor value)
        Copies the specified NkColor to the selected_normal field.
      • selected_hover

        public NkStyleEdit selected_hover​(NkColor value)
        Copies the specified NkColor to the selected_hover field.
      • selected_text_normal

        public NkStyleEdit selected_text_normal​(NkColor value)
        Copies the specified NkColor to the selected_text_normal field.
      • selected_text_hover

        public NkStyleEdit selected_text_hover​(NkColor value)
        Copies the specified NkColor to the selected_text_hover field.
      • border

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

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

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

        public NkStyleEdit scrollbar_size​(NkVec2 value)
        Copies the specified NkVec2 to the scrollbar_size field.
      • row_padding

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

        public NkStyleEdit set​(NkStyleEdit src)
        Copies the specified struct data to this struct.
        Parameters:
        src - the source struct
        Returns:
        this struct
      • create

        public static NkStyleEdit create​(long address)
        Returns a new NkStyleEdit instance for the specified memory address.
      • createSafe

        @Nullable
        public static NkStyleEdit createSafe​(long address)
        Like create, but returns null if address is NULL.
      • create

        public static NkStyleEdit.Buffer create​(long address,
                                                int capacity)
        Create a NkStyleEdit.Buffer instance at the specified memory.
        Parameters:
        address - the memory address
        capacity - the buffer capacity
      • createSafe

        @Nullable
        public static NkStyleEdit.Buffer createSafe​(long address,
                                                    int capacity)
        Like create, but returns null if address is NULL.
      • callocStack

        public static NkStyleEdit callocStack()
        Returns a new NkStyleEdit instance allocated on the thread-local MemoryStack and initializes all its bits to zero.
      • callocStack

        public static NkStyleEdit callocStack​(MemoryStack stack)
        Returns a new NkStyleEdit instance allocated on the specified MemoryStack and initializes all its bits to zero.
        Parameters:
        stack - the stack from which to allocate
      • callocStack

        public static NkStyleEdit.Buffer callocStack​(int capacity)
        Returns a new NkStyleEdit.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.
        Parameters:
        capacity - the buffer capacity
      • callocStack

        public static NkStyleEdit.Buffer callocStack​(int capacity,
                                                     MemoryStack stack)
        Returns a new NkStyleEdit.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.
        Parameters:
        stack - the stack from which to allocate
        capacity - the buffer capacity
      • ntext_normal

        public static NkColor ntext_normal​(long struct)
        Unsafe version of text_normal().
      • ntext_hover

        public static NkColor ntext_hover​(long struct)
        Unsafe version of text_hover().
      • ntext_active

        public static NkColor ntext_active​(long struct)
        Unsafe version of text_active().
      • nborder

        public static float nborder​(long struct)
        Unsafe version of border().
      • nrounding

        public static float nrounding​(long struct)
        Unsafe version of rounding().
      • ncursor_size

        public static float ncursor_size​(long struct)
        Unsafe version of cursor_size().
      • npadding

        public static NkVec2 npadding​(long struct)
        Unsafe version of padding().
      • nrow_padding

        public static float nrow_padding​(long struct)
        Unsafe version of row_padding().
      • nnormal

        public static void nnormal​(long struct,
                                   NkStyleItem value)
        Unsafe version of normal.
      • nhover

        public static void nhover​(long struct,
                                  NkStyleItem value)
        Unsafe version of hover.
      • nactive

        public static void nactive​(long struct,
                                   NkStyleItem value)
        Unsafe version of active.
      • nborder_color

        public static void nborder_color​(long struct,
                                         NkColor value)
        Unsafe version of border_color.
      • ncursor_normal

        public static void ncursor_normal​(long struct,
                                          NkColor value)
        Unsafe version of cursor_normal.
      • ncursor_hover

        public static void ncursor_hover​(long struct,
                                         NkColor value)
        Unsafe version of cursor_hover.
      • ncursor_text_normal

        public static void ncursor_text_normal​(long struct,
                                               NkColor value)
        Unsafe version of cursor_text_normal.
      • ncursor_text_hover

        public static void ncursor_text_hover​(long struct,
                                              NkColor value)
        Unsafe version of cursor_text_hover.
      • ntext_normal

        public static void ntext_normal​(long struct,
                                        NkColor value)
        Unsafe version of text_normal.
      • ntext_hover

        public static void ntext_hover​(long struct,
                                       NkColor value)
        Unsafe version of text_hover.
      • ntext_active

        public static void ntext_active​(long struct,
                                        NkColor value)
        Unsafe version of text_active.
      • nselected_normal

        public static void nselected_normal​(long struct,
                                            NkColor value)
        Unsafe version of selected_normal.
      • nselected_hover

        public static void nselected_hover​(long struct,
                                           NkColor value)
        Unsafe version of selected_hover.
      • nselected_text_normal

        public static void nselected_text_normal​(long struct,
                                                 NkColor value)
        Unsafe version of selected_text_normal.
      • nselected_text_hover

        public static void nselected_text_hover​(long struct,
                                                NkColor value)
        Unsafe version of selected_text_hover.
      • nborder

        public static void nborder​(long struct,
                                   float value)
        Unsafe version of border.
      • nrounding

        public static void nrounding​(long struct,
                                     float value)
        Unsafe version of rounding.
      • ncursor_size

        public static void ncursor_size​(long struct,
                                        float value)
        Unsafe version of cursor_size.
      • nscrollbar_size

        public static void nscrollbar_size​(long struct,
                                           NkVec2 value)
        Unsafe version of scrollbar_size.
      • npadding

        public static void npadding​(long struct,
                                    NkVec2 value)
        Unsafe version of padding.
      • nrow_padding

        public static void nrow_padding​(long struct,
                                        float value)
        Unsafe version of row_padding.