public static class NkStyleProgress.Buffer extends org.lwjgl.system.StructBuffer<NkStyleProgress,NkStyleProgress.Buffer> implements org.lwjgl.system.NativeResource
NkStyleProgress structs.| Constructor and Description |
|---|
Buffer(java.nio.ByteBuffer container)
Creates a new
NkStyleProgress.Buffer instance backed by the specified container. |
Buffer(long address,
int cap) |
| Modifier and Type | Method and Description |
|---|---|
NkStyleItem |
active()
Returns a
NkStyleItem view of the active field. |
NkStyleProgress.Buffer |
active(java.util.function.Consumer<NkStyleItem> consumer)
Passes the
active field to the specified Consumer. |
NkStyleProgress.Buffer |
active(NkStyleItem value)
Copies the specified
NkStyleItem to the active field. |
NkColor |
border_color()
Returns a
NkColor view of the border_color field. |
NkStyleProgress.Buffer |
border_color(java.util.function.Consumer<NkColor> consumer)
Passes the
border_color field to the specified Consumer. |
NkStyleProgress.Buffer |
border_color(NkColor value)
Copies the specified
NkColor to the border_color field. |
float |
border()
Returns the value of the
border field. |
NkStyleProgress.Buffer |
border(float value)
Sets the specified value to the
border field. |
NkStyleItem |
cursor_active()
Returns a
NkStyleItem view of the cursor_active field. |
NkStyleProgress.Buffer |
cursor_active(java.util.function.Consumer<NkStyleItem> consumer)
Passes the
cursor_active field to the specified Consumer. |
NkStyleProgress.Buffer |
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.Buffer |
cursor_border_color(java.util.function.Consumer<NkColor> consumer)
Passes the
cursor_border_color field to the specified Consumer. |
NkStyleProgress.Buffer |
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.Buffer |
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.Buffer |
cursor_hover(java.util.function.Consumer<NkStyleItem> consumer)
Passes the
cursor_hover field to the specified Consumer. |
NkStyleProgress.Buffer |
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.Buffer |
cursor_normal(java.util.function.Consumer<NkStyleItem> consumer)
Passes the
cursor_normal field to the specified Consumer. |
NkStyleProgress.Buffer |
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.Buffer |
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.Buffer |
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.Buffer |
draw_end(NkDrawEndCallbackI value)
Sets the specified value to the
draw_end field. |
NkStyleItem |
hover()
Returns a
NkStyleItem view of the hover field. |
NkStyleProgress.Buffer |
hover(java.util.function.Consumer<NkStyleItem> consumer)
Passes the
hover field to the specified Consumer. |
NkStyleProgress.Buffer |
hover(NkStyleItem value)
Copies the specified
NkStyleItem to the hover field. |
NkStyleItem |
normal()
Returns a
NkStyleItem view of the normal field. |
NkStyleProgress.Buffer |
normal(java.util.function.Consumer<NkStyleItem> consumer)
Passes the
normal field to the specified Consumer. |
NkStyleProgress.Buffer |
normal(NkStyleItem value)
Copies the specified
NkStyleItem to the normal field. |
NkVec2 |
padding()
Returns a
NkVec2 view of the padding field. |
NkStyleProgress.Buffer |
padding(java.util.function.Consumer<NkVec2> consumer)
Passes the
padding field to the specified Consumer. |
NkStyleProgress.Buffer |
padding(NkVec2 value)
Copies the specified
NkVec2 to the padding field. |
float |
rounding()
Returns the value of the
rounding field. |
NkStyleProgress.Buffer |
rounding(float value)
Sets the specified value to the
rounding field. |
NkHandle |
userdata()
Returns a
NkHandle view of the userdata field. |
NkStyleProgress.Buffer |
userdata(java.util.function.Consumer<NkHandle> consumer)
Passes the
userdata field to the specified Consumer. |
NkStyleProgress.Buffer |
userdata(NkHandle value)
Copies the specified
NkHandle to the userdata field. |
apply, apply, forEach, get, get, get, get, iterator, parallelStream, put, put, sizeof, spliterator, streampublic Buffer(java.nio.ByteBuffer container)
NkStyleProgress.Buffer instance backed by the specified container.
Changes to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values
will be independent. The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided
by NkStyleProgress.SIZEOF, and its mark will be undefined.
The created buffer instance holds a strong reference to the container object.
public Buffer(long address,
int cap)
public 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.Buffer normal(NkStyleItem value)
NkStyleItem to the normal field.public NkStyleProgress.Buffer normal(java.util.function.Consumer<NkStyleItem> consumer)
normal field to the specified Consumer.public NkStyleProgress.Buffer hover(NkStyleItem value)
NkStyleItem to the hover field.public NkStyleProgress.Buffer hover(java.util.function.Consumer<NkStyleItem> consumer)
hover field to the specified Consumer.public NkStyleProgress.Buffer active(NkStyleItem value)
NkStyleItem to the active field.public NkStyleProgress.Buffer active(java.util.function.Consumer<NkStyleItem> consumer)
active field to the specified Consumer.public NkStyleProgress.Buffer border_color(NkColor value)
NkColor to the border_color field.public NkStyleProgress.Buffer border_color(java.util.function.Consumer<NkColor> consumer)
border_color field to the specified Consumer.public NkStyleProgress.Buffer cursor_normal(NkStyleItem value)
NkStyleItem to the cursor_normal field.public NkStyleProgress.Buffer cursor_normal(java.util.function.Consumer<NkStyleItem> consumer)
cursor_normal field to the specified Consumer.public NkStyleProgress.Buffer cursor_hover(NkStyleItem value)
NkStyleItem to the cursor_hover field.public NkStyleProgress.Buffer cursor_hover(java.util.function.Consumer<NkStyleItem> consumer)
cursor_hover field to the specified Consumer.public NkStyleProgress.Buffer cursor_active(NkStyleItem value)
NkStyleItem to the cursor_active field.public NkStyleProgress.Buffer cursor_active(java.util.function.Consumer<NkStyleItem> consumer)
cursor_active field to the specified Consumer.public NkStyleProgress.Buffer cursor_border_color(NkColor value)
NkColor to the cursor_border_color field.public NkStyleProgress.Buffer cursor_border_color(java.util.function.Consumer<NkColor> consumer)
cursor_border_color field to the specified Consumer.public NkStyleProgress.Buffer rounding(float value)
rounding field.public NkStyleProgress.Buffer border(float value)
border field.public NkStyleProgress.Buffer cursor_border(float value)
cursor_border field.public NkStyleProgress.Buffer cursor_rounding(float value)
cursor_rounding field.public NkStyleProgress.Buffer padding(NkVec2 value)
NkVec2 to the padding field.public NkStyleProgress.Buffer padding(java.util.function.Consumer<NkVec2> consumer)
padding field to the specified Consumer.public NkStyleProgress.Buffer userdata(NkHandle value)
NkHandle to the userdata field.public NkStyleProgress.Buffer userdata(java.util.function.Consumer<NkHandle> consumer)
userdata field to the specified Consumer.public NkStyleProgress.Buffer draw_begin(@Nullable NkDrawBeginCallbackI value)
draw_begin field.public NkStyleProgress.Buffer draw_end(@Nullable NkDrawEndCallbackI value)
draw_end field.Copyright LWJGL. All Rights Reserved. License terms.