Class NkStyleScrollbar

    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.
      • NORMAL, HOVER, ACTIVE, BORDER_COLOR, CURSOR_NORMAL, CURSOR_HOVER, CURSOR_ACTIVE, CURSOR_BORDER_COLOR, BORDER, ROUNDING, BORDER_CURSOR, ROUNDING_CURSOR, PADDING, SHOW_BUTTONS, INC_BUTTON, DEC_BUTTON, INC_SYMBOL, DEC_SYMBOL, USERDATA, DRAW_BEGIN, DRAW_END

        The struct member offsets.
    • Constructor Detail

      • NkStyleScrollbar

        public NkStyleScrollbar​(java.nio.ByteBuffer container)
        Creates a NkStyleScrollbar 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()
        Specified by:
        sizeof in class org.lwjgl.system.Struct
      • border_color

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

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

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

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

        public float border_cursor()
        Returns the value of the border_cursor field.
      • rounding_cursor

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

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

        public int show_buttons()
        Returns the value of the show_buttons field.
      • 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.
      • 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.
      • normal

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

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

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

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

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

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

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

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

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

        public NkStyleScrollbar rounding​(float value)
        Sets the specified value to the rounding field.
      • border_cursor

        public NkStyleScrollbar border_cursor​(float value)
        Sets the specified value to the border_cursor field.
      • rounding_cursor

        public NkStyleScrollbar rounding_cursor​(float value)
        Sets the specified value to the rounding_cursor field.
      • padding

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

        public NkStyleScrollbar show_buttons​(int value)
        Sets the specified value to the show_buttons field.
      • inc_button

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

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

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

        public NkStyleScrollbar dec_symbol​(int value)
        Sets the specified value to the dec_symbol field.
      • userdata

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

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

        public static NkStyleScrollbar malloc()
        Returns a new NkStyleScrollbar instance allocated with memAlloc. The instance must be explicitly freed.
      • calloc

        public static NkStyleScrollbar calloc()
        Returns a new NkStyleScrollbar instance allocated with memCalloc. The instance must be explicitly freed.
      • create

        public static NkStyleScrollbar create()
        Returns a new NkStyleScrollbar instance allocated with BufferUtils.
      • create

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

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

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

        public static NkStyleScrollbar mallocStack()
        Returns a new NkStyleScrollbar instance allocated on the thread-local MemoryStack.
      • callocStack

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

        public static NkStyleScrollbar mallocStack​(org.lwjgl.system.MemoryStack stack)
        Returns a new NkStyleScrollbar instance allocated on the specified MemoryStack.
        Parameters:
        stack - the stack from which to allocate
      • callocStack

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

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

        public static NkStyleScrollbar.Buffer mallocStack​(int capacity,
                                                          org.lwjgl.system.MemoryStack stack)
        Returns a new NkStyleScrollbar.Buffer instance allocated on the specified MemoryStack.
        Parameters:
        stack - the stack from which to allocate
        capacity - the buffer capacity
      • callocStack

        public static NkStyleScrollbar.Buffer callocStack​(int capacity,
                                                          org.lwjgl.system.MemoryStack stack)
        Returns a new NkStyleScrollbar.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
      • nborder

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

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

        public static float nborder_cursor​(long struct)
        Unsafe version of border_cursor().
      • nrounding_cursor

        public static float nrounding_cursor​(long struct)
        Unsafe version of rounding_cursor().
      • npadding

        public static NkVec2 npadding​(long struct)
        Unsafe version of padding().
      • 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.
      • 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.
      • ncursor_border_color

        public static void ncursor_border_color​(long struct,
                                                NkColor value)
        Unsafe version of cursor_border_color.
      • 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.
      • nborder_cursor

        public static void nborder_cursor​(long struct,
                                          float value)
        Unsafe version of border_cursor.
      • nrounding_cursor

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

        public static void npadding​(long struct,
                                    NkVec2 value)
        Unsafe version of padding.
      • 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.