Package org.lwjgl.nuklear
Class NkStyleProperty.Buffer
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.CustomBuffer<SELF>
-
- org.lwjgl.system.StructBuffer<NkStyleProperty,NkStyleProperty.Buffer>
-
- org.lwjgl.nuklear.NkStyleProperty.Buffer
-
- All Implemented Interfaces:
java.lang.AutoCloseable
,java.lang.Iterable<NkStyleProperty>
,org.lwjgl.system.NativeResource
,org.lwjgl.system.Pointer
- Enclosing class:
- NkStyleProperty
public static class NkStyleProperty.Buffer extends org.lwjgl.system.StructBuffer<NkStyleProperty,NkStyleProperty.Buffer> implements org.lwjgl.system.NativeResource
An array ofNkStyleProperty
structs.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NkStyleItem
active()
Returns aNkStyleItem
view of theactive
field.NkStyleProperty.Buffer
active(java.util.function.Consumer<NkStyleItem> consumer)
Passes theactive
field to the specifiedConsumer
.NkStyleProperty.Buffer
active(NkStyleItem value)
Copies the specifiedNkStyleItem
to theactive
field.float
border()
Returns the value of theborder
field.NkStyleProperty.Buffer
border(float value)
Sets the specified value to theborder
field.NkColor
border_color()
Returns aNkColor
view of theborder_color
field.NkStyleProperty.Buffer
border_color(java.util.function.Consumer<NkColor> consumer)
Passes theborder_color
field to the specifiedConsumer
.NkStyleProperty.Buffer
border_color(NkColor value)
Copies the specifiedNkColor
to theborder_color
field.NkStyleButton
dec_button()
Returns aNkStyleButton
view of thedec_button
field.NkStyleProperty.Buffer
dec_button(java.util.function.Consumer<NkStyleButton> consumer)
Passes thedec_button
field to the specifiedConsumer
.NkStyleProperty.Buffer
dec_button(NkStyleButton value)
Copies the specifiedNkStyleButton
to thedec_button
field.NkDrawBeginCallback
draw_begin()
Returns the value of thedraw_begin
field.NkStyleProperty.Buffer
draw_begin(NkDrawBeginCallbackI value)
Sets the specified value to thedraw_begin
field.NkDrawEndCallback
draw_end()
Returns the value of thedraw_end
field.NkStyleProperty.Buffer
draw_end(NkDrawEndCallbackI value)
Sets the specified value to thedraw_end
field.NkStyleEdit
edit()
Returns aNkStyleEdit
view of theedit
field.NkStyleProperty.Buffer
edit(java.util.function.Consumer<NkStyleEdit> consumer)
Passes theedit
field to the specifiedConsumer
.NkStyleProperty.Buffer
edit(NkStyleEdit value)
Copies the specifiedNkStyleEdit
to theedit
field.NkStyleItem
hover()
Returns aNkStyleItem
view of thehover
field.NkStyleProperty.Buffer
hover(java.util.function.Consumer<NkStyleItem> consumer)
Passes thehover
field to the specifiedConsumer
.NkStyleProperty.Buffer
hover(NkStyleItem value)
Copies the specifiedNkStyleItem
to thehover
field.NkStyleButton
inc_button()
Returns aNkStyleButton
view of theinc_button
field.NkStyleProperty.Buffer
inc_button(java.util.function.Consumer<NkStyleButton> consumer)
Passes theinc_button
field to the specifiedConsumer
.NkStyleProperty.Buffer
inc_button(NkStyleButton value)
Copies the specifiedNkStyleButton
to theinc_button
field.NkColor
label_active()
Returns aNkColor
view of thelabel_active
field.NkStyleProperty.Buffer
label_active(java.util.function.Consumer<NkColor> consumer)
Passes thelabel_active
field to the specifiedConsumer
.NkStyleProperty.Buffer
label_active(NkColor value)
Copies the specifiedNkColor
to thelabel_active
field.NkColor
label_hover()
Returns aNkColor
view of thelabel_hover
field.NkStyleProperty.Buffer
label_hover(java.util.function.Consumer<NkColor> consumer)
Passes thelabel_hover
field to the specifiedConsumer
.NkStyleProperty.Buffer
label_hover(NkColor value)
Copies the specifiedNkColor
to thelabel_hover
field.NkColor
label_normal()
Returns aNkColor
view of thelabel_normal
field.NkStyleProperty.Buffer
label_normal(java.util.function.Consumer<NkColor> consumer)
Passes thelabel_normal
field to the specifiedConsumer
.NkStyleProperty.Buffer
label_normal(NkColor value)
Copies the specifiedNkColor
to thelabel_normal
field.NkStyleItem
normal()
Returns aNkStyleItem
view of thenormal
field.NkStyleProperty.Buffer
normal(java.util.function.Consumer<NkStyleItem> consumer)
Passes thenormal
field to the specifiedConsumer
.NkStyleProperty.Buffer
normal(NkStyleItem value)
Copies the specifiedNkStyleItem
to thenormal
field.NkVec2
padding()
Returns aNkVec2
view of thepadding
field.NkStyleProperty.Buffer
padding(java.util.function.Consumer<NkVec2> consumer)
Passes thepadding
field to the specifiedConsumer
.NkStyleProperty.Buffer
padding(NkVec2 value)
Copies the specifiedNkVec2
to thepadding
field.float
rounding()
Returns the value of therounding
field.NkStyleProperty.Buffer
rounding(float value)
Sets the specified value to therounding
field.int
sym_left()
Returns the value of thesym_left
field.NkStyleProperty.Buffer
sym_left(int value)
Sets the specified value to thesym_left
field.int
sym_right()
Returns the value of thesym_right
field.NkStyleProperty.Buffer
sym_right(int value)
Sets the specified value to thesym_right
field.NkHandle
userdata()
Returns aNkHandle
view of theuserdata
field.NkStyleProperty.Buffer
userdata(java.util.function.Consumer<NkHandle> consumer)
Passes theuserdata
field to the specifiedConsumer
.NkStyleProperty.Buffer
userdata(NkHandle value)
Copies the specifiedNkHandle
to theuserdata
field.
-
-
-
Constructor Detail
-
Buffer
public Buffer(java.nio.ByteBuffer container)
Creates a newNkStyleProperty.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 byNkStyleProperty.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.
-
sym_left
public int sym_left()
Returns the value of thesym_left
field.
-
sym_right
public int sym_right()
Returns the value of thesym_right
field.
-
border
public float border()
Returns the value of theborder
field.
-
rounding
public float rounding()
Returns the value of therounding
field.
-
edit
public NkStyleEdit edit()
Returns aNkStyleEdit
view of theedit
field.
-
inc_button
public NkStyleButton inc_button()
Returns aNkStyleButton
view of theinc_button
field.
-
dec_button
public NkStyleButton dec_button()
Returns aNkStyleButton
view of thedec_button
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 NkStyleProperty.Buffer normal(NkStyleItem value)
Copies the specifiedNkStyleItem
to thenormal
field.
-
normal
public NkStyleProperty.Buffer normal(java.util.function.Consumer<NkStyleItem> consumer)
Passes thenormal
field to the specifiedConsumer
.
-
hover
public NkStyleProperty.Buffer hover(NkStyleItem value)
Copies the specifiedNkStyleItem
to thehover
field.
-
hover
public NkStyleProperty.Buffer hover(java.util.function.Consumer<NkStyleItem> consumer)
Passes thehover
field to the specifiedConsumer
.
-
active
public NkStyleProperty.Buffer active(NkStyleItem value)
Copies the specifiedNkStyleItem
to theactive
field.
-
active
public NkStyleProperty.Buffer active(java.util.function.Consumer<NkStyleItem> consumer)
Passes theactive
field to the specifiedConsumer
.
-
border_color
public NkStyleProperty.Buffer border_color(NkColor value)
Copies the specifiedNkColor
to theborder_color
field.
-
border_color
public NkStyleProperty.Buffer border_color(java.util.function.Consumer<NkColor> consumer)
Passes theborder_color
field to the specifiedConsumer
.
-
label_normal
public NkStyleProperty.Buffer label_normal(NkColor value)
Copies the specifiedNkColor
to thelabel_normal
field.
-
label_normal
public NkStyleProperty.Buffer label_normal(java.util.function.Consumer<NkColor> consumer)
Passes thelabel_normal
field to the specifiedConsumer
.
-
label_hover
public NkStyleProperty.Buffer label_hover(NkColor value)
Copies the specifiedNkColor
to thelabel_hover
field.
-
label_hover
public NkStyleProperty.Buffer label_hover(java.util.function.Consumer<NkColor> consumer)
Passes thelabel_hover
field to the specifiedConsumer
.
-
label_active
public NkStyleProperty.Buffer label_active(NkColor value)
Copies the specifiedNkColor
to thelabel_active
field.
-
label_active
public NkStyleProperty.Buffer label_active(java.util.function.Consumer<NkColor> consumer)
Passes thelabel_active
field to the specifiedConsumer
.
-
sym_left
public NkStyleProperty.Buffer sym_left(int value)
Sets the specified value to thesym_left
field.
-
sym_right
public NkStyleProperty.Buffer sym_right(int value)
Sets the specified value to thesym_right
field.
-
border
public NkStyleProperty.Buffer border(float value)
Sets the specified value to theborder
field.
-
rounding
public NkStyleProperty.Buffer rounding(float value)
Sets the specified value to therounding
field.
-
padding
public NkStyleProperty.Buffer padding(NkVec2 value)
Copies the specifiedNkVec2
to thepadding
field.
-
padding
public NkStyleProperty.Buffer padding(java.util.function.Consumer<NkVec2> consumer)
Passes thepadding
field to the specifiedConsumer
.
-
edit
public NkStyleProperty.Buffer edit(NkStyleEdit value)
Copies the specifiedNkStyleEdit
to theedit
field.
-
edit
public NkStyleProperty.Buffer edit(java.util.function.Consumer<NkStyleEdit> consumer)
Passes theedit
field to the specifiedConsumer
.
-
inc_button
public NkStyleProperty.Buffer inc_button(NkStyleButton value)
Copies the specifiedNkStyleButton
to theinc_button
field.
-
inc_button
public NkStyleProperty.Buffer inc_button(java.util.function.Consumer<NkStyleButton> consumer)
Passes theinc_button
field to the specifiedConsumer
.
-
dec_button
public NkStyleProperty.Buffer dec_button(NkStyleButton value)
Copies the specifiedNkStyleButton
to thedec_button
field.
-
dec_button
public NkStyleProperty.Buffer dec_button(java.util.function.Consumer<NkStyleButton> consumer)
Passes thedec_button
field to the specifiedConsumer
.
-
userdata
public NkStyleProperty.Buffer userdata(NkHandle value)
Copies the specifiedNkHandle
to theuserdata
field.
-
userdata
public NkStyleProperty.Buffer userdata(java.util.function.Consumer<NkHandle> consumer)
Passes theuserdata
field to the specifiedConsumer
.
-
draw_begin
public NkStyleProperty.Buffer draw_begin(@Nullable NkDrawBeginCallbackI value)
Sets the specified value to thedraw_begin
field.
-
draw_end
public NkStyleProperty.Buffer draw_end(@Nullable NkDrawEndCallbackI value)
Sets the specified value to thedraw_end
field.
-
-