Class NkStyleSelectable

    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.
      • NORMAL, HOVER, PRESSED, NORMAL_ACTIVE, HOVER_ACTIVE, PRESSED_ACTIVE, TEXT_NORMAL, TEXT_HOVER, TEXT_PRESSED, TEXT_NORMAL_ACTIVE, TEXT_HOVER_ACTIVE, TEXT_PRESSED_ACTIVE, TEXT_BACKGROUND, TEXT_ALIGNMENT, ROUNDING, PADDING, TOUCH_PADDING, IMAGE_PADDING, USERDATA, DRAW_BEGIN, DRAW_END

        The struct member offsets.
    • Constructor Detail

      • NkStyleSelectable

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

        public NkStyleItem pressed_active()
        Returns a NkStyleItem view of the pressed_active field.
      • text_normal

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

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

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

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

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

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

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

        public int text_alignment()
        Returns the value of the text_alignment field.
      • rounding

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

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

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

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

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

        public NkStyleSelectable pressed​(java.util.function.Consumer<NkStyleItem> consumer)
        Passes the pressed field to the specified Consumer.
      • normal_active

        public NkStyleSelectable normal_active​(java.util.function.Consumer<NkStyleItem> consumer)
        Passes the normal_active field to the specified Consumer.
      • hover_active

        public NkStyleSelectable hover_active​(java.util.function.Consumer<NkStyleItem> consumer)
        Passes the hover_active field to the specified Consumer.
      • pressed_active

        public NkStyleSelectable pressed_active​(java.util.function.Consumer<NkStyleItem> consumer)
        Passes the pressed_active field to the specified Consumer.
      • text_normal

        public NkStyleSelectable text_normal​(java.util.function.Consumer<NkColor> consumer)
        Passes the text_normal field to the specified Consumer.
      • text_hover

        public NkStyleSelectable text_hover​(java.util.function.Consumer<NkColor> consumer)
        Passes the text_hover field to the specified Consumer.
      • text_pressed

        public NkStyleSelectable text_pressed​(java.util.function.Consumer<NkColor> consumer)
        Passes the text_pressed field to the specified Consumer.
      • text_normal_active

        public NkStyleSelectable text_normal_active​(java.util.function.Consumer<NkColor> consumer)
        Passes the text_normal_active field to the specified Consumer.
      • text_hover_active

        public NkStyleSelectable text_hover_active​(java.util.function.Consumer<NkColor> consumer)
        Passes the text_hover_active field to the specified Consumer.
      • text_pressed_active

        public NkStyleSelectable text_pressed_active​(java.util.function.Consumer<NkColor> consumer)
        Passes the text_pressed_active field to the specified Consumer.
      • text_background

        public NkStyleSelectable text_background​(java.util.function.Consumer<NkColor> consumer)
        Passes the text_background field to the specified Consumer.
      • text_alignment

        public NkStyleSelectable text_alignment​(int value)
        Sets the specified value to the text_alignment field.
      • rounding

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

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

        public NkStyleSelectable touch_padding​(java.util.function.Consumer<NkVec2> consumer)
        Passes the touch_padding field to the specified Consumer.
      • image_padding

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        public static NkColor ntext_normal​(long struct)
        Unsafe version of text_normal().
      • ntext_hover

        public static NkColor ntext_hover​(long struct)
        Unsafe version of text_hover().
      • ntext_alignment

        public static int ntext_alignment​(long struct)
        Unsafe version of text_alignment().
      • nrounding

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

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

        public static NkVec2 ntouch_padding​(long struct)
        Unsafe version of touch_padding().
      • nimage_padding

        public static NkVec2 nimage_padding​(long struct)
        Unsafe version of image_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.
      • npressed

        public static void npressed​(long struct,
                                    NkStyleItem value)
        Unsafe version of pressed.
      • nnormal_active

        public static void nnormal_active​(long struct,
                                          NkStyleItem value)
        Unsafe version of normal_active.
      • nhover_active

        public static void nhover_active​(long struct,
                                         NkStyleItem value)
        Unsafe version of hover_active.
      • npressed_active

        public static void npressed_active​(long struct,
                                           NkStyleItem value)
        Unsafe version of pressed_active.
      • ntext_normal

        public static void ntext_normal​(long struct,
                                        NkColor value)
        Unsafe version of text_normal.
      • ntext_hover

        public static void ntext_hover​(long struct,
                                       NkColor value)
        Unsafe version of text_hover.
      • ntext_pressed

        public static void ntext_pressed​(long struct,
                                         NkColor value)
        Unsafe version of text_pressed.
      • ntext_normal_active

        public static void ntext_normal_active​(long struct,
                                               NkColor value)
        Unsafe version of text_normal_active.
      • ntext_hover_active

        public static void ntext_hover_active​(long struct,
                                              NkColor value)
        Unsafe version of text_hover_active.
      • ntext_pressed_active

        public static void ntext_pressed_active​(long struct,
                                                NkColor value)
        Unsafe version of text_pressed_active.
      • ntext_background

        public static void ntext_background​(long struct,
                                            NkColor value)
        Unsafe version of text_background.
      • ntext_alignment

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

        public static void ntouch_padding​(long struct,
                                          NkVec2 value)
        Unsafe version of touch_padding.
      • nimage_padding

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

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