Package org.lwjgl.nuklear
Class NkStyleButton.Buffer
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.CustomBuffer<SELF>
-
- org.lwjgl.system.StructBuffer<NkStyleButton,NkStyleButton.Buffer>
-
- org.lwjgl.nuklear.NkStyleButton.Buffer
-
- All Implemented Interfaces:
java.lang.AutoCloseable,java.lang.Iterable<NkStyleButton>,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
- Enclosing class:
- NkStyleButton
public static class NkStyleButton.Buffer extends org.lwjgl.system.StructBuffer<NkStyleButton,NkStyleButton.Buffer> implements org.lwjgl.system.NativeResource
An array ofNkStyleButtonstructs.
-
-
Constructor Summary
Constructors Constructor Description Buffer(long address, int cap)Buffer(java.nio.ByteBuffer container)Creates a newNkStyleButton.Bufferinstance backed by the specified container.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NkStyleItemactive()Returns aNkStyleItemview of theactivefield.NkStyleButton.Bufferactive(java.util.function.Consumer<NkStyleItem> consumer)Passes theactivefield to the specifiedConsumer.NkStyleButton.Bufferactive(NkStyleItem value)Copies the specifiedNkStyleItemto theactivefield.floatborder()Returns the value of theborderfield.NkStyleButton.Bufferborder(float value)Sets the specified value to theborderfield.NkColorborder_color()Returns aNkColorview of theborder_colorfield.NkStyleButton.Bufferborder_color(java.util.function.Consumer<NkColor> consumer)Passes theborder_colorfield to the specifiedConsumer.NkStyleButton.Bufferborder_color(NkColor value)Copies the specifiedNkColorto theborder_colorfield.NkDrawBeginCallbackdraw_begin()Returns the value of thedraw_beginfield.NkStyleButton.Bufferdraw_begin(NkDrawBeginCallbackI value)Sets the specified value to thedraw_beginfield.NkDrawEndCallbackdraw_end()Returns the value of thedraw_endfield.NkStyleButton.Bufferdraw_end(NkDrawEndCallbackI value)Sets the specified value to thedraw_endfield.NkStyleItemhover()Returns aNkStyleItemview of thehoverfield.NkStyleButton.Bufferhover(java.util.function.Consumer<NkStyleItem> consumer)Passes thehoverfield to the specifiedConsumer.NkStyleButton.Bufferhover(NkStyleItem value)Copies the specifiedNkStyleItemto thehoverfield.NkVec2image_padding()Returns aNkVec2view of theimage_paddingfield.NkStyleButton.Bufferimage_padding(java.util.function.Consumer<NkVec2> consumer)Passes theimage_paddingfield to the specifiedConsumer.NkStyleButton.Bufferimage_padding(NkVec2 value)Copies the specifiedNkVec2to theimage_paddingfield.NkStyleItemnormal()Returns aNkStyleItemview of thenormalfield.NkStyleButton.Buffernormal(java.util.function.Consumer<NkStyleItem> consumer)Passes thenormalfield to the specifiedConsumer.NkStyleButton.Buffernormal(NkStyleItem value)Copies the specifiedNkStyleItemto thenormalfield.NkVec2padding()Returns aNkVec2view of thepaddingfield.NkStyleButton.Bufferpadding(java.util.function.Consumer<NkVec2> consumer)Passes thepaddingfield to the specifiedConsumer.NkStyleButton.Bufferpadding(NkVec2 value)Copies the specifiedNkVec2to thepaddingfield.floatrounding()Returns the value of theroundingfield.NkStyleButton.Bufferrounding(float value)Sets the specified value to theroundingfield.NkColortext_active()Returns aNkColorview of thetext_activefield.NkStyleButton.Buffertext_active(java.util.function.Consumer<NkColor> consumer)Passes thetext_activefield to the specifiedConsumer.NkStyleButton.Buffertext_active(NkColor value)Copies the specifiedNkColorto thetext_activefield.inttext_alignment()Returns the value of thetext_alignmentfield.NkStyleButton.Buffertext_alignment(int value)Sets the specified value to thetext_alignmentfield.NkColortext_background()Returns aNkColorview of thetext_backgroundfield.NkStyleButton.Buffertext_background(java.util.function.Consumer<NkColor> consumer)Passes thetext_backgroundfield to the specifiedConsumer.NkStyleButton.Buffertext_background(NkColor value)Copies the specifiedNkColorto thetext_backgroundfield.NkColortext_hover()Returns aNkColorview of thetext_hoverfield.NkStyleButton.Buffertext_hover(java.util.function.Consumer<NkColor> consumer)Passes thetext_hoverfield to the specifiedConsumer.NkStyleButton.Buffertext_hover(NkColor value)Copies the specifiedNkColorto thetext_hoverfield.NkColortext_normal()Returns aNkColorview of thetext_normalfield.NkStyleButton.Buffertext_normal(java.util.function.Consumer<NkColor> consumer)Passes thetext_normalfield to the specifiedConsumer.NkStyleButton.Buffertext_normal(NkColor value)Copies the specifiedNkColorto thetext_normalfield.NkVec2touch_padding()Returns aNkVec2view of thetouch_paddingfield.NkStyleButton.Buffertouch_padding(java.util.function.Consumer<NkVec2> consumer)Passes thetouch_paddingfield to the specifiedConsumer.NkStyleButton.Buffertouch_padding(NkVec2 value)Copies the specifiedNkVec2to thetouch_paddingfield.NkHandleuserdata()Returns aNkHandleview of theuserdatafield.NkStyleButton.Bufferuserdata(java.util.function.Consumer<NkHandle> consumer)Passes theuserdatafield to the specifiedConsumer.NkStyleButton.Bufferuserdata(NkHandle value)Copies the specifiedNkHandleto theuserdatafield.
-
-
-
Constructor Detail
-
Buffer
public Buffer(java.nio.ByteBuffer container)
Creates a newNkStyleButton.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 byNkStyleButton.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 NkStyleButton.Buffer normal(java.util.function.Consumer<NkStyleItem> consumer)
Passes thenormalfield to the specifiedConsumer.
-
hover
public NkStyleItem hover()
Returns aNkStyleItemview of thehoverfield.
-
hover
public NkStyleButton.Buffer hover(java.util.function.Consumer<NkStyleItem> consumer)
Passes thehoverfield to the specifiedConsumer.
-
active
public NkStyleItem active()
Returns aNkStyleItemview of theactivefield.
-
active
public NkStyleButton.Buffer active(java.util.function.Consumer<NkStyleItem> consumer)
Passes theactivefield to the specifiedConsumer.
-
border_color
public NkStyleButton.Buffer border_color(java.util.function.Consumer<NkColor> consumer)
Passes theborder_colorfield to the specifiedConsumer.
-
text_background
public NkColor text_background()
Returns aNkColorview of thetext_backgroundfield.
-
text_background
public NkStyleButton.Buffer text_background(java.util.function.Consumer<NkColor> consumer)
Passes thetext_backgroundfield to the specifiedConsumer.
-
text_normal
public NkStyleButton.Buffer text_normal(java.util.function.Consumer<NkColor> consumer)
Passes thetext_normalfield to the specifiedConsumer.
-
text_hover
public NkStyleButton.Buffer text_hover(java.util.function.Consumer<NkColor> consumer)
Passes thetext_hoverfield to the specifiedConsumer.
-
text_active
public NkStyleButton.Buffer text_active(java.util.function.Consumer<NkColor> consumer)
Passes thetext_activefield to the specifiedConsumer.
-
text_alignment
public int text_alignment()
Returns the value of thetext_alignmentfield.
-
border
public float border()
Returns the value of theborderfield.
-
rounding
public float rounding()
Returns the value of theroundingfield.
-
padding
public NkStyleButton.Buffer padding(java.util.function.Consumer<NkVec2> consumer)
Passes thepaddingfield to the specifiedConsumer.
-
image_padding
public NkStyleButton.Buffer image_padding(java.util.function.Consumer<NkVec2> consumer)
Passes theimage_paddingfield to the specifiedConsumer.
-
touch_padding
public NkStyleButton.Buffer touch_padding(java.util.function.Consumer<NkVec2> consumer)
Passes thetouch_paddingfield to the specifiedConsumer.
-
userdata
public NkStyleButton.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 NkStyleButton.Buffer normal(NkStyleItem value)
Copies the specifiedNkStyleItemto thenormalfield.
-
hover
public NkStyleButton.Buffer hover(NkStyleItem value)
Copies the specifiedNkStyleItemto thehoverfield.
-
active
public NkStyleButton.Buffer active(NkStyleItem value)
Copies the specifiedNkStyleItemto theactivefield.
-
border_color
public NkStyleButton.Buffer border_color(NkColor value)
Copies the specifiedNkColorto theborder_colorfield.
-
text_background
public NkStyleButton.Buffer text_background(NkColor value)
Copies the specifiedNkColorto thetext_backgroundfield.
-
text_normal
public NkStyleButton.Buffer text_normal(NkColor value)
Copies the specifiedNkColorto thetext_normalfield.
-
text_hover
public NkStyleButton.Buffer text_hover(NkColor value)
Copies the specifiedNkColorto thetext_hoverfield.
-
text_active
public NkStyleButton.Buffer text_active(NkColor value)
Copies the specifiedNkColorto thetext_activefield.
-
text_alignment
public NkStyleButton.Buffer text_alignment(int value)
Sets the specified value to thetext_alignmentfield.
-
border
public NkStyleButton.Buffer border(float value)
Sets the specified value to theborderfield.
-
rounding
public NkStyleButton.Buffer rounding(float value)
Sets the specified value to theroundingfield.
-
padding
public NkStyleButton.Buffer padding(NkVec2 value)
Copies the specifiedNkVec2to thepaddingfield.
-
image_padding
public NkStyleButton.Buffer image_padding(NkVec2 value)
Copies the specifiedNkVec2to theimage_paddingfield.
-
touch_padding
public NkStyleButton.Buffer touch_padding(NkVec2 value)
Copies the specifiedNkVec2to thetouch_paddingfield.
-
userdata
public NkStyleButton.Buffer userdata(NkHandle value)
Copies the specifiedNkHandleto theuserdatafield.
-
draw_begin
public NkStyleButton.Buffer draw_begin(@Nullable NkDrawBeginCallbackI value)
Sets the specified value to thedraw_beginfield.
-
draw_end
public NkStyleButton.Buffer draw_end(@Nullable NkDrawEndCallbackI value)
Sets the specified value to thedraw_endfield.
-
-