Package org.lwjgl.nuklear
Class NkStyleSelectable.Buffer
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.CustomBuffer<NkStyleSelectable.Buffer>
org.lwjgl.system.StructBuffer<NkStyleSelectable,NkStyleSelectable.Buffer>
org.lwjgl.nuklear.NkStyleSelectable.Buffer
- All Implemented Interfaces:
AutoCloseable,Iterable<NkStyleSelectable>,NativeResource,Pointer
- Enclosing class:
NkStyleSelectable
public static class NkStyleSelectable.Buffer
extends StructBuffer<NkStyleSelectable,NkStyleSelectable.Buffer>
implements NativeResource
An array of
NkStyleSelectable structs.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default -
Field Summary
Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionBuffer(long address, int cap) Buffer(ByteBuffer container) Creates a newNkStyleSelectable.Bufferinstance backed by the specified container. -
Method Summary
Modifier and TypeMethodDescriptionfloatcolor_factor(float value) Sets the specified value to thecolor_factorfield.floatdisabled_factor(float value) Sets the specified value to thedisabled_factorfield.@Nullable NkDrawBeginCallbackdraw_begin(@Nullable NkDrawBeginCallbackI value) Sets the specified value to thedraw_beginfield.@Nullable NkDrawEndCallbackdraw_end()draw_end(@Nullable NkDrawEndCallbackI value) Sets the specified value to thedraw_endfield.hover()hover(Consumer<NkStyleItem> consumer) Passes thehoverfield to the specifiedConsumer.hover(NkStyleItem value) Copies the specifiedNkStyleItemto thehoverfield.hover_active(Consumer<NkStyleItem> consumer) Passes thehover_activefield to the specifiedConsumer.hover_active(NkStyleItem value) Copies the specifiedNkStyleItemto thehover_activefield.image_padding(Consumer<NkVec2> consumer) Passes theimage_paddingfield to the specifiedConsumer.image_padding(NkVec2 value) Copies the specifiedNkVec2to theimage_paddingfield.normal()normal(Consumer<NkStyleItem> consumer) Passes thenormalfield to the specifiedConsumer.normal(NkStyleItem value) Copies the specifiedNkStyleItemto thenormalfield.normal_active(Consumer<NkStyleItem> consumer) Passes thenormal_activefield to the specifiedConsumer.normal_active(NkStyleItem value) Copies the specifiedNkStyleItemto thenormal_activefield.padding()Passes thepaddingfield to the specifiedConsumer.Copies the specifiedNkVec2to thepaddingfield.pressed()pressed(Consumer<NkStyleItem> consumer) Passes thepressedfield to the specifiedConsumer.pressed(NkStyleItem value) Copies the specifiedNkStyleItemto thepressedfield.pressed_active(Consumer<NkStyleItem> consumer) Passes thepressed_activefield to the specifiedConsumer.pressed_active(NkStyleItem value) Copies the specifiedNkStyleItemto thepressed_activefield.floatrounding()rounding(float value) Sets the specified value to theroundingfield.inttext_alignment(int value) Sets the specified value to thetext_alignmentfield.text_background(Consumer<NkColor> consumer) Passes thetext_backgroundfield to the specifiedConsumer.text_background(NkColor value) Copies the specifiedNkColorto thetext_backgroundfield.text_hover(Consumer<NkColor> consumer) Passes thetext_hoverfield to the specifiedConsumer.text_hover(NkColor value) Copies the specifiedNkColorto thetext_hoverfield.text_hover_active(Consumer<NkColor> consumer) Passes thetext_hover_activefield to the specifiedConsumer.text_hover_active(NkColor value) Copies the specifiedNkColorto thetext_hover_activefield.text_normal(Consumer<NkColor> consumer) Passes thetext_normalfield to the specifiedConsumer.text_normal(NkColor value) Copies the specifiedNkColorto thetext_normalfield.text_normal_active(Consumer<NkColor> consumer) Passes thetext_normal_activefield to the specifiedConsumer.text_normal_active(NkColor value) Copies the specifiedNkColorto thetext_normal_activefield.text_pressed(Consumer<NkColor> consumer) Passes thetext_pressedfield to the specifiedConsumer.text_pressed(NkColor value) Copies the specifiedNkColorto thetext_pressedfield.text_pressed_active(Consumer<NkColor> consumer) Passes thetext_pressed_activefield to the specifiedConsumer.text_pressed_active(NkColor value) Copies the specifiedNkColorto thetext_pressed_activefield.touch_padding(Consumer<NkVec2> consumer) Passes thetouch_paddingfield to the specifiedConsumer.touch_padding(NkVec2 value) Copies the specifiedNkVec2to thetouch_paddingfield.userdata()Passes theuserdatafield to the specifiedConsumer.Copies the specifiedNkHandleto theuserdatafield.Methods inherited from class org.lwjgl.system.StructBuffer
apply, apply, forEach, get, get, get, get, iterator, parallelStream, put, put, sizeof, spliterator, streamMethods inherited from class org.lwjgl.system.CustomBuffer
address, address, address0, capacity, clear, compact, duplicate, flip, free, hasRemaining, limit, limit, mark, position, position, put, remaining, reset, rewind, slice, slice, toStringMethods inherited from class org.lwjgl.system.Pointer.Default
equals, hashCodeMethods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Constructor Details
-
Buffer
Creates a newNkStyleSelectable.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 by
NkStyleSelectable.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 Details
-
normal
- Returns:
- a
NkStyleItemview of thenormalfield.
-
hover
- Returns:
- a
NkStyleItemview of thehoverfield.
-
pressed
- Returns:
- a
NkStyleItemview of thepressedfield.
-
normal_active
- Returns:
- a
NkStyleItemview of thenormal_activefield.
-
hover_active
- Returns:
- a
NkStyleItemview of thehover_activefield.
-
pressed_active
- Returns:
- a
NkStyleItemview of thepressed_activefield.
-
text_normal
- Returns:
- a
NkColorview of thetext_normalfield.
-
text_hover
- Returns:
- a
NkColorview of thetext_hoverfield.
-
text_pressed
- Returns:
- a
NkColorview of thetext_pressedfield.
-
text_normal_active
- Returns:
- a
NkColorview of thetext_normal_activefield.
-
text_hover_active
- Returns:
- a
NkColorview of thetext_hover_activefield.
-
text_pressed_active
- Returns:
- a
NkColorview of thetext_pressed_activefield.
-
text_background
- Returns:
- a
NkColorview of thetext_backgroundfield.
-
text_alignment
public int text_alignment()- Returns:
- the value of the
text_alignmentfield.
-
rounding
public float rounding()- Returns:
- the value of the
roundingfield.
-
padding
- Returns:
- a
NkVec2view of thepaddingfield.
-
touch_padding
- Returns:
- a
NkVec2view of thetouch_paddingfield.
-
image_padding
- Returns:
- a
NkVec2view of theimage_paddingfield.
-
color_factor
public float color_factor()- Returns:
- the value of the
color_factorfield.
-
disabled_factor
public float disabled_factor()- Returns:
- the value of the
disabled_factorfield.
-
userdata
- Returns:
- a
NkHandleview of theuserdatafield.
-
draw_begin
- Returns:
- the value of the
draw_beginfield.
-
draw_end
- Returns:
- the value of the
draw_endfield.
-
normal
Copies the specifiedNkStyleItemto thenormalfield. -
normal
Passes thenormalfield to the specifiedConsumer. -
hover
Copies the specifiedNkStyleItemto thehoverfield. -
hover
Passes thehoverfield to the specifiedConsumer. -
pressed
Copies the specifiedNkStyleItemto thepressedfield. -
pressed
Passes thepressedfield to the specifiedConsumer. -
normal_active
Copies the specifiedNkStyleItemto thenormal_activefield. -
normal_active
Passes thenormal_activefield to the specifiedConsumer. -
hover_active
Copies the specifiedNkStyleItemto thehover_activefield. -
hover_active
Passes thehover_activefield to the specifiedConsumer. -
pressed_active
Copies the specifiedNkStyleItemto thepressed_activefield. -
pressed_active
Passes thepressed_activefield to the specifiedConsumer. -
text_normal
Copies the specifiedNkColorto thetext_normalfield. -
text_normal
Passes thetext_normalfield to the specifiedConsumer. -
text_hover
Copies the specifiedNkColorto thetext_hoverfield. -
text_hover
Passes thetext_hoverfield to the specifiedConsumer. -
text_pressed
Copies the specifiedNkColorto thetext_pressedfield. -
text_pressed
Passes thetext_pressedfield to the specifiedConsumer. -
text_normal_active
Copies the specifiedNkColorto thetext_normal_activefield. -
text_normal_active
Passes thetext_normal_activefield to the specifiedConsumer. -
text_hover_active
Copies the specifiedNkColorto thetext_hover_activefield. -
text_hover_active
Passes thetext_hover_activefield to the specifiedConsumer. -
text_pressed_active
Copies the specifiedNkColorto thetext_pressed_activefield. -
text_pressed_active
Passes thetext_pressed_activefield to the specifiedConsumer. -
text_background
Copies the specifiedNkColorto thetext_backgroundfield. -
text_background
Passes thetext_backgroundfield to the specifiedConsumer. -
text_alignment
Sets the specified value to thetext_alignmentfield. -
rounding
Sets the specified value to theroundingfield. -
padding
Copies the specifiedNkVec2to thepaddingfield. -
padding
Passes thepaddingfield to the specifiedConsumer. -
touch_padding
Copies the specifiedNkVec2to thetouch_paddingfield. -
touch_padding
Passes thetouch_paddingfield to the specifiedConsumer. -
image_padding
Copies the specifiedNkVec2to theimage_paddingfield. -
image_padding
Passes theimage_paddingfield to the specifiedConsumer. -
color_factor
Sets the specified value to thecolor_factorfield. -
disabled_factor
Sets the specified value to thedisabled_factorfield. -
userdata
Copies the specifiedNkHandleto theuserdatafield. -
userdata
Passes theuserdatafield to the specifiedConsumer. -
draw_begin
Sets the specified value to thedraw_beginfield. -
draw_end
Sets the specified value to thedraw_endfield.
-