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.
-
-
Constructor Summary
Constructors Constructor Description Buffer(long address, int cap)Buffer(java.nio.ByteBuffer container)Creates a newNkStyleToggle.Bufferinstance backed by the specified container.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NkStyleItemactive()Returns aNkStyleItemview of theactivefield.NkStyleToggle.Bufferactive(java.util.function.Consumer<NkStyleItem> consumer)Passes theactivefield to the specifiedConsumer.NkStyleToggle.Bufferactive(NkStyleItem value)Copies the specifiedNkStyleItemto theactivefield.floatborder()Returns the value of theborderfield.NkStyleToggle.Bufferborder(float value)Sets the specified value to theborderfield.NkColorborder_color()Returns aNkColorview of theborder_colorfield.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()Returns aNkStyleItemview of thecursor_hoverfield.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()Returns aNkStyleItemview of thecursor_normalfield.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()Returns the value of thedraw_beginfield.NkStyleToggle.Bufferdraw_begin(NkDrawBeginCallbackI value)Sets the specified value to thedraw_beginfield.NkDrawEndCallbackdraw_end()Returns the value of thedraw_endfield.NkStyleToggle.Bufferdraw_end(NkDrawEndCallbackI value)Sets the specified value to thedraw_endfield.NkStyleItemhover()Returns aNkStyleItemview of thehoverfield.NkStyleToggle.Bufferhover(java.util.function.Consumer<NkStyleItem> consumer)Passes thehoverfield to the specifiedConsumer.NkStyleToggle.Bufferhover(NkStyleItem value)Copies the specifiedNkStyleItemto thehoverfield.NkStyleItemnormal()Returns aNkStyleItemview of thenormalfield.NkStyleToggle.Buffernormal(java.util.function.Consumer<NkStyleItem> consumer)Passes thenormalfield to the specifiedConsumer.NkStyleToggle.Buffernormal(NkStyleItem value)Copies the specifiedNkStyleItemto thenormalfield.NkVec2padding()Returns aNkVec2view of thepaddingfield.NkStyleToggle.Bufferpadding(java.util.function.Consumer<NkVec2> consumer)Passes thepaddingfield to the specifiedConsumer.NkStyleToggle.Bufferpadding(NkVec2 value)Copies the specifiedNkVec2to thepaddingfield.floatspacing()Returns the value of thespacingfield.NkStyleToggle.Bufferspacing(float value)Sets the specified value to thespacingfield.NkColortext_active()Returns aNkColorview of thetext_activefield.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()Returns the value of thetext_alignmentfield.NkStyleToggle.Buffertext_alignment(int value)Sets the specified value to thetext_alignmentfield.NkColortext_background()Returns aNkColorview of thetext_backgroundfield.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()Returns aNkColorview of thetext_hoverfield.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()Returns aNkColorview of thetext_normalfield.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()Returns aNkVec2view of thetouch_paddingfield.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()Returns aNkHandleview of theuserdatafield.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 aNkStyleItemview of thenormalfield.
-
normal
public NkStyleToggle.Buffer normal(java.util.function.Consumer<NkStyleItem> consumer)
Passes thenormalfield to the specifiedConsumer.
-
hover
public NkStyleItem hover()
Returns aNkStyleItemview of thehoverfield.
-
hover
public NkStyleToggle.Buffer hover(java.util.function.Consumer<NkStyleItem> consumer)
Passes thehoverfield to the specifiedConsumer.
-
active
public NkStyleItem active()
Returns aNkStyleItemview of theactivefield.
-
active
public NkStyleToggle.Buffer active(java.util.function.Consumer<NkStyleItem> consumer)
Passes theactivefield to the specifiedConsumer.
-
border_color
public NkStyleToggle.Buffer border_color(java.util.function.Consumer<NkColor> consumer)
Passes theborder_colorfield to the specifiedConsumer.
-
cursor_normal
public NkStyleItem cursor_normal()
Returns aNkStyleItemview of thecursor_normalfield.
-
cursor_normal
public NkStyleToggle.Buffer cursor_normal(java.util.function.Consumer<NkStyleItem> consumer)
Passes thecursor_normalfield to the specifiedConsumer.
-
cursor_hover
public NkStyleItem cursor_hover()
Returns aNkStyleItemview of 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(java.util.function.Consumer<NkColor> consumer)
Passes thetext_normalfield to the specifiedConsumer.
-
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(java.util.function.Consumer<NkColor> consumer)
Passes thetext_activefield to the specifiedConsumer.
-
text_background
public NkColor text_background()
Returns aNkColorview of thetext_backgroundfield.
-
text_background
public NkStyleToggle.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.
-
padding
public NkStyleToggle.Buffer padding(java.util.function.Consumer<NkVec2> consumer)
Passes thepaddingfield to the specifiedConsumer.
-
touch_padding
public NkStyleToggle.Buffer touch_padding(java.util.function.Consumer<NkVec2> consumer)
Passes thetouch_paddingfield to the specifiedConsumer.
-
spacing
public float spacing()
Returns the value of thespacingfield.
-
border
public float border()
Returns the value of theborderfield.
-
userdata
public NkStyleToggle.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 NkStyleToggle.Buffer normal(NkStyleItem value)
Copies the specifiedNkStyleItemto thenormalfield.
-
hover
public NkStyleToggle.Buffer hover(NkStyleItem value)
Copies the specifiedNkStyleItemto thehoverfield.
-
active
public NkStyleToggle.Buffer active(NkStyleItem value)
Copies the specifiedNkStyleItemto theactivefield.
-
border_color
public NkStyleToggle.Buffer border_color(NkColor value)
Copies the specifiedNkColorto theborder_colorfield.
-
cursor_normal
public NkStyleToggle.Buffer cursor_normal(NkStyleItem value)
Copies the specifiedNkStyleItemto thecursor_normalfield.
-
cursor_hover
public NkStyleToggle.Buffer cursor_hover(NkStyleItem value)
Copies the specifiedNkStyleItemto thecursor_hoverfield.
-
text_normal
public NkStyleToggle.Buffer text_normal(NkColor value)
Copies the specifiedNkColorto thetext_normalfield.
-
text_hover
public NkStyleToggle.Buffer text_hover(NkColor value)
Copies the specifiedNkColorto thetext_hoverfield.
-
text_active
public NkStyleToggle.Buffer text_active(NkColor value)
Copies the specifiedNkColorto thetext_activefield.
-
text_background
public NkStyleToggle.Buffer text_background(NkColor value)
Copies the specifiedNkColorto thetext_backgroundfield.
-
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.
-
touch_padding
public NkStyleToggle.Buffer touch_padding(NkVec2 value)
Copies the specifiedNkVec2to thetouch_paddingfield.
-
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.
-
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.
-
-