public static class YGNode.Buffer extends org.lwjgl.system.StructBuffer<YGNode,YGNode.Buffer> implements org.lwjgl.system.NativeResource
YGNode structs.| Constructor and Description |
|---|
Buffer(java.nio.ByteBuffer container)
Creates a new
YGNode.Buffer instance backed by the specified container. |
Buffer(long address,
int cap) |
| Modifier and Type | Method and Description |
|---|---|
YGBaselineFunc |
baseline_noContext()
Returns the value of the
baseline.noContext field. |
YGNode.Buffer |
baseline_noContext(YGBaselineFuncI value)
Sets the specified value to the
baseline.noContext field. |
long |
baseline_withContext()
Returns the value of the
baseline.withContext field. |
YGNode.Buffer |
baseline_withContext(long value)
Sets the specified value to the
baseline.withContext field. |
boolean |
baselineUsesContext()
Returns the value of the
baselineUsesContext field. |
YGNode.Buffer |
baselineUsesContext(boolean value)
Sets the specified value to the
baselineUsesContext field. |
long |
config()
Returns the value of the
config field. |
YGNode.Buffer |
config(long value)
Sets the specified value to the
config field. |
long |
context()
Returns the value of the
context field. |
YGNode.Buffer |
context(long value)
Sets the specified value to the
context field. |
YGDirtiedFunc |
dirtied()
Returns the value of the
dirtied field. |
YGNode.Buffer |
dirtied(YGDirtiedFuncI value)
Sets the specified value to the
dirtied field. |
boolean |
hasNewLayout()
Returns the value of the
hasNewLayout field. |
YGNode.Buffer |
hasNewLayout(boolean value)
Sets the specified value to the
hasNewLayout field. |
boolean |
isDirty()
Returns the value of the
isDirty field. |
YGNode.Buffer |
isDirty(boolean value)
Sets the specified value to the
isDirty field. |
boolean |
isReferenceBaseline()
Returns the value of the
isReferenceBaseline field. |
YGNode.Buffer |
isReferenceBaseline(boolean value)
Sets the specified value to the
isReferenceBaseline field. |
YGLayout |
layout()
Returns a
YGLayout view of the layout field. |
YGNode.Buffer |
layout(YGLayout value)
Copies the specified
YGLayout to the layout field. |
int |
lineIndex()
Returns the value of the
lineIndex field. |
YGNode.Buffer |
lineIndex(int value)
Sets the specified value to the
lineIndex field. |
YGMeasureFunc |
measure_noContext()
Returns the value of the
measure.noContext field. |
YGNode.Buffer |
measure_noContext(YGMeasureFuncI value)
Sets the specified value to the
measure.noContext field. |
long |
measure_withContext()
Returns the value of the
measure.withContext field. |
YGNode.Buffer |
measure_withContext(long value)
Sets the specified value to the
measure.withContext field. |
boolean |
measureUsesContext()
Returns the value of the
measureUsesContext field. |
YGNode.Buffer |
measureUsesContext(boolean value)
Sets the specified value to the
measureUsesContext field. |
int |
nodeType()
Returns the value of the
nodeType field. |
YGNode.Buffer |
nodeType(int value)
Sets the specified value to the
nodeType field. |
long |
owner()
Returns the value of the
owner field. |
YGNode.Buffer |
owner(long value)
Sets the specified value to the
owner field. |
YGPrintFunc |
print_noContext()
Returns the value of the
print.noContext field. |
YGNode.Buffer |
print_noContext(YGPrintFuncI value)
Sets the specified value to the
print.noContext field. |
long |
print_withContext()
Returns the value of the
print.withContext field. |
YGNode.Buffer |
print_withContext(long value)
Sets the specified value to the
print.withContext field. |
boolean |
printUsesContext()
Returns the value of the
printUsesContext field. |
YGNode.Buffer |
printUsesContext(boolean value)
Sets the specified value to the
printUsesContext field. |
YGValue.Buffer |
resolvedDimensions()
Returns a
YGValue.Buffer view of the resolvedDimensions field. |
YGNode.Buffer |
resolvedDimensions(java.util.function.Consumer<YGValue.Buffer> consumer)
Passes the
resolvedDimensions field to the specified Consumer. |
YGValue |
resolvedDimensions(int index)
Returns a
YGValue view of the struct at the specified index of the resolvedDimensions field. |
YGNode.Buffer |
resolvedDimensions(int index,
java.util.function.Consumer<YGValue> consumer)
Passes the element at
index of the resolvedDimensions field to the specified Consumer. |
YGNode.Buffer |
resolvedDimensions(int index,
YGValue value)
Copies the specified
YGValue at the specified index of the resolvedDimensions field. |
YGNode.Buffer |
resolvedDimensions(YGValue.Buffer value)
Copies the specified
YGValue.Buffer to the resolvedDimensions field. |
YGStyle |
style()
Returns a
YGStyle view of the style field. |
YGNode.Buffer |
style(YGStyle value)
Copies the specified
YGStyle to the style field. |
boolean |
useWebDefaults()
Returns the value of the
useWebDefaults field. |
YGNode.Buffer |
useWebDefaults(boolean value)
Sets the specified value to the
useWebDefaults field. |
apply, apply, forEach, get, get, get, get, iterator, parallelStream, put, put, sizeof, spliterator, streampublic Buffer(java.nio.ByteBuffer container)
YGNode.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.
public Buffer(long address,
int cap)
public long context()
context field.public boolean hasNewLayout()
hasNewLayout field.public boolean isReferenceBaseline()
isReferenceBaseline field.public boolean isDirty()
isDirty field.public int nodeType()
nodeType field.public boolean measureUsesContext()
measureUsesContext field.public boolean baselineUsesContext()
baselineUsesContext field.public boolean printUsesContext()
printUsesContext field.public boolean useWebDefaults()
useWebDefaults field.@Nullable public YGMeasureFunc measure_noContext()
measure.noContext field.public long measure_withContext()
measure.withContext field.@Nullable public YGBaselineFunc baseline_noContext()
baseline.noContext field.public long baseline_withContext()
baseline.withContext field.@Nullable public YGPrintFunc print_noContext()
print.noContext field.public long print_withContext()
print.withContext field.@Nullable public YGDirtiedFunc dirtied()
dirtied field.public int lineIndex()
lineIndex field.public long owner()
owner field.public long config()
config field.public YGValue.Buffer resolvedDimensions()
YGValue.Buffer view of the resolvedDimensions field.public YGValue resolvedDimensions(int index)
YGValue view of the struct at the specified index of the resolvedDimensions field.public YGNode.Buffer context(long value)
context field.public YGNode.Buffer hasNewLayout(boolean value)
hasNewLayout field.public YGNode.Buffer isReferenceBaseline(boolean value)
isReferenceBaseline field.public YGNode.Buffer isDirty(boolean value)
isDirty field.public YGNode.Buffer nodeType(int value)
nodeType field.public YGNode.Buffer measureUsesContext(boolean value)
measureUsesContext field.public YGNode.Buffer baselineUsesContext(boolean value)
baselineUsesContext field.public YGNode.Buffer printUsesContext(boolean value)
printUsesContext field.public YGNode.Buffer useWebDefaults(boolean value)
useWebDefaults field.public YGNode.Buffer measure_noContext(@Nullable YGMeasureFuncI value)
measure.noContext field.public YGNode.Buffer measure_withContext(long value)
measure.withContext field.public YGNode.Buffer baseline_noContext(@Nullable YGBaselineFuncI value)
baseline.noContext field.public YGNode.Buffer baseline_withContext(long value)
baseline.withContext field.public YGNode.Buffer print_noContext(@Nullable YGPrintFuncI value)
print.noContext field.public YGNode.Buffer print_withContext(long value)
print.withContext field.public YGNode.Buffer dirtied(@Nullable YGDirtiedFuncI value)
dirtied field.public YGNode.Buffer style(YGStyle value)
YGStyle to the style field.public YGNode.Buffer layout(YGLayout value)
YGLayout to the layout field.public YGNode.Buffer lineIndex(int value)
lineIndex field.public YGNode.Buffer owner(long value)
owner field.public YGNode.Buffer config(long value)
config field.public YGNode.Buffer resolvedDimensions(YGValue.Buffer value)
YGValue.Buffer to the resolvedDimensions field.public YGNode.Buffer resolvedDimensions(int index, YGValue value)
YGValue at the specified index of the resolvedDimensions field.public YGNode.Buffer resolvedDimensions(java.util.function.Consumer<YGValue.Buffer> consumer)
resolvedDimensions field to the specified Consumer.public YGNode.Buffer resolvedDimensions(int index, java.util.function.Consumer<YGValue> consumer)
index of the resolvedDimensions field to the specified Consumer.Copyright LWJGL. All Rights Reserved. License terms.