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.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NkDrawBeginCallbackdraw_begin()NkStyleSelectable.Bufferdraw_begin(NkDrawBeginCallbackI value)Sets the specified value to thedraw_beginfield.NkDrawEndCallbackdraw_end()NkStyleSelectable.Bufferdraw_end(NkDrawEndCallbackI value)Sets the specified value to thedraw_endfield.NkStyleItemhover()NkStyleSelectable.Bufferhover(java.util.function.Consumer<NkStyleItem> consumer)Passes thehoverfield to the specifiedConsumer.NkStyleSelectable.Bufferhover(NkStyleItem value)Copies the specifiedNkStyleItemto thehoverfield.NkStyleItemhover_active()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()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()NkStyleSelectable.Buffernormal(java.util.function.Consumer<NkStyleItem> consumer)Passes thenormalfield to the specifiedConsumer.NkStyleSelectable.Buffernormal(NkStyleItem value)Copies the specifiedNkStyleItemto thenormalfield.NkStyleItemnormal_active()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()NkStyleSelectable.Bufferpadding(java.util.function.Consumer<NkVec2> consumer)Passes thepaddingfield to the specifiedConsumer.NkStyleSelectable.Bufferpadding(NkVec2 value)Copies the specifiedNkVec2to thepaddingfield.NkStyleItempressed()NkStyleSelectable.Bufferpressed(java.util.function.Consumer<NkStyleItem> consumer)Passes thepressedfield to the specifiedConsumer.NkStyleSelectable.Bufferpressed(NkStyleItem value)Copies the specifiedNkStyleItemto thepressedfield.NkStyleItempressed_active()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()NkStyleSelectable.Bufferrounding(float value)Sets the specified value to theroundingfield.inttext_alignment()NkStyleSelectable.Buffertext_alignment(int value)Sets the specified value to thetext_alignmentfield.NkColortext_background()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()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()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()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()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()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()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()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()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:
- a
NkStyleItemview of thenormalfield.
-
hover
public NkStyleItem hover()
- Returns:
- a
NkStyleItemview of thehoverfield.
-
pressed
public NkStyleItem pressed()
- Returns:
- a
NkStyleItemview of thepressedfield.
-
normal_active
public NkStyleItem normal_active()
- Returns:
- a
NkStyleItemview of thenormal_activefield.
-
hover_active
public NkStyleItem hover_active()
- Returns:
- a
NkStyleItemview of thehover_activefield.
-
pressed_active
public NkStyleItem pressed_active()
- Returns:
- a
NkStyleItemview of thepressed_activefield.
-
text_normal_active
public NkColor text_normal_active()
- Returns:
- a
NkColorview of thetext_normal_activefield.
-
text_hover_active
public NkColor text_hover_active()
- Returns:
- a
NkColorview of thetext_hover_activefield.
-
text_pressed_active
public NkColor text_pressed_active()
- Returns:
- a
NkColorview of thetext_pressed_activefield.
-
text_background
public NkColor text_background()
- Returns:
- a
NkColorview of thetext_backgroundfield.
-
text_alignment
public int text_alignment()
- Returns:
- the value of the
text_alignmentfield.
-
rounding
public float rounding()
- Returns:
- the value of the
roundingfield.
-
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 NkStyleSelectable.Buffer normal(NkStyleItem value)
Copies the specifiedNkStyleItemto thenormalfield.
-
normal
public NkStyleSelectable.Buffer normal(java.util.function.Consumer<NkStyleItem> consumer)
Passes thenormalfield to the specifiedConsumer.
-
hover
public NkStyleSelectable.Buffer hover(NkStyleItem value)
Copies the specifiedNkStyleItemto thehoverfield.
-
hover
public NkStyleSelectable.Buffer hover(java.util.function.Consumer<NkStyleItem> consumer)
Passes thehoverfield to the specifiedConsumer.
-
pressed
public NkStyleSelectable.Buffer pressed(NkStyleItem value)
Copies the specifiedNkStyleItemto thepressedfield.
-
pressed
public NkStyleSelectable.Buffer pressed(java.util.function.Consumer<NkStyleItem> consumer)
Passes thepressedfield to the specifiedConsumer.
-
normal_active
public NkStyleSelectable.Buffer normal_active(NkStyleItem value)
Copies the specifiedNkStyleItemto thenormal_activefield.
-
normal_active
public NkStyleSelectable.Buffer normal_active(java.util.function.Consumer<NkStyleItem> consumer)
Passes thenormal_activefield to the specifiedConsumer.
-
hover_active
public NkStyleSelectable.Buffer hover_active(NkStyleItem value)
Copies the specifiedNkStyleItemto thehover_activefield.
-
hover_active
public NkStyleSelectable.Buffer hover_active(java.util.function.Consumer<NkStyleItem> consumer)
Passes thehover_activefield to the specifiedConsumer.
-
pressed_active
public NkStyleSelectable.Buffer pressed_active(NkStyleItem value)
Copies the specifiedNkStyleItemto 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(NkColor value)
Copies the specifiedNkColorto thetext_normalfield.
-
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(NkColor value)
Copies the specifiedNkColorto thetext_hoverfield.
-
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(NkColor value)
Copies the specifiedNkColorto thetext_pressedfield.
-
text_pressed
public NkStyleSelectable.Buffer text_pressed(java.util.function.Consumer<NkColor> consumer)
Passes thetext_pressedfield to the specifiedConsumer.
-
text_normal_active
public NkStyleSelectable.Buffer text_normal_active(NkColor value)
Copies the specifiedNkColorto 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 NkStyleSelectable.Buffer text_hover_active(NkColor value)
Copies the specifiedNkColorto 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 NkStyleSelectable.Buffer text_pressed_active(NkColor value)
Copies the specifiedNkColorto 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 NkStyleSelectable.Buffer text_background(NkColor value)
Copies the specifiedNkColorto thetext_backgroundfield.
-
text_background
public NkStyleSelectable.Buffer text_background(java.util.function.Consumer<NkColor> consumer)
Passes thetext_backgroundfield to the specifiedConsumer.
-
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.
-
padding
public NkStyleSelectable.Buffer padding(java.util.function.Consumer<NkVec2> consumer)
Passes thepaddingfield to the specifiedConsumer.
-
touch_padding
public NkStyleSelectable.Buffer touch_padding(NkVec2 value)
Copies the specifiedNkVec2to thetouch_paddingfield.
-
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(NkVec2 value)
Copies the specifiedNkVec2to theimage_paddingfield.
-
image_padding
public NkStyleSelectable.Buffer image_padding(java.util.function.Consumer<NkVec2> consumer)
Passes theimage_paddingfield to the specifiedConsumer.
-
userdata
public NkStyleSelectable.Buffer userdata(NkHandle value)
Copies the specifiedNkHandleto theuserdatafield.
-
userdata
public NkStyleSelectable.Buffer userdata(java.util.function.Consumer<NkHandle> consumer)
Passes theuserdatafield to the specifiedConsumer.
-
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.
-
-