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 ofNkStyleToggle
structs.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NkStyleItem
active()
Returns aNkStyleItem
view of theactive
field.NkStyleToggle.Buffer
active(java.util.function.Consumer<NkStyleItem> consumer)
Passes theactive
field to the specifiedConsumer
.NkStyleToggle.Buffer
active(NkStyleItem value)
Copies the specifiedNkStyleItem
to theactive
field.float
border()
Returns the value of theborder
field.NkStyleToggle.Buffer
border(float value)
Sets the specified value to theborder
field.NkColor
border_color()
Returns aNkColor
view of theborder_color
field.NkStyleToggle.Buffer
border_color(java.util.function.Consumer<NkColor> consumer)
Passes theborder_color
field to the specifiedConsumer
.NkStyleToggle.Buffer
border_color(NkColor value)
Copies the specifiedNkColor
to theborder_color
field.NkStyleItem
cursor_hover()
Returns aNkStyleItem
view of thecursor_hover
field.NkStyleToggle.Buffer
cursor_hover(java.util.function.Consumer<NkStyleItem> consumer)
Passes thecursor_hover
field to the specifiedConsumer
.NkStyleToggle.Buffer
cursor_hover(NkStyleItem value)
Copies the specifiedNkStyleItem
to thecursor_hover
field.NkStyleItem
cursor_normal()
Returns aNkStyleItem
view of thecursor_normal
field.NkStyleToggle.Buffer
cursor_normal(java.util.function.Consumer<NkStyleItem> consumer)
Passes thecursor_normal
field to the specifiedConsumer
.NkStyleToggle.Buffer
cursor_normal(NkStyleItem value)
Copies the specifiedNkStyleItem
to thecursor_normal
field.NkDrawBeginCallback
draw_begin()
Returns the value of thedraw_begin
field.NkStyleToggle.Buffer
draw_begin(NkDrawBeginCallbackI value)
Sets the specified value to thedraw_begin
field.NkDrawEndCallback
draw_end()
Returns the value of thedraw_end
field.NkStyleToggle.Buffer
draw_end(NkDrawEndCallbackI value)
Sets the specified value to thedraw_end
field.NkStyleItem
hover()
Returns aNkStyleItem
view of thehover
field.NkStyleToggle.Buffer
hover(java.util.function.Consumer<NkStyleItem> consumer)
Passes thehover
field to the specifiedConsumer
.NkStyleToggle.Buffer
hover(NkStyleItem value)
Copies the specifiedNkStyleItem
to thehover
field.NkStyleItem
normal()
Returns aNkStyleItem
view of thenormal
field.NkStyleToggle.Buffer
normal(java.util.function.Consumer<NkStyleItem> consumer)
Passes thenormal
field to the specifiedConsumer
.NkStyleToggle.Buffer
normal(NkStyleItem value)
Copies the specifiedNkStyleItem
to thenormal
field.NkVec2
padding()
Returns aNkVec2
view of thepadding
field.NkStyleToggle.Buffer
padding(java.util.function.Consumer<NkVec2> consumer)
Passes thepadding
field to the specifiedConsumer
.NkStyleToggle.Buffer
padding(NkVec2 value)
Copies the specifiedNkVec2
to thepadding
field.float
spacing()
Returns the value of thespacing
field.NkStyleToggle.Buffer
spacing(float value)
Sets the specified value to thespacing
field.NkColor
text_active()
Returns aNkColor
view of thetext_active
field.NkStyleToggle.Buffer
text_active(java.util.function.Consumer<NkColor> consumer)
Passes thetext_active
field to the specifiedConsumer
.NkStyleToggle.Buffer
text_active(NkColor value)
Copies the specifiedNkColor
to thetext_active
field.int
text_alignment()
Returns the value of thetext_alignment
field.NkStyleToggle.Buffer
text_alignment(int value)
Sets the specified value to thetext_alignment
field.NkColor
text_background()
Returns aNkColor
view of thetext_background
field.NkStyleToggle.Buffer
text_background(java.util.function.Consumer<NkColor> consumer)
Passes thetext_background
field to the specifiedConsumer
.NkStyleToggle.Buffer
text_background(NkColor value)
Copies the specifiedNkColor
to thetext_background
field.NkColor
text_hover()
Returns aNkColor
view of thetext_hover
field.NkStyleToggle.Buffer
text_hover(java.util.function.Consumer<NkColor> consumer)
Passes thetext_hover
field to the specifiedConsumer
.NkStyleToggle.Buffer
text_hover(NkColor value)
Copies the specifiedNkColor
to thetext_hover
field.NkColor
text_normal()
Returns aNkColor
view of thetext_normal
field.NkStyleToggle.Buffer
text_normal(java.util.function.Consumer<NkColor> consumer)
Passes thetext_normal
field to the specifiedConsumer
.NkStyleToggle.Buffer
text_normal(NkColor value)
Copies the specifiedNkColor
to thetext_normal
field.NkVec2
touch_padding()
Returns aNkVec2
view of thetouch_padding
field.NkStyleToggle.Buffer
touch_padding(java.util.function.Consumer<NkVec2> consumer)
Passes thetouch_padding
field to the specifiedConsumer
.NkStyleToggle.Buffer
touch_padding(NkVec2 value)
Copies the specifiedNkVec2
to thetouch_padding
field.NkHandle
userdata()
Returns aNkHandle
view of theuserdata
field.NkStyleToggle.Buffer
userdata(java.util.function.Consumer<NkHandle> consumer)
Passes theuserdata
field to the specifiedConsumer
.NkStyleToggle.Buffer
userdata(NkHandle value)
Copies the specifiedNkHandle
to theuserdata
field.
-
-
-
Constructor Detail
-
Buffer
public Buffer(java.nio.ByteBuffer container)
Creates a newNkStyleToggle.Buffer
instance 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 aNkStyleItem
view of thenormal
field.
-
hover
public NkStyleItem hover()
Returns aNkStyleItem
view of thehover
field.
-
active
public NkStyleItem active()
Returns aNkStyleItem
view of theactive
field.
-
cursor_normal
public NkStyleItem cursor_normal()
Returns aNkStyleItem
view of thecursor_normal
field.
-
cursor_hover
public NkStyleItem cursor_hover()
Returns aNkStyleItem
view of thecursor_hover
field.
-
text_background
public NkColor text_background()
Returns aNkColor
view of thetext_background
field.
-
text_alignment
public int text_alignment()
Returns the value of thetext_alignment
field.
-
spacing
public float spacing()
Returns the value of thespacing
field.
-
border
public float border()
Returns the value of theborder
field.
-
draw_begin
@Nullable public NkDrawBeginCallback draw_begin()
Returns the value of thedraw_begin
field.
-
draw_end
@Nullable public NkDrawEndCallback draw_end()
Returns the value of thedraw_end
field.
-
normal
public NkStyleToggle.Buffer normal(NkStyleItem value)
Copies the specifiedNkStyleItem
to thenormal
field.
-
normal
public NkStyleToggle.Buffer normal(java.util.function.Consumer<NkStyleItem> consumer)
Passes thenormal
field to the specifiedConsumer
.
-
hover
public NkStyleToggle.Buffer hover(NkStyleItem value)
Copies the specifiedNkStyleItem
to thehover
field.
-
hover
public NkStyleToggle.Buffer hover(java.util.function.Consumer<NkStyleItem> consumer)
Passes thehover
field to the specifiedConsumer
.
-
active
public NkStyleToggle.Buffer active(NkStyleItem value)
Copies the specifiedNkStyleItem
to theactive
field.
-
active
public NkStyleToggle.Buffer active(java.util.function.Consumer<NkStyleItem> consumer)
Passes theactive
field to the specifiedConsumer
.
-
border_color
public NkStyleToggle.Buffer border_color(NkColor value)
Copies the specifiedNkColor
to theborder_color
field.
-
border_color
public NkStyleToggle.Buffer border_color(java.util.function.Consumer<NkColor> consumer)
Passes theborder_color
field to the specifiedConsumer
.
-
cursor_normal
public NkStyleToggle.Buffer cursor_normal(NkStyleItem value)
Copies the specifiedNkStyleItem
to thecursor_normal
field.
-
cursor_normal
public NkStyleToggle.Buffer cursor_normal(java.util.function.Consumer<NkStyleItem> consumer)
Passes thecursor_normal
field to the specifiedConsumer
.
-
cursor_hover
public NkStyleToggle.Buffer cursor_hover(NkStyleItem value)
Copies the specifiedNkStyleItem
to thecursor_hover
field.
-
cursor_hover
public NkStyleToggle.Buffer cursor_hover(java.util.function.Consumer<NkStyleItem> consumer)
Passes thecursor_hover
field to the specifiedConsumer
.
-
text_normal
public NkStyleToggle.Buffer text_normal(NkColor value)
Copies the specifiedNkColor
to thetext_normal
field.
-
text_normal
public NkStyleToggle.Buffer text_normal(java.util.function.Consumer<NkColor> consumer)
Passes thetext_normal
field to the specifiedConsumer
.
-
text_hover
public NkStyleToggle.Buffer text_hover(NkColor value)
Copies the specifiedNkColor
to thetext_hover
field.
-
text_hover
public NkStyleToggle.Buffer text_hover(java.util.function.Consumer<NkColor> consumer)
Passes thetext_hover
field to the specifiedConsumer
.
-
text_active
public NkStyleToggle.Buffer text_active(NkColor value)
Copies the specifiedNkColor
to thetext_active
field.
-
text_active
public NkStyleToggle.Buffer text_active(java.util.function.Consumer<NkColor> consumer)
Passes thetext_active
field to the specifiedConsumer
.
-
text_background
public NkStyleToggle.Buffer text_background(NkColor value)
Copies the specifiedNkColor
to thetext_background
field.
-
text_background
public NkStyleToggle.Buffer text_background(java.util.function.Consumer<NkColor> consumer)
Passes thetext_background
field to the specifiedConsumer
.
-
text_alignment
public NkStyleToggle.Buffer text_alignment(int value)
Sets the specified value to thetext_alignment
field.
-
padding
public NkStyleToggle.Buffer padding(NkVec2 value)
Copies the specifiedNkVec2
to thepadding
field.
-
padding
public NkStyleToggle.Buffer padding(java.util.function.Consumer<NkVec2> consumer)
Passes thepadding
field to the specifiedConsumer
.
-
touch_padding
public NkStyleToggle.Buffer touch_padding(NkVec2 value)
Copies the specifiedNkVec2
to thetouch_padding
field.
-
touch_padding
public NkStyleToggle.Buffer touch_padding(java.util.function.Consumer<NkVec2> consumer)
Passes thetouch_padding
field to the specifiedConsumer
.
-
spacing
public NkStyleToggle.Buffer spacing(float value)
Sets the specified value to thespacing
field.
-
border
public NkStyleToggle.Buffer border(float value)
Sets the specified value to theborder
field.
-
userdata
public NkStyleToggle.Buffer userdata(NkHandle value)
Copies the specifiedNkHandle
to theuserdata
field.
-
userdata
public NkStyleToggle.Buffer userdata(java.util.function.Consumer<NkHandle> consumer)
Passes theuserdata
field to the specifiedConsumer
.
-
draw_begin
public NkStyleToggle.Buffer draw_begin(@Nullable NkDrawBeginCallbackI value)
Sets the specified value to thedraw_begin
field.
-
draw_end
public NkStyleToggle.Buffer draw_end(@Nullable NkDrawEndCallbackI value)
Sets the specified value to thedraw_end
field.
-
-