Package org.lwjgl.nuklear
Class NkStyleSelectable.Buffer
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.CustomBuffer<SELF>
-
- org.lwjgl.system.StructBuffer<NkStyleSelectable,NkStyleSelectable.Buffer>
-
- org.lwjgl.nuklear.NkStyleSelectable.Buffer
-
- All Implemented Interfaces:
java.lang.AutoCloseable,java.lang.Iterable<NkStyleSelectable>,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
- Enclosing class:
- NkStyleSelectable
public static class NkStyleSelectable.Buffer extends org.lwjgl.system.StructBuffer<NkStyleSelectable,NkStyleSelectable.Buffer> implements org.lwjgl.system.NativeResource
An array ofNkStyleSelectablestructs.
-
-
Constructor Summary
Constructors Constructor Description Buffer(long address, int cap)Buffer(java.nio.ByteBuffer container)Creates a newNkStyleSelectable.Bufferinstance backed by the specified container.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NkDrawBeginCallbackdraw_begin()Returns the value of thedraw_beginfield.NkStyleSelectable.Bufferdraw_begin(NkDrawBeginCallbackI value)Sets the specified value to thedraw_beginfield.NkDrawEndCallbackdraw_end()Returns the value of thedraw_endfield.NkStyleSelectable.Bufferdraw_end(NkDrawEndCallbackI value)Sets the specified value to thedraw_endfield.NkStyleItemhover()Returns aNkStyleItemview of thehoverfield.NkStyleSelectable.Bufferhover(java.util.function.Consumer<NkStyleItem> consumer)Passes thehoverfield to the specifiedConsumer.NkStyleSelectable.Bufferhover(NkStyleItem value)Copies the specifiedNkStyleItemto thehoverfield.NkStyleItemhover_active()Returns aNkStyleItemview of thehover_activefield.NkStyleSelectable.Bufferhover_active(java.util.function.Consumer<NkStyleItem> consumer)Passes thehover_activefield to the specifiedConsumer.NkStyleSelectable.Bufferhover_active(NkStyleItem value)Copies the specifiedNkStyleItemto thehover_activefield.NkVec2image_padding()Returns aNkVec2view of theimage_paddingfield.NkStyleSelectable.Bufferimage_padding(java.util.function.Consumer<NkVec2> consumer)Passes theimage_paddingfield to the specifiedConsumer.NkStyleSelectable.Bufferimage_padding(NkVec2 value)Copies the specifiedNkVec2to theimage_paddingfield.NkStyleItemnormal()Returns aNkStyleItemview of thenormalfield.NkStyleSelectable.Buffernormal(java.util.function.Consumer<NkStyleItem> consumer)Passes thenormalfield to the specifiedConsumer.NkStyleSelectable.Buffernormal(NkStyleItem value)Copies the specifiedNkStyleItemto thenormalfield.NkStyleItemnormal_active()Returns aNkStyleItemview of thenormal_activefield.NkStyleSelectable.Buffernormal_active(java.util.function.Consumer<NkStyleItem> consumer)Passes thenormal_activefield to the specifiedConsumer.NkStyleSelectable.Buffernormal_active(NkStyleItem value)Copies the specifiedNkStyleItemto thenormal_activefield.NkVec2padding()Returns aNkVec2view of thepaddingfield.NkStyleSelectable.Bufferpadding(java.util.function.Consumer<NkVec2> consumer)Passes thepaddingfield to the specifiedConsumer.NkStyleSelectable.Bufferpadding(NkVec2 value)Copies the specifiedNkVec2to thepaddingfield.NkStyleItempressed()Returns aNkStyleItemview of thepressedfield.NkStyleSelectable.Bufferpressed(java.util.function.Consumer<NkStyleItem> consumer)Passes thepressedfield to the specifiedConsumer.NkStyleSelectable.Bufferpressed(NkStyleItem value)Copies the specifiedNkStyleItemto thepressedfield.NkStyleItempressed_active()Returns aNkStyleItemview of thepressed_activefield.NkStyleSelectable.Bufferpressed_active(java.util.function.Consumer<NkStyleItem> consumer)Passes thepressed_activefield to the specifiedConsumer.NkStyleSelectable.Bufferpressed_active(NkStyleItem value)Copies the specifiedNkStyleItemto thepressed_activefield.floatrounding()Returns the value of theroundingfield.NkStyleSelectable.Bufferrounding(float value)Sets the specified value to theroundingfield.inttext_alignment()Returns the value of thetext_alignmentfield.NkStyleSelectable.Buffertext_alignment(int value)Sets the specified value to thetext_alignmentfield.NkColortext_background()Returns aNkColorview of thetext_backgroundfield.NkStyleSelectable.Buffertext_background(java.util.function.Consumer<NkColor> consumer)Passes thetext_backgroundfield to the specifiedConsumer.NkStyleSelectable.Buffertext_background(NkColor value)Copies the specifiedNkColorto thetext_backgroundfield.NkColortext_hover()Returns aNkColorview of thetext_hoverfield.NkStyleSelectable.Buffertext_hover(java.util.function.Consumer<NkColor> consumer)Passes thetext_hoverfield to the specifiedConsumer.NkStyleSelectable.Buffertext_hover(NkColor value)Copies the specifiedNkColorto thetext_hoverfield.NkColortext_hover_active()Returns aNkColorview of thetext_hover_activefield.NkStyleSelectable.Buffertext_hover_active(java.util.function.Consumer<NkColor> consumer)Passes thetext_hover_activefield to the specifiedConsumer.NkStyleSelectable.Buffertext_hover_active(NkColor value)Copies the specifiedNkColorto thetext_hover_activefield.NkColortext_normal()Returns aNkColorview of thetext_normalfield.NkStyleSelectable.Buffertext_normal(java.util.function.Consumer<NkColor> consumer)Passes thetext_normalfield to the specifiedConsumer.NkStyleSelectable.Buffertext_normal(NkColor value)Copies the specifiedNkColorto thetext_normalfield.NkColortext_normal_active()Returns aNkColorview of thetext_normal_activefield.NkStyleSelectable.Buffertext_normal_active(java.util.function.Consumer<NkColor> consumer)Passes thetext_normal_activefield to the specifiedConsumer.NkStyleSelectable.Buffertext_normal_active(NkColor value)Copies the specifiedNkColorto thetext_normal_activefield.NkColortext_pressed()Returns aNkColorview of thetext_pressedfield.NkStyleSelectable.Buffertext_pressed(java.util.function.Consumer<NkColor> consumer)Passes thetext_pressedfield to the specifiedConsumer.NkStyleSelectable.Buffertext_pressed(NkColor value)Copies the specifiedNkColorto thetext_pressedfield.NkColortext_pressed_active()Returns aNkColorview of thetext_pressed_activefield.NkStyleSelectable.Buffertext_pressed_active(java.util.function.Consumer<NkColor> consumer)Passes thetext_pressed_activefield to the specifiedConsumer.NkStyleSelectable.Buffertext_pressed_active(NkColor value)Copies the specifiedNkColorto thetext_pressed_activefield.NkVec2touch_padding()Returns aNkVec2view of thetouch_paddingfield.NkStyleSelectable.Buffertouch_padding(java.util.function.Consumer<NkVec2> consumer)Passes thetouch_paddingfield to the specifiedConsumer.NkStyleSelectable.Buffertouch_padding(NkVec2 value)Copies the specifiedNkVec2to thetouch_paddingfield.NkHandleuserdata()Returns aNkHandleview of theuserdatafield.NkStyleSelectable.Bufferuserdata(java.util.function.Consumer<NkHandle> consumer)Passes theuserdatafield to the specifiedConsumer.NkStyleSelectable.Bufferuserdata(NkHandle value)Copies the specifiedNkHandleto theuserdatafield.
-
-
-
Constructor Detail
-
Buffer
public Buffer(java.nio.ByteBuffer container)
Creates a newNkStyleSelectable.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 byNkStyleSelectable.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 NkStyleSelectable.Buffer normal(java.util.function.Consumer<NkStyleItem> consumer)
Passes thenormalfield to the specifiedConsumer.
-
hover
public NkStyleItem hover()
Returns aNkStyleItemview of thehoverfield.
-
hover
public NkStyleSelectable.Buffer hover(java.util.function.Consumer<NkStyleItem> consumer)
Passes thehoverfield to the specifiedConsumer.
-
pressed
public NkStyleItem pressed()
Returns aNkStyleItemview of thepressedfield.
-
pressed
public NkStyleSelectable.Buffer pressed(java.util.function.Consumer<NkStyleItem> consumer)
Passes thepressedfield to the specifiedConsumer.
-
normal_active
public NkStyleItem normal_active()
Returns aNkStyleItemview of thenormal_activefield.
-
normal_active
public NkStyleSelectable.Buffer normal_active(java.util.function.Consumer<NkStyleItem> consumer)
Passes thenormal_activefield to the specifiedConsumer.
-
hover_active
public NkStyleItem hover_active()
Returns aNkStyleItemview of thehover_activefield.
-
hover_active
public NkStyleSelectable.Buffer hover_active(java.util.function.Consumer<NkStyleItem> consumer)
Passes thehover_activefield to the specifiedConsumer.
-
pressed_active
public NkStyleItem pressed_active()
Returns aNkStyleItemview of thepressed_activefield.
-
pressed_active
public NkStyleSelectable.Buffer pressed_active(java.util.function.Consumer<NkStyleItem> consumer)
Passes thepressed_activefield to the specifiedConsumer.
-
text_normal
public NkStyleSelectable.Buffer text_normal(java.util.function.Consumer<NkColor> consumer)
Passes thetext_normalfield to the specifiedConsumer.
-
text_hover
public NkStyleSelectable.Buffer text_hover(java.util.function.Consumer<NkColor> consumer)
Passes thetext_hoverfield to the specifiedConsumer.
-
text_pressed
public NkStyleSelectable.Buffer text_pressed(java.util.function.Consumer<NkColor> consumer)
Passes thetext_pressedfield to the specifiedConsumer.
-
text_normal_active
public NkColor text_normal_active()
Returns aNkColorview of thetext_normal_activefield.
-
text_normal_active
public NkStyleSelectable.Buffer text_normal_active(java.util.function.Consumer<NkColor> consumer)
Passes thetext_normal_activefield to the specifiedConsumer.
-
text_hover_active
public NkColor text_hover_active()
Returns aNkColorview of thetext_hover_activefield.
-
text_hover_active
public NkStyleSelectable.Buffer text_hover_active(java.util.function.Consumer<NkColor> consumer)
Passes thetext_hover_activefield to the specifiedConsumer.
-
text_pressed_active
public NkColor text_pressed_active()
Returns aNkColorview of thetext_pressed_activefield.
-
text_pressed_active
public NkStyleSelectable.Buffer text_pressed_active(java.util.function.Consumer<NkColor> consumer)
Passes thetext_pressed_activefield to the specifiedConsumer.
-
text_background
public NkColor text_background()
Returns aNkColorview of thetext_backgroundfield.
-
text_background
public NkStyleSelectable.Buffer text_background(java.util.function.Consumer<NkColor> consumer)
Passes thetext_backgroundfield to the specifiedConsumer.
-
text_alignment
public int text_alignment()
Returns the value of thetext_alignmentfield.
-
rounding
public float rounding()
Returns the value of theroundingfield.
-
padding
public NkStyleSelectable.Buffer padding(java.util.function.Consumer<NkVec2> consumer)
Passes thepaddingfield to the specifiedConsumer.
-
touch_padding
public NkStyleSelectable.Buffer touch_padding(java.util.function.Consumer<NkVec2> consumer)
Passes thetouch_paddingfield to the specifiedConsumer.
-
image_padding
public NkStyleSelectable.Buffer image_padding(java.util.function.Consumer<NkVec2> consumer)
Passes theimage_paddingfield to the specifiedConsumer.
-
userdata
public NkStyleSelectable.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 NkStyleSelectable.Buffer normal(NkStyleItem value)
Copies the specifiedNkStyleItemto thenormalfield.
-
hover
public NkStyleSelectable.Buffer hover(NkStyleItem value)
Copies the specifiedNkStyleItemto thehoverfield.
-
pressed
public NkStyleSelectable.Buffer pressed(NkStyleItem value)
Copies the specifiedNkStyleItemto thepressedfield.
-
normal_active
public NkStyleSelectable.Buffer normal_active(NkStyleItem value)
Copies the specifiedNkStyleItemto thenormal_activefield.
-
hover_active
public NkStyleSelectable.Buffer hover_active(NkStyleItem value)
Copies the specifiedNkStyleItemto thehover_activefield.
-
pressed_active
public NkStyleSelectable.Buffer pressed_active(NkStyleItem value)
Copies the specifiedNkStyleItemto thepressed_activefield.
-
text_normal
public NkStyleSelectable.Buffer text_normal(NkColor value)
Copies the specifiedNkColorto thetext_normalfield.
-
text_hover
public NkStyleSelectable.Buffer text_hover(NkColor value)
Copies the specifiedNkColorto thetext_hoverfield.
-
text_pressed
public NkStyleSelectable.Buffer text_pressed(NkColor value)
Copies the specifiedNkColorto thetext_pressedfield.
-
text_normal_active
public NkStyleSelectable.Buffer text_normal_active(NkColor value)
Copies the specifiedNkColorto thetext_normal_activefield.
-
text_hover_active
public NkStyleSelectable.Buffer text_hover_active(NkColor value)
Copies the specifiedNkColorto thetext_hover_activefield.
-
text_pressed_active
public NkStyleSelectable.Buffer text_pressed_active(NkColor value)
Copies the specifiedNkColorto thetext_pressed_activefield.
-
text_background
public NkStyleSelectable.Buffer text_background(NkColor value)
Copies the specifiedNkColorto thetext_backgroundfield.
-
text_alignment
public NkStyleSelectable.Buffer text_alignment(int value)
Sets the specified value to thetext_alignmentfield.
-
rounding
public NkStyleSelectable.Buffer rounding(float value)
Sets the specified value to theroundingfield.
-
padding
public NkStyleSelectable.Buffer padding(NkVec2 value)
Copies the specifiedNkVec2to thepaddingfield.
-
touch_padding
public NkStyleSelectable.Buffer touch_padding(NkVec2 value)
Copies the specifiedNkVec2to thetouch_paddingfield.
-
image_padding
public NkStyleSelectable.Buffer image_padding(NkVec2 value)
Copies the specifiedNkVec2to theimage_paddingfield.
-
userdata
public NkStyleSelectable.Buffer userdata(NkHandle value)
Copies the specifiedNkHandleto theuserdatafield.
-
draw_begin
public NkStyleSelectable.Buffer draw_begin(@Nullable NkDrawBeginCallbackI value)
Sets the specified value to thedraw_beginfield.
-
draw_end
public NkStyleSelectable.Buffer draw_end(@Nullable NkDrawEndCallbackI value)
Sets the specified value to thedraw_endfield.
-
-