public class NkStyleProgress
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
struct nk_style_progress {
struct nk_style_item normal;
struct nk_style_item hover;
struct nk_style_item active;
struct nk_color border_color;
struct nk_style_item cursor_normal;
struct nk_style_item cursor_hover;
struct nk_style_item cursor_active;
struct nk_color cursor_border_color;
float rounding;
float border;
float cursor_border;
float cursor_rounding;
struct nk_vec2 padding;
nk_handle userdata;
nk_draw_begin draw_begin;
nk_draw_end draw_end;
}| Modifier and Type | Class and Description |
|---|---|
static class |
NkStyleProgress.Buffer
An array of
NkStyleProgress structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ACTIVE
The struct member offsets.
|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
BORDER
The struct member offsets.
|
static int |
BORDER_COLOR
The struct member offsets.
|
static int |
CURSOR_ACTIVE
The struct member offsets.
|
static int |
CURSOR_BORDER
The struct member offsets.
|
static int |
CURSOR_BORDER_COLOR
The struct member offsets.
|
static int |
CURSOR_HOVER
The struct member offsets.
|
static int |
CURSOR_NORMAL
The struct member offsets.
|
static int |
CURSOR_ROUNDING
The struct member offsets.
|
static int |
DRAW_BEGIN
The struct member offsets.
|
static int |
DRAW_END
The struct member offsets.
|
static int |
HOVER
The struct member offsets.
|
static int |
NORMAL
The struct member offsets.
|
static int |
PADDING
The struct member offsets.
|
static int |
ROUNDING
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
static int |
USERDATA
The struct member offsets.
|
| Constructor and Description |
|---|
NkStyleProgress(java.nio.ByteBuffer container)
Creates a
NkStyleProgress instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
NkStyleItem |
active()
Returns a
NkStyleItem view of the active field. |
NkStyleProgress |
active(java.util.function.Consumer<NkStyleItem> consumer)
Passes the
active field to the specified Consumer. |
NkStyleProgress |
active(NkStyleItem value)
Copies the specified
NkStyleItem to the active field. |
NkColor |
border_color()
Returns a
NkColor view of the border_color field. |
NkStyleProgress |
border_color(java.util.function.Consumer<NkColor> consumer)
Passes the
border_color field to the specified Consumer. |
NkStyleProgress |
border_color(NkColor value)
Copies the specified
NkColor to the border_color field. |
float |
border()
Returns the value of the
border field. |
NkStyleProgress |
border(float value)
Sets the specified value to the
border field. |
static NkStyleProgress |
calloc()
Returns a new
NkStyleProgress instance allocated with memCalloc. |
static NkStyleProgress.Buffer |
calloc(int capacity)
Returns a new
NkStyleProgress.Buffer instance allocated with memCalloc. |
static NkStyleProgress |
callocStack()
Returns a new
NkStyleProgress instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static NkStyleProgress.Buffer |
callocStack(int capacity)
Returns a new
NkStyleProgress.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static NkStyleProgress.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
NkStyleProgress.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static NkStyleProgress |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
NkStyleProgress instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static NkStyleProgress |
create()
Returns a new
NkStyleProgress instance allocated with BufferUtils. |
static NkStyleProgress.Buffer |
create(int capacity)
Returns a new
NkStyleProgress.Buffer instance allocated with BufferUtils. |
static NkStyleProgress |
create(long address)
Returns a new
NkStyleProgress instance for the specified memory address. |
static NkStyleProgress.Buffer |
create(long address,
int capacity)
Create a
NkStyleProgress.Buffer instance at the specified memory. |
static NkStyleProgress |
createSafe(long address)
|
static NkStyleProgress.Buffer |
createSafe(long address,
int capacity)
|
NkStyleItem |
cursor_active()
Returns a
NkStyleItem view of the cursor_active field. |
NkStyleProgress |
cursor_active(java.util.function.Consumer<NkStyleItem> consumer)
Passes the
cursor_active field to the specified Consumer. |
NkStyleProgress |
cursor_active(NkStyleItem value)
Copies the specified
NkStyleItem to the cursor_active field. |
NkColor |
cursor_border_color()
Returns a
NkColor view of the cursor_border_color field. |
NkStyleProgress |
cursor_border_color(java.util.function.Consumer<NkColor> consumer)
Passes the
cursor_border_color field to the specified Consumer. |
NkStyleProgress |
cursor_border_color(NkColor value)
Copies the specified
NkColor to the cursor_border_color field. |
float |
cursor_border()
Returns the value of the
cursor_border field. |
NkStyleProgress |
cursor_border(float value)
Sets the specified value to the
cursor_border field. |
NkStyleItem |
cursor_hover()
Returns a
NkStyleItem view of the cursor_hover field. |
NkStyleProgress |
cursor_hover(java.util.function.Consumer<NkStyleItem> consumer)
Passes the
cursor_hover field to the specified Consumer. |
NkStyleProgress |
cursor_hover(NkStyleItem value)
Copies the specified
NkStyleItem to the cursor_hover field. |
NkStyleItem |
cursor_normal()
Returns a
NkStyleItem view of the cursor_normal field. |
NkStyleProgress |
cursor_normal(java.util.function.Consumer<NkStyleItem> consumer)
Passes the
cursor_normal field to the specified Consumer. |
NkStyleProgress |
cursor_normal(NkStyleItem value)
Copies the specified
NkStyleItem to the cursor_normal field. |
float |
cursor_rounding()
Returns the value of the
cursor_rounding field. |
NkStyleProgress |
cursor_rounding(float value)
Sets the specified value to the
cursor_rounding field. |
NkDrawBeginCallback |
draw_begin()
Returns the value of the
draw_begin field. |
NkStyleProgress |
draw_begin(NkDrawBeginCallbackI value)
Sets the specified value to the
draw_begin field. |
NkDrawEndCallback |
draw_end()
Returns the value of the
draw_end field. |
NkStyleProgress |
draw_end(NkDrawEndCallbackI value)
Sets the specified value to the
draw_end field. |
NkStyleItem |
hover()
Returns a
NkStyleItem view of the hover field. |
NkStyleProgress |
hover(java.util.function.Consumer<NkStyleItem> consumer)
Passes the
hover field to the specified Consumer. |
NkStyleProgress |
hover(NkStyleItem value)
Copies the specified
NkStyleItem to the hover field. |
static NkStyleProgress |
malloc()
Returns a new
NkStyleProgress instance allocated with memAlloc. |
static NkStyleProgress.Buffer |
malloc(int capacity)
Returns a new
NkStyleProgress.Buffer instance allocated with memAlloc. |
static NkStyleProgress |
mallocStack()
Returns a new
NkStyleProgress instance allocated on the thread-local MemoryStack. |
static NkStyleProgress.Buffer |
mallocStack(int capacity)
Returns a new
NkStyleProgress.Buffer instance allocated on the thread-local MemoryStack. |
static NkStyleProgress.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
NkStyleProgress.Buffer instance allocated on the specified MemoryStack. |
static NkStyleProgress |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
NkStyleProgress instance allocated on the specified MemoryStack. |
static NkStyleItem |
nactive(long struct)
Unsafe version of
active(). |
static void |
nactive(long struct,
NkStyleItem value)
Unsafe version of
active. |
static NkColor |
nborder_color(long struct)
Unsafe version of
border_color(). |
static void |
nborder_color(long struct,
NkColor value)
Unsafe version of
border_color. |
static float |
nborder(long struct)
Unsafe version of
border(). |
static void |
nborder(long struct,
float value)
Unsafe version of
border. |
static NkStyleItem |
ncursor_active(long struct)
Unsafe version of
cursor_active(). |
static void |
ncursor_active(long struct,
NkStyleItem value)
Unsafe version of
cursor_active. |
static NkColor |
ncursor_border_color(long struct)
Unsafe version of
cursor_border_color(). |
static void |
ncursor_border_color(long struct,
NkColor value)
Unsafe version of
cursor_border_color. |
static float |
ncursor_border(long struct)
Unsafe version of
cursor_border(). |
static void |
ncursor_border(long struct,
float value)
Unsafe version of
cursor_border. |
static NkStyleItem |
ncursor_hover(long struct)
Unsafe version of
cursor_hover(). |
static void |
ncursor_hover(long struct,
NkStyleItem value)
Unsafe version of
cursor_hover. |
static NkStyleItem |
ncursor_normal(long struct)
Unsafe version of
cursor_normal(). |
static void |
ncursor_normal(long struct,
NkStyleItem value)
Unsafe version of
cursor_normal. |
static float |
ncursor_rounding(long struct)
Unsafe version of
cursor_rounding(). |
static void |
ncursor_rounding(long struct,
float value)
Unsafe version of
cursor_rounding. |
static NkDrawBeginCallback |
ndraw_begin(long struct)
Unsafe version of
draw_begin(). |
static void |
ndraw_begin(long struct,
NkDrawBeginCallbackI value)
Unsafe version of
draw_begin. |
static NkDrawEndCallback |
ndraw_end(long struct)
Unsafe version of
draw_end(). |
static void |
ndraw_end(long struct,
NkDrawEndCallbackI value)
Unsafe version of
draw_end. |
static NkStyleItem |
nhover(long struct)
Unsafe version of
hover(). |
static void |
nhover(long struct,
NkStyleItem value)
Unsafe version of
hover. |
static NkStyleItem |
nnormal(long struct)
Unsafe version of
normal(). |
static void |
nnormal(long struct,
NkStyleItem value)
Unsafe version of
normal. |
NkStyleItem |
normal()
Returns a
NkStyleItem view of the normal field. |
NkStyleProgress |
normal(java.util.function.Consumer<NkStyleItem> consumer)
Passes the
normal field to the specified Consumer. |
NkStyleProgress |
normal(NkStyleItem value)
Copies the specified
NkStyleItem to the normal field. |
static NkVec2 |
npadding(long struct)
Unsafe version of
padding(). |
static void |
npadding(long struct,
NkVec2 value)
Unsafe version of
padding. |
static float |
nrounding(long struct)
Unsafe version of
rounding(). |
static void |
nrounding(long struct,
float value)
Unsafe version of
rounding. |
static NkHandle |
nuserdata(long struct)
Unsafe version of
userdata(). |
static void |
nuserdata(long struct,
NkHandle value)
Unsafe version of
userdata. |
NkVec2 |
padding()
Returns a
NkVec2 view of the padding field. |
NkStyleProgress |
padding(java.util.function.Consumer<NkVec2> consumer)
Passes the
padding field to the specified Consumer. |
NkStyleProgress |
padding(NkVec2 value)
Copies the specified
NkVec2 to the padding field. |
float |
rounding()
Returns the value of the
rounding field. |
NkStyleProgress |
rounding(float value)
Sets the specified value to the
rounding field. |
NkStyleProgress |
set(NkStyleItem normal,
NkStyleItem hover,
NkStyleItem active,
NkColor border_color,
NkStyleItem cursor_normal,
NkStyleItem cursor_hover,
NkStyleItem cursor_active,
NkColor cursor_border_color,
float rounding,
float border,
float cursor_border,
float cursor_rounding,
NkVec2 padding,
NkHandle userdata,
NkDrawBeginCallbackI draw_begin,
NkDrawEndCallbackI draw_end)
Initializes this struct with the specified values.
|
NkStyleProgress |
set(NkStyleProgress src)
Copies the specified struct data to this struct.
|
int |
sizeof() |
NkHandle |
userdata()
Returns a
NkHandle view of the userdata field. |
NkStyleProgress |
userdata(java.util.function.Consumer<NkHandle> consumer)
Passes the
userdata field to the specified Consumer. |
NkStyleProgress |
userdata(NkHandle value)
Copies the specified
NkHandle to the userdata field. |
public static final int SIZEOF
public static final int ALIGNOF
public static final int NORMAL
public static final int HOVER
public static final int ACTIVE
public static final int BORDER_COLOR
public static final int CURSOR_NORMAL
public static final int CURSOR_HOVER
public static final int CURSOR_ACTIVE
public static final int CURSOR_BORDER_COLOR
public static final int ROUNDING
public static final int BORDER
public static final int CURSOR_BORDER
public static final int CURSOR_ROUNDING
public static final int PADDING
public static final int USERDATA
public static final int DRAW_BEGIN
public static final int DRAW_END
public NkStyleProgress(java.nio.ByteBuffer container)
NkStyleProgress 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.
public int sizeof()
sizeof in class org.lwjgl.system.Structpublic NkStyleItem normal()
NkStyleItem view of the normal field.public NkStyleItem hover()
NkStyleItem view of the hover field.public NkStyleItem active()
NkStyleItem view of the active field.public NkStyleItem cursor_normal()
NkStyleItem view of the cursor_normal field.public NkStyleItem cursor_hover()
NkStyleItem view of the cursor_hover field.public NkStyleItem cursor_active()
NkStyleItem view of the cursor_active field.public NkColor cursor_border_color()
NkColor view of the cursor_border_color field.public float rounding()
rounding field.public float border()
border field.public float cursor_border()
cursor_border field.public float cursor_rounding()
cursor_rounding field.@Nullable public NkDrawBeginCallback draw_begin()
draw_begin field.@Nullable public NkDrawEndCallback draw_end()
draw_end field.public NkStyleProgress normal(NkStyleItem value)
NkStyleItem to the normal field.public NkStyleProgress normal(java.util.function.Consumer<NkStyleItem> consumer)
normal field to the specified Consumer.public NkStyleProgress hover(NkStyleItem value)
NkStyleItem to the hover field.public NkStyleProgress hover(java.util.function.Consumer<NkStyleItem> consumer)
hover field to the specified Consumer.public NkStyleProgress active(NkStyleItem value)
NkStyleItem to the active field.public NkStyleProgress active(java.util.function.Consumer<NkStyleItem> consumer)
active field to the specified Consumer.public NkStyleProgress border_color(NkColor value)
NkColor to the border_color field.public NkStyleProgress border_color(java.util.function.Consumer<NkColor> consumer)
border_color field to the specified Consumer.public NkStyleProgress cursor_normal(NkStyleItem value)
NkStyleItem to the cursor_normal field.public NkStyleProgress cursor_normal(java.util.function.Consumer<NkStyleItem> consumer)
cursor_normal field to the specified Consumer.public NkStyleProgress cursor_hover(NkStyleItem value)
NkStyleItem to the cursor_hover field.public NkStyleProgress cursor_hover(java.util.function.Consumer<NkStyleItem> consumer)
cursor_hover field to the specified Consumer.public NkStyleProgress cursor_active(NkStyleItem value)
NkStyleItem to the cursor_active field.public NkStyleProgress cursor_active(java.util.function.Consumer<NkStyleItem> consumer)
cursor_active field to the specified Consumer.public NkStyleProgress cursor_border_color(NkColor value)
NkColor to the cursor_border_color field.public NkStyleProgress cursor_border_color(java.util.function.Consumer<NkColor> consumer)
cursor_border_color field to the specified Consumer.public NkStyleProgress rounding(float value)
rounding field.public NkStyleProgress border(float value)
border field.public NkStyleProgress cursor_border(float value)
cursor_border field.public NkStyleProgress cursor_rounding(float value)
cursor_rounding field.public NkStyleProgress padding(NkVec2 value)
NkVec2 to the padding field.public NkStyleProgress padding(java.util.function.Consumer<NkVec2> consumer)
padding field to the specified Consumer.public NkStyleProgress userdata(NkHandle value)
NkHandle to the userdata field.public NkStyleProgress userdata(java.util.function.Consumer<NkHandle> consumer)
userdata field to the specified Consumer.public NkStyleProgress draw_begin(@Nullable NkDrawBeginCallbackI value)
draw_begin field.public NkStyleProgress draw_end(@Nullable NkDrawEndCallbackI value)
draw_end field.public NkStyleProgress set(NkStyleItem normal, NkStyleItem hover, NkStyleItem active, NkColor border_color, NkStyleItem cursor_normal, NkStyleItem cursor_hover, NkStyleItem cursor_active, NkColor cursor_border_color, float rounding, float border, float cursor_border, float cursor_rounding, NkVec2 padding, NkHandle userdata, NkDrawBeginCallbackI draw_begin, NkDrawEndCallbackI draw_end)
public NkStyleProgress set(NkStyleProgress src)
src - the source structpublic static NkStyleProgress malloc()
NkStyleProgress instance allocated with memAlloc. The instance must be explicitly freed.public static NkStyleProgress calloc()
NkStyleProgress instance allocated with memCalloc. The instance must be explicitly freed.public static NkStyleProgress create()
NkStyleProgress instance allocated with BufferUtils.public static NkStyleProgress create(long address)
NkStyleProgress instance for the specified memory address.@Nullable public static NkStyleProgress createSafe(long address)
public static NkStyleProgress.Buffer malloc(int capacity)
NkStyleProgress.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static NkStyleProgress.Buffer calloc(int capacity)
NkStyleProgress.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static NkStyleProgress.Buffer create(int capacity)
NkStyleProgress.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static NkStyleProgress.Buffer create(long address, int capacity)
NkStyleProgress.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static NkStyleProgress.Buffer createSafe(long address, int capacity)
public static NkStyleProgress mallocStack()
NkStyleProgress instance allocated on the thread-local MemoryStack.public static NkStyleProgress callocStack()
NkStyleProgress instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static NkStyleProgress mallocStack(org.lwjgl.system.MemoryStack stack)
NkStyleProgress instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static NkStyleProgress callocStack(org.lwjgl.system.MemoryStack stack)
NkStyleProgress instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static NkStyleProgress.Buffer mallocStack(int capacity)
NkStyleProgress.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static NkStyleProgress.Buffer callocStack(int capacity)
NkStyleProgress.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static NkStyleProgress.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
NkStyleProgress.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static NkStyleProgress.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
NkStyleProgress.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatecapacity - the buffer capacitypublic static NkStyleItem nnormal(long struct)
normal().public static NkStyleItem nhover(long struct)
hover().public static NkStyleItem nactive(long struct)
active().public static NkColor nborder_color(long struct)
border_color().public static NkStyleItem ncursor_normal(long struct)
cursor_normal().public static NkStyleItem ncursor_hover(long struct)
cursor_hover().public static NkStyleItem ncursor_active(long struct)
cursor_active().public static NkColor ncursor_border_color(long struct)
cursor_border_color().public static float nrounding(long struct)
rounding().public static float nborder(long struct)
border().public static float ncursor_border(long struct)
cursor_border().public static float ncursor_rounding(long struct)
cursor_rounding().public static NkHandle nuserdata(long struct)
userdata().@Nullable public static NkDrawBeginCallback ndraw_begin(long struct)
draw_begin().@Nullable public static NkDrawEndCallback ndraw_end(long struct)
draw_end().public static void nnormal(long struct,
NkStyleItem value)
normal.public static void nhover(long struct,
NkStyleItem value)
hover.public static void nactive(long struct,
NkStyleItem value)
active.public static void nborder_color(long struct,
NkColor value)
border_color.public static void ncursor_normal(long struct,
NkStyleItem value)
cursor_normal.public static void ncursor_hover(long struct,
NkStyleItem value)
cursor_hover.public static void ncursor_active(long struct,
NkStyleItem value)
cursor_active.public static void ncursor_border_color(long struct,
NkColor value)
cursor_border_color.public static void nrounding(long struct,
float value)
rounding.public static void nborder(long struct,
float value)
border.public static void ncursor_border(long struct,
float value)
cursor_border.public static void ncursor_rounding(long struct,
float value)
cursor_rounding.public static void ndraw_begin(long struct,
@Nullable
NkDrawBeginCallbackI value)
draw_begin.public static void ndraw_end(long struct,
@Nullable
NkDrawEndCallbackI value)
draw_end.Copyright LWJGL. All Rights Reserved. License terms.