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.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NkStyleItemactive()NkStyleProperty.Bufferactive(java.util.function.Consumer<NkStyleItem> consumer)Passes theactivefield to the specifiedConsumer.NkStyleProperty.Bufferactive(NkStyleItem value)Copies the specifiedNkStyleItemto theactivefield.floatborder()NkStyleProperty.Bufferborder(float value)Sets the specified value to theborderfield.NkColorborder_color()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()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()NkStyleProperty.Bufferdraw_begin(NkDrawBeginCallbackI value)Sets the specified value to thedraw_beginfield.NkDrawEndCallbackdraw_end()NkStyleProperty.Bufferdraw_end(NkDrawEndCallbackI value)Sets the specified value to thedraw_endfield.NkStyleEditedit()NkStyleProperty.Bufferedit(java.util.function.Consumer<NkStyleEdit> consumer)Passes theeditfield to the specifiedConsumer.NkStyleProperty.Bufferedit(NkStyleEdit value)Copies the specifiedNkStyleEditto theeditfield.NkStyleItemhover()NkStyleProperty.Bufferhover(java.util.function.Consumer<NkStyleItem> consumer)Passes thehoverfield to the specifiedConsumer.NkStyleProperty.Bufferhover(NkStyleItem value)Copies the specifiedNkStyleItemto thehoverfield.NkStyleButtoninc_button()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()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()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()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()NkStyleProperty.Buffernormal(java.util.function.Consumer<NkStyleItem> consumer)Passes thenormalfield to the specifiedConsumer.NkStyleProperty.Buffernormal(NkStyleItem value)Copies the specifiedNkStyleItemto thenormalfield.NkVec2padding()NkStyleProperty.Bufferpadding(java.util.function.Consumer<NkVec2> consumer)Passes thepaddingfield to the specifiedConsumer.NkStyleProperty.Bufferpadding(NkVec2 value)Copies the specifiedNkVec2to thepaddingfield.floatrounding()NkStyleProperty.Bufferrounding(float value)Sets the specified value to theroundingfield.intsym_left()NkStyleProperty.Buffersym_left(int value)Sets the specified value to theNkStyleProperty.sym_left()field.intsym_right()NkStyleProperty.Buffersym_right(int value)Sets the specified value to theNkStyleProperty.sym_right()field.NkHandleuserdata()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:
- a
NkStyleItemview of thenormalfield.
-
hover
public NkStyleItem hover()
- Returns:
- a
NkStyleItemview of thehoverfield.
-
active
public NkStyleItem active()
- Returns:
- a
NkStyleItemview of theactivefield.
-
sym_left
public int sym_left()
- Returns:
- the value of the
NkStyleProperty.sym_left()field.
-
sym_right
public int sym_right()
- Returns:
- the value of the
NkStyleProperty.sym_right()field.
-
border
public float border()
- Returns:
- the value of the
borderfield.
-
rounding
public float rounding()
- Returns:
- the value of the
roundingfield.
-
edit
public NkStyleEdit edit()
- Returns:
- a
NkStyleEditview of theeditfield.
-
inc_button
public NkStyleButton inc_button()
- Returns:
- a
NkStyleButtonview of theinc_buttonfield.
-
dec_button
public NkStyleButton dec_button()
- Returns:
- a
NkStyleButtonview of thedec_buttonfield.
-
draw_begin
@Nullable public NkDrawBeginCallback draw_begin()
- Returns:
- the value of the
draw_beginfield.
-
draw_end
@Nullable public NkDrawEndCallback draw_end()
- Returns:
- the value of the
draw_endfield.
-
normal
public NkStyleProperty.Buffer normal(NkStyleItem value)
Copies the specifiedNkStyleItemto thenormalfield.
-
normal
public NkStyleProperty.Buffer normal(java.util.function.Consumer<NkStyleItem> consumer)
Passes thenormalfield to the specifiedConsumer.
-
hover
public NkStyleProperty.Buffer hover(NkStyleItem value)
Copies the specifiedNkStyleItemto thehoverfield.
-
hover
public NkStyleProperty.Buffer hover(java.util.function.Consumer<NkStyleItem> consumer)
Passes thehoverfield to the specifiedConsumer.
-
active
public NkStyleProperty.Buffer active(NkStyleItem value)
Copies the specifiedNkStyleItemto theactivefield.
-
active
public NkStyleProperty.Buffer active(java.util.function.Consumer<NkStyleItem> consumer)
Passes theactivefield to the specifiedConsumer.
-
border_color
public NkStyleProperty.Buffer border_color(NkColor value)
Copies the specifiedNkColorto theborder_colorfield.
-
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(NkColor value)
Copies the specifiedNkColorto thelabel_normalfield.
-
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(NkColor value)
Copies the specifiedNkColorto thelabel_hoverfield.
-
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(NkColor value)
Copies the specifiedNkColorto thelabel_activefield.
-
label_active
public NkStyleProperty.Buffer label_active(java.util.function.Consumer<NkColor> consumer)
Passes thelabel_activefield to the specifiedConsumer.
-
sym_left
public NkStyleProperty.Buffer sym_left(int value)
Sets the specified value to theNkStyleProperty.sym_left()field.
-
sym_right
public NkStyleProperty.Buffer sym_right(int value)
Sets the specified value to theNkStyleProperty.sym_right()field.
-
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.
-
padding
public NkStyleProperty.Buffer padding(java.util.function.Consumer<NkVec2> consumer)
Passes thepaddingfield to the specifiedConsumer.
-
edit
public NkStyleProperty.Buffer edit(NkStyleEdit value)
Copies the specifiedNkStyleEditto theeditfield.
-
edit
public NkStyleProperty.Buffer edit(java.util.function.Consumer<NkStyleEdit> consumer)
Passes theeditfield to the specifiedConsumer.
-
inc_button
public NkStyleProperty.Buffer inc_button(NkStyleButton value)
Copies the specifiedNkStyleButtonto theinc_buttonfield.
-
inc_button
public NkStyleProperty.Buffer inc_button(java.util.function.Consumer<NkStyleButton> consumer)
Passes theinc_buttonfield to the specifiedConsumer.
-
dec_button
public NkStyleProperty.Buffer dec_button(NkStyleButton value)
Copies the specifiedNkStyleButtonto 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(NkHandle value)
Copies the specifiedNkHandleto theuserdatafield.
-
userdata
public NkStyleProperty.Buffer userdata(java.util.function.Consumer<NkHandle> consumer)
Passes theuserdatafield to the specifiedConsumer.
-
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.
-
-