Package org.lwjgl.nuklear
Class NkStyleToggle.Buffer
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.CustomBuffer<SELF>
-
- org.lwjgl.system.StructBuffer<NkStyleToggle,NkStyleToggle.Buffer>
-
- org.lwjgl.nuklear.NkStyleToggle.Buffer
-
- All Implemented Interfaces:
java.lang.AutoCloseable,java.lang.Iterable<NkStyleToggle>,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
- Enclosing class:
- NkStyleToggle
public static class NkStyleToggle.Buffer extends org.lwjgl.system.StructBuffer<NkStyleToggle,NkStyleToggle.Buffer> implements org.lwjgl.system.NativeResource
An array ofNkStyleTogglestructs.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NkStyleItemactive()NkStyleToggle.Bufferactive(java.util.function.Consumer<NkStyleItem> consumer)Passes theactivefield to the specifiedConsumer.NkStyleToggle.Bufferactive(NkStyleItem value)Copies the specifiedNkStyleItemto theactivefield.floatborder()NkStyleToggle.Bufferborder(float value)Sets the specified value to theborderfield.NkColorborder_color()NkStyleToggle.Bufferborder_color(java.util.function.Consumer<NkColor> consumer)Passes theborder_colorfield to the specifiedConsumer.NkStyleToggle.Bufferborder_color(NkColor value)Copies the specifiedNkColorto theborder_colorfield.NkStyleItemcursor_hover()NkStyleToggle.Buffercursor_hover(java.util.function.Consumer<NkStyleItem> consumer)Passes thecursor_hoverfield to the specifiedConsumer.NkStyleToggle.Buffercursor_hover(NkStyleItem value)Copies the specifiedNkStyleItemto thecursor_hoverfield.NkStyleItemcursor_normal()NkStyleToggle.Buffercursor_normal(java.util.function.Consumer<NkStyleItem> consumer)Passes thecursor_normalfield to the specifiedConsumer.NkStyleToggle.Buffercursor_normal(NkStyleItem value)Copies the specifiedNkStyleItemto thecursor_normalfield.NkDrawBeginCallbackdraw_begin()NkStyleToggle.Bufferdraw_begin(NkDrawBeginCallbackI value)Sets the specified value to thedraw_beginfield.NkDrawEndCallbackdraw_end()NkStyleToggle.Bufferdraw_end(NkDrawEndCallbackI value)Sets the specified value to thedraw_endfield.NkStyleItemhover()NkStyleToggle.Bufferhover(java.util.function.Consumer<NkStyleItem> consumer)Passes thehoverfield to the specifiedConsumer.NkStyleToggle.Bufferhover(NkStyleItem value)Copies the specifiedNkStyleItemto thehoverfield.NkStyleItemnormal()NkStyleToggle.Buffernormal(java.util.function.Consumer<NkStyleItem> consumer)Passes thenormalfield to the specifiedConsumer.NkStyleToggle.Buffernormal(NkStyleItem value)Copies the specifiedNkStyleItemto thenormalfield.NkVec2padding()NkStyleToggle.Bufferpadding(java.util.function.Consumer<NkVec2> consumer)Passes thepaddingfield to the specifiedConsumer.NkStyleToggle.Bufferpadding(NkVec2 value)Copies the specifiedNkVec2to thepaddingfield.floatspacing()NkStyleToggle.Bufferspacing(float value)Sets the specified value to thespacingfield.NkColortext_active()NkStyleToggle.Buffertext_active(java.util.function.Consumer<NkColor> consumer)Passes thetext_activefield to the specifiedConsumer.NkStyleToggle.Buffertext_active(NkColor value)Copies the specifiedNkColorto thetext_activefield.inttext_alignment()NkStyleToggle.Buffertext_alignment(int value)Sets the specified value to thetext_alignmentfield.NkColortext_background()NkStyleToggle.Buffertext_background(java.util.function.Consumer<NkColor> consumer)Passes thetext_backgroundfield to the specifiedConsumer.NkStyleToggle.Buffertext_background(NkColor value)Copies the specifiedNkColorto thetext_backgroundfield.NkColortext_hover()NkStyleToggle.Buffertext_hover(java.util.function.Consumer<NkColor> consumer)Passes thetext_hoverfield to the specifiedConsumer.NkStyleToggle.Buffertext_hover(NkColor value)Copies the specifiedNkColorto thetext_hoverfield.NkColortext_normal()NkStyleToggle.Buffertext_normal(java.util.function.Consumer<NkColor> consumer)Passes thetext_normalfield to the specifiedConsumer.NkStyleToggle.Buffertext_normal(NkColor value)Copies the specifiedNkColorto thetext_normalfield.NkVec2touch_padding()NkStyleToggle.Buffertouch_padding(java.util.function.Consumer<NkVec2> consumer)Passes thetouch_paddingfield to the specifiedConsumer.NkStyleToggle.Buffertouch_padding(NkVec2 value)Copies the specifiedNkVec2to thetouch_paddingfield.NkHandleuserdata()NkStyleToggle.Bufferuserdata(java.util.function.Consumer<NkHandle> consumer)Passes theuserdatafield to the specifiedConsumer.NkStyleToggle.Bufferuserdata(NkHandle value)Copies the specifiedNkHandleto theuserdatafield.
-
-
-
Constructor Detail
-
Buffer
public Buffer(java.nio.ByteBuffer container)
Creates a newNkStyleToggle.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 byNkStyleToggle.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.
-
cursor_normal
public NkStyleItem cursor_normal()
- Returns:
- a
NkStyleItemview of thecursor_normalfield.
-
cursor_hover
public NkStyleItem cursor_hover()
- Returns:
- a
NkStyleItemview of thecursor_hoverfield.
-
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.
-
spacing
public float spacing()
- Returns:
- the value of the
spacingfield.
-
border
public float border()
- Returns:
- the value of the
borderfield.
-
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 NkStyleToggle.Buffer normal(NkStyleItem value)
Copies the specifiedNkStyleItemto thenormalfield.
-
normal
public NkStyleToggle.Buffer normal(java.util.function.Consumer<NkStyleItem> consumer)
Passes thenormalfield to the specifiedConsumer.
-
hover
public NkStyleToggle.Buffer hover(NkStyleItem value)
Copies the specifiedNkStyleItemto thehoverfield.
-
hover
public NkStyleToggle.Buffer hover(java.util.function.Consumer<NkStyleItem> consumer)
Passes thehoverfield to the specifiedConsumer.
-
active
public NkStyleToggle.Buffer active(NkStyleItem value)
Copies the specifiedNkStyleItemto theactivefield.
-
active
public NkStyleToggle.Buffer active(java.util.function.Consumer<NkStyleItem> consumer)
Passes theactivefield to the specifiedConsumer.
-
border_color
public NkStyleToggle.Buffer border_color(NkColor value)
Copies the specifiedNkColorto theborder_colorfield.
-
border_color
public NkStyleToggle.Buffer border_color(java.util.function.Consumer<NkColor> consumer)
Passes theborder_colorfield to the specifiedConsumer.
-
cursor_normal
public NkStyleToggle.Buffer cursor_normal(NkStyleItem value)
Copies the specifiedNkStyleItemto thecursor_normalfield.
-
cursor_normal
public NkStyleToggle.Buffer cursor_normal(java.util.function.Consumer<NkStyleItem> consumer)
Passes thecursor_normalfield to the specifiedConsumer.
-
cursor_hover
public NkStyleToggle.Buffer cursor_hover(NkStyleItem value)
Copies the specifiedNkStyleItemto thecursor_hoverfield.
-
cursor_hover
public NkStyleToggle.Buffer cursor_hover(java.util.function.Consumer<NkStyleItem> consumer)
Passes thecursor_hoverfield to the specifiedConsumer.
-
text_normal
public NkStyleToggle.Buffer text_normal(NkColor value)
Copies the specifiedNkColorto thetext_normalfield.
-
text_normal
public NkStyleToggle.Buffer text_normal(java.util.function.Consumer<NkColor> consumer)
Passes thetext_normalfield to the specifiedConsumer.
-
text_hover
public NkStyleToggle.Buffer text_hover(NkColor value)
Copies the specifiedNkColorto thetext_hoverfield.
-
text_hover
public NkStyleToggle.Buffer text_hover(java.util.function.Consumer<NkColor> consumer)
Passes thetext_hoverfield to the specifiedConsumer.
-
text_active
public NkStyleToggle.Buffer text_active(NkColor value)
Copies the specifiedNkColorto thetext_activefield.
-
text_active
public NkStyleToggle.Buffer text_active(java.util.function.Consumer<NkColor> consumer)
Passes thetext_activefield to the specifiedConsumer.
-
text_background
public NkStyleToggle.Buffer text_background(NkColor value)
Copies the specifiedNkColorto thetext_backgroundfield.
-
text_background
public NkStyleToggle.Buffer text_background(java.util.function.Consumer<NkColor> consumer)
Passes thetext_backgroundfield to the specifiedConsumer.
-
text_alignment
public NkStyleToggle.Buffer text_alignment(int value)
Sets the specified value to thetext_alignmentfield.
-
padding
public NkStyleToggle.Buffer padding(NkVec2 value)
Copies the specifiedNkVec2to thepaddingfield.
-
padding
public NkStyleToggle.Buffer padding(java.util.function.Consumer<NkVec2> consumer)
Passes thepaddingfield to the specifiedConsumer.
-
touch_padding
public NkStyleToggle.Buffer touch_padding(NkVec2 value)
Copies the specifiedNkVec2to thetouch_paddingfield.
-
touch_padding
public NkStyleToggle.Buffer touch_padding(java.util.function.Consumer<NkVec2> consumer)
Passes thetouch_paddingfield to the specifiedConsumer.
-
spacing
public NkStyleToggle.Buffer spacing(float value)
Sets the specified value to thespacingfield.
-
border
public NkStyleToggle.Buffer border(float value)
Sets the specified value to theborderfield.
-
userdata
public NkStyleToggle.Buffer userdata(NkHandle value)
Copies the specifiedNkHandleto theuserdatafield.
-
userdata
public NkStyleToggle.Buffer userdata(java.util.function.Consumer<NkHandle> consumer)
Passes theuserdatafield to the specifiedConsumer.
-
draw_begin
public NkStyleToggle.Buffer draw_begin(@Nullable NkDrawBeginCallbackI value)
Sets the specified value to thedraw_beginfield.
-
draw_end
public NkStyleToggle.Buffer draw_end(@Nullable NkDrawEndCallbackI value)
Sets the specified value to thedraw_endfield.
-
-