Package org.lwjgl.nuklear
Class NkStyle.Buffer
- All Implemented Interfaces:
AutoCloseable,Iterable<NkStyle>,NativeResource,Pointer
- Enclosing class:
NkStyle
public static class NkStyle.Buffer
extends StructBuffer<NkStyle,NkStyle.Buffer>
implements NativeResource
An array of
NkStyle structs.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default -
Field Summary
Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionBuffer(long address, int cap) Buffer(ByteBuffer container) Creates a newNkStyle.Bufferinstance backed by the specified container. -
Method Summary
Modifier and TypeMethodDescriptionbutton()button(Consumer<NkStyleButton> consumer) Passes thebuttonfield to the specifiedConsumer.button(NkStyleButton value) Copies the specifiedNkStyleButtonto thebuttonfield.chart()chart(Consumer<NkStyleChart> consumer) Passes thechartfield to the specifiedConsumer.chart(NkStyleChart value) Copies the specifiedNkStyleChartto thechartfield.checkbox()checkbox(Consumer<NkStyleToggle> consumer) Passes thecheckboxfield to the specifiedConsumer.checkbox(NkStyleToggle value) Copies the specifiedNkStyleToggleto thecheckboxfield.combo()combo(Consumer<NkStyleCombo> consumer) Passes thecombofield to the specifiedConsumer.combo(NkStyleCombo value) Copies the specifiedNkStyleComboto thecombofield.contextual_button(Consumer<NkStyleButton> consumer) Passes thecontextual_buttonfield to the specifiedConsumer.contextual_button(NkStyleButton value) Copies the specifiedNkStyleButtonto thecontextual_buttonfield.@Nullable NkCursorcursor_active(@Nullable NkCursor value) Sets the address of the specifiedNkCursorto thecursor_activefield.@Nullable NkCursorcursor_last(@Nullable NkCursor value) Sets the address of the specifiedNkCursorto thecursor_lastfield.booleancursor_visible(boolean value) Sets the specified value to thecursor_visiblefield.cursors()@Nullable NkCursorcursors(int index) Copies the address of the specifiedNkCursorat the specified index of thecursorsfield.cursors(PointerBuffer value) Copies the specifiedPointerBufferto thecursorsfield.edit()edit(Consumer<NkStyleEdit> consumer) Passes theeditfield to the specifiedConsumer.edit(NkStyleEdit value) Copies the specifiedNkStyleEditto theeditfield.@Nullable NkUserFontfont()font(@Nullable NkUserFont value) Sets the address of the specifiedNkUserFontto thefontfield.knob()knob(Consumer<NkStyleKnob> consumer) Passes theknobfield to the specifiedConsumer.knob(NkStyleKnob value) Copies the specifiedNkStyleKnobto theknobfield.menu_button(Consumer<NkStyleButton> consumer) Passes themenu_buttonfield to the specifiedConsumer.menu_button(NkStyleButton value) Copies the specifiedNkStyleButtonto themenu_buttonfield.option()option(Consumer<NkStyleToggle> consumer) Passes theoptionfield to the specifiedConsumer.option(NkStyleToggle value) Copies the specifiedNkStyleToggleto theoptionfield.progress()progress(Consumer<NkStyleProgress> consumer) Passes theprogressfield to the specifiedConsumer.progress(NkStyleProgress value) Copies the specifiedNkStyleProgressto theprogressfield.property()property(Consumer<NkStyleProperty> consumer) Passes thepropertyfield to the specifiedConsumer.property(NkStyleProperty value) Copies the specifiedNkStylePropertyto thepropertyfield.scrollh()scrollh(Consumer<NkStyleScrollbar> consumer) Passes thescrollhfield to the specifiedConsumer.scrollh(NkStyleScrollbar value) Copies the specifiedNkStyleScrollbarto thescrollhfield.scrollv()scrollv(Consumer<NkStyleScrollbar> consumer) Passes thescrollvfield to the specifiedConsumer.scrollv(NkStyleScrollbar value) Copies the specifiedNkStyleScrollbarto thescrollvfield.selectable(Consumer<NkStyleSelectable> consumer) Passes theselectablefield to the specifiedConsumer.selectable(NkStyleSelectable value) Copies the specifiedNkStyleSelectableto theselectablefield.slider()slider(Consumer<NkStyleSlider> consumer) Passes thesliderfield to the specifiedConsumer.slider(NkStyleSlider value) Copies the specifiedNkStyleSliderto thesliderfield.tab()tab(Consumer<NkStyleTab> consumer) Passes thetabfield to the specifiedConsumer.tab(NkStyleTab value) Copies the specifiedNkStyleTabto thetabfield.text()text(Consumer<NkStyleText> consumer) Passes thetextfield to the specifiedConsumer.text(NkStyleText value) Copies the specifiedNkStyleTextto thetextfield.window()window(Consumer<NkStyleWindow> consumer) Passes thewindowfield to the specifiedConsumer.window(NkStyleWindow value) Copies the specifiedNkStyleWindowto thewindowfield.Methods inherited from class org.lwjgl.system.StructBuffer
apply, apply, forEach, get, get, get, get, iterator, parallelStream, put, put, sizeof, spliterator, streamMethods inherited from class org.lwjgl.system.CustomBuffer
address, address, address0, capacity, clear, compact, duplicate, flip, free, hasRemaining, limit, limit, mark, position, position, put, remaining, reset, rewind, slice, slice, toStringMethods inherited from class org.lwjgl.system.Pointer.Default
equals, hashCodeMethods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Constructor Details
-
Buffer
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 by
NkStyle.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 Details
-
font
- Returns:
- a
NkUserFontview of the struct pointed to by thefontfield.
-
cursors
- Returns:
- a
PointerBufferview of thecursorsfield.
-
cursors
- Returns:
- a
NkCursorview of the pointer at the specified index of thecursorsfield.
-
cursor_active
- Returns:
- a
NkCursorview of the struct pointed to by thecursor_activefield.
-
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
- Returns:
- a
NkStyleTextview of thetextfield.
-
button
- Returns:
- a
NkStyleButtonview of thebuttonfield.
-
contextual_button
- Returns:
- a
NkStyleButtonview of thecontextual_buttonfield.
-
option
- Returns:
- a
NkStyleToggleview of theoptionfield.
-
checkbox
- Returns:
- a
NkStyleToggleview of thecheckboxfield.
-
selectable
- Returns:
- a
NkStyleSelectableview of theselectablefield.
-
slider
- Returns:
- a
NkStyleSliderview of thesliderfield.
-
knob
- Returns:
- a
NkStyleKnobview of theknobfield.
-
progress
- Returns:
- a
NkStyleProgressview of theprogressfield.
-
property
- Returns:
- a
NkStylePropertyview of thepropertyfield.
-
edit
- Returns:
- a
NkStyleEditview of theeditfield.
-
chart
- Returns:
- a
NkStyleChartview of thechartfield.
-
scrollh
- Returns:
- a
NkStyleScrollbarview of thescrollhfield.
-
scrollv
- Returns:
- a
NkStyleScrollbarview of thescrollvfield.
-
tab
- Returns:
- a
NkStyleTabview of thetabfield.
-
combo
- Returns:
- a
NkStyleComboview of thecombofield.
-
window
- Returns:
- a
NkStyleWindowview of thewindowfield.
-
font
Sets the address of the specifiedNkUserFontto thefontfield. -
cursors
Copies the specifiedPointerBufferto thecursorsfield. -
cursors
Copies the address of the specifiedNkCursorat the specified index of thecursorsfield. -
cursors
-
cursor_active
Sets the address of the specifiedNkCursorto thecursor_activefield. -
cursor_last
Sets the address of the specifiedNkCursorto thecursor_lastfield. -
cursor_visible
Sets the specified value to thecursor_visiblefield. -
text
Copies the specifiedNkStyleTextto thetextfield. -
text
Passes thetextfield to the specifiedConsumer. -
button
Copies the specifiedNkStyleButtonto thebuttonfield. -
button
Passes thebuttonfield to the specifiedConsumer. -
contextual_button
Copies the specifiedNkStyleButtonto thecontextual_buttonfield. -
contextual_button
Passes thecontextual_buttonfield to the specifiedConsumer. -
option
Copies the specifiedNkStyleToggleto theoptionfield. -
option
Passes theoptionfield to the specifiedConsumer. -
checkbox
Copies the specifiedNkStyleToggleto thecheckboxfield. -
checkbox
Passes thecheckboxfield to the specifiedConsumer. -
selectable
Copies the specifiedNkStyleSelectableto theselectablefield. -
selectable
Passes theselectablefield to the specifiedConsumer. -
slider
Copies the specifiedNkStyleSliderto thesliderfield. -
slider
Passes thesliderfield to the specifiedConsumer. -
knob
Copies the specifiedNkStyleKnobto theknobfield. -
knob
Passes theknobfield to the specifiedConsumer. -
progress
Copies the specifiedNkStyleProgressto theprogressfield. -
progress
Passes theprogressfield to the specifiedConsumer. -
property
Copies the specifiedNkStylePropertyto thepropertyfield. -
property
Passes thepropertyfield to the specifiedConsumer. -
edit
Copies the specifiedNkStyleEditto theeditfield. -
edit
Passes theeditfield to the specifiedConsumer. -
chart
Copies the specifiedNkStyleChartto thechartfield. -
chart
Passes thechartfield to the specifiedConsumer. -
scrollh
Copies the specifiedNkStyleScrollbarto thescrollhfield. -
scrollh
Passes thescrollhfield to the specifiedConsumer. -
scrollv
Copies the specifiedNkStyleScrollbarto thescrollvfield. -
scrollv
Passes thescrollvfield to the specifiedConsumer. -
tab
Copies the specifiedNkStyleTabto thetabfield. -
tab
Passes thetabfield to the specifiedConsumer. -
combo
Copies the specifiedNkStyleComboto thecombofield. -
combo
Passes thecombofield to the specifiedConsumer. -
window
Copies the specifiedNkStyleWindowto thewindowfield. -
window
Passes thewindowfield to the specifiedConsumer.
-