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.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NkStyleItemactive()NkStyleWindowHeader.Bufferactive(java.util.function.Consumer<NkStyleItem> consumer)Passes theactivefield to the specifiedConsumer.NkStyleWindowHeader.Bufferactive(NkStyleItem value)Copies the specifiedNkStyleItemto theactivefield.intalign()NkStyleWindowHeader.Bufferalign(int value)Sets the specified value to theNkStyleWindowHeader.align()field.NkStyleButtonclose_button()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()NkStyleWindowHeader.Bufferclose_symbol(int value)Sets the specified value to theclose_symbolfield.NkStyleItemhover()NkStyleWindowHeader.Bufferhover(java.util.function.Consumer<NkStyleItem> consumer)Passes thehoverfield to the specifiedConsumer.NkStyleWindowHeader.Bufferhover(NkStyleItem value)Copies the specifiedNkStyleItemto thehoverfield.NkColorlabel_active()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()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()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()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()NkStyleWindowHeader.Buffermaximize_symbol(int value)Sets the specified value to themaximize_symbolfield.NkStyleButtonminimize_button()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()NkStyleWindowHeader.Bufferminimize_symbol(int value)Sets the specified value to theminimize_symbolfield.NkStyleItemnormal()NkStyleWindowHeader.Buffernormal(java.util.function.Consumer<NkStyleItem> consumer)Passes thenormalfield to the specifiedConsumer.NkStyleWindowHeader.Buffernormal(NkStyleItem value)Copies the specifiedNkStyleItemto thenormalfield.NkVec2padding()NkStyleWindowHeader.Bufferpadding(java.util.function.Consumer<NkVec2> consumer)Passes thepaddingfield to the specifiedConsumer.NkStyleWindowHeader.Bufferpadding(NkVec2 value)Copies the specifiedNkVec2to thepaddingfield.NkVec2spacing()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:
- a
NkStyleItemview of thenormalfield.
-
hover
public NkStyleItem hover()
- Returns:
- a
NkStyleItemview of thehoverfield.
-
active
public NkStyleItem active()
- Returns:
- a
NkStyleItemview of theactivefield.
-
close_button
public NkStyleButton close_button()
- Returns:
- a
NkStyleButtonview of theclose_buttonfield.
-
minimize_button
public NkStyleButton minimize_button()
- Returns:
- a
NkStyleButtonview of theminimize_buttonfield.
-
close_symbol
public int close_symbol()
- Returns:
- the value of the
close_symbolfield.
-
minimize_symbol
public int minimize_symbol()
- Returns:
- the value of the
minimize_symbolfield.
-
maximize_symbol
public int maximize_symbol()
- Returns:
- the value of the
maximize_symbolfield.
-
align
public int align()
- Returns:
- the value of the
NkStyleWindowHeader.align()field.
-
normal
public NkStyleWindowHeader.Buffer normal(NkStyleItem value)
Copies the specifiedNkStyleItemto thenormalfield.
-
normal
public NkStyleWindowHeader.Buffer normal(java.util.function.Consumer<NkStyleItem> consumer)
Passes thenormalfield to the specifiedConsumer.
-
hover
public NkStyleWindowHeader.Buffer hover(NkStyleItem value)
Copies the specifiedNkStyleItemto thehoverfield.
-
hover
public NkStyleWindowHeader.Buffer hover(java.util.function.Consumer<NkStyleItem> consumer)
Passes thehoverfield to the specifiedConsumer.
-
active
public NkStyleWindowHeader.Buffer active(NkStyleItem value)
Copies the specifiedNkStyleItemto theactivefield.
-
active
public NkStyleWindowHeader.Buffer active(java.util.function.Consumer<NkStyleItem> consumer)
Passes theactivefield to the specifiedConsumer.
-
close_button
public NkStyleWindowHeader.Buffer close_button(NkStyleButton value)
Copies the specifiedNkStyleButtonto theclose_buttonfield.
-
close_button
public NkStyleWindowHeader.Buffer close_button(java.util.function.Consumer<NkStyleButton> consumer)
Passes theclose_buttonfield to the specifiedConsumer.
-
minimize_button
public NkStyleWindowHeader.Buffer minimize_button(NkStyleButton value)
Copies the specifiedNkStyleButtonto theminimize_buttonfield.
-
minimize_button
public NkStyleWindowHeader.Buffer minimize_button(java.util.function.Consumer<NkStyleButton> consumer)
Passes theminimize_buttonfield to the specifiedConsumer.
-
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_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(NkColor value)
Copies the specifiedNkColorto thelabel_hoverfield.
-
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(NkColor value)
Copies the specifiedNkColorto thelabel_activefield.
-
label_active
public NkStyleWindowHeader.Buffer label_active(java.util.function.Consumer<NkColor> consumer)
Passes thelabel_activefield to the specifiedConsumer.
-
align
public NkStyleWindowHeader.Buffer align(int value)
Sets the specified value to theNkStyleWindowHeader.align()field.
-
padding
public NkStyleWindowHeader.Buffer padding(NkVec2 value)
Copies the specifiedNkVec2to thepaddingfield.
-
padding
public NkStyleWindowHeader.Buffer padding(java.util.function.Consumer<NkVec2> consumer)
Passes thepaddingfield to the specifiedConsumer.
-
label_padding
public NkStyleWindowHeader.Buffer label_padding(NkVec2 value)
Copies the specifiedNkVec2to thelabel_paddingfield.
-
label_padding
public NkStyleWindowHeader.Buffer label_padding(java.util.function.Consumer<NkVec2> consumer)
Passes thelabel_paddingfield to the specifiedConsumer.
-
spacing
public NkStyleWindowHeader.Buffer spacing(NkVec2 value)
Copies the specifiedNkVec2to thespacingfield.
-
spacing
public NkStyleWindowHeader.Buffer spacing(java.util.function.Consumer<NkVec2> consumer)
Passes thespacingfield to the specifiedConsumer.
-
-