Package org.lwjgl.nuklear
Class NkStyleWindowHeader.Buffer
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.CustomBuffer<SELF>
-
- org.lwjgl.system.StructBuffer<NkStyleWindowHeader,NkStyleWindowHeader.Buffer>
-
- org.lwjgl.nuklear.NkStyleWindowHeader.Buffer
-
- All Implemented Interfaces:
java.lang.AutoCloseable
,java.lang.Iterable<NkStyleWindowHeader>
,org.lwjgl.system.NativeResource
,org.lwjgl.system.Pointer
- Enclosing class:
- NkStyleWindowHeader
public static class NkStyleWindowHeader.Buffer extends org.lwjgl.system.StructBuffer<NkStyleWindowHeader,NkStyleWindowHeader.Buffer> implements org.lwjgl.system.NativeResource
An array ofNkStyleWindowHeader
structs.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NkStyleItem
active()
Returns aNkStyleItem
view of theactive
field.NkStyleWindowHeader.Buffer
active(java.util.function.Consumer<NkStyleItem> consumer)
Passes theactive
field to the specifiedConsumer
.NkStyleWindowHeader.Buffer
active(NkStyleItem value)
Copies the specifiedNkStyleItem
to theactive
field.int
align()
Returns the value of thealign
field.NkStyleWindowHeader.Buffer
align(int value)
Sets the specified value to thealign
field.NkStyleButton
close_button()
Returns aNkStyleButton
view of theclose_button
field.NkStyleWindowHeader.Buffer
close_button(java.util.function.Consumer<NkStyleButton> consumer)
Passes theclose_button
field to the specifiedConsumer
.NkStyleWindowHeader.Buffer
close_button(NkStyleButton value)
Copies the specifiedNkStyleButton
to theclose_button
field.int
close_symbol()
Returns the value of theclose_symbol
field.NkStyleWindowHeader.Buffer
close_symbol(int value)
Sets the specified value to theclose_symbol
field.NkStyleItem
hover()
Returns aNkStyleItem
view of thehover
field.NkStyleWindowHeader.Buffer
hover(java.util.function.Consumer<NkStyleItem> consumer)
Passes thehover
field to the specifiedConsumer
.NkStyleWindowHeader.Buffer
hover(NkStyleItem value)
Copies the specifiedNkStyleItem
to thehover
field.NkColor
label_active()
Returns aNkColor
view of thelabel_active
field.NkStyleWindowHeader.Buffer
label_active(java.util.function.Consumer<NkColor> consumer)
Passes thelabel_active
field to the specifiedConsumer
.NkStyleWindowHeader.Buffer
label_active(NkColor value)
Copies the specifiedNkColor
to thelabel_active
field.NkColor
label_hover()
Returns aNkColor
view of thelabel_hover
field.NkStyleWindowHeader.Buffer
label_hover(java.util.function.Consumer<NkColor> consumer)
Passes thelabel_hover
field to the specifiedConsumer
.NkStyleWindowHeader.Buffer
label_hover(NkColor value)
Copies the specifiedNkColor
to thelabel_hover
field.NkColor
label_normal()
Returns aNkColor
view of thelabel_normal
field.NkStyleWindowHeader.Buffer
label_normal(java.util.function.Consumer<NkColor> consumer)
Passes thelabel_normal
field to the specifiedConsumer
.NkStyleWindowHeader.Buffer
label_normal(NkColor value)
Copies the specifiedNkColor
to thelabel_normal
field.NkVec2
label_padding()
Returns aNkVec2
view of thelabel_padding
field.NkStyleWindowHeader.Buffer
label_padding(java.util.function.Consumer<NkVec2> consumer)
Passes thelabel_padding
field to the specifiedConsumer
.NkStyleWindowHeader.Buffer
label_padding(NkVec2 value)
Copies the specifiedNkVec2
to thelabel_padding
field.int
maximize_symbol()
Returns the value of themaximize_symbol
field.NkStyleWindowHeader.Buffer
maximize_symbol(int value)
Sets the specified value to themaximize_symbol
field.NkStyleButton
minimize_button()
Returns aNkStyleButton
view of theminimize_button
field.NkStyleWindowHeader.Buffer
minimize_button(java.util.function.Consumer<NkStyleButton> consumer)
Passes theminimize_button
field to the specifiedConsumer
.NkStyleWindowHeader.Buffer
minimize_button(NkStyleButton value)
Copies the specifiedNkStyleButton
to theminimize_button
field.int
minimize_symbol()
Returns the value of theminimize_symbol
field.NkStyleWindowHeader.Buffer
minimize_symbol(int value)
Sets the specified value to theminimize_symbol
field.NkStyleItem
normal()
Returns aNkStyleItem
view of thenormal
field.NkStyleWindowHeader.Buffer
normal(java.util.function.Consumer<NkStyleItem> consumer)
Passes thenormal
field to the specifiedConsumer
.NkStyleWindowHeader.Buffer
normal(NkStyleItem value)
Copies the specifiedNkStyleItem
to thenormal
field.NkVec2
padding()
Returns aNkVec2
view of thepadding
field.NkStyleWindowHeader.Buffer
padding(java.util.function.Consumer<NkVec2> consumer)
Passes thepadding
field to the specifiedConsumer
.NkStyleWindowHeader.Buffer
padding(NkVec2 value)
Copies the specifiedNkVec2
to thepadding
field.NkVec2
spacing()
Returns aNkVec2
view of thespacing
field.NkStyleWindowHeader.Buffer
spacing(java.util.function.Consumer<NkVec2> consumer)
Passes thespacing
field to the specifiedConsumer
.NkStyleWindowHeader.Buffer
spacing(NkVec2 value)
Copies the specifiedNkVec2
to thespacing
field.
-
-
-
Constructor Detail
-
Buffer
public Buffer(java.nio.ByteBuffer container)
Creates a newNkStyleWindowHeader.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 byNkStyleWindowHeader.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.
-
active
public NkStyleItem active()
Returns aNkStyleItem
view of theactive
field.
-
close_button
public NkStyleButton close_button()
Returns aNkStyleButton
view of theclose_button
field.
-
minimize_button
public NkStyleButton minimize_button()
Returns aNkStyleButton
view of theminimize_button
field.
-
close_symbol
public int close_symbol()
Returns the value of theclose_symbol
field.
-
minimize_symbol
public int minimize_symbol()
Returns the value of theminimize_symbol
field.
-
maximize_symbol
public int maximize_symbol()
Returns the value of themaximize_symbol
field.
-
align
public int align()
Returns the value of thealign
field.
-
normal
public NkStyleWindowHeader.Buffer normal(NkStyleItem value)
Copies the specifiedNkStyleItem
to thenormal
field.
-
normal
public NkStyleWindowHeader.Buffer normal(java.util.function.Consumer<NkStyleItem> consumer)
Passes thenormal
field to the specifiedConsumer
.
-
hover
public NkStyleWindowHeader.Buffer hover(NkStyleItem value)
Copies the specifiedNkStyleItem
to thehover
field.
-
hover
public NkStyleWindowHeader.Buffer hover(java.util.function.Consumer<NkStyleItem> consumer)
Passes thehover
field to the specifiedConsumer
.
-
active
public NkStyleWindowHeader.Buffer active(NkStyleItem value)
Copies the specifiedNkStyleItem
to theactive
field.
-
active
public NkStyleWindowHeader.Buffer active(java.util.function.Consumer<NkStyleItem> consumer)
Passes theactive
field to the specifiedConsumer
.
-
close_button
public NkStyleWindowHeader.Buffer close_button(NkStyleButton value)
Copies the specifiedNkStyleButton
to theclose_button
field.
-
close_button
public NkStyleWindowHeader.Buffer close_button(java.util.function.Consumer<NkStyleButton> consumer)
Passes theclose_button
field to the specifiedConsumer
.
-
minimize_button
public NkStyleWindowHeader.Buffer minimize_button(NkStyleButton value)
Copies the specifiedNkStyleButton
to theminimize_button
field.
-
minimize_button
public NkStyleWindowHeader.Buffer minimize_button(java.util.function.Consumer<NkStyleButton> consumer)
Passes theminimize_button
field to the specifiedConsumer
.
-
close_symbol
public NkStyleWindowHeader.Buffer close_symbol(int value)
Sets the specified value to theclose_symbol
field.
-
minimize_symbol
public NkStyleWindowHeader.Buffer minimize_symbol(int value)
Sets the specified value to theminimize_symbol
field.
-
maximize_symbol
public NkStyleWindowHeader.Buffer maximize_symbol(int value)
Sets the specified value to themaximize_symbol
field.
-
label_normal
public NkStyleWindowHeader.Buffer label_normal(NkColor value)
Copies the specifiedNkColor
to thelabel_normal
field.
-
label_normal
public NkStyleWindowHeader.Buffer label_normal(java.util.function.Consumer<NkColor> consumer)
Passes thelabel_normal
field to the specifiedConsumer
.
-
label_hover
public NkStyleWindowHeader.Buffer label_hover(NkColor value)
Copies the specifiedNkColor
to thelabel_hover
field.
-
label_hover
public NkStyleWindowHeader.Buffer label_hover(java.util.function.Consumer<NkColor> consumer)
Passes thelabel_hover
field to the specifiedConsumer
.
-
label_active
public NkStyleWindowHeader.Buffer label_active(NkColor value)
Copies the specifiedNkColor
to thelabel_active
field.
-
label_active
public NkStyleWindowHeader.Buffer label_active(java.util.function.Consumer<NkColor> consumer)
Passes thelabel_active
field to the specifiedConsumer
.
-
align
public NkStyleWindowHeader.Buffer align(int value)
Sets the specified value to thealign
field.
-
padding
public NkStyleWindowHeader.Buffer padding(NkVec2 value)
Copies the specifiedNkVec2
to thepadding
field.
-
padding
public NkStyleWindowHeader.Buffer padding(java.util.function.Consumer<NkVec2> consumer)
Passes thepadding
field to the specifiedConsumer
.
-
label_padding
public NkStyleWindowHeader.Buffer label_padding(NkVec2 value)
Copies the specifiedNkVec2
to thelabel_padding
field.
-
label_padding
public NkStyleWindowHeader.Buffer label_padding(java.util.function.Consumer<NkVec2> consumer)
Passes thelabel_padding
field to the specifiedConsumer
.
-
spacing
public NkStyleWindowHeader.Buffer spacing(NkVec2 value)
Copies the specifiedNkVec2
to thespacing
field.
-
spacing
public NkStyleWindowHeader.Buffer spacing(java.util.function.Consumer<NkVec2> consumer)
Passes thespacing
field to the specifiedConsumer
.
-
-