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.Buffer
instance backed by the specified container. -
Method Summary
Modifier and TypeMethodDescriptionbackground
(Consumer<NkColor> consumer) Passes thebackground
field to the specifiedConsumer
.background
(NkColor value) Copies the specifiedNkColor
to thebackground
field.float
border()
border
(float value) Sets the specified value to theborder
field.border_color
(Consumer<NkColor> consumer) Passes theborder_color
field to the specifiedConsumer
.border_color
(NkColor value) Copies the specifiedNkColor
to theborder_color
field.float
combo_border
(float value) Sets the specified value to thecombo_border
field.combo_border_color
(Consumer<NkColor> consumer) Passes thecombo_border_color
field to the specifiedConsumer
.combo_border_color
(NkColor value) Copies the specifiedNkColor
to thecombo_border_color
field.combo_padding
(Consumer<NkVec2> consumer) Passes thecombo_padding
field to the specifiedConsumer
.combo_padding
(NkVec2 value) Copies the specifiedNkVec2
to thecombo_padding
field.float
contextual_border
(float value) Sets the specified value to thecontextual_border
field.contextual_border_color
(Consumer<NkColor> consumer) Passes thecontextual_border_color
field to the specifiedConsumer
.contextual_border_color
(NkColor value) Copies the specifiedNkColor
to thecontextual_border_color
field.contextual_padding
(Consumer<NkVec2> consumer) Passes thecontextual_padding
field to the specifiedConsumer
.contextual_padding
(NkVec2 value) Copies the specifiedNkVec2
to thecontextual_padding
field.fixed_background
(Consumer<NkStyleItem> consumer) Passes thefixed_background
field to the specifiedConsumer
.fixed_background
(NkStyleItem value) Copies the specifiedNkStyleItem
to thefixed_background
field.float
group_border
(float value) Sets the specified value to thegroup_border
field.group_border_color
(Consumer<NkColor> consumer) Passes thegroup_border_color
field to the specifiedConsumer
.group_border_color
(NkColor value) Copies the specifiedNkColor
to thegroup_border_color
field.group_padding
(Consumer<NkVec2> consumer) Passes thegroup_padding
field to the specifiedConsumer
.group_padding
(NkVec2 value) Copies the specifiedNkVec2
to thegroup_padding
field.header()
header
(Consumer<NkStyleWindowHeader> consumer) Passes theheader
field to the specifiedConsumer
.header
(NkStyleWindowHeader value) Copies the specifiedNkStyleWindowHeader
to theheader
field.float
menu_border
(float value) Sets the specified value to themenu_border
field.menu_border_color
(Consumer<NkColor> consumer) Passes themenu_border_color
field to the specifiedConsumer
.menu_border_color
(NkColor value) Copies the specifiedNkColor
to themenu_border_color
field.menu_padding
(Consumer<NkVec2> consumer) Passes themenu_padding
field to the specifiedConsumer
.menu_padding
(NkVec2 value) Copies the specifiedNkVec2
to themenu_padding
field.float
min_row_height_padding
(float value) Sets the specified value to themin_row_height_padding
field.min_size()
Passes themin_size
field to the specifiedConsumer
.Copies the specifiedNkVec2
to themin_size
field.padding()
Passes thepadding
field to the specifiedConsumer
.Copies the specifiedNkVec2
to thepadding
field.float
popup_border
(float value) Sets the specified value to thepopup_border
field.popup_border_color
(Consumer<NkColor> consumer) Passes thepopup_border_color
field to the specifiedConsumer
.popup_border_color
(NkColor value) Copies the specifiedNkColor
to thepopup_border_color
field.popup_padding
(Consumer<NkVec2> consumer) Passes thepopup_padding
field to the specifiedConsumer
.popup_padding
(NkVec2 value) Copies the specifiedNkVec2
to thepopup_padding
field.float
rounding()
rounding
(float value) Sets the specified value to therounding
field.scaler()
scaler
(Consumer<NkStyleItem> consumer) Passes thescaler
field to the specifiedConsumer
.scaler
(NkStyleItem value) Copies the specifiedNkStyleItem
to thescaler
field.scrollbar_size
(Consumer<NkVec2> consumer) Passes thescrollbar_size
field to the specifiedConsumer
.scrollbar_size
(NkVec2 value) Copies the specifiedNkVec2
to thescrollbar_size
field.spacing()
Passes thespacing
field to the specifiedConsumer
.Copies the specifiedNkVec2
to thespacing
field.float
tooltip_border
(float value) Sets the specified value to thetooltip_border
field.tooltip_border_color
(Consumer<NkColor> consumer) Passes thetooltip_border_color
field to the specifiedConsumer
.tooltip_border_color
(NkColor value) Copies the specifiedNkColor
to thetooltip_border_color
field.tooltip_padding
(Consumer<NkVec2> consumer) Passes thetooltip_padding
field to the specifiedConsumer
.tooltip_padding
(NkVec2 value) Copies the specifiedNkVec2
to thetooltip_padding
field.Methods inherited from class org.lwjgl.system.StructBuffer
apply, apply, forEach, get, get, get, get, iterator, parallelStream, put, put, sizeof, spliterator, stream
Methods 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, toString
Methods inherited from class org.lwjgl.system.Pointer.Default
equals, hashCode
Methods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Constructor Details
-
Buffer
Creates a newNkStyleWindow.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 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
NkStyleWindowHeader
view of theheader
field.
-
fixed_background
- Returns:
- a
NkStyleItem
view of thefixed_background
field.
-
background
- Returns:
- a
NkColor
view of thebackground
field.
-
border_color
- Returns:
- a
NkColor
view of theborder_color
field.
-
popup_border_color
- Returns:
- a
NkColor
view of thepopup_border_color
field.
-
combo_border_color
- Returns:
- a
NkColor
view of thecombo_border_color
field.
-
contextual_border_color
- Returns:
- a
NkColor
view of thecontextual_border_color
field.
-
group_border_color
- Returns:
- a
NkColor
view of thegroup_border_color
field.
-
tooltip_border_color
- Returns:
- a
NkColor
view of thetooltip_border_color
field.
-
scaler
- Returns:
- a
NkStyleItem
view of thescaler
field.
-
border
public float border()- Returns:
- the value of the
border
field.
-
combo_border
public float combo_border()- Returns:
- the value of the
combo_border
field.
-
contextual_border
public float contextual_border()- Returns:
- the value of the
contextual_border
field.
-
group_border
public float group_border()- Returns:
- the value of the
group_border
field.
-
tooltip_border
public float tooltip_border()- Returns:
- the value of the
tooltip_border
field.
-
popup_border
public float popup_border()- Returns:
- the value of the
popup_border
field.
-
min_row_height_padding
public float min_row_height_padding()- Returns:
- the value of the
min_row_height_padding
field.
-
rounding
public float rounding()- Returns:
- the value of the
rounding
field.
-
spacing
- Returns:
- a
NkVec2
view of thespacing
field.
-
scrollbar_size
- Returns:
- a
NkVec2
view of thescrollbar_size
field.
-
min_size
- Returns:
- a
NkVec2
view of themin_size
field.
-
padding
- Returns:
- a
NkVec2
view of thepadding
field.
-
group_padding
- Returns:
- a
NkVec2
view of thegroup_padding
field.
-
popup_padding
- Returns:
- a
NkVec2
view of thepopup_padding
field.
-
combo_padding
- Returns:
- a
NkVec2
view of thecombo_padding
field.
-
contextual_padding
- Returns:
- a
NkVec2
view of thecontextual_padding
field.
-
tooltip_padding
- Returns:
- a
NkVec2
view of thetooltip_padding
field.
-
header
Copies the specifiedNkStyleWindowHeader
to theheader
field. -
header
Passes theheader
field to the specifiedConsumer
. -
fixed_background
Copies the specifiedNkStyleItem
to thefixed_background
field. -
fixed_background
Passes thefixed_background
field to the specifiedConsumer
. -
background
Copies the specifiedNkColor
to thebackground
field. -
background
Passes thebackground
field to the specifiedConsumer
. -
border_color
Copies the specifiedNkColor
to theborder_color
field. -
border_color
Passes theborder_color
field to the specifiedConsumer
. -
popup_border_color
Copies the specifiedNkColor
to thepopup_border_color
field. -
popup_border_color
Passes thepopup_border_color
field to the specifiedConsumer
. -
combo_border_color
Copies the specifiedNkColor
to thecombo_border_color
field. -
combo_border_color
Passes thecombo_border_color
field to the specifiedConsumer
. -
contextual_border_color
Copies the specifiedNkColor
to thecontextual_border_color
field. -
contextual_border_color
Passes thecontextual_border_color
field to the specifiedConsumer
. -
group_border_color
Copies the specifiedNkColor
to thegroup_border_color
field. -
group_border_color
Passes thegroup_border_color
field to the specifiedConsumer
. -
tooltip_border_color
Copies the specifiedNkColor
to thetooltip_border_color
field. -
tooltip_border_color
Passes thetooltip_border_color
field to the specifiedConsumer
. -
scaler
Copies the specifiedNkStyleItem
to thescaler
field. -
scaler
Passes thescaler
field to the specifiedConsumer
. -
border
Sets the specified value to theborder
field. -
combo_border
Sets the specified value to thecombo_border
field. -
contextual_border
Sets the specified value to thecontextual_border
field. -
group_border
Sets the specified value to thegroup_border
field. -
tooltip_border
Sets the specified value to thetooltip_border
field. -
popup_border
Sets the specified value to thepopup_border
field. -
min_row_height_padding
Sets the specified value to themin_row_height_padding
field. -
rounding
Sets the specified value to therounding
field. -
spacing
Copies the specifiedNkVec2
to thespacing
field. -
spacing
Passes thespacing
field to the specifiedConsumer
. -
scrollbar_size
Copies the specifiedNkVec2
to thescrollbar_size
field. -
scrollbar_size
Passes thescrollbar_size
field to the specifiedConsumer
. -
min_size
Copies the specifiedNkVec2
to themin_size
field. -
min_size
Passes themin_size
field to the specifiedConsumer
. -
padding
Copies the specifiedNkVec2
to thepadding
field. -
padding
Passes thepadding
field to the specifiedConsumer
. -
group_padding
Copies the specifiedNkVec2
to thegroup_padding
field. -
group_padding
Passes thegroup_padding
field to the specifiedConsumer
. -
popup_padding
Copies the specifiedNkVec2
to thepopup_padding
field. -
popup_padding
Passes thepopup_padding
field to the specifiedConsumer
. -
combo_padding
Copies the specifiedNkVec2
to thecombo_padding
field. -
combo_padding
Passes thecombo_padding
field to the specifiedConsumer
. -
contextual_padding
Copies the specifiedNkVec2
to thecontextual_padding
field. -
contextual_padding
Passes thecontextual_padding
field to the specifiedConsumer
. -
tooltip_padding
Copies the specifiedNkVec2
to thetooltip_padding
field. -
tooltip_padding
Passes thetooltip_padding
field to the specifiedConsumer
.
-