Package org.lwjgl.nuklear
Class NkStyleWindow.Buffer
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.CustomBuffer<SELF>
-
- org.lwjgl.system.StructBuffer<NkStyleWindow,NkStyleWindow.Buffer>
-
- org.lwjgl.nuklear.NkStyleWindow.Buffer
-
- All Implemented Interfaces:
java.lang.AutoCloseable
,java.lang.Iterable<NkStyleWindow>
,org.lwjgl.system.NativeResource
,org.lwjgl.system.Pointer
- Enclosing class:
- NkStyleWindow
public static class NkStyleWindow.Buffer extends org.lwjgl.system.StructBuffer<NkStyleWindow,NkStyleWindow.Buffer> implements org.lwjgl.system.NativeResource
An array ofNkStyleWindow
structs.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NkColor
background()
Returns aNkColor
view of thebackground
field.NkStyleWindow.Buffer
background(java.util.function.Consumer<NkColor> consumer)
Passes thebackground
field to the specifiedConsumer
.NkStyleWindow.Buffer
background(NkColor value)
Copies the specifiedNkColor
to thebackground
field.float
border()
Returns the value of theborder
field.NkStyleWindow.Buffer
border(float value)
Sets the specified value to theborder
field.NkColor
border_color()
Returns aNkColor
view of theborder_color
field.NkStyleWindow.Buffer
border_color(java.util.function.Consumer<NkColor> consumer)
Passes theborder_color
field to the specifiedConsumer
.NkStyleWindow.Buffer
border_color(NkColor value)
Copies the specifiedNkColor
to theborder_color
field.float
combo_border()
Returns the value of thecombo_border
field.NkStyleWindow.Buffer
combo_border(float value)
Sets the specified value to thecombo_border
field.NkColor
combo_border_color()
Returns aNkColor
view of thecombo_border_color
field.NkStyleWindow.Buffer
combo_border_color(java.util.function.Consumer<NkColor> consumer)
Passes thecombo_border_color
field to the specifiedConsumer
.NkStyleWindow.Buffer
combo_border_color(NkColor value)
Copies the specifiedNkColor
to thecombo_border_color
field.NkVec2
combo_padding()
Returns aNkVec2
view of thecombo_padding
field.NkStyleWindow.Buffer
combo_padding(java.util.function.Consumer<NkVec2> consumer)
Passes thecombo_padding
field to the specifiedConsumer
.NkStyleWindow.Buffer
combo_padding(NkVec2 value)
Copies the specifiedNkVec2
to thecombo_padding
field.float
contextual_border()
Returns the value of thecontextual_border
field.NkStyleWindow.Buffer
contextual_border(float value)
Sets the specified value to thecontextual_border
field.NkColor
contextual_border_color()
Returns aNkColor
view of thecontextual_border_color
field.NkStyleWindow.Buffer
contextual_border_color(java.util.function.Consumer<NkColor> consumer)
Passes thecontextual_border_color
field to the specifiedConsumer
.NkStyleWindow.Buffer
contextual_border_color(NkColor value)
Copies the specifiedNkColor
to thecontextual_border_color
field.NkVec2
contextual_padding()
Returns aNkVec2
view of thecontextual_padding
field.NkStyleWindow.Buffer
contextual_padding(java.util.function.Consumer<NkVec2> consumer)
Passes thecontextual_padding
field to the specifiedConsumer
.NkStyleWindow.Buffer
contextual_padding(NkVec2 value)
Copies the specifiedNkVec2
to thecontextual_padding
field.NkStyleItem
fixed_background()
Returns aNkStyleItem
view of thefixed_background
field.NkStyleWindow.Buffer
fixed_background(java.util.function.Consumer<NkStyleItem> consumer)
Passes thefixed_background
field to the specifiedConsumer
.NkStyleWindow.Buffer
fixed_background(NkStyleItem value)
Copies the specifiedNkStyleItem
to thefixed_background
field.float
group_border()
Returns the value of thegroup_border
field.NkStyleWindow.Buffer
group_border(float value)
Sets the specified value to thegroup_border
field.NkColor
group_border_color()
Returns aNkColor
view of thegroup_border_color
field.NkStyleWindow.Buffer
group_border_color(java.util.function.Consumer<NkColor> consumer)
Passes thegroup_border_color
field to the specifiedConsumer
.NkStyleWindow.Buffer
group_border_color(NkColor value)
Copies the specifiedNkColor
to thegroup_border_color
field.NkVec2
group_padding()
Returns aNkVec2
view of thegroup_padding
field.NkStyleWindow.Buffer
group_padding(java.util.function.Consumer<NkVec2> consumer)
Passes thegroup_padding
field to the specifiedConsumer
.NkStyleWindow.Buffer
group_padding(NkVec2 value)
Copies the specifiedNkVec2
to thegroup_padding
field.NkStyleWindowHeader
header()
Returns aNkStyleWindowHeader
view of theheader
field.NkStyleWindow.Buffer
header(java.util.function.Consumer<NkStyleWindowHeader> consumer)
Passes theheader
field to the specifiedConsumer
.NkStyleWindow.Buffer
header(NkStyleWindowHeader value)
Copies the specifiedNkStyleWindowHeader
to theheader
field.float
menu_border()
Returns the value of themenu_border
field.NkStyleWindow.Buffer
menu_border(float value)
Sets the specified value to themenu_border
field.NkColor
menu_border_color()
Returns aNkColor
view of themenu_border_color
field.NkStyleWindow.Buffer
menu_border_color(java.util.function.Consumer<NkColor> consumer)
Passes themenu_border_color
field to the specifiedConsumer
.NkStyleWindow.Buffer
menu_border_color(NkColor value)
Copies the specifiedNkColor
to themenu_border_color
field.NkVec2
menu_padding()
Returns aNkVec2
view of themenu_padding
field.NkStyleWindow.Buffer
menu_padding(java.util.function.Consumer<NkVec2> consumer)
Passes themenu_padding
field to the specifiedConsumer
.NkStyleWindow.Buffer
menu_padding(NkVec2 value)
Copies the specifiedNkVec2
to themenu_padding
field.float
min_row_height_padding()
Returns the value of themin_row_height_padding
field.NkStyleWindow.Buffer
min_row_height_padding(float value)
Sets the specified value to themin_row_height_padding
field.NkVec2
min_size()
Returns aNkVec2
view of themin_size
field.NkStyleWindow.Buffer
min_size(java.util.function.Consumer<NkVec2> consumer)
Passes themin_size
field to the specifiedConsumer
.NkStyleWindow.Buffer
min_size(NkVec2 value)
Copies the specifiedNkVec2
to themin_size
field.NkVec2
padding()
Returns aNkVec2
view of thepadding
field.NkStyleWindow.Buffer
padding(java.util.function.Consumer<NkVec2> consumer)
Passes thepadding
field to the specifiedConsumer
.NkStyleWindow.Buffer
padding(NkVec2 value)
Copies the specifiedNkVec2
to thepadding
field.float
popup_border()
Returns the value of thepopup_border
field.NkStyleWindow.Buffer
popup_border(float value)
Sets the specified value to thepopup_border
field.NkColor
popup_border_color()
Returns aNkColor
view of thepopup_border_color
field.NkStyleWindow.Buffer
popup_border_color(java.util.function.Consumer<NkColor> consumer)
Passes thepopup_border_color
field to the specifiedConsumer
.NkStyleWindow.Buffer
popup_border_color(NkColor value)
Copies the specifiedNkColor
to thepopup_border_color
field.NkVec2
popup_padding()
Returns aNkVec2
view of thepopup_padding
field.NkStyleWindow.Buffer
popup_padding(java.util.function.Consumer<NkVec2> consumer)
Passes thepopup_padding
field to the specifiedConsumer
.NkStyleWindow.Buffer
popup_padding(NkVec2 value)
Copies the specifiedNkVec2
to thepopup_padding
field.float
rounding()
Returns the value of therounding
field.NkStyleWindow.Buffer
rounding(float value)
Sets the specified value to therounding
field.NkStyleItem
scaler()
Returns aNkStyleItem
view of thescaler
field.NkStyleWindow.Buffer
scaler(java.util.function.Consumer<NkStyleItem> consumer)
Passes thescaler
field to the specifiedConsumer
.NkStyleWindow.Buffer
scaler(NkStyleItem value)
Copies the specifiedNkStyleItem
to thescaler
field.NkVec2
scrollbar_size()
Returns aNkVec2
view of thescrollbar_size
field.NkStyleWindow.Buffer
scrollbar_size(java.util.function.Consumer<NkVec2> consumer)
Passes thescrollbar_size
field to the specifiedConsumer
.NkStyleWindow.Buffer
scrollbar_size(NkVec2 value)
Copies the specifiedNkVec2
to thescrollbar_size
field.NkVec2
spacing()
Returns aNkVec2
view of thespacing
field.NkStyleWindow.Buffer
spacing(java.util.function.Consumer<NkVec2> consumer)
Passes thespacing
field to the specifiedConsumer
.NkStyleWindow.Buffer
spacing(NkVec2 value)
Copies the specifiedNkVec2
to thespacing
field.float
tooltip_border()
Returns the value of thetooltip_border
field.NkStyleWindow.Buffer
tooltip_border(float value)
Sets the specified value to thetooltip_border
field.NkColor
tooltip_border_color()
Returns aNkColor
view of thetooltip_border_color
field.NkStyleWindow.Buffer
tooltip_border_color(java.util.function.Consumer<NkColor> consumer)
Passes thetooltip_border_color
field to the specifiedConsumer
.NkStyleWindow.Buffer
tooltip_border_color(NkColor value)
Copies the specifiedNkColor
to thetooltip_border_color
field.NkVec2
tooltip_padding()
Returns aNkVec2
view of thetooltip_padding
field.NkStyleWindow.Buffer
tooltip_padding(java.util.function.Consumer<NkVec2> consumer)
Passes thetooltip_padding
field to the specifiedConsumer
.NkStyleWindow.Buffer
tooltip_padding(NkVec2 value)
Copies the specifiedNkVec2
to thetooltip_padding
field.
-
-
-
Constructor Detail
-
Buffer
public Buffer(java.nio.ByteBuffer container)
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 byNkStyleWindow.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
-
header
public NkStyleWindowHeader header()
Returns aNkStyleWindowHeader
view of theheader
field.
-
fixed_background
public NkStyleItem fixed_background()
Returns aNkStyleItem
view of thefixed_background
field.
-
popup_border_color
public NkColor popup_border_color()
Returns aNkColor
view of thepopup_border_color
field.
-
combo_border_color
public NkColor combo_border_color()
Returns aNkColor
view of thecombo_border_color
field.
-
contextual_border_color
public NkColor contextual_border_color()
Returns aNkColor
view of thecontextual_border_color
field.
-
menu_border_color
public NkColor menu_border_color()
Returns aNkColor
view of themenu_border_color
field.
-
group_border_color
public NkColor group_border_color()
Returns aNkColor
view of thegroup_border_color
field.
-
tooltip_border_color
public NkColor tooltip_border_color()
Returns aNkColor
view of thetooltip_border_color
field.
-
scaler
public NkStyleItem scaler()
Returns aNkStyleItem
view of thescaler
field.
-
border
public float border()
Returns the value of theborder
field.
-
combo_border
public float combo_border()
Returns the value of thecombo_border
field.
-
contextual_border
public float contextual_border()
Returns the value of thecontextual_border
field.
-
menu_border
public float menu_border()
Returns the value of themenu_border
field.
-
group_border
public float group_border()
Returns the value of thegroup_border
field.
-
tooltip_border
public float tooltip_border()
Returns the value of thetooltip_border
field.
-
popup_border
public float popup_border()
Returns the value of thepopup_border
field.
-
min_row_height_padding
public float min_row_height_padding()
Returns the value of themin_row_height_padding
field.
-
rounding
public float rounding()
Returns the value of therounding
field.
-
contextual_padding
public NkVec2 contextual_padding()
Returns aNkVec2
view of thecontextual_padding
field.
-
header
public NkStyleWindow.Buffer header(NkStyleWindowHeader value)
Copies the specifiedNkStyleWindowHeader
to theheader
field.
-
header
public NkStyleWindow.Buffer header(java.util.function.Consumer<NkStyleWindowHeader> consumer)
Passes theheader
field to the specifiedConsumer
.
-
fixed_background
public NkStyleWindow.Buffer fixed_background(NkStyleItem value)
Copies the specifiedNkStyleItem
to thefixed_background
field.
-
fixed_background
public NkStyleWindow.Buffer fixed_background(java.util.function.Consumer<NkStyleItem> consumer)
Passes thefixed_background
field to the specifiedConsumer
.
-
background
public NkStyleWindow.Buffer background(NkColor value)
Copies the specifiedNkColor
to thebackground
field.
-
background
public NkStyleWindow.Buffer background(java.util.function.Consumer<NkColor> consumer)
Passes thebackground
field to the specifiedConsumer
.
-
border_color
public NkStyleWindow.Buffer border_color(NkColor value)
Copies the specifiedNkColor
to theborder_color
field.
-
border_color
public NkStyleWindow.Buffer border_color(java.util.function.Consumer<NkColor> consumer)
Passes theborder_color
field to the specifiedConsumer
.
-
popup_border_color
public NkStyleWindow.Buffer popup_border_color(NkColor value)
Copies the specifiedNkColor
to thepopup_border_color
field.
-
popup_border_color
public NkStyleWindow.Buffer popup_border_color(java.util.function.Consumer<NkColor> consumer)
Passes thepopup_border_color
field to the specifiedConsumer
.
-
combo_border_color
public NkStyleWindow.Buffer combo_border_color(NkColor value)
Copies the specifiedNkColor
to thecombo_border_color
field.
-
combo_border_color
public NkStyleWindow.Buffer combo_border_color(java.util.function.Consumer<NkColor> consumer)
Passes thecombo_border_color
field to the specifiedConsumer
.
-
contextual_border_color
public NkStyleWindow.Buffer contextual_border_color(NkColor value)
Copies the specifiedNkColor
to thecontextual_border_color
field.
-
contextual_border_color
public NkStyleWindow.Buffer contextual_border_color(java.util.function.Consumer<NkColor> consumer)
Passes thecontextual_border_color
field to the specifiedConsumer
.
-
menu_border_color
public NkStyleWindow.Buffer menu_border_color(NkColor value)
Copies the specifiedNkColor
to themenu_border_color
field.
-
menu_border_color
public NkStyleWindow.Buffer menu_border_color(java.util.function.Consumer<NkColor> consumer)
Passes themenu_border_color
field to the specifiedConsumer
.
-
group_border_color
public NkStyleWindow.Buffer group_border_color(NkColor value)
Copies the specifiedNkColor
to thegroup_border_color
field.
-
group_border_color
public NkStyleWindow.Buffer group_border_color(java.util.function.Consumer<NkColor> consumer)
Passes thegroup_border_color
field to the specifiedConsumer
.
-
tooltip_border_color
public NkStyleWindow.Buffer tooltip_border_color(NkColor value)
Copies the specifiedNkColor
to thetooltip_border_color
field.
-
tooltip_border_color
public NkStyleWindow.Buffer tooltip_border_color(java.util.function.Consumer<NkColor> consumer)
Passes thetooltip_border_color
field to the specifiedConsumer
.
-
scaler
public NkStyleWindow.Buffer scaler(NkStyleItem value)
Copies the specifiedNkStyleItem
to thescaler
field.
-
scaler
public NkStyleWindow.Buffer scaler(java.util.function.Consumer<NkStyleItem> consumer)
Passes thescaler
field to the specifiedConsumer
.
-
border
public NkStyleWindow.Buffer border(float value)
Sets the specified value to theborder
field.
-
combo_border
public NkStyleWindow.Buffer combo_border(float value)
Sets the specified value to thecombo_border
field.
-
contextual_border
public NkStyleWindow.Buffer contextual_border(float value)
Sets the specified value to thecontextual_border
field.
-
menu_border
public NkStyleWindow.Buffer menu_border(float value)
Sets the specified value to themenu_border
field.
-
group_border
public NkStyleWindow.Buffer group_border(float value)
Sets the specified value to thegroup_border
field.
-
tooltip_border
public NkStyleWindow.Buffer tooltip_border(float value)
Sets the specified value to thetooltip_border
field.
-
popup_border
public NkStyleWindow.Buffer popup_border(float value)
Sets the specified value to thepopup_border
field.
-
min_row_height_padding
public NkStyleWindow.Buffer min_row_height_padding(float value)
Sets the specified value to themin_row_height_padding
field.
-
rounding
public NkStyleWindow.Buffer rounding(float value)
Sets the specified value to therounding
field.
-
spacing
public NkStyleWindow.Buffer spacing(NkVec2 value)
Copies the specifiedNkVec2
to thespacing
field.
-
spacing
public NkStyleWindow.Buffer spacing(java.util.function.Consumer<NkVec2> consumer)
Passes thespacing
field to the specifiedConsumer
.
-
scrollbar_size
public NkStyleWindow.Buffer scrollbar_size(NkVec2 value)
Copies the specifiedNkVec2
to thescrollbar_size
field.
-
scrollbar_size
public NkStyleWindow.Buffer scrollbar_size(java.util.function.Consumer<NkVec2> consumer)
Passes thescrollbar_size
field to the specifiedConsumer
.
-
min_size
public NkStyleWindow.Buffer min_size(NkVec2 value)
Copies the specifiedNkVec2
to themin_size
field.
-
min_size
public NkStyleWindow.Buffer min_size(java.util.function.Consumer<NkVec2> consumer)
Passes themin_size
field to the specifiedConsumer
.
-
padding
public NkStyleWindow.Buffer padding(NkVec2 value)
Copies the specifiedNkVec2
to thepadding
field.
-
padding
public NkStyleWindow.Buffer padding(java.util.function.Consumer<NkVec2> consumer)
Passes thepadding
field to the specifiedConsumer
.
-
group_padding
public NkStyleWindow.Buffer group_padding(NkVec2 value)
Copies the specifiedNkVec2
to thegroup_padding
field.
-
group_padding
public NkStyleWindow.Buffer group_padding(java.util.function.Consumer<NkVec2> consumer)
Passes thegroup_padding
field to the specifiedConsumer
.
-
popup_padding
public NkStyleWindow.Buffer popup_padding(NkVec2 value)
Copies the specifiedNkVec2
to thepopup_padding
field.
-
popup_padding
public NkStyleWindow.Buffer popup_padding(java.util.function.Consumer<NkVec2> consumer)
Passes thepopup_padding
field to the specifiedConsumer
.
-
combo_padding
public NkStyleWindow.Buffer combo_padding(NkVec2 value)
Copies the specifiedNkVec2
to thecombo_padding
field.
-
combo_padding
public NkStyleWindow.Buffer combo_padding(java.util.function.Consumer<NkVec2> consumer)
Passes thecombo_padding
field to the specifiedConsumer
.
-
contextual_padding
public NkStyleWindow.Buffer contextual_padding(NkVec2 value)
Copies the specifiedNkVec2
to thecontextual_padding
field.
-
contextual_padding
public NkStyleWindow.Buffer contextual_padding(java.util.function.Consumer<NkVec2> consumer)
Passes thecontextual_padding
field to the specifiedConsumer
.
-
menu_padding
public NkStyleWindow.Buffer menu_padding(NkVec2 value)
Copies the specifiedNkVec2
to themenu_padding
field.
-
menu_padding
public NkStyleWindow.Buffer menu_padding(java.util.function.Consumer<NkVec2> consumer)
Passes themenu_padding
field to the specifiedConsumer
.
-
tooltip_padding
public NkStyleWindow.Buffer tooltip_padding(NkVec2 value)
Copies the specifiedNkVec2
to thetooltip_padding
field.
-
tooltip_padding
public NkStyleWindow.Buffer tooltip_padding(java.util.function.Consumer<NkVec2> consumer)
Passes thetooltip_padding
field to the specifiedConsumer
.
-
-