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 ofNkStyleWindowHeaderstructs.
-
-
Constructor Summary
Constructors Constructor Description Buffer(long address, int cap)Buffer(java.nio.ByteBuffer container)Creates a newNkStyleWindowHeader.Bufferinstance backed by the specified container.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NkStyleItemactive()Returns aNkStyleItemview of theactivefield.NkStyleWindowHeader.Bufferactive(java.util.function.Consumer<NkStyleItem> consumer)Passes theactivefield to the specifiedConsumer.NkStyleWindowHeader.Bufferactive(NkStyleItem value)Copies the specifiedNkStyleItemto theactivefield.intalign()Returns the value of thealignfield.NkStyleWindowHeader.Bufferalign(int value)Sets the specified value to thealignfield.NkStyleButtonclose_button()Returns aNkStyleButtonview of theclose_buttonfield.NkStyleWindowHeader.Bufferclose_button(java.util.function.Consumer<NkStyleButton> consumer)Passes theclose_buttonfield to the specifiedConsumer.NkStyleWindowHeader.Bufferclose_button(NkStyleButton value)Copies the specifiedNkStyleButtonto theclose_buttonfield.intclose_symbol()Returns the value of theclose_symbolfield.NkStyleWindowHeader.Bufferclose_symbol(int value)Sets the specified value to theclose_symbolfield.NkStyleItemhover()Returns aNkStyleItemview of thehoverfield.NkStyleWindowHeader.Bufferhover(java.util.function.Consumer<NkStyleItem> consumer)Passes thehoverfield to the specifiedConsumer.NkStyleWindowHeader.Bufferhover(NkStyleItem value)Copies the specifiedNkStyleItemto thehoverfield.NkColorlabel_active()Returns aNkColorview of thelabel_activefield.NkStyleWindowHeader.Bufferlabel_active(java.util.function.Consumer<NkColor> consumer)Passes thelabel_activefield to the specifiedConsumer.NkStyleWindowHeader.Bufferlabel_active(NkColor value)Copies the specifiedNkColorto thelabel_activefield.NkColorlabel_hover()Returns aNkColorview of thelabel_hoverfield.NkStyleWindowHeader.Bufferlabel_hover(java.util.function.Consumer<NkColor> consumer)Passes thelabel_hoverfield to the specifiedConsumer.NkStyleWindowHeader.Bufferlabel_hover(NkColor value)Copies the specifiedNkColorto thelabel_hoverfield.NkColorlabel_normal()Returns aNkColorview of thelabel_normalfield.NkStyleWindowHeader.Bufferlabel_normal(java.util.function.Consumer<NkColor> consumer)Passes thelabel_normalfield to the specifiedConsumer.NkStyleWindowHeader.Bufferlabel_normal(NkColor value)Copies the specifiedNkColorto thelabel_normalfield.NkVec2label_padding()Returns aNkVec2view of thelabel_paddingfield.NkStyleWindowHeader.Bufferlabel_padding(java.util.function.Consumer<NkVec2> consumer)Passes thelabel_paddingfield to the specifiedConsumer.NkStyleWindowHeader.Bufferlabel_padding(NkVec2 value)Copies the specifiedNkVec2to thelabel_paddingfield.intmaximize_symbol()Returns the value of themaximize_symbolfield.NkStyleWindowHeader.Buffermaximize_symbol(int value)Sets the specified value to themaximize_symbolfield.NkStyleButtonminimize_button()Returns aNkStyleButtonview of theminimize_buttonfield.NkStyleWindowHeader.Bufferminimize_button(java.util.function.Consumer<NkStyleButton> consumer)Passes theminimize_buttonfield to the specifiedConsumer.NkStyleWindowHeader.Bufferminimize_button(NkStyleButton value)Copies the specifiedNkStyleButtonto theminimize_buttonfield.intminimize_symbol()Returns the value of theminimize_symbolfield.NkStyleWindowHeader.Bufferminimize_symbol(int value)Sets the specified value to theminimize_symbolfield.NkStyleItemnormal()Returns aNkStyleItemview of thenormalfield.NkStyleWindowHeader.Buffernormal(java.util.function.Consumer<NkStyleItem> consumer)Passes thenormalfield to the specifiedConsumer.NkStyleWindowHeader.Buffernormal(NkStyleItem value)Copies the specifiedNkStyleItemto thenormalfield.NkVec2padding()Returns aNkVec2view of thepaddingfield.NkStyleWindowHeader.Bufferpadding(java.util.function.Consumer<NkVec2> consumer)Passes thepaddingfield to the specifiedConsumer.NkStyleWindowHeader.Bufferpadding(NkVec2 value)Copies the specifiedNkVec2to thepaddingfield.NkVec2spacing()Returns aNkVec2view of thespacingfield.NkStyleWindowHeader.Bufferspacing(java.util.function.Consumer<NkVec2> consumer)Passes thespacingfield to the specifiedConsumer.NkStyleWindowHeader.Bufferspacing(NkVec2 value)Copies the specifiedNkVec2to thespacingfield.
-
-
-
Constructor Detail
-
Buffer
public Buffer(java.nio.ByteBuffer container)
Creates a newNkStyleWindowHeader.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 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 aNkStyleItemview of thenormalfield.
-
normal
public NkStyleWindowHeader.Buffer normal(java.util.function.Consumer<NkStyleItem> consumer)
Passes thenormalfield to the specifiedConsumer.
-
hover
public NkStyleItem hover()
Returns aNkStyleItemview of thehoverfield.
-
hover
public NkStyleWindowHeader.Buffer hover(java.util.function.Consumer<NkStyleItem> consumer)
Passes thehoverfield to the specifiedConsumer.
-
active
public NkStyleItem active()
Returns aNkStyleItemview of theactivefield.
-
active
public NkStyleWindowHeader.Buffer active(java.util.function.Consumer<NkStyleItem> consumer)
Passes theactivefield to the specifiedConsumer.
-
close_button
public NkStyleButton close_button()
Returns aNkStyleButtonview of theclose_buttonfield.
-
close_button
public NkStyleWindowHeader.Buffer close_button(java.util.function.Consumer<NkStyleButton> consumer)
Passes theclose_buttonfield to the specifiedConsumer.
-
minimize_button
public NkStyleButton minimize_button()
Returns aNkStyleButtonview of theminimize_buttonfield.
-
minimize_button
public NkStyleWindowHeader.Buffer minimize_button(java.util.function.Consumer<NkStyleButton> consumer)
Passes theminimize_buttonfield to the specifiedConsumer.
-
close_symbol
public int close_symbol()
Returns the value of theclose_symbolfield.
-
minimize_symbol
public int minimize_symbol()
Returns the value of theminimize_symbolfield.
-
maximize_symbol
public int maximize_symbol()
Returns the value of themaximize_symbolfield.
-
label_normal
public NkStyleWindowHeader.Buffer label_normal(java.util.function.Consumer<NkColor> consumer)
Passes thelabel_normalfield to the specifiedConsumer.
-
label_hover
public NkStyleWindowHeader.Buffer label_hover(java.util.function.Consumer<NkColor> consumer)
Passes thelabel_hoverfield to the specifiedConsumer.
-
label_active
public NkStyleWindowHeader.Buffer label_active(java.util.function.Consumer<NkColor> consumer)
Passes thelabel_activefield to the specifiedConsumer.
-
align
public int align()
Returns the value of thealignfield.
-
padding
public NkStyleWindowHeader.Buffer padding(java.util.function.Consumer<NkVec2> consumer)
Passes thepaddingfield to the specifiedConsumer.
-
label_padding
public NkStyleWindowHeader.Buffer label_padding(java.util.function.Consumer<NkVec2> consumer)
Passes thelabel_paddingfield to the specifiedConsumer.
-
spacing
public NkStyleWindowHeader.Buffer spacing(java.util.function.Consumer<NkVec2> consumer)
Passes thespacingfield to the specifiedConsumer.
-
normal
public NkStyleWindowHeader.Buffer normal(NkStyleItem value)
Copies the specifiedNkStyleItemto thenormalfield.
-
hover
public NkStyleWindowHeader.Buffer hover(NkStyleItem value)
Copies the specifiedNkStyleItemto thehoverfield.
-
active
public NkStyleWindowHeader.Buffer active(NkStyleItem value)
Copies the specifiedNkStyleItemto theactivefield.
-
close_button
public NkStyleWindowHeader.Buffer close_button(NkStyleButton value)
Copies the specifiedNkStyleButtonto theclose_buttonfield.
-
minimize_button
public NkStyleWindowHeader.Buffer minimize_button(NkStyleButton value)
Copies the specifiedNkStyleButtonto theminimize_buttonfield.
-
close_symbol
public NkStyleWindowHeader.Buffer close_symbol(int value)
Sets the specified value to theclose_symbolfield.
-
minimize_symbol
public NkStyleWindowHeader.Buffer minimize_symbol(int value)
Sets the specified value to theminimize_symbolfield.
-
maximize_symbol
public NkStyleWindowHeader.Buffer maximize_symbol(int value)
Sets the specified value to themaximize_symbolfield.
-
label_normal
public NkStyleWindowHeader.Buffer label_normal(NkColor value)
Copies the specifiedNkColorto thelabel_normalfield.
-
label_hover
public NkStyleWindowHeader.Buffer label_hover(NkColor value)
Copies the specifiedNkColorto thelabel_hoverfield.
-
label_active
public NkStyleWindowHeader.Buffer label_active(NkColor value)
Copies the specifiedNkColorto thelabel_activefield.
-
align
public NkStyleWindowHeader.Buffer align(int value)
Sets the specified value to thealignfield.
-
padding
public NkStyleWindowHeader.Buffer padding(NkVec2 value)
Copies the specifiedNkVec2to thepaddingfield.
-
label_padding
public NkStyleWindowHeader.Buffer label_padding(NkVec2 value)
Copies the specifiedNkVec2to thelabel_paddingfield.
-
spacing
public NkStyleWindowHeader.Buffer spacing(NkVec2 value)
Copies the specifiedNkVec2to thespacingfield.
-
-