Package org.lwjgl.nuklear
Class NkStyleSelectable
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.nuklear.NkStyleSelectable
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class NkStyleSelectable extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceLayout
struct nk_style_selectable {struct nk_style_itemnormal;struct nk_style_itemhover;struct nk_style_itempressed;struct nk_style_itemnormal_active;struct nk_style_itemhover_active;struct nk_style_itempressed_active;struct nk_colortext_normal;struct nk_colortext_hover;struct nk_colortext_pressed;struct nk_colortext_normal_active;struct nk_colortext_hover_active;struct nk_colortext_pressed_active;struct nk_colortext_background; nk_flags text_alignment; float rounding;struct nk_vec2padding;struct nk_vec2touch_padding;struct nk_vec2image_padding;nk_handleuserdata;nk_draw_begindraw_begin;nk_draw_enddraw_end; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classNkStyleSelectable.BufferAn array ofNkStyleSelectablestructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intDRAW_BEGIN
DRAW_END
HOVER
HOVER_ACTIVE
IMAGE_PADDING
NORMAL
NORMAL_ACTIVE
PADDING
PRESSED
PRESSED_ACTIVE
ROUNDINGThe struct member offsets.static intSIZEOFThe struct size in bytes.static intTEXT_ALIGNMENT
TEXT_BACKGROUND
TEXT_HOVER
TEXT_HOVER_ACTIVE
TEXT_NORMAL
TEXT_NORMAL_ACTIVE
TEXT_PRESSED
TEXT_PRESSED_ACTIVE
TOUCH_PADDING
USERDATAThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description NkStyleSelectable(java.nio.ByteBuffer container)Creates aNkStyleSelectableinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static NkStyleSelectablecalloc()Returns a newNkStyleSelectableinstance allocated withmemCalloc.static NkStyleSelectable.Buffercalloc(int capacity)Returns a newNkStyleSelectable.Bufferinstance allocated withmemCalloc.static NkStyleSelectablecallocStack()Returns a newNkStyleSelectableinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static NkStyleSelectable.BuffercallocStack(int capacity)Returns a newNkStyleSelectable.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static NkStyleSelectable.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newNkStyleSelectable.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static NkStyleSelectablecallocStack(org.lwjgl.system.MemoryStack stack)Returns a newNkStyleSelectableinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static NkStyleSelectablecreate()Returns a newNkStyleSelectableinstance allocated withBufferUtils.static NkStyleSelectable.Buffercreate(int capacity)Returns a newNkStyleSelectable.Bufferinstance allocated withBufferUtils.static NkStyleSelectablecreate(long address)Returns a newNkStyleSelectableinstance for the specified memory address.static NkStyleSelectable.Buffercreate(long address, int capacity)Create aNkStyleSelectable.Bufferinstance at the specified memory.static NkStyleSelectablecreateSafe(long address)static NkStyleSelectable.BuffercreateSafe(long address, int capacity)NkDrawBeginCallbackdraw_begin()Returns the value of thedraw_beginfield.NkStyleSelectabledraw_begin(NkDrawBeginCallbackI value)Sets the specified value to thedraw_beginfield.NkDrawEndCallbackdraw_end()Returns the value of thedraw_endfield.NkStyleSelectabledraw_end(NkDrawEndCallbackI value)Sets the specified value to thedraw_endfield.NkStyleItemhover()Returns aNkStyleItemview of thehoverfield.NkStyleSelectablehover(java.util.function.Consumer<NkStyleItem> consumer)Passes thehoverfield to the specifiedConsumer.NkStyleSelectablehover(NkStyleItem value)Copies the specifiedNkStyleItemto thehoverfield.NkStyleItemhover_active()Returns aNkStyleItemview of thehover_activefield.NkStyleSelectablehover_active(java.util.function.Consumer<NkStyleItem> consumer)Passes thehover_activefield to the specifiedConsumer.NkStyleSelectablehover_active(NkStyleItem value)Copies the specifiedNkStyleItemto thehover_activefield.NkVec2image_padding()Returns aNkVec2view of theimage_paddingfield.NkStyleSelectableimage_padding(java.util.function.Consumer<NkVec2> consumer)Passes theimage_paddingfield to the specifiedConsumer.NkStyleSelectableimage_padding(NkVec2 value)Copies the specifiedNkVec2to theimage_paddingfield.static NkStyleSelectablemalloc()Returns a newNkStyleSelectableinstance allocated withmemAlloc.static NkStyleSelectable.Buffermalloc(int capacity)Returns a newNkStyleSelectable.Bufferinstance allocated withmemAlloc.static NkStyleSelectablemallocStack()Returns a newNkStyleSelectableinstance allocated on the thread-localMemoryStack.static NkStyleSelectable.BuffermallocStack(int capacity)Returns a newNkStyleSelectable.Bufferinstance allocated on the thread-localMemoryStack.static NkStyleSelectable.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newNkStyleSelectable.Bufferinstance allocated on the specifiedMemoryStack.static NkStyleSelectablemallocStack(org.lwjgl.system.MemoryStack stack)Returns a newNkStyleSelectableinstance allocated on the specifiedMemoryStack.static NkDrawBeginCallbackndraw_begin(long struct)Unsafe version ofdraw_begin().static voidndraw_begin(long struct, NkDrawBeginCallbackI value)Unsafe version ofdraw_begin.static NkDrawEndCallbackndraw_end(long struct)Unsafe version ofdraw_end().static voidndraw_end(long struct, NkDrawEndCallbackI value)Unsafe version ofdraw_end.static NkStyleItemnhover(long struct)Unsafe version ofhover().static voidnhover(long struct, NkStyleItem value)Unsafe version ofhover.static NkStyleItemnhover_active(long struct)Unsafe version ofhover_active().static voidnhover_active(long struct, NkStyleItem value)Unsafe version ofhover_active.static NkVec2nimage_padding(long struct)Unsafe version ofimage_padding().static voidnimage_padding(long struct, NkVec2 value)Unsafe version ofimage_padding.static NkStyleItemnnormal(long struct)Unsafe version ofnormal().static voidnnormal(long struct, NkStyleItem value)Unsafe version ofnormal.static NkStyleItemnnormal_active(long struct)Unsafe version ofnormal_active().static voidnnormal_active(long struct, NkStyleItem value)Unsafe version ofnormal_active.NkStyleItemnormal()Returns aNkStyleItemview of thenormalfield.NkStyleSelectablenormal(java.util.function.Consumer<NkStyleItem> consumer)Passes thenormalfield to the specifiedConsumer.NkStyleSelectablenormal(NkStyleItem value)Copies the specifiedNkStyleItemto thenormalfield.NkStyleItemnormal_active()Returns aNkStyleItemview of thenormal_activefield.NkStyleSelectablenormal_active(java.util.function.Consumer<NkStyleItem> consumer)Passes thenormal_activefield to the specifiedConsumer.NkStyleSelectablenormal_active(NkStyleItem value)Copies the specifiedNkStyleItemto thenormal_activefield.static NkVec2npadding(long struct)Unsafe version ofpadding().static voidnpadding(long struct, NkVec2 value)Unsafe version ofpadding.static NkStyleItemnpressed(long struct)Unsafe version ofpressed().static voidnpressed(long struct, NkStyleItem value)Unsafe version ofpressed.static NkStyleItemnpressed_active(long struct)Unsafe version ofpressed_active().static voidnpressed_active(long struct, NkStyleItem value)Unsafe version ofpressed_active.static floatnrounding(long struct)Unsafe version ofrounding().static voidnrounding(long struct, float value)Unsafe version ofrounding.static intntext_alignment(long struct)Unsafe version oftext_alignment().static voidntext_alignment(long struct, int value)Unsafe version oftext_alignment.static NkColorntext_background(long struct)Unsafe version oftext_background().static voidntext_background(long struct, NkColor value)Unsafe version oftext_background.static NkColorntext_hover(long struct)Unsafe version oftext_hover().static voidntext_hover(long struct, NkColor value)Unsafe version oftext_hover.static NkColorntext_hover_active(long struct)Unsafe version oftext_hover_active().static voidntext_hover_active(long struct, NkColor value)Unsafe version oftext_hover_active.static NkColorntext_normal(long struct)Unsafe version oftext_normal().static voidntext_normal(long struct, NkColor value)Unsafe version oftext_normal.static NkColorntext_normal_active(long struct)Unsafe version oftext_normal_active().static voidntext_normal_active(long struct, NkColor value)Unsafe version oftext_normal_active.static NkColorntext_pressed(long struct)Unsafe version oftext_pressed().static voidntext_pressed(long struct, NkColor value)Unsafe version oftext_pressed.static NkColorntext_pressed_active(long struct)Unsafe version oftext_pressed_active().static voidntext_pressed_active(long struct, NkColor value)Unsafe version oftext_pressed_active.static NkVec2ntouch_padding(long struct)Unsafe version oftouch_padding().static voidntouch_padding(long struct, NkVec2 value)Unsafe version oftouch_padding.static NkHandlenuserdata(long struct)Unsafe version ofuserdata().static voidnuserdata(long struct, NkHandle value)Unsafe version ofuserdata.NkVec2padding()Returns aNkVec2view of thepaddingfield.NkStyleSelectablepadding(java.util.function.Consumer<NkVec2> consumer)Passes thepaddingfield to the specifiedConsumer.NkStyleSelectablepadding(NkVec2 value)Copies the specifiedNkVec2to thepaddingfield.NkStyleItempressed()Returns aNkStyleItemview of thepressedfield.NkStyleSelectablepressed(java.util.function.Consumer<NkStyleItem> consumer)Passes thepressedfield to the specifiedConsumer.NkStyleSelectablepressed(NkStyleItem value)Copies the specifiedNkStyleItemto thepressedfield.NkStyleItempressed_active()Returns aNkStyleItemview of thepressed_activefield.NkStyleSelectablepressed_active(java.util.function.Consumer<NkStyleItem> consumer)Passes thepressed_activefield to the specifiedConsumer.NkStyleSelectablepressed_active(NkStyleItem value)Copies the specifiedNkStyleItemto thepressed_activefield.floatrounding()Returns the value of theroundingfield.NkStyleSelectablerounding(float value)Sets the specified value to theroundingfield.NkStyleSelectableset(NkStyleItem normal, NkStyleItem hover, NkStyleItem pressed, NkStyleItem normal_active, NkStyleItem hover_active, NkStyleItem pressed_active, NkColor text_normal, NkColor text_hover, NkColor text_pressed, NkColor text_normal_active, NkColor text_hover_active, NkColor text_pressed_active, NkColor text_background, int text_alignment, float rounding, NkVec2 padding, NkVec2 touch_padding, NkVec2 image_padding, NkHandle userdata, NkDrawBeginCallbackI draw_begin, NkDrawEndCallbackI draw_end)Initializes this struct with the specified values.NkStyleSelectableset(NkStyleSelectable src)Copies the specified struct data to this struct.intsizeof()inttext_alignment()Returns the value of thetext_alignmentfield.NkStyleSelectabletext_alignment(int value)Sets the specified value to thetext_alignmentfield.NkColortext_background()Returns aNkColorview of thetext_backgroundfield.NkStyleSelectabletext_background(java.util.function.Consumer<NkColor> consumer)Passes thetext_backgroundfield to the specifiedConsumer.NkStyleSelectabletext_background(NkColor value)Copies the specifiedNkColorto thetext_backgroundfield.NkColortext_hover()Returns aNkColorview of thetext_hoverfield.NkStyleSelectabletext_hover(java.util.function.Consumer<NkColor> consumer)Passes thetext_hoverfield to the specifiedConsumer.NkStyleSelectabletext_hover(NkColor value)Copies the specifiedNkColorto thetext_hoverfield.NkColortext_hover_active()Returns aNkColorview of thetext_hover_activefield.NkStyleSelectabletext_hover_active(java.util.function.Consumer<NkColor> consumer)Passes thetext_hover_activefield to the specifiedConsumer.NkStyleSelectabletext_hover_active(NkColor value)Copies the specifiedNkColorto thetext_hover_activefield.NkColortext_normal()Returns aNkColorview of thetext_normalfield.NkStyleSelectabletext_normal(java.util.function.Consumer<NkColor> consumer)Passes thetext_normalfield to the specifiedConsumer.NkStyleSelectabletext_normal(NkColor value)Copies the specifiedNkColorto thetext_normalfield.NkColortext_normal_active()Returns aNkColorview of thetext_normal_activefield.NkStyleSelectabletext_normal_active(java.util.function.Consumer<NkColor> consumer)Passes thetext_normal_activefield to the specifiedConsumer.NkStyleSelectabletext_normal_active(NkColor value)Copies the specifiedNkColorto thetext_normal_activefield.NkColortext_pressed()Returns aNkColorview of thetext_pressedfield.NkStyleSelectabletext_pressed(java.util.function.Consumer<NkColor> consumer)Passes thetext_pressedfield to the specifiedConsumer.NkStyleSelectabletext_pressed(NkColor value)Copies the specifiedNkColorto thetext_pressedfield.NkColortext_pressed_active()Returns aNkColorview of thetext_pressed_activefield.NkStyleSelectabletext_pressed_active(java.util.function.Consumer<NkColor> consumer)Passes thetext_pressed_activefield to the specifiedConsumer.NkStyleSelectabletext_pressed_active(NkColor value)Copies the specifiedNkColorto thetext_pressed_activefield.NkVec2touch_padding()Returns aNkVec2view of thetouch_paddingfield.NkStyleSelectabletouch_padding(java.util.function.Consumer<NkVec2> consumer)Passes thetouch_paddingfield to the specifiedConsumer.NkStyleSelectabletouch_padding(NkVec2 value)Copies the specifiedNkVec2to thetouch_paddingfield.NkHandleuserdata()Returns aNkHandleview of theuserdatafield.NkStyleSelectableuserdata(java.util.function.Consumer<NkHandle> consumer)Passes theuserdatafield to the specifiedConsumer.NkStyleSelectableuserdata(NkHandle value)Copies the specifiedNkHandleto theuserdatafield.
-
-
-
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 aNkStyleSelectableinstance at the current position of the specifiedByteBuffercontainer. 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:
sizeofin classorg.lwjgl.system.Struct
-
normal
public NkStyleItem normal()
Returns aNkStyleItemview of thenormalfield.
-
normal
public NkStyleSelectable normal(java.util.function.Consumer<NkStyleItem> consumer)
Passes thenormalfield to the specifiedConsumer.
-
hover
public NkStyleItem hover()
Returns aNkStyleItemview of thehoverfield.
-
hover
public NkStyleSelectable hover(java.util.function.Consumer<NkStyleItem> consumer)
Passes thehoverfield to the specifiedConsumer.
-
pressed
public NkStyleItem pressed()
Returns aNkStyleItemview of thepressedfield.
-
pressed
public NkStyleSelectable pressed(java.util.function.Consumer<NkStyleItem> consumer)
Passes thepressedfield to the specifiedConsumer.
-
normal_active
public NkStyleItem normal_active()
Returns aNkStyleItemview of thenormal_activefield.
-
normal_active
public NkStyleSelectable normal_active(java.util.function.Consumer<NkStyleItem> consumer)
Passes thenormal_activefield to the specifiedConsumer.
-
hover_active
public NkStyleItem hover_active()
Returns aNkStyleItemview of thehover_activefield.
-
hover_active
public NkStyleSelectable hover_active(java.util.function.Consumer<NkStyleItem> consumer)
Passes thehover_activefield to the specifiedConsumer.
-
pressed_active
public NkStyleItem pressed_active()
Returns aNkStyleItemview of thepressed_activefield.
-
pressed_active
public NkStyleSelectable pressed_active(java.util.function.Consumer<NkStyleItem> consumer)
Passes thepressed_activefield to the specifiedConsumer.
-
text_normal
public NkStyleSelectable text_normal(java.util.function.Consumer<NkColor> consumer)
Passes thetext_normalfield to the specifiedConsumer.
-
text_hover
public NkStyleSelectable text_hover(java.util.function.Consumer<NkColor> consumer)
Passes thetext_hoverfield to the specifiedConsumer.
-
text_pressed
public NkStyleSelectable text_pressed(java.util.function.Consumer<NkColor> consumer)
Passes thetext_pressedfield to the specifiedConsumer.
-
text_normal_active
public NkColor text_normal_active()
Returns aNkColorview of thetext_normal_activefield.
-
text_normal_active
public NkStyleSelectable text_normal_active(java.util.function.Consumer<NkColor> consumer)
Passes thetext_normal_activefield to the specifiedConsumer.
-
text_hover_active
public NkColor text_hover_active()
Returns aNkColorview of thetext_hover_activefield.
-
text_hover_active
public NkStyleSelectable text_hover_active(java.util.function.Consumer<NkColor> consumer)
Passes thetext_hover_activefield to the specifiedConsumer.
-
text_pressed_active
public NkColor text_pressed_active()
Returns aNkColorview of thetext_pressed_activefield.
-
text_pressed_active
public NkStyleSelectable text_pressed_active(java.util.function.Consumer<NkColor> consumer)
Passes thetext_pressed_activefield to the specifiedConsumer.
-
text_background
public NkColor text_background()
Returns aNkColorview of thetext_backgroundfield.
-
text_background
public NkStyleSelectable text_background(java.util.function.Consumer<NkColor> consumer)
Passes thetext_backgroundfield to the specifiedConsumer.
-
text_alignment
public int text_alignment()
Returns the value of thetext_alignmentfield.
-
rounding
public float rounding()
Returns the value of theroundingfield.
-
padding
public NkStyleSelectable padding(java.util.function.Consumer<NkVec2> consumer)
Passes thepaddingfield to the specifiedConsumer.
-
touch_padding
public NkStyleSelectable touch_padding(java.util.function.Consumer<NkVec2> consumer)
Passes thetouch_paddingfield to the specifiedConsumer.
-
image_padding
public NkStyleSelectable image_padding(java.util.function.Consumer<NkVec2> consumer)
Passes theimage_paddingfield to the specifiedConsumer.
-
userdata
public NkStyleSelectable userdata(java.util.function.Consumer<NkHandle> consumer)
Passes theuserdatafield to the specifiedConsumer.
-
draw_begin
@Nullable public NkDrawBeginCallback draw_begin()
Returns the value of thedraw_beginfield.
-
draw_end
@Nullable public NkDrawEndCallback draw_end()
Returns the value of thedraw_endfield.
-
normal
public NkStyleSelectable normal(NkStyleItem value)
Copies the specifiedNkStyleItemto thenormalfield.
-
hover
public NkStyleSelectable hover(NkStyleItem value)
Copies the specifiedNkStyleItemto thehoverfield.
-
pressed
public NkStyleSelectable pressed(NkStyleItem value)
Copies the specifiedNkStyleItemto thepressedfield.
-
normal_active
public NkStyleSelectable normal_active(NkStyleItem value)
Copies the specifiedNkStyleItemto thenormal_activefield.
-
hover_active
public NkStyleSelectable hover_active(NkStyleItem value)
Copies the specifiedNkStyleItemto thehover_activefield.
-
pressed_active
public NkStyleSelectable pressed_active(NkStyleItem value)
Copies the specifiedNkStyleItemto thepressed_activefield.
-
text_normal
public NkStyleSelectable text_normal(NkColor value)
Copies the specifiedNkColorto thetext_normalfield.
-
text_hover
public NkStyleSelectable text_hover(NkColor value)
Copies the specifiedNkColorto thetext_hoverfield.
-
text_pressed
public NkStyleSelectable text_pressed(NkColor value)
Copies the specifiedNkColorto thetext_pressedfield.
-
text_normal_active
public NkStyleSelectable text_normal_active(NkColor value)
Copies the specifiedNkColorto thetext_normal_activefield.
-
text_hover_active
public NkStyleSelectable text_hover_active(NkColor value)
Copies the specifiedNkColorto thetext_hover_activefield.
-
text_pressed_active
public NkStyleSelectable text_pressed_active(NkColor value)
Copies the specifiedNkColorto thetext_pressed_activefield.
-
text_background
public NkStyleSelectable text_background(NkColor value)
Copies the specifiedNkColorto thetext_backgroundfield.
-
text_alignment
public NkStyleSelectable text_alignment(int value)
Sets the specified value to thetext_alignmentfield.
-
rounding
public NkStyleSelectable rounding(float value)
Sets the specified value to theroundingfield.
-
padding
public NkStyleSelectable padding(NkVec2 value)
Copies the specifiedNkVec2to thepaddingfield.
-
touch_padding
public NkStyleSelectable touch_padding(NkVec2 value)
Copies the specifiedNkVec2to thetouch_paddingfield.
-
image_padding
public NkStyleSelectable image_padding(NkVec2 value)
Copies the specifiedNkVec2to theimage_paddingfield.
-
userdata
public NkStyleSelectable userdata(NkHandle value)
Copies the specifiedNkHandleto theuserdatafield.
-
draw_begin
public NkStyleSelectable draw_begin(@Nullable NkDrawBeginCallbackI value)
Sets the specified value to thedraw_beginfield.
-
draw_end
public NkStyleSelectable draw_end(@Nullable NkDrawEndCallbackI value)
Sets the specified value to thedraw_endfield.
-
set
public NkStyleSelectable set(NkStyleItem normal, NkStyleItem hover, NkStyleItem pressed, NkStyleItem normal_active, NkStyleItem hover_active, NkStyleItem pressed_active, NkColor text_normal, NkColor text_hover, NkColor text_pressed, NkColor text_normal_active, NkColor text_hover_active, NkColor text_pressed_active, NkColor text_background, int text_alignment, float rounding, NkVec2 padding, NkVec2 touch_padding, NkVec2 image_padding, NkHandle userdata, NkDrawBeginCallbackI draw_begin, NkDrawEndCallbackI draw_end)
Initializes this struct with the specified values.
-
set
public NkStyleSelectable set(NkStyleSelectable src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static NkStyleSelectable malloc()
Returns a newNkStyleSelectableinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static NkStyleSelectable calloc()
Returns a newNkStyleSelectableinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static NkStyleSelectable create()
Returns a newNkStyleSelectableinstance allocated withBufferUtils.
-
create
public static NkStyleSelectable create(long address)
Returns a newNkStyleSelectableinstance for the specified memory address.
-
createSafe
@Nullable public static NkStyleSelectable createSafe(long address)
-
malloc
public static NkStyleSelectable.Buffer malloc(int capacity)
Returns a newNkStyleSelectable.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static NkStyleSelectable.Buffer calloc(int capacity)
Returns a newNkStyleSelectable.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static NkStyleSelectable.Buffer create(int capacity)
Returns a newNkStyleSelectable.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static NkStyleSelectable.Buffer create(long address, int capacity)
Create aNkStyleSelectable.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static NkStyleSelectable.Buffer createSafe(long address, int capacity)
-
mallocStack
public static NkStyleSelectable mallocStack()
Returns a newNkStyleSelectableinstance allocated on the thread-localMemoryStack.
-
callocStack
public static NkStyleSelectable callocStack()
Returns a newNkStyleSelectableinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.
-
mallocStack
public static NkStyleSelectable mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newNkStyleSelectableinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
callocStack
public static NkStyleSelectable callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newNkStyleSelectableinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
mallocStack
public static NkStyleSelectable.Buffer mallocStack(int capacity)
Returns a newNkStyleSelectable.Bufferinstance allocated on the thread-localMemoryStack.- Parameters:
capacity- the buffer capacity
-
callocStack
public static NkStyleSelectable.Buffer callocStack(int capacity)
Returns a newNkStyleSelectable.Bufferinstance allocated on the thread-localMemoryStackand 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 newNkStyleSelectable.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
callocStack
public static NkStyleSelectable.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newNkStyleSelectable.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
nnormal
public static NkStyleItem nnormal(long struct)
Unsafe version ofnormal().
-
nhover
public static NkStyleItem nhover(long struct)
Unsafe version ofhover().
-
npressed
public static NkStyleItem npressed(long struct)
Unsafe version ofpressed().
-
nnormal_active
public static NkStyleItem nnormal_active(long struct)
Unsafe version ofnormal_active().
-
nhover_active
public static NkStyleItem nhover_active(long struct)
Unsafe version ofhover_active().
-
npressed_active
public static NkStyleItem npressed_active(long struct)
Unsafe version ofpressed_active().
-
ntext_normal
public static NkColor ntext_normal(long struct)
Unsafe version oftext_normal().
-
ntext_hover
public static NkColor ntext_hover(long struct)
Unsafe version oftext_hover().
-
ntext_pressed
public static NkColor ntext_pressed(long struct)
Unsafe version oftext_pressed().
-
ntext_normal_active
public static NkColor ntext_normal_active(long struct)
Unsafe version oftext_normal_active().
-
ntext_hover_active
public static NkColor ntext_hover_active(long struct)
Unsafe version oftext_hover_active().
-
ntext_pressed_active
public static NkColor ntext_pressed_active(long struct)
Unsafe version oftext_pressed_active().
-
ntext_background
public static NkColor ntext_background(long struct)
Unsafe version oftext_background().
-
ntext_alignment
public static int ntext_alignment(long struct)
Unsafe version oftext_alignment().
-
nrounding
public static float nrounding(long struct)
Unsafe version ofrounding().
-
ntouch_padding
public static NkVec2 ntouch_padding(long struct)
Unsafe version oftouch_padding().
-
nimage_padding
public static NkVec2 nimage_padding(long struct)
Unsafe version ofimage_padding().
-
nuserdata
public static NkHandle nuserdata(long struct)
Unsafe version ofuserdata().
-
ndraw_begin
@Nullable public static NkDrawBeginCallback ndraw_begin(long struct)
Unsafe version ofdraw_begin().
-
ndraw_end
@Nullable public static NkDrawEndCallback ndraw_end(long struct)
Unsafe version ofdraw_end().
-
nnormal
public static void nnormal(long struct, NkStyleItem value)Unsafe version ofnormal.
-
nhover
public static void nhover(long struct, NkStyleItem value)Unsafe version ofhover.
-
npressed
public static void npressed(long struct, NkStyleItem value)Unsafe version ofpressed.
-
nnormal_active
public static void nnormal_active(long struct, NkStyleItem value)Unsafe version ofnormal_active.
-
nhover_active
public static void nhover_active(long struct, NkStyleItem value)Unsafe version ofhover_active.
-
npressed_active
public static void npressed_active(long struct, NkStyleItem value)Unsafe version ofpressed_active.
-
ntext_normal
public static void ntext_normal(long struct, NkColor value)Unsafe version oftext_normal.
-
ntext_hover
public static void ntext_hover(long struct, NkColor value)Unsafe version oftext_hover.
-
ntext_pressed
public static void ntext_pressed(long struct, NkColor value)Unsafe version oftext_pressed.
-
ntext_normal_active
public static void ntext_normal_active(long struct, NkColor value)Unsafe version oftext_normal_active.
-
ntext_hover_active
public static void ntext_hover_active(long struct, NkColor value)Unsafe version oftext_hover_active.
-
ntext_pressed_active
public static void ntext_pressed_active(long struct, NkColor value)Unsafe version oftext_pressed_active.
-
ntext_background
public static void ntext_background(long struct, NkColor value)Unsafe version oftext_background.
-
ntext_alignment
public static void ntext_alignment(long struct, int value)Unsafe version oftext_alignment.
-
nrounding
public static void nrounding(long struct, float value)Unsafe version ofrounding.
-
ntouch_padding
public static void ntouch_padding(long struct, NkVec2 value)Unsafe version oftouch_padding.
-
nimage_padding
public static void nimage_padding(long struct, NkVec2 value)Unsafe version ofimage_padding.
-
ndraw_begin
public static void ndraw_begin(long struct, @Nullable NkDrawBeginCallbackI value)Unsafe version ofdraw_begin.
-
ndraw_end
public static void ndraw_end(long struct, @Nullable NkDrawEndCallbackI value)Unsafe version ofdraw_end.
-
-