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.
-
-
Constructor Summary
Constructors Constructor Description Buffer(long address, int cap)Buffer(java.nio.ByteBuffer container)Creates a newNkStyle.Bufferinstance backed by the specified container.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NkStyleButtonbutton()Returns aNkStyleButtonview of thebuttonfield.NkStyle.Bufferbutton(java.util.function.Consumer<NkStyleButton> consumer)Passes thebuttonfield to the specifiedConsumer.NkStyle.Bufferbutton(NkStyleButton value)Copies the specifiedNkStyleButtonto thebuttonfield.NkStyleChartchart()Returns aNkStyleChartview of thechartfield.NkStyle.Bufferchart(java.util.function.Consumer<NkStyleChart> consumer)Passes thechartfield to the specifiedConsumer.NkStyle.Bufferchart(NkStyleChart value)Copies the specifiedNkStyleChartto thechartfield.NkStyleTogglecheckbox()Returns aNkStyleToggleview of thecheckboxfield.NkStyle.Buffercheckbox(java.util.function.Consumer<NkStyleToggle> consumer)Passes thecheckboxfield to the specifiedConsumer.NkStyle.Buffercheckbox(NkStyleToggle value)Copies the specifiedNkStyleToggleto thecheckboxfield.NkStyleCombocombo()Returns aNkStyleComboview of thecombofield.NkStyle.Buffercombo(java.util.function.Consumer<NkStyleCombo> consumer)Passes thecombofield to the specifiedConsumer.NkStyle.Buffercombo(NkStyleCombo value)Copies the specifiedNkStyleComboto thecombofield.NkStyleButtoncontextual_button()Returns aNkStyleButtonview of thecontextual_buttonfield.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()Returns aNkCursorview of the struct pointed to by thecursor_activefield.NkStyle.Buffercursor_active(NkCursor value)Sets the address of the specifiedNkCursorto thecursor_activefield.NkCursorcursor_last()Returns aNkCursorview of the struct pointed to by thecursor_lastfield.NkStyle.Buffercursor_last(NkCursor value)Sets the address of the specifiedNkCursorto thecursor_lastfield.booleancursor_visible()Returns the value of thecursor_visiblefield.NkStyle.Buffercursor_visible(boolean value)Sets the specified value to thecursor_visiblefield.org.lwjgl.PointerBuffercursors()Returns aPointerBufferview of thecursorsfield.NkCursorcursors(int index)Returns aNkCursorview of the pointer at the specified index of thecursorsfield.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()Returns aNkStyleEditview of theeditfield.NkStyle.Bufferedit(java.util.function.Consumer<NkStyleEdit> consumer)Passes theeditfield to the specifiedConsumer.NkStyle.Bufferedit(NkStyleEdit value)Copies the specifiedNkStyleEditto theeditfield.NkUserFontfont()Returns aNkUserFontview of the struct pointed to by thefontfield.NkStyle.Bufferfont(NkUserFont value)Sets the address of the specifiedNkUserFontto thefontfield.NkStyleButtonmenu_button()Returns aNkStyleButtonview of themenu_buttonfield.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()Returns aNkStyleToggleview of theoptionfield.NkStyle.Bufferoption(java.util.function.Consumer<NkStyleToggle> consumer)Passes theoptionfield to the specifiedConsumer.NkStyle.Bufferoption(NkStyleToggle value)Copies the specifiedNkStyleToggleto theoptionfield.NkStyleProgressprogress()Returns aNkStyleProgressview of theprogressfield.NkStyle.Bufferprogress(java.util.function.Consumer<NkStyleProgress> consumer)Passes theprogressfield to the specifiedConsumer.NkStyle.Bufferprogress(NkStyleProgress value)Copies the specifiedNkStyleProgressto theprogressfield.NkStylePropertyproperty()Returns aNkStylePropertyview of thepropertyfield.NkStyle.Bufferproperty(java.util.function.Consumer<NkStyleProperty> consumer)Passes thepropertyfield to the specifiedConsumer.NkStyle.Bufferproperty(NkStyleProperty value)Copies the specifiedNkStylePropertyto thepropertyfield.NkStyleScrollbarscrollh()Returns aNkStyleScrollbarview of thescrollhfield.NkStyle.Bufferscrollh(java.util.function.Consumer<NkStyleScrollbar> consumer)Passes thescrollhfield to the specifiedConsumer.NkStyle.Bufferscrollh(NkStyleScrollbar value)Copies the specifiedNkStyleScrollbarto thescrollhfield.NkStyleScrollbarscrollv()Returns aNkStyleScrollbarview of thescrollvfield.NkStyle.Bufferscrollv(java.util.function.Consumer<NkStyleScrollbar> consumer)Passes thescrollvfield to the specifiedConsumer.NkStyle.Bufferscrollv(NkStyleScrollbar value)Copies the specifiedNkStyleScrollbarto thescrollvfield.NkStyleSelectableselectable()Returns aNkStyleSelectableview of theselectablefield.NkStyle.Bufferselectable(java.util.function.Consumer<NkStyleSelectable> consumer)Passes theselectablefield to the specifiedConsumer.NkStyle.Bufferselectable(NkStyleSelectable value)Copies the specifiedNkStyleSelectableto theselectablefield.NkStyleSliderslider()Returns aNkStyleSliderview of thesliderfield.NkStyle.Bufferslider(java.util.function.Consumer<NkStyleSlider> consumer)Passes thesliderfield to the specifiedConsumer.NkStyle.Bufferslider(NkStyleSlider value)Copies the specifiedNkStyleSliderto thesliderfield.NkStyleTabtab()Returns aNkStyleTabview of thetabfield.NkStyle.Buffertab(java.util.function.Consumer<NkStyleTab> consumer)Passes thetabfield to the specifiedConsumer.NkStyle.Buffertab(NkStyleTab value)Copies the specifiedNkStyleTabto thetabfield.NkStyleTexttext()Returns aNkStyleTextview of thetextfield.NkStyle.Buffertext(java.util.function.Consumer<NkStyleText> consumer)Passes thetextfield to the specifiedConsumer.NkStyle.Buffertext(NkStyleText value)Copies the specifiedNkStyleTextto thetextfield.NkStyleWindowwindow()Returns aNkStyleWindowview of thewindowfield.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 aNkUserFontview of the struct pointed to by thefontfield.
-
cursors
public org.lwjgl.PointerBuffer cursors()
Returns aPointerBufferview of thecursorsfield.
-
cursors
@Nullable public NkCursor cursors(int index)
Returns aNkCursorview of the pointer at the specified index of thecursorsfield.
-
cursor_active
@Nullable public NkCursor cursor_active()
Returns aNkCursorview of the struct pointed to by thecursor_activefield.
-
cursor_last
@Nullable public NkCursor cursor_last()
Returns aNkCursorview of the struct pointed to by thecursor_lastfield.
-
cursor_visible
public boolean cursor_visible()
Returns the value of thecursor_visiblefield.
-
text
public NkStyleText text()
Returns aNkStyleTextview of thetextfield.
-
text
public NkStyle.Buffer text(java.util.function.Consumer<NkStyleText> consumer)
Passes thetextfield to the specifiedConsumer.
-
button
public NkStyleButton button()
Returns aNkStyleButtonview of thebuttonfield.
-
button
public NkStyle.Buffer button(java.util.function.Consumer<NkStyleButton> consumer)
Passes thebuttonfield to the specifiedConsumer.
-
contextual_button
public NkStyleButton contextual_button()
Returns aNkStyleButtonview of thecontextual_buttonfield.
-
contextual_button
public NkStyle.Buffer contextual_button(java.util.function.Consumer<NkStyleButton> consumer)
Passes thecontextual_buttonfield to the specifiedConsumer.
-
menu_button
public NkStyleButton menu_button()
Returns aNkStyleButtonview of themenu_buttonfield.
-
menu_button
public NkStyle.Buffer menu_button(java.util.function.Consumer<NkStyleButton> consumer)
Passes themenu_buttonfield to the specifiedConsumer.
-
option
public NkStyleToggle option()
Returns aNkStyleToggleview of theoptionfield.
-
option
public NkStyle.Buffer option(java.util.function.Consumer<NkStyleToggle> consumer)
Passes theoptionfield to the specifiedConsumer.
-
checkbox
public NkStyleToggle checkbox()
Returns aNkStyleToggleview of thecheckboxfield.
-
checkbox
public NkStyle.Buffer checkbox(java.util.function.Consumer<NkStyleToggle> consumer)
Passes thecheckboxfield to the specifiedConsumer.
-
selectable
public NkStyleSelectable selectable()
Returns aNkStyleSelectableview of theselectablefield.
-
selectable
public NkStyle.Buffer selectable(java.util.function.Consumer<NkStyleSelectable> consumer)
Passes theselectablefield to the specifiedConsumer.
-
slider
public NkStyleSlider slider()
Returns aNkStyleSliderview of thesliderfield.
-
slider
public NkStyle.Buffer slider(java.util.function.Consumer<NkStyleSlider> consumer)
Passes thesliderfield to the specifiedConsumer.
-
progress
public NkStyleProgress progress()
Returns aNkStyleProgressview of theprogressfield.
-
progress
public NkStyle.Buffer progress(java.util.function.Consumer<NkStyleProgress> consumer)
Passes theprogressfield to the specifiedConsumer.
-
property
public NkStyleProperty property()
Returns aNkStylePropertyview of thepropertyfield.
-
property
public NkStyle.Buffer property(java.util.function.Consumer<NkStyleProperty> consumer)
Passes thepropertyfield to the specifiedConsumer.
-
edit
public NkStyleEdit edit()
Returns aNkStyleEditview of theeditfield.
-
edit
public NkStyle.Buffer edit(java.util.function.Consumer<NkStyleEdit> consumer)
Passes theeditfield to the specifiedConsumer.
-
chart
public NkStyleChart chart()
Returns aNkStyleChartview of thechartfield.
-
chart
public NkStyle.Buffer chart(java.util.function.Consumer<NkStyleChart> consumer)
Passes thechartfield to the specifiedConsumer.
-
scrollh
public NkStyleScrollbar scrollh()
Returns aNkStyleScrollbarview of thescrollhfield.
-
scrollh
public NkStyle.Buffer scrollh(java.util.function.Consumer<NkStyleScrollbar> consumer)
Passes thescrollhfield to the specifiedConsumer.
-
scrollv
public NkStyleScrollbar scrollv()
Returns aNkStyleScrollbarview of thescrollvfield.
-
scrollv
public NkStyle.Buffer scrollv(java.util.function.Consumer<NkStyleScrollbar> consumer)
Passes thescrollvfield to the specifiedConsumer.
-
tab
public NkStyleTab tab()
Returns aNkStyleTabview of thetabfield.
-
tab
public NkStyle.Buffer tab(java.util.function.Consumer<NkStyleTab> consumer)
Passes thetabfield to the specifiedConsumer.
-
combo
public NkStyleCombo combo()
Returns aNkStyleComboview of thecombofield.
-
combo
public NkStyle.Buffer combo(java.util.function.Consumer<NkStyleCombo> consumer)
Passes thecombofield to the specifiedConsumer.
-
window
public NkStyleWindow window()
Returns aNkStyleWindowview of thewindowfield.
-
window
public NkStyle.Buffer window(java.util.function.Consumer<NkStyleWindow> consumer)
Passes thewindowfield to the specifiedConsumer.
-
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.
-
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.
-
button
public NkStyle.Buffer button(NkStyleButton value)
Copies the specifiedNkStyleButtonto thebuttonfield.
-
contextual_button
public NkStyle.Buffer contextual_button(NkStyleButton value)
Copies the specifiedNkStyleButtonto thecontextual_buttonfield.
-
menu_button
public NkStyle.Buffer menu_button(NkStyleButton value)
Copies the specifiedNkStyleButtonto themenu_buttonfield.
-
option
public NkStyle.Buffer option(NkStyleToggle value)
Copies the specifiedNkStyleToggleto theoptionfield.
-
checkbox
public NkStyle.Buffer checkbox(NkStyleToggle value)
Copies the specifiedNkStyleToggleto thecheckboxfield.
-
selectable
public NkStyle.Buffer selectable(NkStyleSelectable value)
Copies the specifiedNkStyleSelectableto theselectablefield.
-
slider
public NkStyle.Buffer slider(NkStyleSlider value)
Copies the specifiedNkStyleSliderto thesliderfield.
-
progress
public NkStyle.Buffer progress(NkStyleProgress value)
Copies the specifiedNkStyleProgressto theprogressfield.
-
property
public NkStyle.Buffer property(NkStyleProperty value)
Copies the specifiedNkStylePropertyto thepropertyfield.
-
edit
public NkStyle.Buffer edit(NkStyleEdit value)
Copies the specifiedNkStyleEditto theeditfield.
-
chart
public NkStyle.Buffer chart(NkStyleChart value)
Copies the specifiedNkStyleChartto thechartfield.
-
scrollh
public NkStyle.Buffer scrollh(NkStyleScrollbar value)
Copies the specifiedNkStyleScrollbarto thescrollhfield.
-
scrollv
public NkStyle.Buffer scrollv(NkStyleScrollbar value)
Copies the specifiedNkStyleScrollbarto thescrollvfield.
-
tab
public NkStyle.Buffer tab(NkStyleTab value)
Copies the specifiedNkStyleTabto thetabfield.
-
combo
public NkStyle.Buffer combo(NkStyleCombo value)
Copies the specifiedNkStyleComboto thecombofield.
-
window
public NkStyle.Buffer window(NkStyleWindow value)
Copies the specifiedNkStyleWindowto thewindowfield.
-
-