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.NativeResource
Layout
struct nk_style_selectable {
struct nk_style_item
normal;struct nk_style_item
hover;struct nk_style_item
pressed;struct nk_style_item
normal_active;struct nk_style_item
hover_active;struct nk_style_item
pressed_active;struct nk_color
text_normal;struct nk_color
text_hover;struct nk_color
text_pressed;struct nk_color
text_normal_active;struct nk_color
text_hover_active;struct nk_color
text_pressed_active;struct nk_color
text_background; nk_flags text_alignment; float rounding;struct nk_vec2
padding;struct nk_vec2
touch_padding;struct nk_vec2
image_padding;nk_handle
userdata;nk_draw_begin
draw_begin;nk_draw_end
draw_end; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
NkStyleSelectable.Buffer
An array ofNkStyleSelectable
structs.
-
Field Summary
Fields Modifier and Type Field Description static int
ALIGNOF
The struct alignment in bytes.static int
DRAW_BEGIN
DRAW_END
HOVER
HOVER_ACTIVE
IMAGE_PADDING
NORMAL
NORMAL_ACTIVE
PADDING
PRESSED
PRESSED_ACTIVE
ROUNDINGThe struct member offsets.static int
SIZEOF
The struct size in bytes.static int
TEXT_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 aNkStyleSelectable
instance at the current position of the specifiedByteBuffer
container.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static NkStyleSelectable
calloc()
Returns a newNkStyleSelectable
instance allocated withmemCalloc
.static NkStyleSelectable.Buffer
calloc(int capacity)
Returns a newNkStyleSelectable.Buffer
instance allocated withmemCalloc
.static NkStyleSelectable
callocStack()
Returns a newNkStyleSelectable
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static NkStyleSelectable.Buffer
callocStack(int capacity)
Returns a newNkStyleSelectable.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static NkStyleSelectable.Buffer
callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newNkStyleSelectable.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static NkStyleSelectable
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newNkStyleSelectable
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static NkStyleSelectable
create()
Returns a newNkStyleSelectable
instance allocated withBufferUtils
.static NkStyleSelectable.Buffer
create(int capacity)
Returns a newNkStyleSelectable.Buffer
instance allocated withBufferUtils
.static NkStyleSelectable
create(long address)
Returns a newNkStyleSelectable
instance for the specified memory address.static NkStyleSelectable.Buffer
create(long address, int capacity)
Create aNkStyleSelectable.Buffer
instance at the specified memory.static NkStyleSelectable
createSafe(long address)
static NkStyleSelectable.Buffer
createSafe(long address, int capacity)
NkDrawBeginCallback
draw_begin()
Returns the value of thedraw_begin
field.NkStyleSelectable
draw_begin(NkDrawBeginCallbackI value)
Sets the specified value to thedraw_begin
field.NkDrawEndCallback
draw_end()
Returns the value of thedraw_end
field.NkStyleSelectable
draw_end(NkDrawEndCallbackI value)
Sets the specified value to thedraw_end
field.NkStyleItem
hover()
Returns aNkStyleItem
view of thehover
field.NkStyleSelectable
hover(java.util.function.Consumer<NkStyleItem> consumer)
Passes thehover
field to the specifiedConsumer
.NkStyleSelectable
hover(NkStyleItem value)
Copies the specifiedNkStyleItem
to thehover
field.NkStyleItem
hover_active()
Returns aNkStyleItem
view of thehover_active
field.NkStyleSelectable
hover_active(java.util.function.Consumer<NkStyleItem> consumer)
Passes thehover_active
field to the specifiedConsumer
.NkStyleSelectable
hover_active(NkStyleItem value)
Copies the specifiedNkStyleItem
to thehover_active
field.NkVec2
image_padding()
Returns aNkVec2
view of theimage_padding
field.NkStyleSelectable
image_padding(java.util.function.Consumer<NkVec2> consumer)
Passes theimage_padding
field to the specifiedConsumer
.NkStyleSelectable
image_padding(NkVec2 value)
Copies the specifiedNkVec2
to theimage_padding
field.static NkStyleSelectable
malloc()
Returns a newNkStyleSelectable
instance allocated withmemAlloc
.static NkStyleSelectable.Buffer
malloc(int capacity)
Returns a newNkStyleSelectable.Buffer
instance allocated withmemAlloc
.static NkStyleSelectable
mallocStack()
Returns a newNkStyleSelectable
instance allocated on the thread-localMemoryStack
.static NkStyleSelectable.Buffer
mallocStack(int capacity)
Returns a newNkStyleSelectable.Buffer
instance allocated on the thread-localMemoryStack
.static NkStyleSelectable.Buffer
mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newNkStyleSelectable.Buffer
instance allocated on the specifiedMemoryStack
.static NkStyleSelectable
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newNkStyleSelectable
instance allocated on the specifiedMemoryStack
.static NkDrawBeginCallback
ndraw_begin(long struct)
Unsafe version ofdraw_begin()
.static void
ndraw_begin(long struct, NkDrawBeginCallbackI value)
Unsafe version ofdraw_begin
.static NkDrawEndCallback
ndraw_end(long struct)
Unsafe version ofdraw_end()
.static void
ndraw_end(long struct, NkDrawEndCallbackI value)
Unsafe version ofdraw_end
.static NkStyleItem
nhover(long struct)
Unsafe version ofhover()
.static void
nhover(long struct, NkStyleItem value)
Unsafe version ofhover
.static NkStyleItem
nhover_active(long struct)
Unsafe version ofhover_active()
.static void
nhover_active(long struct, NkStyleItem value)
Unsafe version ofhover_active
.static NkVec2
nimage_padding(long struct)
Unsafe version ofimage_padding()
.static void
nimage_padding(long struct, NkVec2 value)
Unsafe version ofimage_padding
.static NkStyleItem
nnormal(long struct)
Unsafe version ofnormal()
.static void
nnormal(long struct, NkStyleItem value)
Unsafe version ofnormal
.static NkStyleItem
nnormal_active(long struct)
Unsafe version ofnormal_active()
.static void
nnormal_active(long struct, NkStyleItem value)
Unsafe version ofnormal_active
.NkStyleItem
normal()
Returns aNkStyleItem
view of thenormal
field.NkStyleSelectable
normal(java.util.function.Consumer<NkStyleItem> consumer)
Passes thenormal
field to the specifiedConsumer
.NkStyleSelectable
normal(NkStyleItem value)
Copies the specifiedNkStyleItem
to thenormal
field.NkStyleItem
normal_active()
Returns aNkStyleItem
view of thenormal_active
field.NkStyleSelectable
normal_active(java.util.function.Consumer<NkStyleItem> consumer)
Passes thenormal_active
field to the specifiedConsumer
.NkStyleSelectable
normal_active(NkStyleItem value)
Copies the specifiedNkStyleItem
to thenormal_active
field.static NkVec2
npadding(long struct)
Unsafe version ofpadding()
.static void
npadding(long struct, NkVec2 value)
Unsafe version ofpadding
.static NkStyleItem
npressed(long struct)
Unsafe version ofpressed()
.static void
npressed(long struct, NkStyleItem value)
Unsafe version ofpressed
.static NkStyleItem
npressed_active(long struct)
Unsafe version ofpressed_active()
.static void
npressed_active(long struct, NkStyleItem value)
Unsafe version ofpressed_active
.static float
nrounding(long struct)
Unsafe version ofrounding()
.static void
nrounding(long struct, float value)
Unsafe version ofrounding
.static int
ntext_alignment(long struct)
Unsafe version oftext_alignment()
.static void
ntext_alignment(long struct, int value)
Unsafe version oftext_alignment
.static NkColor
ntext_background(long struct)
Unsafe version oftext_background()
.static void
ntext_background(long struct, NkColor value)
Unsafe version oftext_background
.static NkColor
ntext_hover(long struct)
Unsafe version oftext_hover()
.static void
ntext_hover(long struct, NkColor value)
Unsafe version oftext_hover
.static NkColor
ntext_hover_active(long struct)
Unsafe version oftext_hover_active()
.static void
ntext_hover_active(long struct, NkColor value)
Unsafe version oftext_hover_active
.static NkColor
ntext_normal(long struct)
Unsafe version oftext_normal()
.static void
ntext_normal(long struct, NkColor value)
Unsafe version oftext_normal
.static NkColor
ntext_normal_active(long struct)
Unsafe version oftext_normal_active()
.static void
ntext_normal_active(long struct, NkColor value)
Unsafe version oftext_normal_active
.static NkColor
ntext_pressed(long struct)
Unsafe version oftext_pressed()
.static void
ntext_pressed(long struct, NkColor value)
Unsafe version oftext_pressed
.static NkColor
ntext_pressed_active(long struct)
Unsafe version oftext_pressed_active()
.static void
ntext_pressed_active(long struct, NkColor value)
Unsafe version oftext_pressed_active
.static NkVec2
ntouch_padding(long struct)
Unsafe version oftouch_padding()
.static void
ntouch_padding(long struct, NkVec2 value)
Unsafe version oftouch_padding
.static NkHandle
nuserdata(long struct)
Unsafe version ofuserdata()
.static void
nuserdata(long struct, NkHandle value)
Unsafe version ofuserdata
.NkVec2
padding()
Returns aNkVec2
view of thepadding
field.NkStyleSelectable
padding(java.util.function.Consumer<NkVec2> consumer)
Passes thepadding
field to the specifiedConsumer
.NkStyleSelectable
padding(NkVec2 value)
Copies the specifiedNkVec2
to thepadding
field.NkStyleItem
pressed()
Returns aNkStyleItem
view of thepressed
field.NkStyleSelectable
pressed(java.util.function.Consumer<NkStyleItem> consumer)
Passes thepressed
field to the specifiedConsumer
.NkStyleSelectable
pressed(NkStyleItem value)
Copies the specifiedNkStyleItem
to thepressed
field.NkStyleItem
pressed_active()
Returns aNkStyleItem
view of thepressed_active
field.NkStyleSelectable
pressed_active(java.util.function.Consumer<NkStyleItem> consumer)
Passes thepressed_active
field to the specifiedConsumer
.NkStyleSelectable
pressed_active(NkStyleItem value)
Copies the specifiedNkStyleItem
to thepressed_active
field.float
rounding()
Returns the value of therounding
field.NkStyleSelectable
rounding(float value)
Sets the specified value to therounding
field.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.NkStyleSelectable
set(NkStyleSelectable src)
Copies the specified struct data to this struct.int
sizeof()
int
text_alignment()
Returns the value of thetext_alignment
field.NkStyleSelectable
text_alignment(int value)
Sets the specified value to thetext_alignment
field.NkColor
text_background()
Returns aNkColor
view of thetext_background
field.NkStyleSelectable
text_background(java.util.function.Consumer<NkColor> consumer)
Passes thetext_background
field to the specifiedConsumer
.NkStyleSelectable
text_background(NkColor value)
Copies the specifiedNkColor
to thetext_background
field.NkColor
text_hover()
Returns aNkColor
view of thetext_hover
field.NkStyleSelectable
text_hover(java.util.function.Consumer<NkColor> consumer)
Passes thetext_hover
field to the specifiedConsumer
.NkStyleSelectable
text_hover(NkColor value)
Copies the specifiedNkColor
to thetext_hover
field.NkColor
text_hover_active()
Returns aNkColor
view of thetext_hover_active
field.NkStyleSelectable
text_hover_active(java.util.function.Consumer<NkColor> consumer)
Passes thetext_hover_active
field to the specifiedConsumer
.NkStyleSelectable
text_hover_active(NkColor value)
Copies the specifiedNkColor
to thetext_hover_active
field.NkColor
text_normal()
Returns aNkColor
view of thetext_normal
field.NkStyleSelectable
text_normal(java.util.function.Consumer<NkColor> consumer)
Passes thetext_normal
field to the specifiedConsumer
.NkStyleSelectable
text_normal(NkColor value)
Copies the specifiedNkColor
to thetext_normal
field.NkColor
text_normal_active()
Returns aNkColor
view of thetext_normal_active
field.NkStyleSelectable
text_normal_active(java.util.function.Consumer<NkColor> consumer)
Passes thetext_normal_active
field to the specifiedConsumer
.NkStyleSelectable
text_normal_active(NkColor value)
Copies the specifiedNkColor
to thetext_normal_active
field.NkColor
text_pressed()
Returns aNkColor
view of thetext_pressed
field.NkStyleSelectable
text_pressed(java.util.function.Consumer<NkColor> consumer)
Passes thetext_pressed
field to the specifiedConsumer
.NkStyleSelectable
text_pressed(NkColor value)
Copies the specifiedNkColor
to thetext_pressed
field.NkColor
text_pressed_active()
Returns aNkColor
view of thetext_pressed_active
field.NkStyleSelectable
text_pressed_active(java.util.function.Consumer<NkColor> consumer)
Passes thetext_pressed_active
field to the specifiedConsumer
.NkStyleSelectable
text_pressed_active(NkColor value)
Copies the specifiedNkColor
to thetext_pressed_active
field.NkVec2
touch_padding()
Returns aNkVec2
view of thetouch_padding
field.NkStyleSelectable
touch_padding(java.util.function.Consumer<NkVec2> consumer)
Passes thetouch_padding
field to the specifiedConsumer
.NkStyleSelectable
touch_padding(NkVec2 value)
Copies the specifiedNkVec2
to thetouch_padding
field.NkHandle
userdata()
Returns aNkHandle
view of theuserdata
field.NkStyleSelectable
userdata(java.util.function.Consumer<NkHandle> consumer)
Passes theuserdata
field to the specifiedConsumer
.NkStyleSelectable
userdata(NkHandle value)
Copies the specifiedNkHandle
to theuserdata
field.
-
-
-
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 aNkStyleSelectable
instance at the current position of the specifiedByteBuffer
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 classorg.lwjgl.system.Struct
-
normal
public NkStyleItem normal()
Returns aNkStyleItem
view of thenormal
field.
-
hover
public NkStyleItem hover()
Returns aNkStyleItem
view of thehover
field.
-
pressed
public NkStyleItem pressed()
Returns aNkStyleItem
view of thepressed
field.
-
normal_active
public NkStyleItem normal_active()
Returns aNkStyleItem
view of thenormal_active
field.
-
hover_active
public NkStyleItem hover_active()
Returns aNkStyleItem
view of thehover_active
field.
-
pressed_active
public NkStyleItem pressed_active()
Returns aNkStyleItem
view of thepressed_active
field.
-
text_normal_active
public NkColor text_normal_active()
Returns aNkColor
view of thetext_normal_active
field.
-
text_hover_active
public NkColor text_hover_active()
Returns aNkColor
view of thetext_hover_active
field.
-
text_pressed_active
public NkColor text_pressed_active()
Returns aNkColor
view of thetext_pressed_active
field.
-
text_background
public NkColor text_background()
Returns aNkColor
view of thetext_background
field.
-
text_alignment
public int text_alignment()
Returns the value of thetext_alignment
field.
-
rounding
public float rounding()
Returns the value of therounding
field.
-
draw_begin
@Nullable public NkDrawBeginCallback draw_begin()
Returns the value of thedraw_begin
field.
-
draw_end
@Nullable public NkDrawEndCallback draw_end()
Returns the value of thedraw_end
field.
-
normal
public NkStyleSelectable normal(NkStyleItem value)
Copies the specifiedNkStyleItem
to thenormal
field.
-
normal
public NkStyleSelectable normal(java.util.function.Consumer<NkStyleItem> consumer)
Passes thenormal
field to the specifiedConsumer
.
-
hover
public NkStyleSelectable hover(NkStyleItem value)
Copies the specifiedNkStyleItem
to thehover
field.
-
hover
public NkStyleSelectable hover(java.util.function.Consumer<NkStyleItem> consumer)
Passes thehover
field to the specifiedConsumer
.
-
pressed
public NkStyleSelectable pressed(NkStyleItem value)
Copies the specifiedNkStyleItem
to thepressed
field.
-
pressed
public NkStyleSelectable pressed(java.util.function.Consumer<NkStyleItem> consumer)
Passes thepressed
field to the specifiedConsumer
.
-
normal_active
public NkStyleSelectable normal_active(NkStyleItem value)
Copies the specifiedNkStyleItem
to thenormal_active
field.
-
normal_active
public NkStyleSelectable normal_active(java.util.function.Consumer<NkStyleItem> consumer)
Passes thenormal_active
field to the specifiedConsumer
.
-
hover_active
public NkStyleSelectable hover_active(NkStyleItem value)
Copies the specifiedNkStyleItem
to thehover_active
field.
-
hover_active
public NkStyleSelectable hover_active(java.util.function.Consumer<NkStyleItem> consumer)
Passes thehover_active
field to the specifiedConsumer
.
-
pressed_active
public NkStyleSelectable pressed_active(NkStyleItem value)
Copies the specifiedNkStyleItem
to thepressed_active
field.
-
pressed_active
public NkStyleSelectable pressed_active(java.util.function.Consumer<NkStyleItem> consumer)
Passes thepressed_active
field to the specifiedConsumer
.
-
text_normal
public NkStyleSelectable text_normal(NkColor value)
Copies the specifiedNkColor
to thetext_normal
field.
-
text_normal
public NkStyleSelectable text_normal(java.util.function.Consumer<NkColor> consumer)
Passes thetext_normal
field to the specifiedConsumer
.
-
text_hover
public NkStyleSelectable text_hover(NkColor value)
Copies the specifiedNkColor
to thetext_hover
field.
-
text_hover
public NkStyleSelectable text_hover(java.util.function.Consumer<NkColor> consumer)
Passes thetext_hover
field to the specifiedConsumer
.
-
text_pressed
public NkStyleSelectable text_pressed(NkColor value)
Copies the specifiedNkColor
to thetext_pressed
field.
-
text_pressed
public NkStyleSelectable text_pressed(java.util.function.Consumer<NkColor> consumer)
Passes thetext_pressed
field to the specifiedConsumer
.
-
text_normal_active
public NkStyleSelectable text_normal_active(NkColor value)
Copies the specifiedNkColor
to thetext_normal_active
field.
-
text_normal_active
public NkStyleSelectable text_normal_active(java.util.function.Consumer<NkColor> consumer)
Passes thetext_normal_active
field to the specifiedConsumer
.
-
text_hover_active
public NkStyleSelectable text_hover_active(NkColor value)
Copies the specifiedNkColor
to thetext_hover_active
field.
-
text_hover_active
public NkStyleSelectable text_hover_active(java.util.function.Consumer<NkColor> consumer)
Passes thetext_hover_active
field to the specifiedConsumer
.
-
text_pressed_active
public NkStyleSelectable text_pressed_active(NkColor value)
Copies the specifiedNkColor
to thetext_pressed_active
field.
-
text_pressed_active
public NkStyleSelectable text_pressed_active(java.util.function.Consumer<NkColor> consumer)
Passes thetext_pressed_active
field to the specifiedConsumer
.
-
text_background
public NkStyleSelectable text_background(NkColor value)
Copies the specifiedNkColor
to thetext_background
field.
-
text_background
public NkStyleSelectable text_background(java.util.function.Consumer<NkColor> consumer)
Passes thetext_background
field to the specifiedConsumer
.
-
text_alignment
public NkStyleSelectable text_alignment(int value)
Sets the specified value to thetext_alignment
field.
-
rounding
public NkStyleSelectable rounding(float value)
Sets the specified value to therounding
field.
-
padding
public NkStyleSelectable padding(NkVec2 value)
Copies the specifiedNkVec2
to thepadding
field.
-
padding
public NkStyleSelectable padding(java.util.function.Consumer<NkVec2> consumer)
Passes thepadding
field to the specifiedConsumer
.
-
touch_padding
public NkStyleSelectable touch_padding(NkVec2 value)
Copies the specifiedNkVec2
to thetouch_padding
field.
-
touch_padding
public NkStyleSelectable touch_padding(java.util.function.Consumer<NkVec2> consumer)
Passes thetouch_padding
field to the specifiedConsumer
.
-
image_padding
public NkStyleSelectable image_padding(NkVec2 value)
Copies the specifiedNkVec2
to theimage_padding
field.
-
image_padding
public NkStyleSelectable image_padding(java.util.function.Consumer<NkVec2> consumer)
Passes theimage_padding
field to the specifiedConsumer
.
-
userdata
public NkStyleSelectable userdata(NkHandle value)
Copies the specifiedNkHandle
to theuserdata
field.
-
userdata
public NkStyleSelectable userdata(java.util.function.Consumer<NkHandle> consumer)
Passes theuserdata
field to the specifiedConsumer
.
-
draw_begin
public NkStyleSelectable draw_begin(@Nullable NkDrawBeginCallbackI value)
Sets the specified value to thedraw_begin
field.
-
draw_end
public NkStyleSelectable draw_end(@Nullable NkDrawEndCallbackI value)
Sets the specified value to thedraw_end
field.
-
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 newNkStyleSelectable
instance allocated withmemAlloc
. The instance must be explicitly freed.
-
calloc
public static NkStyleSelectable calloc()
Returns a newNkStyleSelectable
instance allocated withmemCalloc
. The instance must be explicitly freed.
-
create
public static NkStyleSelectable create()
Returns a newNkStyleSelectable
instance allocated withBufferUtils
.
-
create
public static NkStyleSelectable create(long address)
Returns a newNkStyleSelectable
instance for the specified memory address.
-
createSafe
@Nullable public static NkStyleSelectable createSafe(long address)
-
malloc
public static NkStyleSelectable.Buffer malloc(int capacity)
Returns a newNkStyleSelectable.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
public static NkStyleSelectable.Buffer calloc(int capacity)
Returns a newNkStyleSelectable.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
public static NkStyleSelectable.Buffer create(int capacity)
Returns a newNkStyleSelectable.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
public static NkStyleSelectable.Buffer create(long address, int capacity)
Create aNkStyleSelectable.Buffer
instance 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 newNkStyleSelectable
instance allocated on the thread-localMemoryStack
.
-
callocStack
public static NkStyleSelectable callocStack()
Returns a newNkStyleSelectable
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.
-
mallocStack
public static NkStyleSelectable mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newNkStyleSelectable
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
callocStack
public static NkStyleSelectable callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newNkStyleSelectable
instance allocated on the specifiedMemoryStack
and 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.Buffer
instance allocated on the thread-localMemoryStack
.- Parameters:
capacity
- the buffer capacity
-
callocStack
public static NkStyleSelectable.Buffer callocStack(int capacity)
Returns a newNkStyleSelectable.Buffer
instance allocated on the thread-localMemoryStack
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 newNkStyleSelectable.Buffer
instance 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.Buffer
instance allocated on the specifiedMemoryStack
and 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
.
-
-