Class NkStyleWindowHeader

    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.
      • NORMAL, HOVER, ACTIVE, CLOSE_BUTTON, MINIMIZE_BUTTON, CLOSE_SYMBOL, MINIMIZE_SYMBOL, MAXIMIZE_SYMBOL, LABEL_NORMAL, LABEL_HOVER, LABEL_ACTIVE, ALIGN, PADDING, LABEL_PADDING, SPACING

        The struct member offsets.
    • Constructor Detail

      • NkStyleWindowHeader

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

        public int close_symbol()
        Returns the value of the close_symbol field.
      • minimize_symbol

        public int minimize_symbol()
        Returns the value of the minimize_symbol field.
      • maximize_symbol

        public int maximize_symbol()
        Returns the value of the maximize_symbol 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.
      • align

        public int align()
        Returns the value of the align field.
      • padding

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

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

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

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

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

        public NkStyleWindowHeader close_button​(java.util.function.Consumer<NkStyleButton> consumer)
        Passes the close_button field to the specified Consumer.
      • minimize_button

        public NkStyleWindowHeader minimize_button​(java.util.function.Consumer<NkStyleButton> consumer)
        Passes the minimize_button field to the specified Consumer.
      • close_symbol

        public NkStyleWindowHeader close_symbol​(int value)
        Sets the specified value to the close_symbol field.
      • minimize_symbol

        public NkStyleWindowHeader minimize_symbol​(int value)
        Sets the specified value to the minimize_symbol field.
      • maximize_symbol

        public NkStyleWindowHeader maximize_symbol​(int value)
        Sets the specified value to the maximize_symbol field.
      • label_normal

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

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

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

        public NkStyleWindowHeader align​(int value)
        Sets the specified value to the align field.
      • padding

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        public static int nclose_symbol​(long struct)
        Unsafe version of close_symbol().
      • nminimize_symbol

        public static int nminimize_symbol​(long struct)
        Unsafe version of minimize_symbol().
      • nmaximize_symbol

        public static int nmaximize_symbol​(long struct)
        Unsafe version of maximize_symbol().
      • nlabel_hover

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

        public static int nalign​(long struct)
        Unsafe version of align().
      • npadding

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

        public static NkVec2 nlabel_padding​(long struct)
        Unsafe version of label_padding().
      • 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.
      • nclose_symbol

        public static void nclose_symbol​(long struct,
                                         int value)
        Unsafe version of close_symbol.
      • nminimize_symbol

        public static void nminimize_symbol​(long struct,
                                            int value)
        Unsafe version of minimize_symbol.
      • nmaximize_symbol

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

        public static void nalign​(long struct,
                                  int value)
        Unsafe version of align.
      • npadding

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

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

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