Package org.lwjgl.util.yoga
Class YGNode.Buffer
- All Implemented Interfaces:
AutoCloseable
,Iterable<YGNode>
,NativeResource
,Pointer
- Enclosing class:
YGNode
public static class YGNode.Buffer
extends StructBuffer<YGNode,YGNode.Buffer>
implements NativeResource
An array of
YGNode
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 newYGNode.Buffer
instance backed by the specified container. -
Method Summary
Modifier and TypeMethodDescriptionSets the specified value to thenoContext
field.long
baseline_withContext
(long value) Sets the specified value to thewithContext
field.long
config()
config
(long value) Sets the specified value to theconfig
field.long
context()
context
(long value) Sets the specified value to thecontext
field.dirtied()
dirtied
(YGDirtiedFuncI value) Sets the specified value to thedirtied
field.flags()
flags
(Consumer<YGNodeFlags> consumer) Passes theflags
field to the specifiedConsumer
.flags
(YGNodeFlags value) Copies the specifiedYGNodeFlags
to theflags
field.layout()
Copies the specifiedYGLayout
to thelayout
field.int
lineIndex
(int value) Sets the specified value to thelineIndex
field.measure_noContext
(YGMeasureFuncI value) Sets the specified value to thenoContext
field.long
measure_withContext
(long value) Sets the specified value to thewithContext
field.long
owner()
owner
(long value) Sets the specified value to theowner
field.print_noContext
(YGPrintFuncI value) Sets the specified value to thenoContext
field.long
print_withContext
(long value) Sets the specified value to thewithContext
field.resolvedDimensions
(int index) resolvedDimensions
(int index, Consumer<YGValue> consumer) resolvedDimensions
(int index, YGValue value) Copies the specifiedYGValue
at the specified index of theresolvedDimensions
field.resolvedDimensions
(Consumer<YGValue.Buffer> consumer) Passes theresolvedDimensions
field to the specifiedConsumer
.resolvedDimensions
(YGValue.Buffer value) Copies the specifiedYGValue.Buffer
to theresolvedDimensions
field.style()
Copies the specifiedYGStyle
to thestyle
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 newYGNode.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
YGNode.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
-
context
public long context()- Returns:
- the value of the
context
field.
-
flags
- Returns:
- a
YGNodeFlags
view of theflags
field.
-
measure_noContext
- Returns:
- the value of the
measure.noContext
field.
-
measure_withContext
public long measure_withContext()- Returns:
- the value of the
measure.withContext
field.
-
baseline_noContext
- Returns:
- the value of the
baseline.noContext
field.
-
baseline_withContext
public long baseline_withContext()- Returns:
- the value of the
baseline.withContext
field.
-
print_noContext
- Returns:
- the value of the
print.noContext
field.
-
print_withContext
public long print_withContext()- Returns:
- the value of the
print.withContext
field.
-
dirtied
- Returns:
- the value of the
dirtied
field.
-
style
- Returns:
- a
YGStyle
view of thestyle
field.
-
layout
- Returns:
- a
YGLayout
view of thelayout
field.
-
lineIndex
public int lineIndex()- Returns:
- the value of the
lineIndex
field.
-
owner
public long owner()- Returns:
- the value of the
owner
field.
-
config
public long config()- Returns:
- the value of the
config
field.
-
resolvedDimensions
- Returns:
- a
YGValue
.Buffer view of theresolvedDimensions
field.
-
resolvedDimensions
- Returns:
- a
YGValue
view of the struct at the specified index of theresolvedDimensions
field.
-
context
Sets the specified value to thecontext
field. -
flags
Copies the specifiedYGNodeFlags
to theflags
field. -
flags
Passes theflags
field to the specifiedConsumer
. -
measure_noContext
Sets the specified value to thenoContext
field. -
measure_withContext
Sets the specified value to thewithContext
field. -
baseline_noContext
Sets the specified value to thenoContext
field. -
baseline_withContext
Sets the specified value to thewithContext
field. -
print_noContext
Sets the specified value to thenoContext
field. -
print_withContext
Sets the specified value to thewithContext
field. -
dirtied
Sets the specified value to thedirtied
field. -
style
Copies the specifiedYGStyle
to thestyle
field. -
layout
Copies the specifiedYGLayout
to thelayout
field. -
lineIndex
Sets the specified value to thelineIndex
field. -
owner
Sets the specified value to theowner
field. -
config
Sets the specified value to theconfig
field. -
resolvedDimensions
Copies the specifiedYGValue.Buffer
to theresolvedDimensions
field. -
resolvedDimensions
Copies the specifiedYGValue
at the specified index of theresolvedDimensions
field. -
resolvedDimensions
Passes theresolvedDimensions
field to the specifiedConsumer
. -
resolvedDimensions
-