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 ofNkStyleEditstructs.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NkStyleItemactive()NkStyleEdit.Bufferactive(java.util.function.Consumer<NkStyleItem> consumer)Passes theactivefield to the specifiedConsumer.NkStyleEdit.Bufferactive(NkStyleItem value)Copies the specifiedNkStyleItemto theactivefield.floatborder()NkStyleEdit.Bufferborder(float value)Sets the specified value to theborderfield.NkColorborder_color()NkStyleEdit.Bufferborder_color(java.util.function.Consumer<NkColor> consumer)Passes theborder_colorfield to the specifiedConsumer.NkStyleEdit.Bufferborder_color(NkColor value)Copies the specifiedNkColorto theborder_colorfield.NkColorcursor_hover()NkStyleEdit.Buffercursor_hover(java.util.function.Consumer<NkColor> consumer)Passes thecursor_hoverfield to the specifiedConsumer.NkStyleEdit.Buffercursor_hover(NkColor value)Copies the specifiedNkColorto thecursor_hoverfield.NkColorcursor_normal()NkStyleEdit.Buffercursor_normal(java.util.function.Consumer<NkColor> consumer)Passes thecursor_normalfield to the specifiedConsumer.NkStyleEdit.Buffercursor_normal(NkColor value)Copies the specifiedNkColorto thecursor_normalfield.floatcursor_size()NkStyleEdit.Buffercursor_size(float value)Sets the specified value to thecursor_sizefield.NkColorcursor_text_hover()NkStyleEdit.Buffercursor_text_hover(java.util.function.Consumer<NkColor> consumer)Passes thecursor_text_hoverfield to the specifiedConsumer.NkStyleEdit.Buffercursor_text_hover(NkColor value)Copies the specifiedNkColorto thecursor_text_hoverfield.NkColorcursor_text_normal()NkStyleEdit.Buffercursor_text_normal(java.util.function.Consumer<NkColor> consumer)Passes thecursor_text_normalfield to the specifiedConsumer.NkStyleEdit.Buffercursor_text_normal(NkColor value)Copies the specifiedNkColorto thecursor_text_normalfield.NkStyleItemhover()NkStyleEdit.Bufferhover(java.util.function.Consumer<NkStyleItem> consumer)Passes thehoverfield to the specifiedConsumer.NkStyleEdit.Bufferhover(NkStyleItem value)Copies the specifiedNkStyleItemto thehoverfield.NkStyleItemnormal()NkStyleEdit.Buffernormal(java.util.function.Consumer<NkStyleItem> consumer)Passes thenormalfield to the specifiedConsumer.NkStyleEdit.Buffernormal(NkStyleItem value)Copies the specifiedNkStyleItemto thenormalfield.NkVec2padding()NkStyleEdit.Bufferpadding(java.util.function.Consumer<NkVec2> consumer)Passes thepaddingfield to the specifiedConsumer.NkStyleEdit.Bufferpadding(NkVec2 value)Copies the specifiedNkVec2to thepaddingfield.floatrounding()NkStyleEdit.Bufferrounding(float value)Sets the specified value to theroundingfield.floatrow_padding()NkStyleEdit.Bufferrow_padding(float value)Sets the specified value to therow_paddingfield.NkStyleScrollbarscrollbar()NkStyleEdit.Bufferscrollbar(java.util.function.Consumer<NkStyleScrollbar> consumer)Passes thescrollbarfield to the specifiedConsumer.NkStyleEdit.Bufferscrollbar(NkStyleScrollbar value)Copies the specifiedNkStyleScrollbarto thescrollbarfield.NkVec2scrollbar_size()NkStyleEdit.Bufferscrollbar_size(java.util.function.Consumer<NkVec2> consumer)Passes thescrollbar_sizefield to the specifiedConsumer.NkStyleEdit.Bufferscrollbar_size(NkVec2 value)Copies the specifiedNkVec2to thescrollbar_sizefield.NkColorselected_hover()NkStyleEdit.Bufferselected_hover(java.util.function.Consumer<NkColor> consumer)Passes theselected_hoverfield to the specifiedConsumer.NkStyleEdit.Bufferselected_hover(NkColor value)Copies the specifiedNkColorto theselected_hoverfield.NkColorselected_normal()NkStyleEdit.Bufferselected_normal(java.util.function.Consumer<NkColor> consumer)Passes theselected_normalfield to the specifiedConsumer.NkStyleEdit.Bufferselected_normal(NkColor value)Copies the specifiedNkColorto theselected_normalfield.NkColorselected_text_hover()NkStyleEdit.Bufferselected_text_hover(java.util.function.Consumer<NkColor> consumer)Passes theselected_text_hoverfield to the specifiedConsumer.NkStyleEdit.Bufferselected_text_hover(NkColor value)Copies the specifiedNkColorto theselected_text_hoverfield.NkColorselected_text_normal()NkStyleEdit.Bufferselected_text_normal(java.util.function.Consumer<NkColor> consumer)Passes theselected_text_normalfield to the specifiedConsumer.NkStyleEdit.Bufferselected_text_normal(NkColor value)Copies the specifiedNkColorto theselected_text_normalfield.NkColortext_active()NkStyleEdit.Buffertext_active(java.util.function.Consumer<NkColor> consumer)Passes thetext_activefield to the specifiedConsumer.NkStyleEdit.Buffertext_active(NkColor value)Copies the specifiedNkColorto thetext_activefield.NkColortext_hover()NkStyleEdit.Buffertext_hover(java.util.function.Consumer<NkColor> consumer)Passes thetext_hoverfield to the specifiedConsumer.NkStyleEdit.Buffertext_hover(NkColor value)Copies the specifiedNkColorto thetext_hoverfield.NkColortext_normal()NkStyleEdit.Buffertext_normal(java.util.function.Consumer<NkColor> consumer)Passes thetext_normalfield to the specifiedConsumer.NkStyleEdit.Buffertext_normal(NkColor value)Copies the specifiedNkColorto thetext_normalfield.
-
-
-
Constructor Detail
-
Buffer
public Buffer(java.nio.ByteBuffer container)
Creates a newNkStyleEdit.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 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:
- a
NkStyleItemview of thenormalfield.
-
hover
public NkStyleItem hover()
- Returns:
- a
NkStyleItemview of thehoverfield.
-
active
public NkStyleItem active()
- Returns:
- a
NkStyleItemview of theactivefield.
-
scrollbar
public NkStyleScrollbar scrollbar()
- Returns:
- a
NkStyleScrollbarview of thescrollbarfield.
-
cursor_text_normal
public NkColor cursor_text_normal()
- Returns:
- a
NkColorview of thecursor_text_normalfield.
-
cursor_text_hover
public NkColor cursor_text_hover()
- Returns:
- a
NkColorview of thecursor_text_hoverfield.
-
selected_normal
public NkColor selected_normal()
- Returns:
- a
NkColorview of theselected_normalfield.
-
selected_text_normal
public NkColor selected_text_normal()
- Returns:
- a
NkColorview of theselected_text_normalfield.
-
selected_text_hover
public NkColor selected_text_hover()
- Returns:
- a
NkColorview of theselected_text_hoverfield.
-
border
public float border()
- Returns:
- the value of the
borderfield.
-
rounding
public float rounding()
- Returns:
- the value of the
roundingfield.
-
cursor_size
public float cursor_size()
- Returns:
- the value of the
cursor_sizefield.
-
row_padding
public float row_padding()
- Returns:
- the value of the
row_paddingfield.
-
normal
public NkStyleEdit.Buffer normal(NkStyleItem value)
Copies the specifiedNkStyleItemto thenormalfield.
-
normal
public NkStyleEdit.Buffer normal(java.util.function.Consumer<NkStyleItem> consumer)
Passes thenormalfield to the specifiedConsumer.
-
hover
public NkStyleEdit.Buffer hover(NkStyleItem value)
Copies the specifiedNkStyleItemto thehoverfield.
-
hover
public NkStyleEdit.Buffer hover(java.util.function.Consumer<NkStyleItem> consumer)
Passes thehoverfield to the specifiedConsumer.
-
active
public NkStyleEdit.Buffer active(NkStyleItem value)
Copies the specifiedNkStyleItemto theactivefield.
-
active
public NkStyleEdit.Buffer active(java.util.function.Consumer<NkStyleItem> consumer)
Passes theactivefield to the specifiedConsumer.
-
border_color
public NkStyleEdit.Buffer border_color(NkColor value)
Copies the specifiedNkColorto theborder_colorfield.
-
border_color
public NkStyleEdit.Buffer border_color(java.util.function.Consumer<NkColor> consumer)
Passes theborder_colorfield to the specifiedConsumer.
-
scrollbar
public NkStyleEdit.Buffer scrollbar(NkStyleScrollbar value)
Copies the specifiedNkStyleScrollbarto thescrollbarfield.
-
scrollbar
public NkStyleEdit.Buffer scrollbar(java.util.function.Consumer<NkStyleScrollbar> consumer)
Passes thescrollbarfield to the specifiedConsumer.
-
cursor_normal
public NkStyleEdit.Buffer cursor_normal(NkColor value)
Copies the specifiedNkColorto thecursor_normalfield.
-
cursor_normal
public NkStyleEdit.Buffer cursor_normal(java.util.function.Consumer<NkColor> consumer)
Passes thecursor_normalfield to the specifiedConsumer.
-
cursor_hover
public NkStyleEdit.Buffer cursor_hover(NkColor value)
Copies the specifiedNkColorto thecursor_hoverfield.
-
cursor_hover
public NkStyleEdit.Buffer cursor_hover(java.util.function.Consumer<NkColor> consumer)
Passes thecursor_hoverfield to the specifiedConsumer.
-
cursor_text_normal
public NkStyleEdit.Buffer cursor_text_normal(NkColor value)
Copies the specifiedNkColorto thecursor_text_normalfield.
-
cursor_text_normal
public NkStyleEdit.Buffer cursor_text_normal(java.util.function.Consumer<NkColor> consumer)
Passes thecursor_text_normalfield to the specifiedConsumer.
-
cursor_text_hover
public NkStyleEdit.Buffer cursor_text_hover(NkColor value)
Copies the specifiedNkColorto thecursor_text_hoverfield.
-
cursor_text_hover
public NkStyleEdit.Buffer cursor_text_hover(java.util.function.Consumer<NkColor> consumer)
Passes thecursor_text_hoverfield to the specifiedConsumer.
-
text_normal
public NkStyleEdit.Buffer text_normal(NkColor value)
Copies the specifiedNkColorto thetext_normalfield.
-
text_normal
public NkStyleEdit.Buffer text_normal(java.util.function.Consumer<NkColor> consumer)
Passes thetext_normalfield to the specifiedConsumer.
-
text_hover
public NkStyleEdit.Buffer text_hover(NkColor value)
Copies the specifiedNkColorto thetext_hoverfield.
-
text_hover
public NkStyleEdit.Buffer text_hover(java.util.function.Consumer<NkColor> consumer)
Passes thetext_hoverfield to the specifiedConsumer.
-
text_active
public NkStyleEdit.Buffer text_active(NkColor value)
Copies the specifiedNkColorto thetext_activefield.
-
text_active
public NkStyleEdit.Buffer text_active(java.util.function.Consumer<NkColor> consumer)
Passes thetext_activefield to the specifiedConsumer.
-
selected_normal
public NkStyleEdit.Buffer selected_normal(NkColor value)
Copies the specifiedNkColorto theselected_normalfield.
-
selected_normal
public NkStyleEdit.Buffer selected_normal(java.util.function.Consumer<NkColor> consumer)
Passes theselected_normalfield to the specifiedConsumer.
-
selected_hover
public NkStyleEdit.Buffer selected_hover(NkColor value)
Copies the specifiedNkColorto theselected_hoverfield.
-
selected_hover
public NkStyleEdit.Buffer selected_hover(java.util.function.Consumer<NkColor> consumer)
Passes theselected_hoverfield to the specifiedConsumer.
-
selected_text_normal
public NkStyleEdit.Buffer selected_text_normal(NkColor value)
Copies the specifiedNkColorto theselected_text_normalfield.
-
selected_text_normal
public NkStyleEdit.Buffer selected_text_normal(java.util.function.Consumer<NkColor> consumer)
Passes theselected_text_normalfield to the specifiedConsumer.
-
selected_text_hover
public NkStyleEdit.Buffer selected_text_hover(NkColor value)
Copies the specifiedNkColorto theselected_text_hoverfield.
-
selected_text_hover
public NkStyleEdit.Buffer selected_text_hover(java.util.function.Consumer<NkColor> consumer)
Passes theselected_text_hoverfield to the specifiedConsumer.
-
border
public NkStyleEdit.Buffer border(float value)
Sets the specified value to theborderfield.
-
rounding
public NkStyleEdit.Buffer rounding(float value)
Sets the specified value to theroundingfield.
-
cursor_size
public NkStyleEdit.Buffer cursor_size(float value)
Sets the specified value to thecursor_sizefield.
-
scrollbar_size
public NkStyleEdit.Buffer scrollbar_size(NkVec2 value)
Copies the specifiedNkVec2to thescrollbar_sizefield.
-
scrollbar_size
public NkStyleEdit.Buffer scrollbar_size(java.util.function.Consumer<NkVec2> consumer)
Passes thescrollbar_sizefield to the specifiedConsumer.
-
padding
public NkStyleEdit.Buffer padding(NkVec2 value)
Copies the specifiedNkVec2to thepaddingfield.
-
padding
public NkStyleEdit.Buffer padding(java.util.function.Consumer<NkVec2> consumer)
Passes thepaddingfield to the specifiedConsumer.
-
row_padding
public NkStyleEdit.Buffer row_padding(float value)
Sets the specified value to therow_paddingfield.
-
-