Class NkStyleProperty

    • 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, SYM_LEFT, SYM_RIGHT, BORDER, ROUNDING, PADDING, EDIT, INC_BUTTON, DEC_BUTTON, USERDATA, DRAW_BEGIN, DRAW_END

        The struct member offsets.
    • Constructor Detail

      • NkStyleProperty

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

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

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

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

        public int sym_left()
        Returns the value of the sym_left field.
      • sym_right

        public int sym_right()
        Returns the value of the sym_right field.
      • border

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

        public float rounding()
        Returns the value of the 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 NkStyleProperty normal​(java.util.function.Consumer<NkStyleItem> consumer)
        Passes the normal field to the specified Consumer.
      • hover

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

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

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

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

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

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

        public NkStyleProperty sym_left​(int value)
        Sets the specified value to the sym_left field.
      • sym_right

        public NkStyleProperty sym_right​(int value)
        Sets the specified value to the sym_right field.
      • border

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

        public NkStyleProperty rounding​(float value)
        Sets the specified value to the rounding field.
      • padding

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

        public NkStyleProperty edit​(java.util.function.Consumer<NkStyleEdit> consumer)
        Passes the edit field to the specified Consumer.
      • inc_button

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        public static int nsym_left​(long struct)
        Unsafe version of sym_left().
      • nsym_right

        public static int nsym_right​(long struct)
        Unsafe version of sym_right().
      • nborder

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

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

        public static void nsym_left​(long struct,
                                     int value)
        Unsafe version of sym_left.
      • nsym_right

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

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

        public static void nedit​(long struct,
                                 NkStyleEdit value)
        Unsafe version of edit.
      • 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.
      • nuserdata

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