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
ConstructorDescriptionBuffer
(long address, int cap) Buffer
(ByteBuffer container) Creates a newNkStyle.Buffer
instance backed by the specified container. -
Method Summary
Modifier and TypeMethodDescriptionbutton()
button
(Consumer<NkStyleButton> consumer) Passes thebutton
field to the specifiedConsumer
.button
(NkStyleButton value) Copies the specifiedNkStyleButton
to thebutton
field.chart()
chart
(Consumer<NkStyleChart> consumer) Passes thechart
field to the specifiedConsumer
.chart
(NkStyleChart value) Copies the specifiedNkStyleChart
to thechart
field.checkbox()
checkbox
(Consumer<NkStyleToggle> consumer) Passes thecheckbox
field to the specifiedConsumer
.checkbox
(NkStyleToggle value) Copies the specifiedNkStyleToggle
to thecheckbox
field.combo()
combo
(Consumer<NkStyleCombo> consumer) Passes thecombo
field to the specifiedConsumer
.combo
(NkStyleCombo value) Copies the specifiedNkStyleCombo
to thecombo
field.contextual_button
(Consumer<NkStyleButton> consumer) Passes thecontextual_button
field to the specifiedConsumer
.contextual_button
(NkStyleButton value) Copies the specifiedNkStyleButton
to thecontextual_button
field.cursor_active
(NkCursor value) Sets the address of the specifiedNkCursor
to thecursor_active
field.cursor_last
(NkCursor value) Sets the address of the specifiedNkCursor
to thecursor_last
field.boolean
cursor_visible
(boolean value) Sets the specified value to thecursor_visible
field.cursors()
cursors
(int index) Copies the address of the specifiedNkCursor
at the specified index of thecursors
field.cursors
(PointerBuffer value) Copies the specifiedPointerBuffer
to thecursors
field.edit()
edit
(Consumer<NkStyleEdit> consumer) Passes theedit
field to the specifiedConsumer
.edit
(NkStyleEdit value) Copies the specifiedNkStyleEdit
to theedit
field.font()
font
(NkUserFont value) Sets the address of the specifiedNkUserFont
to thefont
field.menu_button
(Consumer<NkStyleButton> consumer) Passes themenu_button
field to the specifiedConsumer
.menu_button
(NkStyleButton value) Copies the specifiedNkStyleButton
to themenu_button
field.option()
option
(Consumer<NkStyleToggle> consumer) Passes theoption
field to the specifiedConsumer
.option
(NkStyleToggle value) Copies the specifiedNkStyleToggle
to theoption
field.progress()
progress
(Consumer<NkStyleProgress> consumer) Passes theprogress
field to the specifiedConsumer
.progress
(NkStyleProgress value) Copies the specifiedNkStyleProgress
to theprogress
field.property()
property
(Consumer<NkStyleProperty> consumer) Passes theproperty
field to the specifiedConsumer
.property
(NkStyleProperty value) Copies the specifiedNkStyleProperty
to theproperty
field.scrollh()
scrollh
(Consumer<NkStyleScrollbar> consumer) Passes thescrollh
field to the specifiedConsumer
.scrollh
(NkStyleScrollbar value) Copies the specifiedNkStyleScrollbar
to thescrollh
field.scrollv()
scrollv
(Consumer<NkStyleScrollbar> consumer) Passes thescrollv
field to the specifiedConsumer
.scrollv
(NkStyleScrollbar value) Copies the specifiedNkStyleScrollbar
to thescrollv
field.selectable
(Consumer<NkStyleSelectable> consumer) Passes theselectable
field to the specifiedConsumer
.selectable
(NkStyleSelectable value) Copies the specifiedNkStyleSelectable
to theselectable
field.slider()
slider
(Consumer<NkStyleSlider> consumer) Passes theslider
field to the specifiedConsumer
.slider
(NkStyleSlider value) Copies the specifiedNkStyleSlider
to theslider
field.tab()
tab
(Consumer<NkStyleTab> consumer) Passes thetab
field to the specifiedConsumer
.tab
(NkStyleTab value) Copies the specifiedNkStyleTab
to thetab
field.text()
text
(Consumer<NkStyleText> consumer) Passes thetext
field to the specifiedConsumer
.text
(NkStyleText value) Copies the specifiedNkStyleText
to thetext
field.window()
window
(Consumer<NkStyleWindow> consumer) Passes thewindow
field to the specifiedConsumer
.window
(NkStyleWindow value) Copies the specifiedNkStyleWindow
to thewindow
field.Methods inherited from class org.lwjgl.system.StructBuffer
apply, apply, forEach, get, get, get, get, iterator, parallelStream, put, put, sizeof, spliterator, stream
Methods 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, toString
Methods inherited from class org.lwjgl.system.Pointer.Default
equals, hashCode
Methods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Constructor Details
-
Buffer
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 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
NkUserFont
view of the struct pointed to by thefont
field.
-
cursors
- Returns:
- a
PointerBuffer
view of thecursors
field.
-
cursors
- Returns:
- a
NkCursor
view of the pointer at the specified index of thecursors
field.
-
cursor_active
- Returns:
- a
NkCursor
view of the struct pointed to by thecursor_active
field.
-
cursor_last
- Returns:
- a
NkCursor
view of the struct pointed to by thecursor_last
field.
-
cursor_visible
public boolean cursor_visible()- Returns:
- the value of the
cursor_visible
field.
-
text
- Returns:
- a
NkStyleText
view of thetext
field.
-
button
- Returns:
- a
NkStyleButton
view of thebutton
field.
-
contextual_button
- Returns:
- a
NkStyleButton
view of thecontextual_button
field.
-
option
- Returns:
- a
NkStyleToggle
view of theoption
field.
-
checkbox
- Returns:
- a
NkStyleToggle
view of thecheckbox
field.
-
selectable
- Returns:
- a
NkStyleSelectable
view of theselectable
field.
-
slider
- Returns:
- a
NkStyleSlider
view of theslider
field.
-
progress
- Returns:
- a
NkStyleProgress
view of theprogress
field.
-
property
- Returns:
- a
NkStyleProperty
view of theproperty
field.
-
edit
- Returns:
- a
NkStyleEdit
view of theedit
field.
-
chart
- Returns:
- a
NkStyleChart
view of thechart
field.
-
scrollh
- Returns:
- a
NkStyleScrollbar
view of thescrollh
field.
-
scrollv
- Returns:
- a
NkStyleScrollbar
view of thescrollv
field.
-
tab
- Returns:
- a
NkStyleTab
view of thetab
field.
-
combo
- Returns:
- a
NkStyleCombo
view of thecombo
field.
-
window
- Returns:
- a
NkStyleWindow
view of thewindow
field.
-
font
Sets the address of the specifiedNkUserFont
to thefont
field. -
cursors
Copies the specifiedPointerBuffer
to thecursors
field. -
cursors
Copies the address of the specifiedNkCursor
at the specified index of thecursors
field. -
cursors
-
cursor_active
Sets the address of the specifiedNkCursor
to thecursor_active
field. -
cursor_last
Sets the address of the specifiedNkCursor
to thecursor_last
field. -
cursor_visible
Sets the specified value to thecursor_visible
field. -
text
Copies the specifiedNkStyleText
to thetext
field. -
text
Passes thetext
field to the specifiedConsumer
. -
button
Copies the specifiedNkStyleButton
to thebutton
field. -
button
Passes thebutton
field to the specifiedConsumer
. -
contextual_button
Copies the specifiedNkStyleButton
to thecontextual_button
field. -
contextual_button
Passes thecontextual_button
field to the specifiedConsumer
. -
option
Copies the specifiedNkStyleToggle
to theoption
field. -
option
Passes theoption
field to the specifiedConsumer
. -
checkbox
Copies the specifiedNkStyleToggle
to thecheckbox
field. -
checkbox
Passes thecheckbox
field to the specifiedConsumer
. -
selectable
Copies the specifiedNkStyleSelectable
to theselectable
field. -
selectable
Passes theselectable
field to the specifiedConsumer
. -
slider
Copies the specifiedNkStyleSlider
to theslider
field. -
slider
Passes theslider
field to the specifiedConsumer
. -
progress
Copies the specifiedNkStyleProgress
to theprogress
field. -
progress
Passes theprogress
field to the specifiedConsumer
. -
property
Copies the specifiedNkStyleProperty
to theproperty
field. -
property
Passes theproperty
field to the specifiedConsumer
. -
edit
Copies the specifiedNkStyleEdit
to theedit
field. -
edit
Passes theedit
field to the specifiedConsumer
. -
chart
Copies the specifiedNkStyleChart
to thechart
field. -
chart
Passes thechart
field to the specifiedConsumer
. -
scrollh
Copies the specifiedNkStyleScrollbar
to thescrollh
field. -
scrollh
Passes thescrollh
field to the specifiedConsumer
. -
scrollv
Copies the specifiedNkStyleScrollbar
to thescrollv
field. -
scrollv
Passes thescrollv
field to the specifiedConsumer
. -
tab
Copies the specifiedNkStyleTab
to thetab
field. -
tab
Passes thetab
field to the specifiedConsumer
. -
combo
Copies the specifiedNkStyleCombo
to thecombo
field. -
combo
Passes thecombo
field to the specifiedConsumer
. -
window
Copies the specifiedNkStyleWindow
to thewindow
field. -
window
Passes thewindow
field to the specifiedConsumer
.
-