Class NkStyleSlider

    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.
      • NORMAL, HOVER, ACTIVE, BORDER_COLOR, BAR_NORMAL, BAR_HOVER, BAR_ACTIVE, BAR_FILLED, CURSOR_NORMAL, CURSOR_HOVER, CURSOR_ACTIVE, BORDER, ROUNDING, BAR_HEIGHT, PADDING, SPACING, CURSOR_SIZE, SHOW_BUTTONS, INC_BUTTON, DEC_BUTTON, INC_SYMBOL, DEC_SYMBOL, USERDATA, DRAW_BEGIN, DRAW_END

        The struct member offsets.
    • Constructor Detail

      • NkStyleSlider

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

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

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

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

        public NkStyleSlider bar_normal​(java.util.function.Consumer<NkColor> consumer)
        Passes the bar_normal field to the specified Consumer.
      • bar_hover

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

        public NkStyleSlider bar_hover​(java.util.function.Consumer<NkColor> consumer)
        Passes the bar_hover field to the specified Consumer.
      • bar_active

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

        public NkStyleSlider bar_active​(java.util.function.Consumer<NkColor> consumer)
        Passes the bar_active field to the specified Consumer.
      • bar_filled

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

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

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

        public NkStyleSlider cursor_hover​(java.util.function.Consumer<NkStyleItem> consumer)
        Passes the cursor_hover field to the specified Consumer.
      • cursor_active

        public NkStyleSlider cursor_active​(java.util.function.Consumer<NkStyleItem> consumer)
        Passes the cursor_active 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.
      • bar_height

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

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

        public NkStyleSlider 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 NkStyleSlider spacing​(java.util.function.Consumer<NkVec2> consumer)
        Passes the spacing field to the specified Consumer.
      • cursor_size

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

        public NkStyleSlider cursor_size​(java.util.function.Consumer<NkVec2> consumer)
        Passes the cursor_size field to the specified Consumer.
      • show_buttons

        public int show_buttons()
        Returns the value of the show_buttons field.
      • inc_button

        public NkStyleSlider inc_button​(java.util.function.Consumer<NkStyleButton> consumer)
        Passes the inc_button field to the specified Consumer.
      • dec_button

        public NkStyleSlider dec_button​(java.util.function.Consumer<NkStyleButton> consumer)
        Passes the dec_button field to the specified Consumer.
      • inc_symbol

        public int inc_symbol()
        Returns the value of the inc_symbol field.
      • dec_symbol

        public int dec_symbol()
        Returns the value of the dec_symbol field.
      • userdata

        public NkHandle userdata()
        Returns a NkHandle view of the userdata field.
      • userdata

        public NkStyleSlider userdata​(java.util.function.Consumer<NkHandle> consumer)
        Passes the userdata field to the specified Consumer.
      • draw_begin

        @Nullable
        public NkDrawBeginCallback draw_begin()
        Returns the value of the draw_begin field.
      • draw_end

        @Nullable
        public NkDrawEndCallback draw_end()
        Returns the value of the draw_end field.
      • border

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

        public NkStyleSlider rounding​(float value)
        Sets the specified value to the rounding field.
      • bar_height

        public NkStyleSlider bar_height​(float value)
        Sets the specified value to the bar_height field.
      • show_buttons

        public NkStyleSlider show_buttons​(int value)
        Sets the specified value to the show_buttons field.
      • inc_symbol

        public NkStyleSlider inc_symbol​(int value)
        Sets the specified value to the inc_symbol field.
      • dec_symbol

        public NkStyleSlider dec_symbol​(int value)
        Sets the specified value to the dec_symbol field.
      • set

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

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

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

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

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

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

        public static NkColor nbar_normal​(long struct)
        Unsafe version of bar_normal().
      • nbar_hover

        public static NkColor nbar_hover​(long struct)
        Unsafe version of bar_hover().
      • nbar_active

        public static NkColor nbar_active​(long struct)
        Unsafe version of bar_active().
      • nbar_filled

        public static NkColor nbar_filled​(long struct)
        Unsafe version of bar_filled().
      • nborder

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

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

        public static float nbar_height​(long struct)
        Unsafe version of bar_height().
      • npadding

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

        public static NkVec2 nspacing​(long struct)
        Unsafe version of spacing().
      • ncursor_size

        public static NkVec2 ncursor_size​(long struct)
        Unsafe version of cursor_size().
      • nshow_buttons

        public static int nshow_buttons​(long struct)
        Unsafe version of show_buttons().
      • ninc_symbol

        public static int ninc_symbol​(long struct)
        Unsafe version of inc_symbol().
      • ndec_symbol

        public static int ndec_symbol​(long struct)
        Unsafe version of dec_symbol().
      • nuserdata

        public static NkHandle nuserdata​(long struct)
        Unsafe version of userdata().
      • 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.
      • nbar_normal

        public static void nbar_normal​(long struct,
                                       NkColor value)
        Unsafe version of bar_normal.
      • nbar_hover

        public static void nbar_hover​(long struct,
                                      NkColor value)
        Unsafe version of bar_hover.
      • nbar_active

        public static void nbar_active​(long struct,
                                       NkColor value)
        Unsafe version of bar_active.
      • nbar_filled

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

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

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

        public static void ncursor_active​(long struct,
                                          NkStyleItem value)
        Unsafe version of cursor_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.
      • nbar_height

        public static void nbar_height​(long struct,
                                       float value)
        Unsafe version of bar_height.
      • npadding

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

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

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

        public static void nshow_buttons​(long struct,
                                         int value)
        Unsafe version of show_buttons.
      • ninc_button

        public static void ninc_button​(long struct,
                                       NkStyleButton value)
        Unsafe version of inc_button.
      • ndec_button

        public static void ndec_button​(long struct,
                                       NkStyleButton value)
        Unsafe version of dec_button.
      • ninc_symbol

        public static void ninc_symbol​(long struct,
                                       int value)
        Unsafe version of inc_symbol.
      • ndec_symbol

        public static void ndec_symbol​(long struct,
                                       int value)
        Unsafe version of dec_symbol.
      • nuserdata

        public static void nuserdata​(long struct,
                                     NkHandle value)
        Unsafe version of userdata.