public static class NkStyleEdit.Buffer extends org.lwjgl.system.StructBuffer<NkStyleEdit,NkStyleEdit.Buffer> implements org.lwjgl.system.NativeResource
NkStyleEdit structs.| Constructor and Description |
|---|
Buffer(java.nio.ByteBuffer container)
Creates a new
NkStyleEdit.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. |
NkStyleEdit.Buffer |
active(java.util.function.Consumer<NkStyleItem> consumer)
Passes the
active field to the specified Consumer. |
NkStyleEdit.Buffer |
active(NkStyleItem value)
Copies the specified
NkStyleItem to the active field. |
NkColor |
border_color()
Returns a
NkColor view of the border_color field. |
NkStyleEdit.Buffer |
border_color(java.util.function.Consumer<NkColor> consumer)
Passes the
border_color field to the specified Consumer. |
NkStyleEdit.Buffer |
border_color(NkColor value)
Copies the specified
NkColor to the border_color field. |
float |
border()
Returns the value of the
border field. |
NkStyleEdit.Buffer |
border(float value)
Sets the specified value to the
border field. |
NkColor |
cursor_hover()
Returns a
NkColor view of the cursor_hover field. |
NkStyleEdit.Buffer |
cursor_hover(java.util.function.Consumer<NkColor> consumer)
Passes the
cursor_hover field to the specified Consumer. |
NkStyleEdit.Buffer |
cursor_hover(NkColor value)
Copies the specified
NkColor to the cursor_hover field. |
NkColor |
cursor_normal()
Returns a
NkColor view of the cursor_normal field. |
NkStyleEdit.Buffer |
cursor_normal(java.util.function.Consumer<NkColor> consumer)
Passes the
cursor_normal field to the specified Consumer. |
NkStyleEdit.Buffer |
cursor_normal(NkColor value)
Copies the specified
NkColor to the cursor_normal field. |
float |
cursor_size()
Returns the value of the
cursor_size field. |
NkStyleEdit.Buffer |
cursor_size(float value)
Sets the specified value to the
cursor_size field. |
NkColor |
cursor_text_hover()
Returns a
NkColor view of the cursor_text_hover field. |
NkStyleEdit.Buffer |
cursor_text_hover(java.util.function.Consumer<NkColor> consumer)
Passes the
cursor_text_hover field to the specified Consumer. |
NkStyleEdit.Buffer |
cursor_text_hover(NkColor value)
Copies the specified
NkColor to the cursor_text_hover field. |
NkColor |
cursor_text_normal()
Returns a
NkColor view of the cursor_text_normal field. |
NkStyleEdit.Buffer |
cursor_text_normal(java.util.function.Consumer<NkColor> consumer)
Passes the
cursor_text_normal field to the specified Consumer. |
NkStyleEdit.Buffer |
cursor_text_normal(NkColor value)
Copies the specified
NkColor to the cursor_text_normal field. |
NkStyleItem |
hover()
Returns a
NkStyleItem view of the hover field. |
NkStyleEdit.Buffer |
hover(java.util.function.Consumer<NkStyleItem> consumer)
Passes the
hover field to the specified Consumer. |
NkStyleEdit.Buffer |
hover(NkStyleItem value)
Copies the specified
NkStyleItem to the hover field. |
NkStyleItem |
normal()
Returns a
NkStyleItem view of the normal field. |
NkStyleEdit.Buffer |
normal(java.util.function.Consumer<NkStyleItem> consumer)
Passes the
normal field to the specified Consumer. |
NkStyleEdit.Buffer |
normal(NkStyleItem value)
Copies the specified
NkStyleItem to the normal field. |
NkVec2 |
padding()
Returns a
NkVec2 view of the padding field. |
NkStyleEdit.Buffer |
padding(java.util.function.Consumer<NkVec2> consumer)
Passes the
padding field to the specified Consumer. |
NkStyleEdit.Buffer |
padding(NkVec2 value)
Copies the specified
NkVec2 to the padding field. |
float |
rounding()
Returns the value of the
rounding field. |
NkStyleEdit.Buffer |
rounding(float value)
Sets the specified value to the
rounding field. |
float |
row_padding()
Returns the value of the
row_padding field. |
NkStyleEdit.Buffer |
row_padding(float value)
Sets the specified value to the
row_padding field. |
NkVec2 |
scrollbar_size()
Returns a
NkVec2 view of the scrollbar_size field. |
NkStyleEdit.Buffer |
scrollbar_size(java.util.function.Consumer<NkVec2> consumer)
Passes the
scrollbar_size field to the specified Consumer. |
NkStyleEdit.Buffer |
scrollbar_size(NkVec2 value)
Copies the specified
NkVec2 to the scrollbar_size field. |
NkStyleScrollbar |
scrollbar()
Returns a
NkStyleScrollbar view of the scrollbar field. |
NkStyleEdit.Buffer |
scrollbar(java.util.function.Consumer<NkStyleScrollbar> consumer)
Passes the
scrollbar field to the specified Consumer. |
NkStyleEdit.Buffer |
scrollbar(NkStyleScrollbar value)
Copies the specified
NkStyleScrollbar to the scrollbar field. |
NkColor |
selected_hover()
Returns a
NkColor view of the selected_hover field. |
NkStyleEdit.Buffer |
selected_hover(java.util.function.Consumer<NkColor> consumer)
Passes the
selected_hover field to the specified Consumer. |
NkStyleEdit.Buffer |
selected_hover(NkColor value)
Copies the specified
NkColor to the selected_hover field. |
NkColor |
selected_normal()
Returns a
NkColor view of the selected_normal field. |
NkStyleEdit.Buffer |
selected_normal(java.util.function.Consumer<NkColor> consumer)
Passes the
selected_normal field to the specified Consumer. |
NkStyleEdit.Buffer |
selected_normal(NkColor value)
Copies the specified
NkColor to the selected_normal field. |
NkColor |
selected_text_hover()
Returns a
NkColor view of the selected_text_hover field. |
NkStyleEdit.Buffer |
selected_text_hover(java.util.function.Consumer<NkColor> consumer)
Passes the
selected_text_hover field to the specified Consumer. |
NkStyleEdit.Buffer |
selected_text_hover(NkColor value)
Copies the specified
NkColor to the selected_text_hover field. |
NkColor |
selected_text_normal()
Returns a
NkColor view of the selected_text_normal field. |
NkStyleEdit.Buffer |
selected_text_normal(java.util.function.Consumer<NkColor> consumer)
Passes the
selected_text_normal field to the specified Consumer. |
NkStyleEdit.Buffer |
selected_text_normal(NkColor value)
Copies the specified
NkColor to the selected_text_normal field. |
NkColor |
text_active()
Returns a
NkColor view of the text_active field. |
NkStyleEdit.Buffer |
text_active(java.util.function.Consumer<NkColor> consumer)
Passes the
text_active field to the specified Consumer. |
NkStyleEdit.Buffer |
text_active(NkColor value)
Copies the specified
NkColor to the text_active field. |
NkColor |
text_hover()
Returns a
NkColor view of the text_hover field. |
NkStyleEdit.Buffer |
text_hover(java.util.function.Consumer<NkColor> consumer)
Passes the
text_hover field to the specified Consumer. |
NkStyleEdit.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. |
NkStyleEdit.Buffer |
text_normal(java.util.function.Consumer<NkColor> consumer)
Passes the
text_normal field to the specified Consumer. |
NkStyleEdit.Buffer |
text_normal(NkColor value)
Copies the specified
NkColor to the text_normal field. |
apply, apply, forEach, get, get, get, get, iterator, parallelStream, put, put, sizeof, spliterator, streampublic Buffer(java.nio.ByteBuffer container)
NkStyleEdit.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 NkStyleEdit.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 NkStyleScrollbar scrollbar()
NkStyleScrollbar view of the scrollbar field.public NkColor cursor_text_normal()
NkColor view of the cursor_text_normal field.public NkColor cursor_text_hover()
NkColor view of the cursor_text_hover field.public NkColor selected_normal()
NkColor view of the selected_normal field.public NkColor selected_text_normal()
NkColor view of the selected_text_normal field.public NkColor selected_text_hover()
NkColor view of the selected_text_hover field.public float border()
border field.public float rounding()
rounding field.public float cursor_size()
cursor_size field.public float row_padding()
row_padding field.public NkStyleEdit.Buffer normal(NkStyleItem value)
NkStyleItem to the normal field.public NkStyleEdit.Buffer normal(java.util.function.Consumer<NkStyleItem> consumer)
normal field to the specified Consumer.public NkStyleEdit.Buffer hover(NkStyleItem value)
NkStyleItem to the hover field.public NkStyleEdit.Buffer hover(java.util.function.Consumer<NkStyleItem> consumer)
hover field to the specified Consumer.public NkStyleEdit.Buffer active(NkStyleItem value)
NkStyleItem to the active field.public NkStyleEdit.Buffer active(java.util.function.Consumer<NkStyleItem> consumer)
active field to the specified Consumer.public NkStyleEdit.Buffer border_color(NkColor value)
NkColor to the border_color field.public NkStyleEdit.Buffer border_color(java.util.function.Consumer<NkColor> consumer)
border_color field to the specified Consumer.public NkStyleEdit.Buffer scrollbar(NkStyleScrollbar value)
NkStyleScrollbar to the scrollbar field.public NkStyleEdit.Buffer scrollbar(java.util.function.Consumer<NkStyleScrollbar> consumer)
scrollbar field to the specified Consumer.public NkStyleEdit.Buffer cursor_normal(NkColor value)
NkColor to the cursor_normal field.public NkStyleEdit.Buffer cursor_normal(java.util.function.Consumer<NkColor> consumer)
cursor_normal field to the specified Consumer.public NkStyleEdit.Buffer cursor_hover(NkColor value)
NkColor to the cursor_hover field.public NkStyleEdit.Buffer cursor_hover(java.util.function.Consumer<NkColor> consumer)
cursor_hover field to the specified Consumer.public NkStyleEdit.Buffer cursor_text_normal(NkColor value)
NkColor to the cursor_text_normal field.public NkStyleEdit.Buffer cursor_text_normal(java.util.function.Consumer<NkColor> consumer)
cursor_text_normal field to the specified Consumer.public NkStyleEdit.Buffer cursor_text_hover(NkColor value)
NkColor to the cursor_text_hover field.public NkStyleEdit.Buffer cursor_text_hover(java.util.function.Consumer<NkColor> consumer)
cursor_text_hover field to the specified Consumer.public NkStyleEdit.Buffer text_normal(NkColor value)
NkColor to the text_normal field.public NkStyleEdit.Buffer text_normal(java.util.function.Consumer<NkColor> consumer)
text_normal field to the specified Consumer.public NkStyleEdit.Buffer text_hover(NkColor value)
NkColor to the text_hover field.public NkStyleEdit.Buffer text_hover(java.util.function.Consumer<NkColor> consumer)
text_hover field to the specified Consumer.public NkStyleEdit.Buffer text_active(NkColor value)
NkColor to the text_active field.public NkStyleEdit.Buffer text_active(java.util.function.Consumer<NkColor> consumer)
text_active field to the specified Consumer.public NkStyleEdit.Buffer selected_normal(NkColor value)
NkColor to the selected_normal field.public NkStyleEdit.Buffer selected_normal(java.util.function.Consumer<NkColor> consumer)
selected_normal field to the specified Consumer.public NkStyleEdit.Buffer selected_hover(NkColor value)
NkColor to the selected_hover field.public NkStyleEdit.Buffer selected_hover(java.util.function.Consumer<NkColor> consumer)
selected_hover field to the specified Consumer.public NkStyleEdit.Buffer selected_text_normal(NkColor value)
NkColor to the selected_text_normal field.public NkStyleEdit.Buffer selected_text_normal(java.util.function.Consumer<NkColor> consumer)
selected_text_normal field to the specified Consumer.public NkStyleEdit.Buffer selected_text_hover(NkColor value)
NkColor to the selected_text_hover field.public NkStyleEdit.Buffer selected_text_hover(java.util.function.Consumer<NkColor> consumer)
selected_text_hover field to the specified Consumer.public NkStyleEdit.Buffer border(float value)
border field.public NkStyleEdit.Buffer rounding(float value)
rounding field.public NkStyleEdit.Buffer cursor_size(float value)
cursor_size field.public NkStyleEdit.Buffer scrollbar_size(NkVec2 value)
NkVec2 to the scrollbar_size field.public NkStyleEdit.Buffer scrollbar_size(java.util.function.Consumer<NkVec2> consumer)
scrollbar_size field to the specified Consumer.public NkStyleEdit.Buffer padding(NkVec2 value)
NkVec2 to the padding field.public NkStyleEdit.Buffer padding(java.util.function.Consumer<NkVec2> consumer)
padding field to the specified Consumer.public NkStyleEdit.Buffer row_padding(float value)
row_padding field.Copyright LWJGL. All Rights Reserved. License terms.