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.
-
-
Constructor Summary
Constructors Constructor Description Buffer(long address, int cap)Buffer(java.nio.ByteBuffer container)Creates a newNkStyleEdit.Bufferinstance backed by the specified container.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NkStyleItemactive()Returns aNkStyleItemview of theactivefield.NkStyleEdit.Bufferactive(java.util.function.Consumer<NkStyleItem> consumer)Passes theactivefield to the specifiedConsumer.NkStyleEdit.Bufferactive(NkStyleItem value)Copies the specifiedNkStyleItemto theactivefield.floatborder()Returns the value of theborderfield.NkStyleEdit.Bufferborder(float value)Sets the specified value to theborderfield.NkColorborder_color()Returns aNkColorview of theborder_colorfield.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()Returns aNkColorview of thecursor_hoverfield.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()Returns aNkColorview of thecursor_normalfield.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()Returns the value of thecursor_sizefield.NkStyleEdit.Buffercursor_size(float value)Sets the specified value to thecursor_sizefield.NkColorcursor_text_hover()Returns aNkColorview of thecursor_text_hoverfield.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()Returns aNkColorview of thecursor_text_normalfield.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()Returns aNkStyleItemview of thehoverfield.NkStyleEdit.Bufferhover(java.util.function.Consumer<NkStyleItem> consumer)Passes thehoverfield to the specifiedConsumer.NkStyleEdit.Bufferhover(NkStyleItem value)Copies the specifiedNkStyleItemto thehoverfield.NkStyleItemnormal()Returns aNkStyleItemview of thenormalfield.NkStyleEdit.Buffernormal(java.util.function.Consumer<NkStyleItem> consumer)Passes thenormalfield to the specifiedConsumer.NkStyleEdit.Buffernormal(NkStyleItem value)Copies the specifiedNkStyleItemto thenormalfield.NkVec2padding()Returns aNkVec2view of thepaddingfield.NkStyleEdit.Bufferpadding(java.util.function.Consumer<NkVec2> consumer)Passes thepaddingfield to the specifiedConsumer.NkStyleEdit.Bufferpadding(NkVec2 value)Copies the specifiedNkVec2to thepaddingfield.floatrounding()Returns the value of theroundingfield.NkStyleEdit.Bufferrounding(float value)Sets the specified value to theroundingfield.floatrow_padding()Returns the value of therow_paddingfield.NkStyleEdit.Bufferrow_padding(float value)Sets the specified value to therow_paddingfield.NkStyleScrollbarscrollbar()Returns aNkStyleScrollbarview of thescrollbarfield.NkStyleEdit.Bufferscrollbar(java.util.function.Consumer<NkStyleScrollbar> consumer)Passes thescrollbarfield to the specifiedConsumer.NkStyleEdit.Bufferscrollbar(NkStyleScrollbar value)Copies the specifiedNkStyleScrollbarto thescrollbarfield.NkVec2scrollbar_size()Returns aNkVec2view of thescrollbar_sizefield.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()Returns aNkColorview of theselected_hoverfield.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()Returns aNkColorview of theselected_normalfield.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()Returns aNkColorview of theselected_text_hoverfield.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()Returns aNkColorview of theselected_text_normalfield.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()Returns aNkColorview of thetext_activefield.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()Returns aNkColorview of thetext_hoverfield.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()Returns aNkColorview of thetext_normalfield.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 aNkStyleItemview of thenormalfield.
-
normal
public NkStyleEdit.Buffer normal(java.util.function.Consumer<NkStyleItem> consumer)
Passes thenormalfield to the specifiedConsumer.
-
hover
public NkStyleItem hover()
Returns aNkStyleItemview of thehoverfield.
-
hover
public NkStyleEdit.Buffer hover(java.util.function.Consumer<NkStyleItem> consumer)
Passes thehoverfield to the specifiedConsumer.
-
active
public NkStyleItem active()
Returns aNkStyleItemview of theactivefield.
-
active
public NkStyleEdit.Buffer active(java.util.function.Consumer<NkStyleItem> consumer)
Passes theactivefield to the specifiedConsumer.
-
border_color
public NkStyleEdit.Buffer border_color(java.util.function.Consumer<NkColor> consumer)
Passes theborder_colorfield to the specifiedConsumer.
-
scrollbar
public NkStyleScrollbar scrollbar()
Returns aNkStyleScrollbarview of thescrollbarfield.
-
scrollbar
public NkStyleEdit.Buffer scrollbar(java.util.function.Consumer<NkStyleScrollbar> consumer)
Passes thescrollbarfield to the specifiedConsumer.
-
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(java.util.function.Consumer<NkColor> consumer)
Passes thecursor_hoverfield to the specifiedConsumer.
-
cursor_text_normal
public NkColor cursor_text_normal()
Returns aNkColorview of 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 NkColor cursor_text_hover()
Returns aNkColorview of 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(java.util.function.Consumer<NkColor> consumer)
Passes thetext_normalfield to the specifiedConsumer.
-
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(java.util.function.Consumer<NkColor> consumer)
Passes thetext_activefield to the specifiedConsumer.
-
selected_normal
public NkColor selected_normal()
Returns aNkColorview of 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(java.util.function.Consumer<NkColor> consumer)
Passes theselected_hoverfield to the specifiedConsumer.
-
selected_text_normal
public NkColor selected_text_normal()
Returns aNkColorview of 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 NkColor selected_text_hover()
Returns aNkColorview of 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 float border()
Returns the value of theborderfield.
-
rounding
public float rounding()
Returns the value of theroundingfield.
-
cursor_size
public float cursor_size()
Returns the value of thecursor_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(java.util.function.Consumer<NkVec2> consumer)
Passes thepaddingfield to the specifiedConsumer.
-
row_padding
public float row_padding()
Returns the value of therow_paddingfield.
-
normal
public NkStyleEdit.Buffer normal(NkStyleItem value)
Copies the specifiedNkStyleItemto thenormalfield.
-
hover
public NkStyleEdit.Buffer hover(NkStyleItem value)
Copies the specifiedNkStyleItemto thehoverfield.
-
active
public NkStyleEdit.Buffer active(NkStyleItem value)
Copies the specifiedNkStyleItemto theactivefield.
-
border_color
public NkStyleEdit.Buffer border_color(NkColor value)
Copies the specifiedNkColorto theborder_colorfield.
-
scrollbar
public NkStyleEdit.Buffer scrollbar(NkStyleScrollbar value)
Copies the specifiedNkStyleScrollbarto thescrollbarfield.
-
cursor_normal
public NkStyleEdit.Buffer cursor_normal(NkColor value)
Copies the specifiedNkColorto thecursor_normalfield.
-
cursor_hover
public NkStyleEdit.Buffer cursor_hover(NkColor value)
Copies the specifiedNkColorto thecursor_hoverfield.
-
cursor_text_normal
public NkStyleEdit.Buffer cursor_text_normal(NkColor value)
Copies the specifiedNkColorto thecursor_text_normalfield.
-
cursor_text_hover
public NkStyleEdit.Buffer cursor_text_hover(NkColor value)
Copies the specifiedNkColorto thecursor_text_hoverfield.
-
text_normal
public NkStyleEdit.Buffer text_normal(NkColor value)
Copies the specifiedNkColorto thetext_normalfield.
-
text_hover
public NkStyleEdit.Buffer text_hover(NkColor value)
Copies the specifiedNkColorto thetext_hoverfield.
-
text_active
public NkStyleEdit.Buffer text_active(NkColor value)
Copies the specifiedNkColorto thetext_activefield.
-
selected_normal
public NkStyleEdit.Buffer selected_normal(NkColor value)
Copies the specifiedNkColorto theselected_normalfield.
-
selected_hover
public NkStyleEdit.Buffer selected_hover(NkColor value)
Copies the specifiedNkColorto theselected_hoverfield.
-
selected_text_normal
public NkStyleEdit.Buffer selected_text_normal(NkColor value)
Copies the specifiedNkColorto theselected_text_normalfield.
-
selected_text_hover
public NkStyleEdit.Buffer selected_text_hover(NkColor value)
Copies the specifiedNkColorto theselected_text_hoverfield.
-
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.
-
padding
public NkStyleEdit.Buffer padding(NkVec2 value)
Copies the specifiedNkVec2to thepaddingfield.
-
row_padding
public NkStyleEdit.Buffer row_padding(float value)
Sets the specified value to therow_paddingfield.
-
-