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 ofNkStyle
structs.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NkStyleButton
button()
Returns aNkStyleButton
view of thebutton
field.NkStyle.Buffer
button(java.util.function.Consumer<NkStyleButton> consumer)
Passes thebutton
field to the specifiedConsumer
.NkStyle.Buffer
button(NkStyleButton value)
Copies the specifiedNkStyleButton
to thebutton
field.NkStyleChart
chart()
Returns aNkStyleChart
view of thechart
field.NkStyle.Buffer
chart(java.util.function.Consumer<NkStyleChart> consumer)
Passes thechart
field to the specifiedConsumer
.NkStyle.Buffer
chart(NkStyleChart value)
Copies the specifiedNkStyleChart
to thechart
field.NkStyleToggle
checkbox()
Returns aNkStyleToggle
view of thecheckbox
field.NkStyle.Buffer
checkbox(java.util.function.Consumer<NkStyleToggle> consumer)
Passes thecheckbox
field to the specifiedConsumer
.NkStyle.Buffer
checkbox(NkStyleToggle value)
Copies the specifiedNkStyleToggle
to thecheckbox
field.NkStyleCombo
combo()
Returns aNkStyleCombo
view of thecombo
field.NkStyle.Buffer
combo(java.util.function.Consumer<NkStyleCombo> consumer)
Passes thecombo
field to the specifiedConsumer
.NkStyle.Buffer
combo(NkStyleCombo value)
Copies the specifiedNkStyleCombo
to thecombo
field.NkStyleButton
contextual_button()
Returns aNkStyleButton
view of thecontextual_button
field.NkStyle.Buffer
contextual_button(java.util.function.Consumer<NkStyleButton> consumer)
Passes thecontextual_button
field to the specifiedConsumer
.NkStyle.Buffer
contextual_button(NkStyleButton value)
Copies the specifiedNkStyleButton
to thecontextual_button
field.NkCursor
cursor_active()
Returns aNkCursor
view of the struct pointed to by thecursor_active
field.NkStyle.Buffer
cursor_active(NkCursor value)
Sets the address of the specifiedNkCursor
to thecursor_active
field.NkCursor
cursor_last()
Returns aNkCursor
view of the struct pointed to by thecursor_last
field.NkStyle.Buffer
cursor_last(NkCursor value)
Sets the address of the specifiedNkCursor
to thecursor_last
field.boolean
cursor_visible()
Returns the value of thecursor_visible
field.NkStyle.Buffer
cursor_visible(boolean value)
Sets the specified value to thecursor_visible
field.org.lwjgl.PointerBuffer
cursors()
Returns aPointerBuffer
view of thecursors
field.NkCursor
cursors(int index)
Returns aNkCursor
view of the pointer at the specified index of thecursors
field.NkStyle.Buffer
cursors(int index, java.util.function.Consumer<NkCursor> consumer)
Passes the element atindex
of thecursors
field to the specifiedConsumer
.NkStyle.Buffer
cursors(int index, NkCursor value)
Copies the address of the specifiedNkCursor
at the specified index of thecursors
field.NkStyle.Buffer
cursors(org.lwjgl.PointerBuffer value)
Copies the specifiedPointerBuffer
to thecursors
field.NkStyleEdit
edit()
Returns aNkStyleEdit
view of theedit
field.NkStyle.Buffer
edit(java.util.function.Consumer<NkStyleEdit> consumer)
Passes theedit
field to the specifiedConsumer
.NkStyle.Buffer
edit(NkStyleEdit value)
Copies the specifiedNkStyleEdit
to theedit
field.NkUserFont
font()
Returns aNkUserFont
view of the struct pointed to by thefont
field.NkStyle.Buffer
font(NkUserFont value)
Sets the address of the specifiedNkUserFont
to thefont
field.NkStyleButton
menu_button()
Returns aNkStyleButton
view of themenu_button
field.NkStyle.Buffer
menu_button(java.util.function.Consumer<NkStyleButton> consumer)
Passes themenu_button
field to the specifiedConsumer
.NkStyle.Buffer
menu_button(NkStyleButton value)
Copies the specifiedNkStyleButton
to themenu_button
field.NkStyleToggle
option()
Returns aNkStyleToggle
view of theoption
field.NkStyle.Buffer
option(java.util.function.Consumer<NkStyleToggle> consumer)
Passes theoption
field to the specifiedConsumer
.NkStyle.Buffer
option(NkStyleToggle value)
Copies the specifiedNkStyleToggle
to theoption
field.NkStyleProgress
progress()
Returns aNkStyleProgress
view of theprogress
field.NkStyle.Buffer
progress(java.util.function.Consumer<NkStyleProgress> consumer)
Passes theprogress
field to the specifiedConsumer
.NkStyle.Buffer
progress(NkStyleProgress value)
Copies the specifiedNkStyleProgress
to theprogress
field.NkStyleProperty
property()
Returns aNkStyleProperty
view of theproperty
field.NkStyle.Buffer
property(java.util.function.Consumer<NkStyleProperty> consumer)
Passes theproperty
field to the specifiedConsumer
.NkStyle.Buffer
property(NkStyleProperty value)
Copies the specifiedNkStyleProperty
to theproperty
field.NkStyleScrollbar
scrollh()
Returns aNkStyleScrollbar
view of thescrollh
field.NkStyle.Buffer
scrollh(java.util.function.Consumer<NkStyleScrollbar> consumer)
Passes thescrollh
field to the specifiedConsumer
.NkStyle.Buffer
scrollh(NkStyleScrollbar value)
Copies the specifiedNkStyleScrollbar
to thescrollh
field.NkStyleScrollbar
scrollv()
Returns aNkStyleScrollbar
view of thescrollv
field.NkStyle.Buffer
scrollv(java.util.function.Consumer<NkStyleScrollbar> consumer)
Passes thescrollv
field to the specifiedConsumer
.NkStyle.Buffer
scrollv(NkStyleScrollbar value)
Copies the specifiedNkStyleScrollbar
to thescrollv
field.NkStyleSelectable
selectable()
Returns aNkStyleSelectable
view of theselectable
field.NkStyle.Buffer
selectable(java.util.function.Consumer<NkStyleSelectable> consumer)
Passes theselectable
field to the specifiedConsumer
.NkStyle.Buffer
selectable(NkStyleSelectable value)
Copies the specifiedNkStyleSelectable
to theselectable
field.NkStyleSlider
slider()
Returns aNkStyleSlider
view of theslider
field.NkStyle.Buffer
slider(java.util.function.Consumer<NkStyleSlider> consumer)
Passes theslider
field to the specifiedConsumer
.NkStyle.Buffer
slider(NkStyleSlider value)
Copies the specifiedNkStyleSlider
to theslider
field.NkStyleTab
tab()
Returns aNkStyleTab
view of thetab
field.NkStyle.Buffer
tab(java.util.function.Consumer<NkStyleTab> consumer)
Passes thetab
field to the specifiedConsumer
.NkStyle.Buffer
tab(NkStyleTab value)
Copies the specifiedNkStyleTab
to thetab
field.NkStyleText
text()
Returns aNkStyleText
view of thetext
field.NkStyle.Buffer
text(java.util.function.Consumer<NkStyleText> consumer)
Passes thetext
field to the specifiedConsumer
.NkStyle.Buffer
text(NkStyleText value)
Copies the specifiedNkStyleText
to thetext
field.NkStyleWindow
window()
Returns aNkStyleWindow
view of thewindow
field.NkStyle.Buffer
window(java.util.function.Consumer<NkStyleWindow> consumer)
Passes thewindow
field to the specifiedConsumer
.NkStyle.Buffer
window(NkStyleWindow value)
Copies the specifiedNkStyleWindow
to thewindow
field.
-
-
-
Constructor Detail
-
Buffer
public Buffer(java.nio.ByteBuffer container)
Creates a newNkStyle.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 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 aNkUserFont
view of the struct pointed to by thefont
field.
-
cursors
public org.lwjgl.PointerBuffer cursors()
Returns aPointerBuffer
view of thecursors
field.
-
cursors
@Nullable public NkCursor cursors(int index)
Returns aNkCursor
view of the pointer at the specified index of thecursors
field.
-
cursor_active
@Nullable public NkCursor cursor_active()
Returns aNkCursor
view of the struct pointed to by thecursor_active
field.
-
cursor_last
@Nullable public NkCursor cursor_last()
Returns aNkCursor
view of the struct pointed to by thecursor_last
field.
-
cursor_visible
public boolean cursor_visible()
Returns the value of thecursor_visible
field.
-
text
public NkStyleText text()
Returns aNkStyleText
view of thetext
field.
-
button
public NkStyleButton button()
Returns aNkStyleButton
view of thebutton
field.
-
contextual_button
public NkStyleButton contextual_button()
Returns aNkStyleButton
view of thecontextual_button
field.
-
menu_button
public NkStyleButton menu_button()
Returns aNkStyleButton
view of themenu_button
field.
-
option
public NkStyleToggle option()
Returns aNkStyleToggle
view of theoption
field.
-
checkbox
public NkStyleToggle checkbox()
Returns aNkStyleToggle
view of thecheckbox
field.
-
selectable
public NkStyleSelectable selectable()
Returns aNkStyleSelectable
view of theselectable
field.
-
slider
public NkStyleSlider slider()
Returns aNkStyleSlider
view of theslider
field.
-
progress
public NkStyleProgress progress()
Returns aNkStyleProgress
view of theprogress
field.
-
property
public NkStyleProperty property()
Returns aNkStyleProperty
view of theproperty
field.
-
edit
public NkStyleEdit edit()
Returns aNkStyleEdit
view of theedit
field.
-
chart
public NkStyleChart chart()
Returns aNkStyleChart
view of thechart
field.
-
scrollh
public NkStyleScrollbar scrollh()
Returns aNkStyleScrollbar
view of thescrollh
field.
-
scrollv
public NkStyleScrollbar scrollv()
Returns aNkStyleScrollbar
view of thescrollv
field.
-
tab
public NkStyleTab tab()
Returns aNkStyleTab
view of thetab
field.
-
combo
public NkStyleCombo combo()
Returns aNkStyleCombo
view of thecombo
field.
-
window
public NkStyleWindow window()
Returns aNkStyleWindow
view of thewindow
field.
-
font
public NkStyle.Buffer font(@Nullable NkUserFont value)
Sets the address of the specifiedNkUserFont
to thefont
field.
-
cursors
public NkStyle.Buffer cursors(org.lwjgl.PointerBuffer value)
Copies the specifiedPointerBuffer
to thecursors
field.
-
cursors
public NkStyle.Buffer cursors(int index, @Nullable NkCursor value)
Copies the address of the specifiedNkCursor
at the specified index of thecursors
field.
-
cursors
public NkStyle.Buffer cursors(int index, java.util.function.Consumer<NkCursor> consumer)
Passes the element atindex
of thecursors
field to the specifiedConsumer
.
-
cursor_active
public NkStyle.Buffer cursor_active(@Nullable NkCursor value)
Sets the address of the specifiedNkCursor
to thecursor_active
field.
-
cursor_last
public NkStyle.Buffer cursor_last(@Nullable NkCursor value)
Sets the address of the specifiedNkCursor
to thecursor_last
field.
-
cursor_visible
public NkStyle.Buffer cursor_visible(boolean value)
Sets the specified value to thecursor_visible
field.
-
text
public NkStyle.Buffer text(NkStyleText value)
Copies the specifiedNkStyleText
to thetext
field.
-
text
public NkStyle.Buffer text(java.util.function.Consumer<NkStyleText> consumer)
Passes thetext
field to the specifiedConsumer
.
-
button
public NkStyle.Buffer button(NkStyleButton value)
Copies the specifiedNkStyleButton
to thebutton
field.
-
button
public NkStyle.Buffer button(java.util.function.Consumer<NkStyleButton> consumer)
Passes thebutton
field to the specifiedConsumer
.
-
contextual_button
public NkStyle.Buffer contextual_button(NkStyleButton value)
Copies the specifiedNkStyleButton
to thecontextual_button
field.
-
contextual_button
public NkStyle.Buffer contextual_button(java.util.function.Consumer<NkStyleButton> consumer)
Passes thecontextual_button
field to the specifiedConsumer
.
-
menu_button
public NkStyle.Buffer menu_button(NkStyleButton value)
Copies the specifiedNkStyleButton
to themenu_button
field.
-
menu_button
public NkStyle.Buffer menu_button(java.util.function.Consumer<NkStyleButton> consumer)
Passes themenu_button
field to the specifiedConsumer
.
-
option
public NkStyle.Buffer option(NkStyleToggle value)
Copies the specifiedNkStyleToggle
to theoption
field.
-
option
public NkStyle.Buffer option(java.util.function.Consumer<NkStyleToggle> consumer)
Passes theoption
field to the specifiedConsumer
.
-
checkbox
public NkStyle.Buffer checkbox(NkStyleToggle value)
Copies the specifiedNkStyleToggle
to thecheckbox
field.
-
checkbox
public NkStyle.Buffer checkbox(java.util.function.Consumer<NkStyleToggle> consumer)
Passes thecheckbox
field to the specifiedConsumer
.
-
selectable
public NkStyle.Buffer selectable(NkStyleSelectable value)
Copies the specifiedNkStyleSelectable
to theselectable
field.
-
selectable
public NkStyle.Buffer selectable(java.util.function.Consumer<NkStyleSelectable> consumer)
Passes theselectable
field to the specifiedConsumer
.
-
slider
public NkStyle.Buffer slider(NkStyleSlider value)
Copies the specifiedNkStyleSlider
to theslider
field.
-
slider
public NkStyle.Buffer slider(java.util.function.Consumer<NkStyleSlider> consumer)
Passes theslider
field to the specifiedConsumer
.
-
progress
public NkStyle.Buffer progress(NkStyleProgress value)
Copies the specifiedNkStyleProgress
to theprogress
field.
-
progress
public NkStyle.Buffer progress(java.util.function.Consumer<NkStyleProgress> consumer)
Passes theprogress
field to the specifiedConsumer
.
-
property
public NkStyle.Buffer property(NkStyleProperty value)
Copies the specifiedNkStyleProperty
to theproperty
field.
-
property
public NkStyle.Buffer property(java.util.function.Consumer<NkStyleProperty> consumer)
Passes theproperty
field to the specifiedConsumer
.
-
edit
public NkStyle.Buffer edit(NkStyleEdit value)
Copies the specifiedNkStyleEdit
to theedit
field.
-
edit
public NkStyle.Buffer edit(java.util.function.Consumer<NkStyleEdit> consumer)
Passes theedit
field to the specifiedConsumer
.
-
chart
public NkStyle.Buffer chart(NkStyleChart value)
Copies the specifiedNkStyleChart
to thechart
field.
-
chart
public NkStyle.Buffer chart(java.util.function.Consumer<NkStyleChart> consumer)
Passes thechart
field to the specifiedConsumer
.
-
scrollh
public NkStyle.Buffer scrollh(NkStyleScrollbar value)
Copies the specifiedNkStyleScrollbar
to thescrollh
field.
-
scrollh
public NkStyle.Buffer scrollh(java.util.function.Consumer<NkStyleScrollbar> consumer)
Passes thescrollh
field to the specifiedConsumer
.
-
scrollv
public NkStyle.Buffer scrollv(NkStyleScrollbar value)
Copies the specifiedNkStyleScrollbar
to thescrollv
field.
-
scrollv
public NkStyle.Buffer scrollv(java.util.function.Consumer<NkStyleScrollbar> consumer)
Passes thescrollv
field to the specifiedConsumer
.
-
tab
public NkStyle.Buffer tab(NkStyleTab value)
Copies the specifiedNkStyleTab
to thetab
field.
-
tab
public NkStyle.Buffer tab(java.util.function.Consumer<NkStyleTab> consumer)
Passes thetab
field to the specifiedConsumer
.
-
combo
public NkStyle.Buffer combo(NkStyleCombo value)
Copies the specifiedNkStyleCombo
to thecombo
field.
-
combo
public NkStyle.Buffer combo(java.util.function.Consumer<NkStyleCombo> consumer)
Passes thecombo
field to the specifiedConsumer
.
-
window
public NkStyle.Buffer window(NkStyleWindow value)
Copies the specifiedNkStyleWindow
to thewindow
field.
-
window
public NkStyle.Buffer window(java.util.function.Consumer<NkStyleWindow> consumer)
Passes thewindow
field to the specifiedConsumer
.
-
-