public static class NkStyleButton.Buffer extends org.lwjgl.system.StructBuffer<NkStyleButton,NkStyleButton.Buffer> implements org.lwjgl.system.NativeResource
NkStyleButton structs.| Constructor and Description |
|---|
Buffer(java.nio.ByteBuffer container)
Creates a new
NkStyleButton.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. |
NkStyleButton.Buffer |
active(java.util.function.Consumer<NkStyleItem> consumer)
Passes the
active field to the specified Consumer. |
NkStyleButton.Buffer |
active(NkStyleItem value)
Copies the specified
NkStyleItem to the active field. |
NkColor |
border_color()
Returns a
NkColor view of the border_color field. |
NkStyleButton.Buffer |
border_color(java.util.function.Consumer<NkColor> consumer)
Passes the
border_color field to the specified Consumer. |
NkStyleButton.Buffer |
border_color(NkColor value)
Copies the specified
NkColor to the border_color field. |
float |
border()
Returns the value of the
border field. |
NkStyleButton.Buffer |
border(float value)
Sets the specified value to the
border field. |
NkDrawBeginCallback |
draw_begin()
Returns the value of the
draw_begin field. |
NkStyleButton.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. |
NkStyleButton.Buffer |
draw_end(NkDrawEndCallbackI value)
Sets the specified value to the
draw_end field. |
NkStyleItem |
hover()
Returns a
NkStyleItem view of the hover field. |
NkStyleButton.Buffer |
hover(java.util.function.Consumer<NkStyleItem> consumer)
Passes the
hover field to the specified Consumer. |
NkStyleButton.Buffer |
hover(NkStyleItem value)
Copies the specified
NkStyleItem to the hover field. |
NkVec2 |
image_padding()
Returns a
NkVec2 view of the image_padding field. |
NkStyleButton.Buffer |
image_padding(java.util.function.Consumer<NkVec2> consumer)
Passes the
image_padding field to the specified Consumer. |
NkStyleButton.Buffer |
image_padding(NkVec2 value)
Copies the specified
NkVec2 to the image_padding field. |
NkStyleItem |
normal()
Returns a
NkStyleItem view of the normal field. |
NkStyleButton.Buffer |
normal(java.util.function.Consumer<NkStyleItem> consumer)
Passes the
normal field to the specified Consumer. |
NkStyleButton.Buffer |
normal(NkStyleItem value)
Copies the specified
NkStyleItem to the normal field. |
NkVec2 |
padding()
Returns a
NkVec2 view of the padding field. |
NkStyleButton.Buffer |
padding(java.util.function.Consumer<NkVec2> consumer)
Passes the
padding field to the specified Consumer. |
NkStyleButton.Buffer |
padding(NkVec2 value)
Copies the specified
NkVec2 to the padding field. |
float |
rounding()
Returns the value of the
rounding field. |
NkStyleButton.Buffer |
rounding(float value)
Sets the specified value to the
rounding field. |
NkColor |
text_active()
Returns a
NkColor view of the text_active field. |
NkStyleButton.Buffer |
text_active(java.util.function.Consumer<NkColor> consumer)
Passes the
text_active field to the specified Consumer. |
NkStyleButton.Buffer |
text_active(NkColor value)
Copies the specified
NkColor to the text_active field. |
int |
text_alignment()
Returns the value of the
text_alignment field. |
NkStyleButton.Buffer |
text_alignment(int value)
Sets the specified value to the
text_alignment field. |
NkColor |
text_background()
Returns a
NkColor view of the text_background field. |
NkStyleButton.Buffer |
text_background(java.util.function.Consumer<NkColor> consumer)
Passes the
text_background field to the specified Consumer. |
NkStyleButton.Buffer |
text_background(NkColor value)
Copies the specified
NkColor to the text_background field. |
NkColor |
text_hover()
Returns a
NkColor view of the text_hover field. |
NkStyleButton.Buffer |
text_hover(java.util.function.Consumer<NkColor> consumer)
Passes the
text_hover field to the specified Consumer. |
NkStyleButton.Buffer |
text_hover(NkColor value)
Copies the specified
NkColor to the text_hover field. |
NkColor |
text_normal()
Returns a
NkColor view of the text_normal field. |
NkStyleButton.Buffer |
text_normal(java.util.function.Consumer<NkColor> consumer)
Passes the
text_normal field to the specified Consumer. |
NkStyleButton.Buffer |
text_normal(NkColor value)
Copies the specified
NkColor to the text_normal field. |
NkVec2 |
touch_padding()
Returns a
NkVec2 view of the touch_padding field. |
NkStyleButton.Buffer |
touch_padding(java.util.function.Consumer<NkVec2> consumer)
Passes the
touch_padding field to the specified Consumer. |
NkStyleButton.Buffer |
touch_padding(NkVec2 value)
Copies the specified
NkVec2 to the touch_padding field. |
NkHandle |
userdata()
Returns a
NkHandle view of the userdata field. |
NkStyleButton.Buffer |
userdata(java.util.function.Consumer<NkHandle> consumer)
Passes the
userdata field to the specified Consumer. |
NkStyleButton.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)
NkStyleButton.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 NkStyleButton.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 NkColor text_background()
NkColor view of the text_background field.public int text_alignment()
text_alignment field.public float border()
border field.public float rounding()
rounding field.@Nullable public NkDrawBeginCallback draw_begin()
draw_begin field.@Nullable public NkDrawEndCallback draw_end()
draw_end field.public NkStyleButton.Buffer normal(NkStyleItem value)
NkStyleItem to the normal field.public NkStyleButton.Buffer normal(java.util.function.Consumer<NkStyleItem> consumer)
normal field to the specified Consumer.public NkStyleButton.Buffer hover(NkStyleItem value)
NkStyleItem to the hover field.public NkStyleButton.Buffer hover(java.util.function.Consumer<NkStyleItem> consumer)
hover field to the specified Consumer.public NkStyleButton.Buffer active(NkStyleItem value)
NkStyleItem to the active field.public NkStyleButton.Buffer active(java.util.function.Consumer<NkStyleItem> consumer)
active field to the specified Consumer.public NkStyleButton.Buffer border_color(NkColor value)
NkColor to the border_color field.public NkStyleButton.Buffer border_color(java.util.function.Consumer<NkColor> consumer)
border_color field to the specified Consumer.public NkStyleButton.Buffer text_background(NkColor value)
NkColor to the text_background field.public NkStyleButton.Buffer text_background(java.util.function.Consumer<NkColor> consumer)
text_background field to the specified Consumer.public NkStyleButton.Buffer text_normal(NkColor value)
NkColor to the text_normal field.public NkStyleButton.Buffer text_normal(java.util.function.Consumer<NkColor> consumer)
text_normal field to the specified Consumer.public NkStyleButton.Buffer text_hover(NkColor value)
NkColor to the text_hover field.public NkStyleButton.Buffer text_hover(java.util.function.Consumer<NkColor> consumer)
text_hover field to the specified Consumer.public NkStyleButton.Buffer text_active(NkColor value)
NkColor to the text_active field.public NkStyleButton.Buffer text_active(java.util.function.Consumer<NkColor> consumer)
text_active field to the specified Consumer.public NkStyleButton.Buffer text_alignment(int value)
text_alignment field.public NkStyleButton.Buffer border(float value)
border field.public NkStyleButton.Buffer rounding(float value)
rounding field.public NkStyleButton.Buffer padding(NkVec2 value)
NkVec2 to the padding field.public NkStyleButton.Buffer padding(java.util.function.Consumer<NkVec2> consumer)
padding field to the specified Consumer.public NkStyleButton.Buffer image_padding(NkVec2 value)
NkVec2 to the image_padding field.public NkStyleButton.Buffer image_padding(java.util.function.Consumer<NkVec2> consumer)
image_padding field to the specified Consumer.public NkStyleButton.Buffer touch_padding(NkVec2 value)
NkVec2 to the touch_padding field.public NkStyleButton.Buffer touch_padding(java.util.function.Consumer<NkVec2> consumer)
touch_padding field to the specified Consumer.public NkStyleButton.Buffer userdata(NkHandle value)
NkHandle to the userdata field.public NkStyleButton.Buffer userdata(java.util.function.Consumer<NkHandle> consumer)
userdata field to the specified Consumer.public NkStyleButton.Buffer draw_begin(@Nullable NkDrawBeginCallbackI value)
draw_begin field.public NkStyleButton.Buffer draw_end(@Nullable NkDrawEndCallbackI value)
draw_end field.Copyright LWJGL. All Rights Reserved. License terms.