Package org.lwjgl.nuklear
Class NkStyleProperty.Buffer
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.CustomBuffer<SELF>
-
- org.lwjgl.system.StructBuffer<NkStyleProperty,NkStyleProperty.Buffer>
-
- org.lwjgl.nuklear.NkStyleProperty.Buffer
-
- All Implemented Interfaces:
java.lang.AutoCloseable,java.lang.Iterable<NkStyleProperty>,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
- Enclosing class:
- NkStyleProperty
public static class NkStyleProperty.Buffer extends org.lwjgl.system.StructBuffer<NkStyleProperty,NkStyleProperty.Buffer> implements org.lwjgl.system.NativeResource
An array ofNkStylePropertystructs.
-
-
Constructor Summary
Constructors Constructor Description Buffer(long address, int cap)Buffer(java.nio.ByteBuffer container)Creates a newNkStyleProperty.Bufferinstance backed by the specified container.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NkStyleItemactive()Returns aNkStyleItemview of theactivefield.NkStyleProperty.Bufferactive(java.util.function.Consumer<NkStyleItem> consumer)Passes theactivefield to the specifiedConsumer.NkStyleProperty.Bufferactive(NkStyleItem value)Copies the specifiedNkStyleItemto theactivefield.floatborder()Returns the value of theborderfield.NkStyleProperty.Bufferborder(float value)Sets the specified value to theborderfield.NkColorborder_color()Returns aNkColorview of theborder_colorfield.NkStyleProperty.Bufferborder_color(java.util.function.Consumer<NkColor> consumer)Passes theborder_colorfield to the specifiedConsumer.NkStyleProperty.Bufferborder_color(NkColor value)Copies the specifiedNkColorto theborder_colorfield.NkStyleButtondec_button()Returns aNkStyleButtonview of thedec_buttonfield.NkStyleProperty.Bufferdec_button(java.util.function.Consumer<NkStyleButton> consumer)Passes thedec_buttonfield to the specifiedConsumer.NkStyleProperty.Bufferdec_button(NkStyleButton value)Copies the specifiedNkStyleButtonto thedec_buttonfield.NkDrawBeginCallbackdraw_begin()Returns the value of thedraw_beginfield.NkStyleProperty.Bufferdraw_begin(NkDrawBeginCallbackI value)Sets the specified value to thedraw_beginfield.NkDrawEndCallbackdraw_end()Returns the value of thedraw_endfield.NkStyleProperty.Bufferdraw_end(NkDrawEndCallbackI value)Sets the specified value to thedraw_endfield.NkStyleEditedit()Returns aNkStyleEditview of theeditfield.NkStyleProperty.Bufferedit(java.util.function.Consumer<NkStyleEdit> consumer)Passes theeditfield to the specifiedConsumer.NkStyleProperty.Bufferedit(NkStyleEdit value)Copies the specifiedNkStyleEditto theeditfield.NkStyleItemhover()Returns aNkStyleItemview of thehoverfield.NkStyleProperty.Bufferhover(java.util.function.Consumer<NkStyleItem> consumer)Passes thehoverfield to the specifiedConsumer.NkStyleProperty.Bufferhover(NkStyleItem value)Copies the specifiedNkStyleItemto thehoverfield.NkStyleButtoninc_button()Returns aNkStyleButtonview of theinc_buttonfield.NkStyleProperty.Bufferinc_button(java.util.function.Consumer<NkStyleButton> consumer)Passes theinc_buttonfield to the specifiedConsumer.NkStyleProperty.Bufferinc_button(NkStyleButton value)Copies the specifiedNkStyleButtonto theinc_buttonfield.NkColorlabel_active()Returns aNkColorview of thelabel_activefield.NkStyleProperty.Bufferlabel_active(java.util.function.Consumer<NkColor> consumer)Passes thelabel_activefield to the specifiedConsumer.NkStyleProperty.Bufferlabel_active(NkColor value)Copies the specifiedNkColorto thelabel_activefield.NkColorlabel_hover()Returns aNkColorview of thelabel_hoverfield.NkStyleProperty.Bufferlabel_hover(java.util.function.Consumer<NkColor> consumer)Passes thelabel_hoverfield to the specifiedConsumer.NkStyleProperty.Bufferlabel_hover(NkColor value)Copies the specifiedNkColorto thelabel_hoverfield.NkColorlabel_normal()Returns aNkColorview of thelabel_normalfield.NkStyleProperty.Bufferlabel_normal(java.util.function.Consumer<NkColor> consumer)Passes thelabel_normalfield to the specifiedConsumer.NkStyleProperty.Bufferlabel_normal(NkColor value)Copies the specifiedNkColorto thelabel_normalfield.NkStyleItemnormal()Returns aNkStyleItemview of thenormalfield.NkStyleProperty.Buffernormal(java.util.function.Consumer<NkStyleItem> consumer)Passes thenormalfield to the specifiedConsumer.NkStyleProperty.Buffernormal(NkStyleItem value)Copies the specifiedNkStyleItemto thenormalfield.NkVec2padding()Returns aNkVec2view of thepaddingfield.NkStyleProperty.Bufferpadding(java.util.function.Consumer<NkVec2> consumer)Passes thepaddingfield to the specifiedConsumer.NkStyleProperty.Bufferpadding(NkVec2 value)Copies the specifiedNkVec2to thepaddingfield.floatrounding()Returns the value of theroundingfield.NkStyleProperty.Bufferrounding(float value)Sets the specified value to theroundingfield.intsym_left()Returns the value of thesym_leftfield.NkStyleProperty.Buffersym_left(int value)Sets the specified value to thesym_leftfield.intsym_right()Returns the value of thesym_rightfield.NkStyleProperty.Buffersym_right(int value)Sets the specified value to thesym_rightfield.NkHandleuserdata()Returns aNkHandleview of theuserdatafield.NkStyleProperty.Bufferuserdata(java.util.function.Consumer<NkHandle> consumer)Passes theuserdatafield to the specifiedConsumer.NkStyleProperty.Bufferuserdata(NkHandle value)Copies the specifiedNkHandleto theuserdatafield.
-
-
-
Constructor Detail
-
Buffer
public Buffer(java.nio.ByteBuffer container)
Creates a newNkStyleProperty.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 byNkStyleProperty.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 NkStyleProperty.Buffer normal(java.util.function.Consumer<NkStyleItem> consumer)
Passes thenormalfield to the specifiedConsumer.
-
hover
public NkStyleItem hover()
Returns aNkStyleItemview of thehoverfield.
-
hover
public NkStyleProperty.Buffer hover(java.util.function.Consumer<NkStyleItem> consumer)
Passes thehoverfield to the specifiedConsumer.
-
active
public NkStyleItem active()
Returns aNkStyleItemview of theactivefield.
-
active
public NkStyleProperty.Buffer active(java.util.function.Consumer<NkStyleItem> consumer)
Passes theactivefield to the specifiedConsumer.
-
border_color
public NkStyleProperty.Buffer border_color(java.util.function.Consumer<NkColor> consumer)
Passes theborder_colorfield to the specifiedConsumer.
-
label_normal
public NkStyleProperty.Buffer label_normal(java.util.function.Consumer<NkColor> consumer)
Passes thelabel_normalfield to the specifiedConsumer.
-
label_hover
public NkStyleProperty.Buffer label_hover(java.util.function.Consumer<NkColor> consumer)
Passes thelabel_hoverfield to the specifiedConsumer.
-
label_active
public NkStyleProperty.Buffer label_active(java.util.function.Consumer<NkColor> consumer)
Passes thelabel_activefield to the specifiedConsumer.
-
sym_left
public int sym_left()
Returns the value of thesym_leftfield.
-
sym_right
public int sym_right()
Returns the value of thesym_rightfield.
-
border
public float border()
Returns the value of theborderfield.
-
rounding
public float rounding()
Returns the value of theroundingfield.
-
padding
public NkStyleProperty.Buffer padding(java.util.function.Consumer<NkVec2> consumer)
Passes thepaddingfield to the specifiedConsumer.
-
edit
public NkStyleEdit edit()
Returns aNkStyleEditview of theeditfield.
-
edit
public NkStyleProperty.Buffer edit(java.util.function.Consumer<NkStyleEdit> consumer)
Passes theeditfield to the specifiedConsumer.
-
inc_button
public NkStyleButton inc_button()
Returns aNkStyleButtonview of theinc_buttonfield.
-
inc_button
public NkStyleProperty.Buffer inc_button(java.util.function.Consumer<NkStyleButton> consumer)
Passes theinc_buttonfield to the specifiedConsumer.
-
dec_button
public NkStyleButton dec_button()
Returns aNkStyleButtonview of thedec_buttonfield.
-
dec_button
public NkStyleProperty.Buffer dec_button(java.util.function.Consumer<NkStyleButton> consumer)
Passes thedec_buttonfield to the specifiedConsumer.
-
userdata
public NkStyleProperty.Buffer userdata(java.util.function.Consumer<NkHandle> consumer)
Passes theuserdatafield to the specifiedConsumer.
-
draw_begin
@Nullable public NkDrawBeginCallback draw_begin()
Returns the value of thedraw_beginfield.
-
draw_end
@Nullable public NkDrawEndCallback draw_end()
Returns the value of thedraw_endfield.
-
normal
public NkStyleProperty.Buffer normal(NkStyleItem value)
Copies the specifiedNkStyleItemto thenormalfield.
-
hover
public NkStyleProperty.Buffer hover(NkStyleItem value)
Copies the specifiedNkStyleItemto thehoverfield.
-
active
public NkStyleProperty.Buffer active(NkStyleItem value)
Copies the specifiedNkStyleItemto theactivefield.
-
border_color
public NkStyleProperty.Buffer border_color(NkColor value)
Copies the specifiedNkColorto theborder_colorfield.
-
label_normal
public NkStyleProperty.Buffer label_normal(NkColor value)
Copies the specifiedNkColorto thelabel_normalfield.
-
label_hover
public NkStyleProperty.Buffer label_hover(NkColor value)
Copies the specifiedNkColorto thelabel_hoverfield.
-
label_active
public NkStyleProperty.Buffer label_active(NkColor value)
Copies the specifiedNkColorto thelabel_activefield.
-
sym_left
public NkStyleProperty.Buffer sym_left(int value)
Sets the specified value to thesym_leftfield.
-
sym_right
public NkStyleProperty.Buffer sym_right(int value)
Sets the specified value to thesym_rightfield.
-
border
public NkStyleProperty.Buffer border(float value)
Sets the specified value to theborderfield.
-
rounding
public NkStyleProperty.Buffer rounding(float value)
Sets the specified value to theroundingfield.
-
padding
public NkStyleProperty.Buffer padding(NkVec2 value)
Copies the specifiedNkVec2to thepaddingfield.
-
edit
public NkStyleProperty.Buffer edit(NkStyleEdit value)
Copies the specifiedNkStyleEditto theeditfield.
-
inc_button
public NkStyleProperty.Buffer inc_button(NkStyleButton value)
Copies the specifiedNkStyleButtonto theinc_buttonfield.
-
dec_button
public NkStyleProperty.Buffer dec_button(NkStyleButton value)
Copies the specifiedNkStyleButtonto thedec_buttonfield.
-
userdata
public NkStyleProperty.Buffer userdata(NkHandle value)
Copies the specifiedNkHandleto theuserdatafield.
-
draw_begin
public NkStyleProperty.Buffer draw_begin(@Nullable NkDrawBeginCallbackI value)
Sets the specified value to thedraw_beginfield.
-
draw_end
public NkStyleProperty.Buffer draw_end(@Nullable NkDrawEndCallbackI value)
Sets the specified value to thedraw_endfield.
-
-