Package org.lwjgl.nuklear
Class NkStyle.Buffer
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.CustomBuffer<SELF>
-
- org.lwjgl.system.StructBuffer<NkStyle,NkStyle.Buffer>
-
- org.lwjgl.nuklear.NkStyle.Buffer
-
- All Implemented Interfaces:
java.lang.AutoCloseable,java.lang.Iterable<NkStyle>,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
- Enclosing class:
- NkStyle
public static class NkStyle.Buffer extends org.lwjgl.system.StructBuffer<NkStyle,NkStyle.Buffer> implements org.lwjgl.system.NativeResource
An array ofNkStylestructs.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NkStyleButtonbutton()NkStyle.Bufferbutton(java.util.function.Consumer<NkStyleButton> consumer)Passes thebuttonfield to the specifiedConsumer.NkStyle.Bufferbutton(NkStyleButton value)Copies the specifiedNkStyleButtonto thebuttonfield.NkStyleChartchart()NkStyle.Bufferchart(java.util.function.Consumer<NkStyleChart> consumer)Passes thechartfield to the specifiedConsumer.NkStyle.Bufferchart(NkStyleChart value)Copies the specifiedNkStyleChartto thechartfield.NkStyleTogglecheckbox()NkStyle.Buffercheckbox(java.util.function.Consumer<NkStyleToggle> consumer)Passes thecheckboxfield to the specifiedConsumer.NkStyle.Buffercheckbox(NkStyleToggle value)Copies the specifiedNkStyleToggleto thecheckboxfield.NkStyleCombocombo()NkStyle.Buffercombo(java.util.function.Consumer<NkStyleCombo> consumer)Passes thecombofield to the specifiedConsumer.NkStyle.Buffercombo(NkStyleCombo value)Copies the specifiedNkStyleComboto thecombofield.NkStyleButtoncontextual_button()NkStyle.Buffercontextual_button(java.util.function.Consumer<NkStyleButton> consumer)Passes thecontextual_buttonfield to the specifiedConsumer.NkStyle.Buffercontextual_button(NkStyleButton value)Copies the specifiedNkStyleButtonto thecontextual_buttonfield.NkCursorcursor_active()NkStyle.Buffercursor_active(NkCursor value)Sets the address of the specifiedNkCursorto thecursor_activefield.NkCursorcursor_last()NkStyle.Buffercursor_last(NkCursor value)Sets the address of the specifiedNkCursorto thecursor_lastfield.booleancursor_visible()NkStyle.Buffercursor_visible(boolean value)Sets the specified value to thecursor_visiblefield.org.lwjgl.PointerBuffercursors()NkCursorcursors(int index)NkStyle.Buffercursors(int index, java.util.function.Consumer<NkCursor> consumer)Passes the element atindexof thecursorsfield to the specifiedConsumer.NkStyle.Buffercursors(int index, NkCursor value)Copies the address of the specifiedNkCursorat the specified index of thecursorsfield.NkStyle.Buffercursors(org.lwjgl.PointerBuffer value)Copies the specifiedPointerBufferto thecursorsfield.NkStyleEditedit()NkStyle.Bufferedit(java.util.function.Consumer<NkStyleEdit> consumer)Passes theeditfield to the specifiedConsumer.NkStyle.Bufferedit(NkStyleEdit value)Copies the specifiedNkStyleEditto theeditfield.NkUserFontfont()NkStyle.Bufferfont(NkUserFont value)Sets the address of the specifiedNkUserFontto thefontfield.NkStyleButtonmenu_button()NkStyle.Buffermenu_button(java.util.function.Consumer<NkStyleButton> consumer)Passes themenu_buttonfield to the specifiedConsumer.NkStyle.Buffermenu_button(NkStyleButton value)Copies the specifiedNkStyleButtonto themenu_buttonfield.NkStyleToggleoption()NkStyle.Bufferoption(java.util.function.Consumer<NkStyleToggle> consumer)Passes theoptionfield to the specifiedConsumer.NkStyle.Bufferoption(NkStyleToggle value)Copies the specifiedNkStyleToggleto theoptionfield.NkStyleProgressprogress()NkStyle.Bufferprogress(java.util.function.Consumer<NkStyleProgress> consumer)Passes theprogressfield to the specifiedConsumer.NkStyle.Bufferprogress(NkStyleProgress value)Copies the specifiedNkStyleProgressto theprogressfield.NkStylePropertyproperty()NkStyle.Bufferproperty(java.util.function.Consumer<NkStyleProperty> consumer)Passes thepropertyfield to the specifiedConsumer.NkStyle.Bufferproperty(NkStyleProperty value)Copies the specifiedNkStylePropertyto thepropertyfield.NkStyleScrollbarscrollh()NkStyle.Bufferscrollh(java.util.function.Consumer<NkStyleScrollbar> consumer)Passes thescrollhfield to the specifiedConsumer.NkStyle.Bufferscrollh(NkStyleScrollbar value)Copies the specifiedNkStyleScrollbarto thescrollhfield.NkStyleScrollbarscrollv()NkStyle.Bufferscrollv(java.util.function.Consumer<NkStyleScrollbar> consumer)Passes thescrollvfield to the specifiedConsumer.NkStyle.Bufferscrollv(NkStyleScrollbar value)Copies the specifiedNkStyleScrollbarto thescrollvfield.NkStyleSelectableselectable()NkStyle.Bufferselectable(java.util.function.Consumer<NkStyleSelectable> consumer)Passes theselectablefield to the specifiedConsumer.NkStyle.Bufferselectable(NkStyleSelectable value)Copies the specifiedNkStyleSelectableto theselectablefield.NkStyleSliderslider()NkStyle.Bufferslider(java.util.function.Consumer<NkStyleSlider> consumer)Passes thesliderfield to the specifiedConsumer.NkStyle.Bufferslider(NkStyleSlider value)Copies the specifiedNkStyleSliderto thesliderfield.NkStyleTabtab()NkStyle.Buffertab(java.util.function.Consumer<NkStyleTab> consumer)Passes thetabfield to the specifiedConsumer.NkStyle.Buffertab(NkStyleTab value)Copies the specifiedNkStyleTabto thetabfield.NkStyleTexttext()NkStyle.Buffertext(java.util.function.Consumer<NkStyleText> consumer)Passes thetextfield to the specifiedConsumer.NkStyle.Buffertext(NkStyleText value)Copies the specifiedNkStyleTextto thetextfield.NkStyleWindowwindow()NkStyle.Bufferwindow(java.util.function.Consumer<NkStyleWindow> consumer)Passes thewindowfield to the specifiedConsumer.NkStyle.Bufferwindow(NkStyleWindow value)Copies the specifiedNkStyleWindowto thewindowfield.
-
-
-
Constructor Detail
-
Buffer
public Buffer(java.nio.ByteBuffer container)
Creates a newNkStyle.Bufferinstance 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 byNkStyle.SIZEOF, and its mark will be undefined.The created buffer instance holds a strong reference to the container object.
-
Buffer
public Buffer(long address, int cap)
-
-
Method Detail
-
font
@Nullable public NkUserFont font()
- Returns:
- a
NkUserFontview of the struct pointed to by thefontfield.
-
cursors
public org.lwjgl.PointerBuffer cursors()
- Returns:
- a
PointerBufferview of thecursorsfield.
-
cursors
@Nullable public NkCursor cursors(int index)
- Returns:
- a
NkCursorview of the pointer at the specified index of thecursorsfield.
-
cursor_active
@Nullable public NkCursor cursor_active()
- Returns:
- a
NkCursorview of the struct pointed to by thecursor_activefield.
-
cursor_last
@Nullable public NkCursor cursor_last()
- Returns:
- a
NkCursorview of the struct pointed to by thecursor_lastfield.
-
cursor_visible
public boolean cursor_visible()
- Returns:
- the value of the
cursor_visiblefield.
-
text
public NkStyleText text()
- Returns:
- a
NkStyleTextview of thetextfield.
-
button
public NkStyleButton button()
- Returns:
- a
NkStyleButtonview of thebuttonfield.
-
contextual_button
public NkStyleButton contextual_button()
- Returns:
- a
NkStyleButtonview of thecontextual_buttonfield.
-
menu_button
public NkStyleButton menu_button()
- Returns:
- a
NkStyleButtonview of themenu_buttonfield.
-
option
public NkStyleToggle option()
- Returns:
- a
NkStyleToggleview of theoptionfield.
-
checkbox
public NkStyleToggle checkbox()
- Returns:
- a
NkStyleToggleview of thecheckboxfield.
-
selectable
public NkStyleSelectable selectable()
- Returns:
- a
NkStyleSelectableview of theselectablefield.
-
slider
public NkStyleSlider slider()
- Returns:
- a
NkStyleSliderview of thesliderfield.
-
progress
public NkStyleProgress progress()
- Returns:
- a
NkStyleProgressview of theprogressfield.
-
property
public NkStyleProperty property()
- Returns:
- a
NkStylePropertyview of thepropertyfield.
-
edit
public NkStyleEdit edit()
- Returns:
- a
NkStyleEditview of theeditfield.
-
chart
public NkStyleChart chart()
- Returns:
- a
NkStyleChartview of thechartfield.
-
scrollh
public NkStyleScrollbar scrollh()
- Returns:
- a
NkStyleScrollbarview of thescrollhfield.
-
scrollv
public NkStyleScrollbar scrollv()
- Returns:
- a
NkStyleScrollbarview of thescrollvfield.
-
tab
public NkStyleTab tab()
- Returns:
- a
NkStyleTabview of thetabfield.
-
combo
public NkStyleCombo combo()
- Returns:
- a
NkStyleComboview of thecombofield.
-
window
public NkStyleWindow window()
- Returns:
- a
NkStyleWindowview of thewindowfield.
-
font
public NkStyle.Buffer font(@Nullable NkUserFont value)
Sets the address of the specifiedNkUserFontto thefontfield.
-
cursors
public NkStyle.Buffer cursors(org.lwjgl.PointerBuffer value)
Copies the specifiedPointerBufferto thecursorsfield.
-
cursors
public NkStyle.Buffer cursors(int index, @Nullable NkCursor value)
Copies the address of the specifiedNkCursorat the specified index of thecursorsfield.
-
cursors
public NkStyle.Buffer cursors(int index, java.util.function.Consumer<NkCursor> consumer)
Passes the element atindexof thecursorsfield to the specifiedConsumer.
-
cursor_active
public NkStyle.Buffer cursor_active(@Nullable NkCursor value)
Sets the address of the specifiedNkCursorto thecursor_activefield.
-
cursor_last
public NkStyle.Buffer cursor_last(@Nullable NkCursor value)
Sets the address of the specifiedNkCursorto thecursor_lastfield.
-
cursor_visible
public NkStyle.Buffer cursor_visible(boolean value)
Sets the specified value to thecursor_visiblefield.
-
text
public NkStyle.Buffer text(NkStyleText value)
Copies the specifiedNkStyleTextto thetextfield.
-
text
public NkStyle.Buffer text(java.util.function.Consumer<NkStyleText> consumer)
Passes thetextfield to the specifiedConsumer.
-
button
public NkStyle.Buffer button(NkStyleButton value)
Copies the specifiedNkStyleButtonto thebuttonfield.
-
button
public NkStyle.Buffer button(java.util.function.Consumer<NkStyleButton> consumer)
Passes thebuttonfield to the specifiedConsumer.
-
contextual_button
public NkStyle.Buffer contextual_button(NkStyleButton value)
Copies the specifiedNkStyleButtonto thecontextual_buttonfield.
-
contextual_button
public NkStyle.Buffer contextual_button(java.util.function.Consumer<NkStyleButton> consumer)
Passes thecontextual_buttonfield to the specifiedConsumer.
-
menu_button
public NkStyle.Buffer menu_button(NkStyleButton value)
Copies the specifiedNkStyleButtonto themenu_buttonfield.
-
menu_button
public NkStyle.Buffer menu_button(java.util.function.Consumer<NkStyleButton> consumer)
Passes themenu_buttonfield to the specifiedConsumer.
-
option
public NkStyle.Buffer option(NkStyleToggle value)
Copies the specifiedNkStyleToggleto theoptionfield.
-
option
public NkStyle.Buffer option(java.util.function.Consumer<NkStyleToggle> consumer)
Passes theoptionfield to the specifiedConsumer.
-
checkbox
public NkStyle.Buffer checkbox(NkStyleToggle value)
Copies the specifiedNkStyleToggleto thecheckboxfield.
-
checkbox
public NkStyle.Buffer checkbox(java.util.function.Consumer<NkStyleToggle> consumer)
Passes thecheckboxfield to the specifiedConsumer.
-
selectable
public NkStyle.Buffer selectable(NkStyleSelectable value)
Copies the specifiedNkStyleSelectableto theselectablefield.
-
selectable
public NkStyle.Buffer selectable(java.util.function.Consumer<NkStyleSelectable> consumer)
Passes theselectablefield to the specifiedConsumer.
-
slider
public NkStyle.Buffer slider(NkStyleSlider value)
Copies the specifiedNkStyleSliderto thesliderfield.
-
slider
public NkStyle.Buffer slider(java.util.function.Consumer<NkStyleSlider> consumer)
Passes thesliderfield to the specifiedConsumer.
-
progress
public NkStyle.Buffer progress(NkStyleProgress value)
Copies the specifiedNkStyleProgressto theprogressfield.
-
progress
public NkStyle.Buffer progress(java.util.function.Consumer<NkStyleProgress> consumer)
Passes theprogressfield to the specifiedConsumer.
-
property
public NkStyle.Buffer property(NkStyleProperty value)
Copies the specifiedNkStylePropertyto thepropertyfield.
-
property
public NkStyle.Buffer property(java.util.function.Consumer<NkStyleProperty> consumer)
Passes thepropertyfield to the specifiedConsumer.
-
edit
public NkStyle.Buffer edit(NkStyleEdit value)
Copies the specifiedNkStyleEditto theeditfield.
-
edit
public NkStyle.Buffer edit(java.util.function.Consumer<NkStyleEdit> consumer)
Passes theeditfield to the specifiedConsumer.
-
chart
public NkStyle.Buffer chart(NkStyleChart value)
Copies the specifiedNkStyleChartto thechartfield.
-
chart
public NkStyle.Buffer chart(java.util.function.Consumer<NkStyleChart> consumer)
Passes thechartfield to the specifiedConsumer.
-
scrollh
public NkStyle.Buffer scrollh(NkStyleScrollbar value)
Copies the specifiedNkStyleScrollbarto thescrollhfield.
-
scrollh
public NkStyle.Buffer scrollh(java.util.function.Consumer<NkStyleScrollbar> consumer)
Passes thescrollhfield to the specifiedConsumer.
-
scrollv
public NkStyle.Buffer scrollv(NkStyleScrollbar value)
Copies the specifiedNkStyleScrollbarto thescrollvfield.
-
scrollv
public NkStyle.Buffer scrollv(java.util.function.Consumer<NkStyleScrollbar> consumer)
Passes thescrollvfield to the specifiedConsumer.
-
tab
public NkStyle.Buffer tab(NkStyleTab value)
Copies the specifiedNkStyleTabto thetabfield.
-
tab
public NkStyle.Buffer tab(java.util.function.Consumer<NkStyleTab> consumer)
Passes thetabfield to the specifiedConsumer.
-
combo
public NkStyle.Buffer combo(NkStyleCombo value)
Copies the specifiedNkStyleComboto thecombofield.
-
combo
public NkStyle.Buffer combo(java.util.function.Consumer<NkStyleCombo> consumer)
Passes thecombofield to the specifiedConsumer.
-
window
public NkStyle.Buffer window(NkStyleWindow value)
Copies the specifiedNkStyleWindowto thewindowfield.
-
window
public NkStyle.Buffer window(java.util.function.Consumer<NkStyleWindow> consumer)
Passes thewindowfield to the specifiedConsumer.
-
-