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 ofNkStyleSelectable
structs.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NkDrawBeginCallback
draw_begin()
Returns the value of thedraw_begin
field.NkStyleSelectable.Buffer
draw_begin(NkDrawBeginCallbackI value)
Sets the specified value to thedraw_begin
field.NkDrawEndCallback
draw_end()
Returns the value of thedraw_end
field.NkStyleSelectable.Buffer
draw_end(NkDrawEndCallbackI value)
Sets the specified value to thedraw_end
field.NkStyleItem
hover()
Returns aNkStyleItem
view of thehover
field.NkStyleSelectable.Buffer
hover(java.util.function.Consumer<NkStyleItem> consumer)
Passes thehover
field to the specifiedConsumer
.NkStyleSelectable.Buffer
hover(NkStyleItem value)
Copies the specifiedNkStyleItem
to thehover
field.NkStyleItem
hover_active()
Returns aNkStyleItem
view of thehover_active
field.NkStyleSelectable.Buffer
hover_active(java.util.function.Consumer<NkStyleItem> consumer)
Passes thehover_active
field to the specifiedConsumer
.NkStyleSelectable.Buffer
hover_active(NkStyleItem value)
Copies the specifiedNkStyleItem
to thehover_active
field.NkVec2
image_padding()
Returns aNkVec2
view of theimage_padding
field.NkStyleSelectable.Buffer
image_padding(java.util.function.Consumer<NkVec2> consumer)
Passes theimage_padding
field to the specifiedConsumer
.NkStyleSelectable.Buffer
image_padding(NkVec2 value)
Copies the specifiedNkVec2
to theimage_padding
field.NkStyleItem
normal()
Returns aNkStyleItem
view of thenormal
field.NkStyleSelectable.Buffer
normal(java.util.function.Consumer<NkStyleItem> consumer)
Passes thenormal
field to the specifiedConsumer
.NkStyleSelectable.Buffer
normal(NkStyleItem value)
Copies the specifiedNkStyleItem
to thenormal
field.NkStyleItem
normal_active()
Returns aNkStyleItem
view of thenormal_active
field.NkStyleSelectable.Buffer
normal_active(java.util.function.Consumer<NkStyleItem> consumer)
Passes thenormal_active
field to the specifiedConsumer
.NkStyleSelectable.Buffer
normal_active(NkStyleItem value)
Copies the specifiedNkStyleItem
to thenormal_active
field.NkVec2
padding()
Returns aNkVec2
view of thepadding
field.NkStyleSelectable.Buffer
padding(java.util.function.Consumer<NkVec2> consumer)
Passes thepadding
field to the specifiedConsumer
.NkStyleSelectable.Buffer
padding(NkVec2 value)
Copies the specifiedNkVec2
to thepadding
field.NkStyleItem
pressed()
Returns aNkStyleItem
view of thepressed
field.NkStyleSelectable.Buffer
pressed(java.util.function.Consumer<NkStyleItem> consumer)
Passes thepressed
field to the specifiedConsumer
.NkStyleSelectable.Buffer
pressed(NkStyleItem value)
Copies the specifiedNkStyleItem
to thepressed
field.NkStyleItem
pressed_active()
Returns aNkStyleItem
view of thepressed_active
field.NkStyleSelectable.Buffer
pressed_active(java.util.function.Consumer<NkStyleItem> consumer)
Passes thepressed_active
field to the specifiedConsumer
.NkStyleSelectable.Buffer
pressed_active(NkStyleItem value)
Copies the specifiedNkStyleItem
to thepressed_active
field.float
rounding()
Returns the value of therounding
field.NkStyleSelectable.Buffer
rounding(float value)
Sets the specified value to therounding
field.int
text_alignment()
Returns the value of thetext_alignment
field.NkStyleSelectable.Buffer
text_alignment(int value)
Sets the specified value to thetext_alignment
field.NkColor
text_background()
Returns aNkColor
view of thetext_background
field.NkStyleSelectable.Buffer
text_background(java.util.function.Consumer<NkColor> consumer)
Passes thetext_background
field to the specifiedConsumer
.NkStyleSelectable.Buffer
text_background(NkColor value)
Copies the specifiedNkColor
to thetext_background
field.NkColor
text_hover()
Returns aNkColor
view of thetext_hover
field.NkStyleSelectable.Buffer
text_hover(java.util.function.Consumer<NkColor> consumer)
Passes thetext_hover
field to the specifiedConsumer
.NkStyleSelectable.Buffer
text_hover(NkColor value)
Copies the specifiedNkColor
to thetext_hover
field.NkColor
text_hover_active()
Returns aNkColor
view of thetext_hover_active
field.NkStyleSelectable.Buffer
text_hover_active(java.util.function.Consumer<NkColor> consumer)
Passes thetext_hover_active
field to the specifiedConsumer
.NkStyleSelectable.Buffer
text_hover_active(NkColor value)
Copies the specifiedNkColor
to thetext_hover_active
field.NkColor
text_normal()
Returns aNkColor
view of thetext_normal
field.NkStyleSelectable.Buffer
text_normal(java.util.function.Consumer<NkColor> consumer)
Passes thetext_normal
field to the specifiedConsumer
.NkStyleSelectable.Buffer
text_normal(NkColor value)
Copies the specifiedNkColor
to thetext_normal
field.NkColor
text_normal_active()
Returns aNkColor
view of thetext_normal_active
field.NkStyleSelectable.Buffer
text_normal_active(java.util.function.Consumer<NkColor> consumer)
Passes thetext_normal_active
field to the specifiedConsumer
.NkStyleSelectable.Buffer
text_normal_active(NkColor value)
Copies the specifiedNkColor
to thetext_normal_active
field.NkColor
text_pressed()
Returns aNkColor
view of thetext_pressed
field.NkStyleSelectable.Buffer
text_pressed(java.util.function.Consumer<NkColor> consumer)
Passes thetext_pressed
field to the specifiedConsumer
.NkStyleSelectable.Buffer
text_pressed(NkColor value)
Copies the specifiedNkColor
to thetext_pressed
field.NkColor
text_pressed_active()
Returns aNkColor
view of thetext_pressed_active
field.NkStyleSelectable.Buffer
text_pressed_active(java.util.function.Consumer<NkColor> consumer)
Passes thetext_pressed_active
field to the specifiedConsumer
.NkStyleSelectable.Buffer
text_pressed_active(NkColor value)
Copies the specifiedNkColor
to thetext_pressed_active
field.NkVec2
touch_padding()
Returns aNkVec2
view of thetouch_padding
field.NkStyleSelectable.Buffer
touch_padding(java.util.function.Consumer<NkVec2> consumer)
Passes thetouch_padding
field to the specifiedConsumer
.NkStyleSelectable.Buffer
touch_padding(NkVec2 value)
Copies the specifiedNkVec2
to thetouch_padding
field.NkHandle
userdata()
Returns aNkHandle
view of theuserdata
field.NkStyleSelectable.Buffer
userdata(java.util.function.Consumer<NkHandle> consumer)
Passes theuserdata
field to the specifiedConsumer
.NkStyleSelectable.Buffer
userdata(NkHandle value)
Copies the specifiedNkHandle
to theuserdata
field.
-
-
-
Constructor Detail
-
Buffer
public Buffer(java.nio.ByteBuffer container)
Creates a newNkStyleSelectable.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 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 aNkStyleItem
view of thenormal
field.
-
hover
public NkStyleItem hover()
Returns aNkStyleItem
view of thehover
field.
-
pressed
public NkStyleItem pressed()
Returns aNkStyleItem
view of thepressed
field.
-
normal_active
public NkStyleItem normal_active()
Returns aNkStyleItem
view of thenormal_active
field.
-
hover_active
public NkStyleItem hover_active()
Returns aNkStyleItem
view of thehover_active
field.
-
pressed_active
public NkStyleItem pressed_active()
Returns aNkStyleItem
view of thepressed_active
field.
-
text_normal_active
public NkColor text_normal_active()
Returns aNkColor
view of thetext_normal_active
field.
-
text_hover_active
public NkColor text_hover_active()
Returns aNkColor
view of thetext_hover_active
field.
-
text_pressed_active
public NkColor text_pressed_active()
Returns aNkColor
view of thetext_pressed_active
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.
-
rounding
public float rounding()
Returns the value of therounding
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 NkStyleSelectable.Buffer normal(NkStyleItem value)
Copies the specifiedNkStyleItem
to thenormal
field.
-
normal
public NkStyleSelectable.Buffer normal(java.util.function.Consumer<NkStyleItem> consumer)
Passes thenormal
field to the specifiedConsumer
.
-
hover
public NkStyleSelectable.Buffer hover(NkStyleItem value)
Copies the specifiedNkStyleItem
to thehover
field.
-
hover
public NkStyleSelectable.Buffer hover(java.util.function.Consumer<NkStyleItem> consumer)
Passes thehover
field to the specifiedConsumer
.
-
pressed
public NkStyleSelectable.Buffer pressed(NkStyleItem value)
Copies the specifiedNkStyleItem
to thepressed
field.
-
pressed
public NkStyleSelectable.Buffer pressed(java.util.function.Consumer<NkStyleItem> consumer)
Passes thepressed
field to the specifiedConsumer
.
-
normal_active
public NkStyleSelectable.Buffer normal_active(NkStyleItem value)
Copies the specifiedNkStyleItem
to thenormal_active
field.
-
normal_active
public NkStyleSelectable.Buffer normal_active(java.util.function.Consumer<NkStyleItem> consumer)
Passes thenormal_active
field to the specifiedConsumer
.
-
hover_active
public NkStyleSelectable.Buffer hover_active(NkStyleItem value)
Copies the specifiedNkStyleItem
to thehover_active
field.
-
hover_active
public NkStyleSelectable.Buffer hover_active(java.util.function.Consumer<NkStyleItem> consumer)
Passes thehover_active
field to the specifiedConsumer
.
-
pressed_active
public NkStyleSelectable.Buffer pressed_active(NkStyleItem value)
Copies the specifiedNkStyleItem
to thepressed_active
field.
-
pressed_active
public NkStyleSelectable.Buffer pressed_active(java.util.function.Consumer<NkStyleItem> consumer)
Passes thepressed_active
field to the specifiedConsumer
.
-
text_normal
public NkStyleSelectable.Buffer text_normal(NkColor value)
Copies the specifiedNkColor
to thetext_normal
field.
-
text_normal
public NkStyleSelectable.Buffer text_normal(java.util.function.Consumer<NkColor> consumer)
Passes thetext_normal
field to the specifiedConsumer
.
-
text_hover
public NkStyleSelectable.Buffer text_hover(NkColor value)
Copies the specifiedNkColor
to thetext_hover
field.
-
text_hover
public NkStyleSelectable.Buffer text_hover(java.util.function.Consumer<NkColor> consumer)
Passes thetext_hover
field to the specifiedConsumer
.
-
text_pressed
public NkStyleSelectable.Buffer text_pressed(NkColor value)
Copies the specifiedNkColor
to thetext_pressed
field.
-
text_pressed
public NkStyleSelectable.Buffer text_pressed(java.util.function.Consumer<NkColor> consumer)
Passes thetext_pressed
field to the specifiedConsumer
.
-
text_normal_active
public NkStyleSelectable.Buffer text_normal_active(NkColor value)
Copies the specifiedNkColor
to thetext_normal_active
field.
-
text_normal_active
public NkStyleSelectable.Buffer text_normal_active(java.util.function.Consumer<NkColor> consumer)
Passes thetext_normal_active
field to the specifiedConsumer
.
-
text_hover_active
public NkStyleSelectable.Buffer text_hover_active(NkColor value)
Copies the specifiedNkColor
to thetext_hover_active
field.
-
text_hover_active
public NkStyleSelectable.Buffer text_hover_active(java.util.function.Consumer<NkColor> consumer)
Passes thetext_hover_active
field to the specifiedConsumer
.
-
text_pressed_active
public NkStyleSelectable.Buffer text_pressed_active(NkColor value)
Copies the specifiedNkColor
to thetext_pressed_active
field.
-
text_pressed_active
public NkStyleSelectable.Buffer text_pressed_active(java.util.function.Consumer<NkColor> consumer)
Passes thetext_pressed_active
field to the specifiedConsumer
.
-
text_background
public NkStyleSelectable.Buffer text_background(NkColor value)
Copies the specifiedNkColor
to thetext_background
field.
-
text_background
public NkStyleSelectable.Buffer text_background(java.util.function.Consumer<NkColor> consumer)
Passes thetext_background
field to the specifiedConsumer
.
-
text_alignment
public NkStyleSelectable.Buffer text_alignment(int value)
Sets the specified value to thetext_alignment
field.
-
rounding
public NkStyleSelectable.Buffer rounding(float value)
Sets the specified value to therounding
field.
-
padding
public NkStyleSelectable.Buffer padding(NkVec2 value)
Copies the specifiedNkVec2
to thepadding
field.
-
padding
public NkStyleSelectable.Buffer padding(java.util.function.Consumer<NkVec2> consumer)
Passes thepadding
field to the specifiedConsumer
.
-
touch_padding
public NkStyleSelectable.Buffer touch_padding(NkVec2 value)
Copies the specifiedNkVec2
to thetouch_padding
field.
-
touch_padding
public NkStyleSelectable.Buffer touch_padding(java.util.function.Consumer<NkVec2> consumer)
Passes thetouch_padding
field to the specifiedConsumer
.
-
image_padding
public NkStyleSelectable.Buffer image_padding(NkVec2 value)
Copies the specifiedNkVec2
to theimage_padding
field.
-
image_padding
public NkStyleSelectable.Buffer image_padding(java.util.function.Consumer<NkVec2> consumer)
Passes theimage_padding
field to the specifiedConsumer
.
-
userdata
public NkStyleSelectable.Buffer userdata(NkHandle value)
Copies the specifiedNkHandle
to theuserdata
field.
-
userdata
public NkStyleSelectable.Buffer userdata(java.util.function.Consumer<NkHandle> consumer)
Passes theuserdata
field to the specifiedConsumer
.
-
draw_begin
public NkStyleSelectable.Buffer draw_begin(@Nullable NkDrawBeginCallbackI value)
Sets the specified value to thedraw_begin
field.
-
draw_end
public NkStyleSelectable.Buffer draw_end(@Nullable NkDrawEndCallbackI value)
Sets the specified value to thedraw_end
field.
-
-