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:
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
ConstructorDescriptionBuffer
(long address, int cap) Buffer
(ByteBuffer container) Creates a newNkStyleWindowHeader.Buffer
instance backed by the specified container. -
Method Summary
Modifier and TypeMethodDescriptionactive()
active
(Consumer<NkStyleItem> consumer) Passes theactive
field to the specifiedConsumer
.active
(NkStyleItem value) Copies the specifiedNkStyleItem
to theactive
field.int
align()
align
(int value) Sets the specified value to theNkStyleWindowHeader.align()
field.close_button
(Consumer<NkStyleButton> consumer) Passes theclose_button
field to the specifiedConsumer
.close_button
(NkStyleButton value) Copies the specifiedNkStyleButton
to theclose_button
field.int
close_symbol
(int value) Sets the specified value to theclose_symbol
field.hover()
hover
(Consumer<NkStyleItem> consumer) Passes thehover
field to the specifiedConsumer
.hover
(NkStyleItem value) Copies the specifiedNkStyleItem
to thehover
field.label_active
(Consumer<NkColor> consumer) Passes thelabel_active
field to the specifiedConsumer
.label_active
(NkColor value) Copies the specifiedNkColor
to thelabel_active
field.label_hover
(Consumer<NkColor> consumer) Passes thelabel_hover
field to the specifiedConsumer
.label_hover
(NkColor value) Copies the specifiedNkColor
to thelabel_hover
field.label_normal
(Consumer<NkColor> consumer) Passes thelabel_normal
field to the specifiedConsumer
.label_normal
(NkColor value) Copies the specifiedNkColor
to thelabel_normal
field.label_padding
(Consumer<NkVec2> consumer) Passes thelabel_padding
field to the specifiedConsumer
.label_padding
(NkVec2 value) Copies the specifiedNkVec2
to thelabel_padding
field.int
maximize_symbol
(int value) Sets the specified value to themaximize_symbol
field.minimize_button
(Consumer<NkStyleButton> consumer) Passes theminimize_button
field to the specifiedConsumer
.minimize_button
(NkStyleButton value) Copies the specifiedNkStyleButton
to theminimize_button
field.int
minimize_symbol
(int value) Sets the specified value to theminimize_symbol
field.normal()
normal
(Consumer<NkStyleItem> consumer) Passes thenormal
field to the specifiedConsumer
.normal
(NkStyleItem value) Copies the specifiedNkStyleItem
to thenormal
field.padding()
Passes thepadding
field to the specifiedConsumer
.Copies the specifiedNkVec2
to thepadding
field.spacing()
Passes thespacing
field to the specifiedConsumer
.Copies the specifiedNkVec2
to thespacing
field.Methods inherited from class org.lwjgl.system.StructBuffer
apply, apply, forEach, get, get, get, get, iterator, parallelStream, put, put, sizeof, spliterator, stream
Methods 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, toString
Methods inherited from class org.lwjgl.system.Pointer.Default
equals, hashCode
Methods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Constructor Details
-
Buffer
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 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
NkStyleItem
view of thenormal
field.
-
hover
- Returns:
- a
NkStyleItem
view of thehover
field.
-
active
- Returns:
- a
NkStyleItem
view of theactive
field.
-
close_button
- Returns:
- a
NkStyleButton
view of theclose_button
field.
-
minimize_button
- Returns:
- a
NkStyleButton
view of theminimize_button
field.
-
close_symbol
public int close_symbol()- Returns:
- the value of the
close_symbol
field.
-
minimize_symbol
public int minimize_symbol()- Returns:
- the value of the
minimize_symbol
field.
-
maximize_symbol
public int maximize_symbol()- Returns:
- the value of the
maximize_symbol
field.
-
label_normal
- Returns:
- a
NkColor
view of thelabel_normal
field.
-
label_hover
- Returns:
- a
NkColor
view of thelabel_hover
field.
-
label_active
- Returns:
- a
NkColor
view of thelabel_active
field.
-
align
public int align()- Returns:
- the value of the
NkStyleWindowHeader.align()
field.
-
padding
- Returns:
- a
NkVec2
view of thepadding
field.
-
label_padding
- Returns:
- a
NkVec2
view of thelabel_padding
field.
-
spacing
- Returns:
- a
NkVec2
view of thespacing
field.
-
normal
Copies the specifiedNkStyleItem
to thenormal
field. -
normal
Passes thenormal
field to the specifiedConsumer
. -
hover
Copies the specifiedNkStyleItem
to thehover
field. -
hover
Passes thehover
field to the specifiedConsumer
. -
active
Copies the specifiedNkStyleItem
to theactive
field. -
active
Passes theactive
field to the specifiedConsumer
. -
close_button
Copies the specifiedNkStyleButton
to theclose_button
field. -
close_button
Passes theclose_button
field to the specifiedConsumer
. -
minimize_button
Copies the specifiedNkStyleButton
to theminimize_button
field. -
minimize_button
Passes theminimize_button
field to the specifiedConsumer
. -
close_symbol
Sets the specified value to theclose_symbol
field. -
minimize_symbol
Sets the specified value to theminimize_symbol
field. -
maximize_symbol
Sets the specified value to themaximize_symbol
field. -
label_normal
Copies the specifiedNkColor
to thelabel_normal
field. -
label_normal
Passes thelabel_normal
field to the specifiedConsumer
. -
label_hover
Copies the specifiedNkColor
to thelabel_hover
field. -
label_hover
Passes thelabel_hover
field to the specifiedConsumer
. -
label_active
Copies the specifiedNkColor
to thelabel_active
field. -
label_active
Passes thelabel_active
field to the specifiedConsumer
. -
align
Sets the specified value to theNkStyleWindowHeader.align()
field. -
padding
Copies the specifiedNkVec2
to thepadding
field. -
padding
Passes thepadding
field to the specifiedConsumer
. -
label_padding
Copies the specifiedNkVec2
to thelabel_padding
field. -
label_padding
Passes thelabel_padding
field to the specifiedConsumer
. -
spacing
Copies the specifiedNkVec2
to thespacing
field. -
spacing
Passes thespacing
field to the specifiedConsumer
.
-