public static class NkStyleSelectable.Buffer extends org.lwjgl.system.StructBuffer<NkStyleSelectable,NkStyleSelectable.Buffer> implements org.lwjgl.system.NativeResource
NkStyleSelectable structs.| Constructor and Description |
|---|
Buffer(java.nio.ByteBuffer container)
Creates a new
NkStyleSelectable.Buffer instance backed by the specified container. |
Buffer(long address,
int cap) |
| Modifier and Type | Method and Description |
|---|---|
NkDrawBeginCallback |
draw_begin()
Returns the value of the
draw_begin field. |
NkStyleSelectable.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. |
NkStyleSelectable.Buffer |
draw_end(NkDrawEndCallbackI value)
Sets the specified value to the
draw_end field. |
NkStyleItem |
hover_active()
Returns a
NkStyleItem view of the hover_active field. |
NkStyleSelectable.Buffer |
hover_active(java.util.function.Consumer<NkStyleItem> consumer)
Passes the
hover_active field to the specified Consumer. |
NkStyleSelectable.Buffer |
hover_active(NkStyleItem value)
Copies the specified
NkStyleItem to the hover_active field. |
NkStyleItem |
hover()
Returns a
NkStyleItem view of the hover field. |
NkStyleSelectable.Buffer |
hover(java.util.function.Consumer<NkStyleItem> consumer)
Passes the
hover field to the specified Consumer. |
NkStyleSelectable.Buffer |
hover(NkStyleItem value)
Copies the specified
NkStyleItem to the hover field. |
NkVec2 |
image_padding()
Returns a
NkVec2 view of the image_padding field. |
NkStyleSelectable.Buffer |
image_padding(java.util.function.Consumer<NkVec2> consumer)
Passes the
image_padding field to the specified Consumer. |
NkStyleSelectable.Buffer |
image_padding(NkVec2 value)
Copies the specified
NkVec2 to the image_padding field. |
NkStyleItem |
normal_active()
Returns a
NkStyleItem view of the normal_active field. |
NkStyleSelectable.Buffer |
normal_active(java.util.function.Consumer<NkStyleItem> consumer)
Passes the
normal_active field to the specified Consumer. |
NkStyleSelectable.Buffer |
normal_active(NkStyleItem value)
Copies the specified
NkStyleItem to the normal_active field. |
NkStyleItem |
normal()
Returns a
NkStyleItem view of the normal field. |
NkStyleSelectable.Buffer |
normal(java.util.function.Consumer<NkStyleItem> consumer)
Passes the
normal field to the specified Consumer. |
NkStyleSelectable.Buffer |
normal(NkStyleItem value)
Copies the specified
NkStyleItem to the normal field. |
NkVec2 |
padding()
Returns a
NkVec2 view of the padding field. |
NkStyleSelectable.Buffer |
padding(java.util.function.Consumer<NkVec2> consumer)
Passes the
padding field to the specified Consumer. |
NkStyleSelectable.Buffer |
padding(NkVec2 value)
Copies the specified
NkVec2 to the padding field. |
NkStyleItem |
pressed_active()
Returns a
NkStyleItem view of the pressed_active field. |
NkStyleSelectable.Buffer |
pressed_active(java.util.function.Consumer<NkStyleItem> consumer)
Passes the
pressed_active field to the specified Consumer. |
NkStyleSelectable.Buffer |
pressed_active(NkStyleItem value)
Copies the specified
NkStyleItem to the pressed_active field. |
NkStyleItem |
pressed()
Returns a
NkStyleItem view of the pressed field. |
NkStyleSelectable.Buffer |
pressed(java.util.function.Consumer<NkStyleItem> consumer)
Passes the
pressed field to the specified Consumer. |
NkStyleSelectable.Buffer |
pressed(NkStyleItem value)
Copies the specified
NkStyleItem to the pressed field. |
float |
rounding()
Returns the value of the
rounding field. |
NkStyleSelectable.Buffer |
rounding(float value)
Sets the specified value to the
rounding field. |
int |
text_alignment()
Returns the value of the
text_alignment field. |
NkStyleSelectable.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. |
NkStyleSelectable.Buffer |
text_background(java.util.function.Consumer<NkColor> consumer)
Passes the
text_background field to the specified Consumer. |
NkStyleSelectable.Buffer |
text_background(NkColor value)
Copies the specified
NkColor to the text_background field. |
NkColor |
text_hover_active()
Returns a
NkColor view of the text_hover_active field. |
NkStyleSelectable.Buffer |
text_hover_active(java.util.function.Consumer<NkColor> consumer)
Passes the
text_hover_active field to the specified Consumer. |
NkStyleSelectable.Buffer |
text_hover_active(NkColor value)
Copies the specified
NkColor to the text_hover_active field. |
NkColor |
text_hover()
Returns a
NkColor view of the text_hover field. |
NkStyleSelectable.Buffer |
text_hover(java.util.function.Consumer<NkColor> consumer)
Passes the
text_hover field to the specified Consumer. |
NkStyleSelectable.Buffer |
text_hover(NkColor value)
Copies the specified
NkColor to the text_hover field. |
NkColor |
text_normal_active()
Returns a
NkColor view of the text_normal_active field. |
NkStyleSelectable.Buffer |
text_normal_active(java.util.function.Consumer<NkColor> consumer)
Passes the
text_normal_active field to the specified Consumer. |
NkStyleSelectable.Buffer |
text_normal_active(NkColor value)
Copies the specified
NkColor to the text_normal_active field. |
NkColor |
text_normal()
Returns a
NkColor view of the text_normal field. |
NkStyleSelectable.Buffer |
text_normal(java.util.function.Consumer<NkColor> consumer)
Passes the
text_normal field to the specified Consumer. |
NkStyleSelectable.Buffer |
text_normal(NkColor value)
Copies the specified
NkColor to the text_normal field. |
NkColor |
text_pressed_active()
Returns a
NkColor view of the text_pressed_active field. |
NkStyleSelectable.Buffer |
text_pressed_active(java.util.function.Consumer<NkColor> consumer)
Passes the
text_pressed_active field to the specified Consumer. |
NkStyleSelectable.Buffer |
text_pressed_active(NkColor value)
Copies the specified
NkColor to the text_pressed_active field. |
NkColor |
text_pressed()
Returns a
NkColor view of the text_pressed field. |
NkStyleSelectable.Buffer |
text_pressed(java.util.function.Consumer<NkColor> consumer)
Passes the
text_pressed field to the specified Consumer. |
NkStyleSelectable.Buffer |
text_pressed(NkColor value)
Copies the specified
NkColor to the text_pressed field. |
NkVec2 |
touch_padding()
Returns a
NkVec2 view of the touch_padding field. |
NkStyleSelectable.Buffer |
touch_padding(java.util.function.Consumer<NkVec2> consumer)
Passes the
touch_padding field to the specified Consumer. |
NkStyleSelectable.Buffer |
touch_padding(NkVec2 value)
Copies the specified
NkVec2 to the touch_padding field. |
NkHandle |
userdata()
Returns a
NkHandle view of the userdata field. |
NkStyleSelectable.Buffer |
userdata(java.util.function.Consumer<NkHandle> consumer)
Passes the
userdata field to the specified Consumer. |
NkStyleSelectable.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)
NkStyleSelectable.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 NkStyleSelectable.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 pressed()
NkStyleItem view of the pressed field.public NkStyleItem normal_active()
NkStyleItem view of the normal_active field.public NkStyleItem hover_active()
NkStyleItem view of the hover_active field.public NkStyleItem pressed_active()
NkStyleItem view of the pressed_active field.public NkColor text_normal_active()
NkColor view of the text_normal_active field.public NkColor text_hover_active()
NkColor view of the text_hover_active field.public NkColor text_pressed_active()
NkColor view of the text_pressed_active field.public NkColor text_background()
NkColor view of the text_background field.public int text_alignment()
text_alignment field.public float rounding()
rounding field.@Nullable public NkDrawBeginCallback draw_begin()
draw_begin field.@Nullable public NkDrawEndCallback draw_end()
draw_end field.public NkStyleSelectable.Buffer normal(NkStyleItem value)
NkStyleItem to the normal field.public NkStyleSelectable.Buffer normal(java.util.function.Consumer<NkStyleItem> consumer)
normal field to the specified Consumer.public NkStyleSelectable.Buffer hover(NkStyleItem value)
NkStyleItem to the hover field.public NkStyleSelectable.Buffer hover(java.util.function.Consumer<NkStyleItem> consumer)
hover field to the specified Consumer.public NkStyleSelectable.Buffer pressed(NkStyleItem value)
NkStyleItem to the pressed field.public NkStyleSelectable.Buffer pressed(java.util.function.Consumer<NkStyleItem> consumer)
pressed field to the specified Consumer.public NkStyleSelectable.Buffer normal_active(NkStyleItem value)
NkStyleItem to the normal_active field.public NkStyleSelectable.Buffer normal_active(java.util.function.Consumer<NkStyleItem> consumer)
normal_active field to the specified Consumer.public NkStyleSelectable.Buffer hover_active(NkStyleItem value)
NkStyleItem to the hover_active field.public NkStyleSelectable.Buffer hover_active(java.util.function.Consumer<NkStyleItem> consumer)
hover_active field to the specified Consumer.public NkStyleSelectable.Buffer pressed_active(NkStyleItem value)
NkStyleItem to the pressed_active field.public NkStyleSelectable.Buffer pressed_active(java.util.function.Consumer<NkStyleItem> consumer)
pressed_active field to the specified Consumer.public NkStyleSelectable.Buffer text_normal(NkColor value)
NkColor to the text_normal field.public NkStyleSelectable.Buffer text_normal(java.util.function.Consumer<NkColor> consumer)
text_normal field to the specified Consumer.public NkStyleSelectable.Buffer text_hover(NkColor value)
NkColor to the text_hover field.public NkStyleSelectable.Buffer text_hover(java.util.function.Consumer<NkColor> consumer)
text_hover field to the specified Consumer.public NkStyleSelectable.Buffer text_pressed(NkColor value)
NkColor to the text_pressed field.public NkStyleSelectable.Buffer text_pressed(java.util.function.Consumer<NkColor> consumer)
text_pressed field to the specified Consumer.public NkStyleSelectable.Buffer text_normal_active(NkColor value)
NkColor to the text_normal_active field.public NkStyleSelectable.Buffer text_normal_active(java.util.function.Consumer<NkColor> consumer)
text_normal_active field to the specified Consumer.public NkStyleSelectable.Buffer text_hover_active(NkColor value)
NkColor to the text_hover_active field.public NkStyleSelectable.Buffer text_hover_active(java.util.function.Consumer<NkColor> consumer)
text_hover_active field to the specified Consumer.public NkStyleSelectable.Buffer text_pressed_active(NkColor value)
NkColor to the text_pressed_active field.public NkStyleSelectable.Buffer text_pressed_active(java.util.function.Consumer<NkColor> consumer)
text_pressed_active field to the specified Consumer.public NkStyleSelectable.Buffer text_background(NkColor value)
NkColor to the text_background field.public NkStyleSelectable.Buffer text_background(java.util.function.Consumer<NkColor> consumer)
text_background field to the specified Consumer.public NkStyleSelectable.Buffer text_alignment(int value)
text_alignment field.public NkStyleSelectable.Buffer rounding(float value)
rounding field.public NkStyleSelectable.Buffer padding(NkVec2 value)
NkVec2 to the padding field.public NkStyleSelectable.Buffer padding(java.util.function.Consumer<NkVec2> consumer)
padding field to the specified Consumer.public NkStyleSelectable.Buffer touch_padding(NkVec2 value)
NkVec2 to the touch_padding field.public NkStyleSelectable.Buffer touch_padding(java.util.function.Consumer<NkVec2> consumer)
touch_padding field to the specified Consumer.public NkStyleSelectable.Buffer image_padding(NkVec2 value)
NkVec2 to the image_padding field.public NkStyleSelectable.Buffer image_padding(java.util.function.Consumer<NkVec2> consumer)
image_padding field to the specified Consumer.public NkStyleSelectable.Buffer userdata(NkHandle value)
NkHandle to the userdata field.public NkStyleSelectable.Buffer userdata(java.util.function.Consumer<NkHandle> consumer)
userdata field to the specified Consumer.public NkStyleSelectable.Buffer draw_begin(@Nullable NkDrawBeginCallbackI value)
draw_begin field.public NkStyleSelectable.Buffer draw_end(@Nullable NkDrawEndCallbackI value)
draw_end field.Copyright LWJGL. All Rights Reserved. License terms.