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