Package org.lwjgl.nuklear
Class NkStyleWindow.Buffer
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.CustomBuffer<NkStyleWindow.Buffer>
org.lwjgl.system.StructBuffer<NkStyleWindow,NkStyleWindow.Buffer>
org.lwjgl.nuklear.NkStyleWindow.Buffer
- All Implemented Interfaces:
AutoCloseable,Iterable<NkStyleWindow>,NativeResource,Pointer
- Enclosing class:
NkStyleWindow
public static class NkStyleWindow.Buffer
extends StructBuffer<NkStyleWindow,NkStyleWindow.Buffer>
implements NativeResource
An array of
NkStyleWindow 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 newNkStyleWindow.Bufferinstance backed by the specified container. -
Method Summary
Modifier and TypeMethodDescriptionbackground(Consumer<NkColor> consumer) Passes thebackgroundfield to the specifiedConsumer.background(NkColor value) Copies the specifiedNkColorto thebackgroundfield.floatborder()border(float value) Sets the specified value to theborderfield.border_color(Consumer<NkColor> consumer) Passes theborder_colorfield to the specifiedConsumer.border_color(NkColor value) Copies the specifiedNkColorto theborder_colorfield.floatcombo_border(float value) Sets the specified value to thecombo_borderfield.combo_border_color(Consumer<NkColor> consumer) Passes thecombo_border_colorfield to the specifiedConsumer.combo_border_color(NkColor value) Copies the specifiedNkColorto thecombo_border_colorfield.combo_padding(Consumer<NkVec2> consumer) Passes thecombo_paddingfield to the specifiedConsumer.combo_padding(NkVec2 value) Copies the specifiedNkVec2to thecombo_paddingfield.floatcontextual_border(float value) Sets the specified value to thecontextual_borderfield.contextual_border_color(Consumer<NkColor> consumer) Passes thecontextual_border_colorfield to the specifiedConsumer.contextual_border_color(NkColor value) Copies the specifiedNkColorto thecontextual_border_colorfield.contextual_padding(Consumer<NkVec2> consumer) Passes thecontextual_paddingfield to the specifiedConsumer.contextual_padding(NkVec2 value) Copies the specifiedNkVec2to thecontextual_paddingfield.fixed_background(Consumer<NkStyleItem> consumer) Passes thefixed_backgroundfield to the specifiedConsumer.fixed_background(NkStyleItem value) Copies the specifiedNkStyleItemto thefixed_backgroundfield.floatgroup_border(float value) Sets the specified value to thegroup_borderfield.group_border_color(Consumer<NkColor> consumer) Passes thegroup_border_colorfield to the specifiedConsumer.group_border_color(NkColor value) Copies the specifiedNkColorto thegroup_border_colorfield.group_padding(Consumer<NkVec2> consumer) Passes thegroup_paddingfield to the specifiedConsumer.group_padding(NkVec2 value) Copies the specifiedNkVec2to thegroup_paddingfield.header()header(Consumer<NkStyleWindowHeader> consumer) Passes theheaderfield to the specifiedConsumer.header(NkStyleWindowHeader value) Copies the specifiedNkStyleWindowHeaderto theheaderfield.floatmenu_border(float value) Sets the specified value to themenu_borderfield.menu_border_color(Consumer<NkColor> consumer) Passes themenu_border_colorfield to the specifiedConsumer.menu_border_color(NkColor value) Copies the specifiedNkColorto themenu_border_colorfield.menu_padding(Consumer<NkVec2> consumer) Passes themenu_paddingfield to the specifiedConsumer.menu_padding(NkVec2 value) Copies the specifiedNkVec2to themenu_paddingfield.floatmin_row_height_padding(float value) Sets the specified value to themin_row_height_paddingfield.min_size()Passes themin_sizefield to the specifiedConsumer.Copies the specifiedNkVec2to themin_sizefield.padding()Passes thepaddingfield to the specifiedConsumer.Copies the specifiedNkVec2to thepaddingfield.floatpopup_border(float value) Sets the specified value to thepopup_borderfield.popup_border_color(Consumer<NkColor> consumer) Passes thepopup_border_colorfield to the specifiedConsumer.popup_border_color(NkColor value) Copies the specifiedNkColorto thepopup_border_colorfield.popup_padding(Consumer<NkVec2> consumer) Passes thepopup_paddingfield to the specifiedConsumer.popup_padding(NkVec2 value) Copies the specifiedNkVec2to thepopup_paddingfield.floatrounding()rounding(float value) Sets the specified value to theroundingfield.scaler()scaler(Consumer<NkStyleItem> consumer) Passes thescalerfield to the specifiedConsumer.scaler(NkStyleItem value) Copies the specifiedNkStyleItemto thescalerfield.scrollbar_size(Consumer<NkVec2> consumer) Passes thescrollbar_sizefield to the specifiedConsumer.scrollbar_size(NkVec2 value) Copies the specifiedNkVec2to thescrollbar_sizefield.spacing()Passes thespacingfield to the specifiedConsumer.Copies the specifiedNkVec2to thespacingfield.floattooltip_border(float value) Sets the specified value to thetooltip_borderfield.tooltip_border_color(Consumer<NkColor> consumer) Passes thetooltip_border_colorfield to the specifiedConsumer.tooltip_border_color(NkColor value) Copies the specifiedNkColorto thetooltip_border_colorfield.tooltip_padding(Consumer<NkVec2> consumer) Passes thetooltip_paddingfield to the specifiedConsumer.tooltip_padding(NkVec2 value) Copies the specifiedNkVec2to thetooltip_paddingfield.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 newNkStyleWindow.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
NkStyleWindow.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
-
header
- Returns:
- a
NkStyleWindowHeaderview of theheaderfield.
-
fixed_background
- Returns:
- a
NkStyleItemview of thefixed_backgroundfield.
-
background
- Returns:
- a
NkColorview of thebackgroundfield.
-
border_color
- Returns:
- a
NkColorview of theborder_colorfield.
-
popup_border_color
- Returns:
- a
NkColorview of thepopup_border_colorfield.
-
combo_border_color
- Returns:
- a
NkColorview of thecombo_border_colorfield.
-
contextual_border_color
- Returns:
- a
NkColorview of thecontextual_border_colorfield.
-
group_border_color
- Returns:
- a
NkColorview of thegroup_border_colorfield.
-
tooltip_border_color
- Returns:
- a
NkColorview of thetooltip_border_colorfield.
-
scaler
- Returns:
- a
NkStyleItemview of thescalerfield.
-
border
public float border()- Returns:
- the value of the
borderfield.
-
combo_border
public float combo_border()- Returns:
- the value of the
combo_borderfield.
-
contextual_border
public float contextual_border()- Returns:
- the value of the
contextual_borderfield.
-
group_border
public float group_border()- Returns:
- the value of the
group_borderfield.
-
tooltip_border
public float tooltip_border()- Returns:
- the value of the
tooltip_borderfield.
-
popup_border
public float popup_border()- Returns:
- the value of the
popup_borderfield.
-
min_row_height_padding
public float min_row_height_padding()- Returns:
- the value of the
min_row_height_paddingfield.
-
rounding
public float rounding()- Returns:
- the value of the
roundingfield.
-
spacing
- Returns:
- a
NkVec2view of thespacingfield.
-
scrollbar_size
- Returns:
- a
NkVec2view of thescrollbar_sizefield.
-
min_size
- Returns:
- a
NkVec2view of themin_sizefield.
-
padding
- Returns:
- a
NkVec2view of thepaddingfield.
-
group_padding
- Returns:
- a
NkVec2view of thegroup_paddingfield.
-
popup_padding
- Returns:
- a
NkVec2view of thepopup_paddingfield.
-
combo_padding
- Returns:
- a
NkVec2view of thecombo_paddingfield.
-
contextual_padding
- Returns:
- a
NkVec2view of thecontextual_paddingfield.
-
tooltip_padding
- Returns:
- a
NkVec2view of thetooltip_paddingfield.
-
header
Copies the specifiedNkStyleWindowHeaderto theheaderfield. -
header
Passes theheaderfield to the specifiedConsumer. -
fixed_background
Copies the specifiedNkStyleItemto thefixed_backgroundfield. -
fixed_background
Passes thefixed_backgroundfield to the specifiedConsumer. -
background
Copies the specifiedNkColorto thebackgroundfield. -
background
Passes thebackgroundfield to the specifiedConsumer. -
border_color
Copies the specifiedNkColorto theborder_colorfield. -
border_color
Passes theborder_colorfield to the specifiedConsumer. -
popup_border_color
Copies the specifiedNkColorto thepopup_border_colorfield. -
popup_border_color
Passes thepopup_border_colorfield to the specifiedConsumer. -
combo_border_color
Copies the specifiedNkColorto thecombo_border_colorfield. -
combo_border_color
Passes thecombo_border_colorfield to the specifiedConsumer. -
contextual_border_color
Copies the specifiedNkColorto thecontextual_border_colorfield. -
contextual_border_color
Passes thecontextual_border_colorfield to the specifiedConsumer. -
group_border_color
Copies the specifiedNkColorto thegroup_border_colorfield. -
group_border_color
Passes thegroup_border_colorfield to the specifiedConsumer. -
tooltip_border_color
Copies the specifiedNkColorto thetooltip_border_colorfield. -
tooltip_border_color
Passes thetooltip_border_colorfield to the specifiedConsumer. -
scaler
Copies the specifiedNkStyleItemto thescalerfield. -
scaler
Passes thescalerfield to the specifiedConsumer. -
border
Sets the specified value to theborderfield. -
combo_border
Sets the specified value to thecombo_borderfield. -
contextual_border
Sets the specified value to thecontextual_borderfield. -
group_border
Sets the specified value to thegroup_borderfield. -
tooltip_border
Sets the specified value to thetooltip_borderfield. -
popup_border
Sets the specified value to thepopup_borderfield. -
min_row_height_padding
Sets the specified value to themin_row_height_paddingfield. -
rounding
Sets the specified value to theroundingfield. -
spacing
Copies the specifiedNkVec2to thespacingfield. -
spacing
Passes thespacingfield to the specifiedConsumer. -
scrollbar_size
Copies the specifiedNkVec2to thescrollbar_sizefield. -
scrollbar_size
Passes thescrollbar_sizefield to the specifiedConsumer. -
min_size
Copies the specifiedNkVec2to themin_sizefield. -
min_size
Passes themin_sizefield to the specifiedConsumer. -
padding
Copies the specifiedNkVec2to thepaddingfield. -
padding
Passes thepaddingfield to the specifiedConsumer. -
group_padding
Copies the specifiedNkVec2to thegroup_paddingfield. -
group_padding
Passes thegroup_paddingfield to the specifiedConsumer. -
popup_padding
Copies the specifiedNkVec2to thepopup_paddingfield. -
popup_padding
Passes thepopup_paddingfield to the specifiedConsumer. -
combo_padding
Copies the specifiedNkVec2to thecombo_paddingfield. -
combo_padding
Passes thecombo_paddingfield to the specifiedConsumer. -
contextual_padding
Copies the specifiedNkVec2to thecontextual_paddingfield. -
contextual_padding
Passes thecontextual_paddingfield to the specifiedConsumer. -
tooltip_padding
Copies the specifiedNkVec2to thetooltip_paddingfield. -
tooltip_padding
Passes thetooltip_paddingfield to the specifiedConsumer.
-