Class NkStyleCombo

    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.
      • NORMAL, HOVER, ACTIVE, BORDER_COLOR, LABEL_NORMAL, LABEL_HOVER, LABEL_ACTIVE, SYMBOL_NORMAL, SYMBOL_HOVER, SYMBOL_ACTIVE, BUTTON, SYM_NORMAL, SYM_HOVER, SYM_ACTIVE, BORDER, ROUNDING, CONTENT_PADDING, BUTTON_PADDING, SPACING

        The struct member offsets.
    • Constructor Detail

      • NkStyleCombo

        public NkStyleCombo​(java.nio.ByteBuffer container)
        Creates a NkStyleCombo 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 NkStyleCombo normal​(java.util.function.Consumer<NkStyleItem> consumer)
        Passes the normal field to the specified Consumer.
      • hover

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        public NkStyleCombo button​(java.util.function.Consumer<NkStyleButton> consumer)
        Passes the button field to the specified Consumer.
      • 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.
      • content_padding

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

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

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

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

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

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

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

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

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

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

        public NkStyleCombo content_padding​(NkVec2 value)
        Copies the specified NkVec2 to the content_padding field.
      • button_padding

        public NkStyleCombo button_padding​(NkVec2 value)
        Copies the specified NkVec2 to the button_padding field.
      • set

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

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

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

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

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

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

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

        public static NkStyleCombo.Buffer callocStack​(int capacity,
                                                      MemoryStack stack)
        Returns a new NkStyleCombo.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
      • nlabel_hover

        public static NkColor nlabel_hover​(long struct)
        Unsafe version of label_hover().
      • nsym_normal

        public static int nsym_normal​(long struct)
        Unsafe version of sym_normal().
      • nsym_hover

        public static int nsym_hover​(long struct)
        Unsafe version of sym_hover().
      • nsym_active

        public static int nsym_active​(long struct)
        Unsafe version of sym_active().
      • nborder

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

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

        public static NkVec2 nspacing​(long struct)
        Unsafe version of spacing().
      • 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.
      • nlabel_normal

        public static void nlabel_normal​(long struct,
                                         NkColor value)
        Unsafe version of label_normal.
      • nlabel_hover

        public static void nlabel_hover​(long struct,
                                        NkColor value)
        Unsafe version of label_hover.
      • nlabel_active

        public static void nlabel_active​(long struct,
                                         NkColor value)
        Unsafe version of label_active.
      • nsymbol_normal

        public static void nsymbol_normal​(long struct,
                                          NkColor value)
        Unsafe version of symbol_normal.
      • nsymbol_hover

        public static void nsymbol_hover​(long struct,
                                         NkColor value)
        Unsafe version of symbol_hover.
      • nsymbol_active

        public static void nsymbol_active​(long struct,
                                          NkColor value)
        Unsafe version of symbol_active.
      • nbutton

        public static void nbutton​(long struct,
                                   NkStyleButton value)
        Unsafe version of button.
      • nsym_normal

        public static void nsym_normal​(long struct,
                                       int value)
        Unsafe version of sym_normal.
      • nsym_hover

        public static void nsym_hover​(long struct,
                                      int value)
        Unsafe version of sym_hover.
      • nsym_active

        public static void nsym_active​(long struct,
                                       int value)
        Unsafe version of sym_active.
      • 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.
      • ncontent_padding

        public static void ncontent_padding​(long struct,
                                            NkVec2 value)
        Unsafe version of content_padding.
      • nbutton_padding

        public static void nbutton_padding​(long struct,
                                           NkVec2 value)
        Unsafe version of button_padding.
      • nspacing

        public static void nspacing​(long struct,
                                    NkVec2 value)
        Unsafe version of spacing.