Class NkStyleProgress

    • 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, ROUNDING, BORDER, CURSOR_BORDER, CURSOR_ROUNDING, PADDING, USERDATA, DRAW_BEGIN, DRAW_END

        The struct member offsets.
    • Constructor Detail

      • NkStyleProgress

        public NkStyleProgress​(java.nio.ByteBuffer container)
        Creates a NkStyleProgress 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.
      • rounding

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

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

        public float cursor_border()
        Returns the value of the cursor_border field.
      • cursor_rounding

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

        public NkVec2 padding()
        Returns a NkVec2 view of the padding 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 NkStyleProgress normal​(java.util.function.Consumer<NkStyleItem> consumer)
        Passes the normal field to the specified Consumer.
      • hover

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

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

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

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

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

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

        public NkStyleProgress cursor_border_color​(NkColor value)
        Copies the specified NkColor to the cursor_border_color field.
      • cursor_border_color

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

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

        public NkStyleProgress border​(float value)
        Sets the specified value to the border field.
      • cursor_border

        public NkStyleProgress cursor_border​(float value)
        Sets the specified value to the cursor_border field.
      • cursor_rounding

        public NkStyleProgress cursor_rounding​(float value)
        Sets the specified value to the cursor_rounding field.
      • padding

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

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

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

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

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

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

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

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

        public static NkStyleProgress.Buffer malloc​(int capacity)
        Returns a new NkStyleProgress.Buffer instance allocated with memAlloc. The instance must be explicitly freed.
        Parameters:
        capacity - the buffer capacity
      • calloc

        public static NkStyleProgress.Buffer calloc​(int capacity)
        Returns a new NkStyleProgress.Buffer instance allocated with memCalloc. The instance must be explicitly freed.
        Parameters:
        capacity - the buffer capacity
      • create

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

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

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

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

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

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

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

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

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

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

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

        public static float ncursor_border​(long struct)
        Unsafe version of cursor_border().
      • ncursor_rounding

        public static float ncursor_rounding​(long struct)
        Unsafe version of cursor_rounding().
      • npadding

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

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

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

        public static void ncursor_border​(long struct,
                                          float value)
        Unsafe version of cursor_border.
      • ncursor_rounding

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

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

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