Package org.lwjgl.nuklear
Class NkStyleWindowHeader.Buffer
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.CustomBuffer<NkStyleWindowHeader.Buffer>
org.lwjgl.system.StructBuffer<NkStyleWindowHeader,NkStyleWindowHeader.Buffer>
org.lwjgl.nuklear.NkStyleWindowHeader.Buffer
- All Implemented Interfaces:
AutoCloseable,Iterable<NkStyleWindowHeader>,NativeResource,Pointer
- Enclosing class:
NkStyleWindowHeader
public static class NkStyleWindowHeader.Buffer
extends StructBuffer<NkStyleWindowHeader,NkStyleWindowHeader.Buffer>
implements NativeResource
An array of
NkStyleWindowHeader 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 newNkStyleWindowHeader.Bufferinstance backed by the specified container. -
Method Summary
Modifier and TypeMethodDescriptionactive()active(Consumer<NkStyleItem> consumer) Passes theactivefield to the specifiedConsumer.active(NkStyleItem value) Copies the specifiedNkStyleItemto theactivefield.intalign()align(int value) Sets the specified value to thealignfield.close_button(Consumer<NkStyleButton> consumer) Passes theclose_buttonfield to the specifiedConsumer.close_button(NkStyleButton value) Copies the specifiedNkStyleButtonto theclose_buttonfield.intclose_symbol(int value) Sets the specified value to theclose_symbolfield.hover()hover(Consumer<NkStyleItem> consumer) Passes thehoverfield to the specifiedConsumer.hover(NkStyleItem value) Copies the specifiedNkStyleItemto thehoverfield.label_active(Consumer<NkColor> consumer) Passes thelabel_activefield to the specifiedConsumer.label_active(NkColor value) Copies the specifiedNkColorto thelabel_activefield.label_hover(Consumer<NkColor> consumer) Passes thelabel_hoverfield to the specifiedConsumer.label_hover(NkColor value) Copies the specifiedNkColorto thelabel_hoverfield.label_normal(Consumer<NkColor> consumer) Passes thelabel_normalfield to the specifiedConsumer.label_normal(NkColor value) Copies the specifiedNkColorto thelabel_normalfield.label_padding(Consumer<NkVec2> consumer) Passes thelabel_paddingfield to the specifiedConsumer.label_padding(NkVec2 value) Copies the specifiedNkVec2to thelabel_paddingfield.intmaximize_symbol(int value) Sets the specified value to themaximize_symbolfield.minimize_button(Consumer<NkStyleButton> consumer) Passes theminimize_buttonfield to the specifiedConsumer.minimize_button(NkStyleButton value) Copies the specifiedNkStyleButtonto theminimize_buttonfield.intminimize_symbol(int value) Sets the specified value to theminimize_symbolfield.normal()normal(Consumer<NkStyleItem> consumer) Passes thenormalfield to the specifiedConsumer.normal(NkStyleItem value) Copies the specifiedNkStyleItemto thenormalfield.padding()Passes thepaddingfield to the specifiedConsumer.Copies the specifiedNkVec2to thepaddingfield.spacing()Passes thespacingfield to the specifiedConsumer.Copies the specifiedNkVec2to thespacingfield.Methods inherited from class org.lwjgl.system.StructBuffer
apply, apply, forEach, get, get, get, get, iterator, parallelStream, put, put, sizeof, spliterator, streamMethods 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, toStringMethods inherited from class org.lwjgl.system.Pointer.Default
equals, hashCodeMethods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Constructor Details
-
Buffer
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 by
NkStyleWindowHeader.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
-
normal
- Returns:
- a
NkStyleItemview of thenormalfield.
-
hover
- Returns:
- a
NkStyleItemview of thehoverfield.
-
active
- Returns:
- a
NkStyleItemview of theactivefield.
-
close_button
- Returns:
- a
NkStyleButtonview of theclose_buttonfield.
-
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.
-
label_normal
- Returns:
- a
NkColorview of thelabel_normalfield.
-
label_hover
- Returns:
- a
NkColorview of thelabel_hoverfield.
-
label_active
- Returns:
- a
NkColorview of thelabel_activefield.
-
align
public int align()- Returns:
- the value of the
alignfield.
-
padding
- Returns:
- a
NkVec2view of thepaddingfield.
-
label_padding
- Returns:
- a
NkVec2view of thelabel_paddingfield.
-
spacing
- Returns:
- a
NkVec2view of thespacingfield.
-
normal
Copies the specifiedNkStyleItemto thenormalfield. -
normal
Passes thenormalfield to the specifiedConsumer. -
hover
Copies the specifiedNkStyleItemto thehoverfield. -
hover
Passes thehoverfield to the specifiedConsumer. -
active
Copies the specifiedNkStyleItemto theactivefield. -
active
Passes theactivefield to the specifiedConsumer. -
close_button
Copies the specifiedNkStyleButtonto theclose_buttonfield. -
close_button
Passes theclose_buttonfield to the specifiedConsumer. -
minimize_button
Copies the specifiedNkStyleButtonto theminimize_buttonfield. -
minimize_button
Passes theminimize_buttonfield to the specifiedConsumer. -
close_symbol
Sets the specified value to theclose_symbolfield. -
minimize_symbol
Sets the specified value to theminimize_symbolfield. -
maximize_symbol
Sets the specified value to themaximize_symbolfield. -
label_normal
Copies the specifiedNkColorto thelabel_normalfield. -
label_normal
Passes thelabel_normalfield to the specifiedConsumer. -
label_hover
Copies the specifiedNkColorto thelabel_hoverfield. -
label_hover
Passes thelabel_hoverfield to the specifiedConsumer. -
label_active
Copies the specifiedNkColorto thelabel_activefield. -
label_active
Passes thelabel_activefield to the specifiedConsumer. -
align
Sets the specified value to thealignfield. -
padding
Copies the specifiedNkVec2to thepaddingfield. -
padding
Passes thepaddingfield to the specifiedConsumer. -
label_padding
Copies the specifiedNkVec2to thelabel_paddingfield. -
label_padding
Passes thelabel_paddingfield to the specifiedConsumer. -
spacing
Copies the specifiedNkVec2to thespacingfield. -
spacing
Passes thespacingfield to the specifiedConsumer.
-