Package org.lwjgl.nuklear
Class NkStyleEdit.Buffer
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.CustomBuffer<SELF>
-
- org.lwjgl.system.StructBuffer<NkStyleEdit,NkStyleEdit.Buffer>
-
- org.lwjgl.nuklear.NkStyleEdit.Buffer
-
- All Implemented Interfaces:
java.lang.AutoCloseable
,java.lang.Iterable<NkStyleEdit>
,org.lwjgl.system.NativeResource
,org.lwjgl.system.Pointer
- Enclosing class:
- NkStyleEdit
public static class NkStyleEdit.Buffer extends org.lwjgl.system.StructBuffer<NkStyleEdit,NkStyleEdit.Buffer> implements org.lwjgl.system.NativeResource
An array ofNkStyleEdit
structs.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NkStyleItem
active()
Returns aNkStyleItem
view of theactive
field.NkStyleEdit.Buffer
active(java.util.function.Consumer<NkStyleItem> consumer)
Passes theactive
field to the specifiedConsumer
.NkStyleEdit.Buffer
active(NkStyleItem value)
Copies the specifiedNkStyleItem
to theactive
field.float
border()
Returns the value of theborder
field.NkStyleEdit.Buffer
border(float value)
Sets the specified value to theborder
field.NkColor
border_color()
Returns aNkColor
view of theborder_color
field.NkStyleEdit.Buffer
border_color(java.util.function.Consumer<NkColor> consumer)
Passes theborder_color
field to the specifiedConsumer
.NkStyleEdit.Buffer
border_color(NkColor value)
Copies the specifiedNkColor
to theborder_color
field.NkColor
cursor_hover()
Returns aNkColor
view of thecursor_hover
field.NkStyleEdit.Buffer
cursor_hover(java.util.function.Consumer<NkColor> consumer)
Passes thecursor_hover
field to the specifiedConsumer
.NkStyleEdit.Buffer
cursor_hover(NkColor value)
Copies the specifiedNkColor
to thecursor_hover
field.NkColor
cursor_normal()
Returns aNkColor
view of thecursor_normal
field.NkStyleEdit.Buffer
cursor_normal(java.util.function.Consumer<NkColor> consumer)
Passes thecursor_normal
field to the specifiedConsumer
.NkStyleEdit.Buffer
cursor_normal(NkColor value)
Copies the specifiedNkColor
to thecursor_normal
field.float
cursor_size()
Returns the value of thecursor_size
field.NkStyleEdit.Buffer
cursor_size(float value)
Sets the specified value to thecursor_size
field.NkColor
cursor_text_hover()
Returns aNkColor
view of thecursor_text_hover
field.NkStyleEdit.Buffer
cursor_text_hover(java.util.function.Consumer<NkColor> consumer)
Passes thecursor_text_hover
field to the specifiedConsumer
.NkStyleEdit.Buffer
cursor_text_hover(NkColor value)
Copies the specifiedNkColor
to thecursor_text_hover
field.NkColor
cursor_text_normal()
Returns aNkColor
view of thecursor_text_normal
field.NkStyleEdit.Buffer
cursor_text_normal(java.util.function.Consumer<NkColor> consumer)
Passes thecursor_text_normal
field to the specifiedConsumer
.NkStyleEdit.Buffer
cursor_text_normal(NkColor value)
Copies the specifiedNkColor
to thecursor_text_normal
field.NkStyleItem
hover()
Returns aNkStyleItem
view of thehover
field.NkStyleEdit.Buffer
hover(java.util.function.Consumer<NkStyleItem> consumer)
Passes thehover
field to the specifiedConsumer
.NkStyleEdit.Buffer
hover(NkStyleItem value)
Copies the specifiedNkStyleItem
to thehover
field.NkStyleItem
normal()
Returns aNkStyleItem
view of thenormal
field.NkStyleEdit.Buffer
normal(java.util.function.Consumer<NkStyleItem> consumer)
Passes thenormal
field to the specifiedConsumer
.NkStyleEdit.Buffer
normal(NkStyleItem value)
Copies the specifiedNkStyleItem
to thenormal
field.NkVec2
padding()
Returns aNkVec2
view of thepadding
field.NkStyleEdit.Buffer
padding(java.util.function.Consumer<NkVec2> consumer)
Passes thepadding
field to the specifiedConsumer
.NkStyleEdit.Buffer
padding(NkVec2 value)
Copies the specifiedNkVec2
to thepadding
field.float
rounding()
Returns the value of therounding
field.NkStyleEdit.Buffer
rounding(float value)
Sets the specified value to therounding
field.float
row_padding()
Returns the value of therow_padding
field.NkStyleEdit.Buffer
row_padding(float value)
Sets the specified value to therow_padding
field.NkStyleScrollbar
scrollbar()
Returns aNkStyleScrollbar
view of thescrollbar
field.NkStyleEdit.Buffer
scrollbar(java.util.function.Consumer<NkStyleScrollbar> consumer)
Passes thescrollbar
field to the specifiedConsumer
.NkStyleEdit.Buffer
scrollbar(NkStyleScrollbar value)
Copies the specifiedNkStyleScrollbar
to thescrollbar
field.NkVec2
scrollbar_size()
Returns aNkVec2
view of thescrollbar_size
field.NkStyleEdit.Buffer
scrollbar_size(java.util.function.Consumer<NkVec2> consumer)
Passes thescrollbar_size
field to the specifiedConsumer
.NkStyleEdit.Buffer
scrollbar_size(NkVec2 value)
Copies the specifiedNkVec2
to thescrollbar_size
field.NkColor
selected_hover()
Returns aNkColor
view of theselected_hover
field.NkStyleEdit.Buffer
selected_hover(java.util.function.Consumer<NkColor> consumer)
Passes theselected_hover
field to the specifiedConsumer
.NkStyleEdit.Buffer
selected_hover(NkColor value)
Copies the specifiedNkColor
to theselected_hover
field.NkColor
selected_normal()
Returns aNkColor
view of theselected_normal
field.NkStyleEdit.Buffer
selected_normal(java.util.function.Consumer<NkColor> consumer)
Passes theselected_normal
field to the specifiedConsumer
.NkStyleEdit.Buffer
selected_normal(NkColor value)
Copies the specifiedNkColor
to theselected_normal
field.NkColor
selected_text_hover()
Returns aNkColor
view of theselected_text_hover
field.NkStyleEdit.Buffer
selected_text_hover(java.util.function.Consumer<NkColor> consumer)
Passes theselected_text_hover
field to the specifiedConsumer
.NkStyleEdit.Buffer
selected_text_hover(NkColor value)
Copies the specifiedNkColor
to theselected_text_hover
field.NkColor
selected_text_normal()
Returns aNkColor
view of theselected_text_normal
field.NkStyleEdit.Buffer
selected_text_normal(java.util.function.Consumer<NkColor> consumer)
Passes theselected_text_normal
field to the specifiedConsumer
.NkStyleEdit.Buffer
selected_text_normal(NkColor value)
Copies the specifiedNkColor
to theselected_text_normal
field.NkColor
text_active()
Returns aNkColor
view of thetext_active
field.NkStyleEdit.Buffer
text_active(java.util.function.Consumer<NkColor> consumer)
Passes thetext_active
field to the specifiedConsumer
.NkStyleEdit.Buffer
text_active(NkColor value)
Copies the specifiedNkColor
to thetext_active
field.NkColor
text_hover()
Returns aNkColor
view of thetext_hover
field.NkStyleEdit.Buffer
text_hover(java.util.function.Consumer<NkColor> consumer)
Passes thetext_hover
field to the specifiedConsumer
.NkStyleEdit.Buffer
text_hover(NkColor value)
Copies the specifiedNkColor
to thetext_hover
field.NkColor
text_normal()
Returns aNkColor
view of thetext_normal
field.NkStyleEdit.Buffer
text_normal(java.util.function.Consumer<NkColor> consumer)
Passes thetext_normal
field to the specifiedConsumer
.NkStyleEdit.Buffer
text_normal(NkColor value)
Copies the specifiedNkColor
to thetext_normal
field.
-
-
-
Constructor Detail
-
Buffer
public Buffer(java.nio.ByteBuffer container)
Creates a newNkStyleEdit.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 byNkStyleEdit.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
-
normal
public NkStyleItem normal()
Returns aNkStyleItem
view of thenormal
field.
-
hover
public NkStyleItem hover()
Returns aNkStyleItem
view of thehover
field.
-
active
public NkStyleItem active()
Returns aNkStyleItem
view of theactive
field.
-
scrollbar
public NkStyleScrollbar scrollbar()
Returns aNkStyleScrollbar
view of thescrollbar
field.
-
cursor_text_normal
public NkColor cursor_text_normal()
Returns aNkColor
view of thecursor_text_normal
field.
-
cursor_text_hover
public NkColor cursor_text_hover()
Returns aNkColor
view of thecursor_text_hover
field.
-
selected_normal
public NkColor selected_normal()
Returns aNkColor
view of theselected_normal
field.
-
selected_text_normal
public NkColor selected_text_normal()
Returns aNkColor
view of theselected_text_normal
field.
-
selected_text_hover
public NkColor selected_text_hover()
Returns aNkColor
view of theselected_text_hover
field.
-
border
public float border()
Returns the value of theborder
field.
-
rounding
public float rounding()
Returns the value of therounding
field.
-
cursor_size
public float cursor_size()
Returns the value of thecursor_size
field.
-
row_padding
public float row_padding()
Returns the value of therow_padding
field.
-
normal
public NkStyleEdit.Buffer normal(NkStyleItem value)
Copies the specifiedNkStyleItem
to thenormal
field.
-
normal
public NkStyleEdit.Buffer normal(java.util.function.Consumer<NkStyleItem> consumer)
Passes thenormal
field to the specifiedConsumer
.
-
hover
public NkStyleEdit.Buffer hover(NkStyleItem value)
Copies the specifiedNkStyleItem
to thehover
field.
-
hover
public NkStyleEdit.Buffer hover(java.util.function.Consumer<NkStyleItem> consumer)
Passes thehover
field to the specifiedConsumer
.
-
active
public NkStyleEdit.Buffer active(NkStyleItem value)
Copies the specifiedNkStyleItem
to theactive
field.
-
active
public NkStyleEdit.Buffer active(java.util.function.Consumer<NkStyleItem> consumer)
Passes theactive
field to the specifiedConsumer
.
-
border_color
public NkStyleEdit.Buffer border_color(NkColor value)
Copies the specifiedNkColor
to theborder_color
field.
-
border_color
public NkStyleEdit.Buffer border_color(java.util.function.Consumer<NkColor> consumer)
Passes theborder_color
field to the specifiedConsumer
.
-
scrollbar
public NkStyleEdit.Buffer scrollbar(NkStyleScrollbar value)
Copies the specifiedNkStyleScrollbar
to thescrollbar
field.
-
scrollbar
public NkStyleEdit.Buffer scrollbar(java.util.function.Consumer<NkStyleScrollbar> consumer)
Passes thescrollbar
field to the specifiedConsumer
.
-
cursor_normal
public NkStyleEdit.Buffer cursor_normal(NkColor value)
Copies the specifiedNkColor
to thecursor_normal
field.
-
cursor_normal
public NkStyleEdit.Buffer cursor_normal(java.util.function.Consumer<NkColor> consumer)
Passes thecursor_normal
field to the specifiedConsumer
.
-
cursor_hover
public NkStyleEdit.Buffer cursor_hover(NkColor value)
Copies the specifiedNkColor
to thecursor_hover
field.
-
cursor_hover
public NkStyleEdit.Buffer cursor_hover(java.util.function.Consumer<NkColor> consumer)
Passes thecursor_hover
field to the specifiedConsumer
.
-
cursor_text_normal
public NkStyleEdit.Buffer cursor_text_normal(NkColor value)
Copies the specifiedNkColor
to thecursor_text_normal
field.
-
cursor_text_normal
public NkStyleEdit.Buffer cursor_text_normal(java.util.function.Consumer<NkColor> consumer)
Passes thecursor_text_normal
field to the specifiedConsumer
.
-
cursor_text_hover
public NkStyleEdit.Buffer cursor_text_hover(NkColor value)
Copies the specifiedNkColor
to thecursor_text_hover
field.
-
cursor_text_hover
public NkStyleEdit.Buffer cursor_text_hover(java.util.function.Consumer<NkColor> consumer)
Passes thecursor_text_hover
field to the specifiedConsumer
.
-
text_normal
public NkStyleEdit.Buffer text_normal(NkColor value)
Copies the specifiedNkColor
to thetext_normal
field.
-
text_normal
public NkStyleEdit.Buffer text_normal(java.util.function.Consumer<NkColor> consumer)
Passes thetext_normal
field to the specifiedConsumer
.
-
text_hover
public NkStyleEdit.Buffer text_hover(NkColor value)
Copies the specifiedNkColor
to thetext_hover
field.
-
text_hover
public NkStyleEdit.Buffer text_hover(java.util.function.Consumer<NkColor> consumer)
Passes thetext_hover
field to the specifiedConsumer
.
-
text_active
public NkStyleEdit.Buffer text_active(NkColor value)
Copies the specifiedNkColor
to thetext_active
field.
-
text_active
public NkStyleEdit.Buffer text_active(java.util.function.Consumer<NkColor> consumer)
Passes thetext_active
field to the specifiedConsumer
.
-
selected_normal
public NkStyleEdit.Buffer selected_normal(NkColor value)
Copies the specifiedNkColor
to theselected_normal
field.
-
selected_normal
public NkStyleEdit.Buffer selected_normal(java.util.function.Consumer<NkColor> consumer)
Passes theselected_normal
field to the specifiedConsumer
.
-
selected_hover
public NkStyleEdit.Buffer selected_hover(NkColor value)
Copies the specifiedNkColor
to theselected_hover
field.
-
selected_hover
public NkStyleEdit.Buffer selected_hover(java.util.function.Consumer<NkColor> consumer)
Passes theselected_hover
field to the specifiedConsumer
.
-
selected_text_normal
public NkStyleEdit.Buffer selected_text_normal(NkColor value)
Copies the specifiedNkColor
to theselected_text_normal
field.
-
selected_text_normal
public NkStyleEdit.Buffer selected_text_normal(java.util.function.Consumer<NkColor> consumer)
Passes theselected_text_normal
field to the specifiedConsumer
.
-
selected_text_hover
public NkStyleEdit.Buffer selected_text_hover(NkColor value)
Copies the specifiedNkColor
to theselected_text_hover
field.
-
selected_text_hover
public NkStyleEdit.Buffer selected_text_hover(java.util.function.Consumer<NkColor> consumer)
Passes theselected_text_hover
field to the specifiedConsumer
.
-
border
public NkStyleEdit.Buffer border(float value)
Sets the specified value to theborder
field.
-
rounding
public NkStyleEdit.Buffer rounding(float value)
Sets the specified value to therounding
field.
-
cursor_size
public NkStyleEdit.Buffer cursor_size(float value)
Sets the specified value to thecursor_size
field.
-
scrollbar_size
public NkStyleEdit.Buffer scrollbar_size(NkVec2 value)
Copies the specifiedNkVec2
to thescrollbar_size
field.
-
scrollbar_size
public NkStyleEdit.Buffer scrollbar_size(java.util.function.Consumer<NkVec2> consumer)
Passes thescrollbar_size
field to the specifiedConsumer
.
-
padding
public NkStyleEdit.Buffer padding(NkVec2 value)
Copies the specifiedNkVec2
to thepadding
field.
-
padding
public NkStyleEdit.Buffer padding(java.util.function.Consumer<NkVec2> consumer)
Passes thepadding
field to the specifiedConsumer
.
-
row_padding
public NkStyleEdit.Buffer row_padding(float value)
Sets the specified value to therow_padding
field.
-
-