public static class NkStyle.Buffer extends org.lwjgl.system.StructBuffer<NkStyle,NkStyle.Buffer> implements org.lwjgl.system.NativeResource
NkStyle structs.| Constructor and Description |
|---|
Buffer(java.nio.ByteBuffer container)
Creates a new
NkStyle.Buffer instance backed by the specified container. |
Buffer(long address,
int cap) |
| Modifier and Type | Method and Description |
|---|---|
NkStyleButton |
button()
Returns a
NkStyleButton view of the button field. |
NkStyle.Buffer |
button(java.util.function.Consumer<NkStyleButton> consumer)
Passes the
button field to the specified Consumer. |
NkStyle.Buffer |
button(NkStyleButton value)
Copies the specified
NkStyleButton to the button field. |
NkStyleChart |
chart()
Returns a
NkStyleChart view of the chart field. |
NkStyle.Buffer |
chart(java.util.function.Consumer<NkStyleChart> consumer)
Passes the
chart field to the specified Consumer. |
NkStyle.Buffer |
chart(NkStyleChart value)
Copies the specified
NkStyleChart to the chart field. |
NkStyleToggle |
checkbox()
Returns a
NkStyleToggle view of the checkbox field. |
NkStyle.Buffer |
checkbox(java.util.function.Consumer<NkStyleToggle> consumer)
Passes the
checkbox field to the specified Consumer. |
NkStyle.Buffer |
checkbox(NkStyleToggle value)
Copies the specified
NkStyleToggle to the checkbox field. |
NkStyleCombo |
combo()
Returns a
NkStyleCombo view of the combo field. |
NkStyle.Buffer |
combo(java.util.function.Consumer<NkStyleCombo> consumer)
Passes the
combo field to the specified Consumer. |
NkStyle.Buffer |
combo(NkStyleCombo value)
Copies the specified
NkStyleCombo to the combo field. |
NkStyleButton |
contextual_button()
Returns a
NkStyleButton view of the contextual_button field. |
NkStyle.Buffer |
contextual_button(java.util.function.Consumer<NkStyleButton> consumer)
Passes the
contextual_button field to the specified Consumer. |
NkStyle.Buffer |
contextual_button(NkStyleButton value)
Copies the specified
NkStyleButton to the contextual_button field. |
NkCursor |
cursor_active()
Returns a
NkCursor view of the struct pointed to by the cursor_active field. |
NkStyle.Buffer |
cursor_active(NkCursor value)
Sets the address of the specified
NkCursor to the cursor_active field. |
NkCursor |
cursor_last()
Returns a
NkCursor view of the struct pointed to by the cursor_last field. |
NkStyle.Buffer |
cursor_last(NkCursor value)
Sets the address of the specified
NkCursor to the cursor_last field. |
boolean |
cursor_visible()
Returns the value of the
cursor_visible field. |
NkStyle.Buffer |
cursor_visible(boolean value)
Sets the specified value to the
cursor_visible field. |
org.lwjgl.PointerBuffer |
cursors()
Returns a
PointerBuffer view of the cursors field. |
NkCursor |
cursors(int index)
Returns a
NkCursor view of the pointer at the specified index of the cursors field. |
NkStyle.Buffer |
cursors(int index,
java.util.function.Consumer<NkCursor> consumer)
Passes the element at
index of the cursors field to the specified Consumer. |
NkStyle.Buffer |
cursors(int index,
NkCursor value)
Copies the address of the specified
NkCursor at the specified index of the cursors field. |
NkStyle.Buffer |
cursors(org.lwjgl.PointerBuffer value)
Copies the specified
PointerBuffer to the cursors field. |
NkStyleEdit |
edit()
Returns a
NkStyleEdit view of the edit field. |
NkStyle.Buffer |
edit(java.util.function.Consumer<NkStyleEdit> consumer)
Passes the
edit field to the specified Consumer. |
NkStyle.Buffer |
edit(NkStyleEdit value)
Copies the specified
NkStyleEdit to the edit field. |
NkUserFont |
font()
Returns a
NkUserFont view of the struct pointed to by the font field. |
NkStyle.Buffer |
font(NkUserFont value)
Sets the address of the specified
NkUserFont to the font field. |
NkStyleButton |
menu_button()
Returns a
NkStyleButton view of the menu_button field. |
NkStyle.Buffer |
menu_button(java.util.function.Consumer<NkStyleButton> consumer)
Passes the
menu_button field to the specified Consumer. |
NkStyle.Buffer |
menu_button(NkStyleButton value)
Copies the specified
NkStyleButton to the menu_button field. |
NkStyleToggle |
option()
Returns a
NkStyleToggle view of the option field. |
NkStyle.Buffer |
option(java.util.function.Consumer<NkStyleToggle> consumer)
Passes the
option field to the specified Consumer. |
NkStyle.Buffer |
option(NkStyleToggle value)
Copies the specified
NkStyleToggle to the option field. |
NkStyleProgress |
progress()
Returns a
NkStyleProgress view of the progress field. |
NkStyle.Buffer |
progress(java.util.function.Consumer<NkStyleProgress> consumer)
Passes the
progress field to the specified Consumer. |
NkStyle.Buffer |
progress(NkStyleProgress value)
Copies the specified
NkStyleProgress to the progress field. |
NkStyleProperty |
property()
Returns a
NkStyleProperty view of the property field. |
NkStyle.Buffer |
property(java.util.function.Consumer<NkStyleProperty> consumer)
Passes the
property field to the specified Consumer. |
NkStyle.Buffer |
property(NkStyleProperty value)
Copies the specified
NkStyleProperty to the property field. |
NkStyleScrollbar |
scrollh()
Returns a
NkStyleScrollbar view of the scrollh field. |
NkStyle.Buffer |
scrollh(java.util.function.Consumer<NkStyleScrollbar> consumer)
Passes the
scrollh field to the specified Consumer. |
NkStyle.Buffer |
scrollh(NkStyleScrollbar value)
Copies the specified
NkStyleScrollbar to the scrollh field. |
NkStyleScrollbar |
scrollv()
Returns a
NkStyleScrollbar view of the scrollv field. |
NkStyle.Buffer |
scrollv(java.util.function.Consumer<NkStyleScrollbar> consumer)
Passes the
scrollv field to the specified Consumer. |
NkStyle.Buffer |
scrollv(NkStyleScrollbar value)
Copies the specified
NkStyleScrollbar to the scrollv field. |
NkStyleSelectable |
selectable()
Returns a
NkStyleSelectable view of the selectable field. |
NkStyle.Buffer |
selectable(java.util.function.Consumer<NkStyleSelectable> consumer)
Passes the
selectable field to the specified Consumer. |
NkStyle.Buffer |
selectable(NkStyleSelectable value)
Copies the specified
NkStyleSelectable to the selectable field. |
NkStyleSlider |
slider()
Returns a
NkStyleSlider view of the slider field. |
NkStyle.Buffer |
slider(java.util.function.Consumer<NkStyleSlider> consumer)
Passes the
slider field to the specified Consumer. |
NkStyle.Buffer |
slider(NkStyleSlider value)
Copies the specified
NkStyleSlider to the slider field. |
NkStyleTab |
tab()
Returns a
NkStyleTab view of the tab field. |
NkStyle.Buffer |
tab(java.util.function.Consumer<NkStyleTab> consumer)
Passes the
tab field to the specified Consumer. |
NkStyle.Buffer |
tab(NkStyleTab value)
Copies the specified
NkStyleTab to the tab field. |
NkStyleText |
text()
Returns a
NkStyleText view of the text field. |
NkStyle.Buffer |
text(java.util.function.Consumer<NkStyleText> consumer)
Passes the
text field to the specified Consumer. |
NkStyle.Buffer |
text(NkStyleText value)
Copies the specified
NkStyleText to the text field. |
NkStyleWindow |
window()
Returns a
NkStyleWindow view of the window field. |
NkStyle.Buffer |
window(java.util.function.Consumer<NkStyleWindow> consumer)
Passes the
window field to the specified Consumer. |
NkStyle.Buffer |
window(NkStyleWindow value)
Copies the specified
NkStyleWindow to the window field. |
apply, apply, forEach, get, get, get, get, iterator, parallelStream, put, put, sizeof, spliterator, streampublic Buffer(java.nio.ByteBuffer container)
NkStyle.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 NkStyle.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)
@Nullable public NkUserFont font()
NkUserFont view of the struct pointed to by the font field.public org.lwjgl.PointerBuffer cursors()
PointerBuffer view of the cursors field.@Nullable public NkCursor cursors(int index)
NkCursor view of the pointer at the specified index of the cursors field.@Nullable public NkCursor cursor_active()
NkCursor view of the struct pointed to by the cursor_active field.@Nullable public NkCursor cursor_last()
NkCursor view of the struct pointed to by the cursor_last field.public boolean cursor_visible()
cursor_visible field.public NkStyleText text()
NkStyleText view of the text field.public NkStyleButton button()
NkStyleButton view of the button field.public NkStyleButton contextual_button()
NkStyleButton view of the contextual_button field.public NkStyleButton menu_button()
NkStyleButton view of the menu_button field.public NkStyleToggle option()
NkStyleToggle view of the option field.public NkStyleToggle checkbox()
NkStyleToggle view of the checkbox field.public NkStyleSelectable selectable()
NkStyleSelectable view of the selectable field.public NkStyleSlider slider()
NkStyleSlider view of the slider field.public NkStyleProgress progress()
NkStyleProgress view of the progress field.public NkStyleProperty property()
NkStyleProperty view of the property field.public NkStyleEdit edit()
NkStyleEdit view of the edit field.public NkStyleChart chart()
NkStyleChart view of the chart field.public NkStyleScrollbar scrollh()
NkStyleScrollbar view of the scrollh field.public NkStyleScrollbar scrollv()
NkStyleScrollbar view of the scrollv field.public NkStyleTab tab()
NkStyleTab view of the tab field.public NkStyleCombo combo()
NkStyleCombo view of the combo field.public NkStyleWindow window()
NkStyleWindow view of the window field.public NkStyle.Buffer font(@Nullable NkUserFont value)
NkUserFont to the font field.public NkStyle.Buffer cursors(org.lwjgl.PointerBuffer value)
PointerBuffer to the cursors field.public NkStyle.Buffer cursors(int index, @Nullable NkCursor value)
NkCursor at the specified index of the cursors field.public NkStyle.Buffer cursors(int index, java.util.function.Consumer<NkCursor> consumer)
index of the cursors field to the specified Consumer.public NkStyle.Buffer cursor_active(@Nullable NkCursor value)
NkCursor to the cursor_active field.public NkStyle.Buffer cursor_last(@Nullable NkCursor value)
NkCursor to the cursor_last field.public NkStyle.Buffer cursor_visible(boolean value)
cursor_visible field.public NkStyle.Buffer text(NkStyleText value)
NkStyleText to the text field.public NkStyle.Buffer text(java.util.function.Consumer<NkStyleText> consumer)
text field to the specified Consumer.public NkStyle.Buffer button(NkStyleButton value)
NkStyleButton to the button field.public NkStyle.Buffer button(java.util.function.Consumer<NkStyleButton> consumer)
button field to the specified Consumer.public NkStyle.Buffer contextual_button(NkStyleButton value)
NkStyleButton to the contextual_button field.public NkStyle.Buffer contextual_button(java.util.function.Consumer<NkStyleButton> consumer)
contextual_button field to the specified Consumer.public NkStyle.Buffer menu_button(NkStyleButton value)
NkStyleButton to the menu_button field.public NkStyle.Buffer menu_button(java.util.function.Consumer<NkStyleButton> consumer)
menu_button field to the specified Consumer.public NkStyle.Buffer option(NkStyleToggle value)
NkStyleToggle to the option field.public NkStyle.Buffer option(java.util.function.Consumer<NkStyleToggle> consumer)
option field to the specified Consumer.public NkStyle.Buffer checkbox(NkStyleToggle value)
NkStyleToggle to the checkbox field.public NkStyle.Buffer checkbox(java.util.function.Consumer<NkStyleToggle> consumer)
checkbox field to the specified Consumer.public NkStyle.Buffer selectable(NkStyleSelectable value)
NkStyleSelectable to the selectable field.public NkStyle.Buffer selectable(java.util.function.Consumer<NkStyleSelectable> consumer)
selectable field to the specified Consumer.public NkStyle.Buffer slider(NkStyleSlider value)
NkStyleSlider to the slider field.public NkStyle.Buffer slider(java.util.function.Consumer<NkStyleSlider> consumer)
slider field to the specified Consumer.public NkStyle.Buffer progress(NkStyleProgress value)
NkStyleProgress to the progress field.public NkStyle.Buffer progress(java.util.function.Consumer<NkStyleProgress> consumer)
progress field to the specified Consumer.public NkStyle.Buffer property(NkStyleProperty value)
NkStyleProperty to the property field.public NkStyle.Buffer property(java.util.function.Consumer<NkStyleProperty> consumer)
property field to the specified Consumer.public NkStyle.Buffer edit(NkStyleEdit value)
NkStyleEdit to the edit field.public NkStyle.Buffer edit(java.util.function.Consumer<NkStyleEdit> consumer)
edit field to the specified Consumer.public NkStyle.Buffer chart(NkStyleChart value)
NkStyleChart to the chart field.public NkStyle.Buffer chart(java.util.function.Consumer<NkStyleChart> consumer)
chart field to the specified Consumer.public NkStyle.Buffer scrollh(NkStyleScrollbar value)
NkStyleScrollbar to the scrollh field.public NkStyle.Buffer scrollh(java.util.function.Consumer<NkStyleScrollbar> consumer)
scrollh field to the specified Consumer.public NkStyle.Buffer scrollv(NkStyleScrollbar value)
NkStyleScrollbar to the scrollv field.public NkStyle.Buffer scrollv(java.util.function.Consumer<NkStyleScrollbar> consumer)
scrollv field to the specified Consumer.public NkStyle.Buffer tab(NkStyleTab value)
NkStyleTab to the tab field.public NkStyle.Buffer tab(java.util.function.Consumer<NkStyleTab> consumer)
tab field to the specified Consumer.public NkStyle.Buffer combo(NkStyleCombo value)
NkStyleCombo to the combo field.public NkStyle.Buffer combo(java.util.function.Consumer<NkStyleCombo> consumer)
combo field to the specified Consumer.public NkStyle.Buffer window(NkStyleWindow value)
NkStyleWindow to the window field.public NkStyle.Buffer window(java.util.function.Consumer<NkStyleWindow> consumer)
window field to the specified Consumer.Copyright LWJGL. All Rights Reserved. License terms.