Package org.lwjgl.util.yoga
Class YGNode.Buffer
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.CustomBuffer<SELF>
-
- org.lwjgl.system.StructBuffer<YGNode,YGNode.Buffer>
-
- org.lwjgl.util.yoga.YGNode.Buffer
-
- All Implemented Interfaces:
java.lang.AutoCloseable,java.lang.Iterable<YGNode>,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
- Enclosing class:
- YGNode
public static class YGNode.Buffer extends org.lwjgl.system.StructBuffer<YGNode,YGNode.Buffer> implements org.lwjgl.system.NativeResource
An array ofYGNodestructs.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description YGBaselineFuncbaseline_noContext()YGNode.Bufferbaseline_noContext(YGBaselineFuncI value)Sets the specified value to thenoContextfield.longbaseline_withContext()YGNode.Bufferbaseline_withContext(long value)Sets the specified value to thewithContextfield.booleanbaselineUsesContext()YGNode.BufferbaselineUsesContext(boolean value)Sets the specified value to thebaselineUsesContextfield.longconfig()YGNode.Bufferconfig(long value)Sets the specified value to theconfigfield.longcontext()YGNode.Buffercontext(long value)Sets the specified value to thecontextfield.YGDirtiedFuncdirtied()YGNode.Bufferdirtied(YGDirtiedFuncI value)Sets the specified value to thedirtiedfield.booleanhasNewLayout()YGNode.BufferhasNewLayout(boolean value)Sets the specified value to thehasNewLayoutfield.booleanisDirty()YGNode.BufferisDirty(boolean value)Sets the specified value to theisDirtyfield.booleanisReferenceBaseline()YGNode.BufferisReferenceBaseline(boolean value)Sets the specified value to theisReferenceBaselinefield.YGLayoutlayout()YGNode.Bufferlayout(YGLayout value)Copies the specifiedYGLayoutto thelayoutfield.intlineIndex()YGNode.BufferlineIndex(int value)Sets the specified value to thelineIndexfield.YGMeasureFuncmeasure_noContext()YGNode.Buffermeasure_noContext(YGMeasureFuncI value)Sets the specified value to thenoContextfield.longmeasure_withContext()YGNode.Buffermeasure_withContext(long value)Sets the specified value to thewithContextfield.booleanmeasureUsesContext()YGNode.BuffermeasureUsesContext(boolean value)Sets the specified value to themeasureUsesContextfield.intnodeType()YGNode.BuffernodeType(int value)Sets the specified value to thenodeTypefield.longowner()YGNode.Bufferowner(long value)Sets the specified value to theownerfield.YGPrintFuncprint_noContext()YGNode.Bufferprint_noContext(YGPrintFuncI value)Sets the specified value to thenoContextfield.longprint_withContext()YGNode.Bufferprint_withContext(long value)Sets the specified value to thewithContextfield.booleanprintUsesContext()YGNode.BufferprintUsesContext(boolean value)Sets the specified value to theprintUsesContextfield.YGValue.BufferresolvedDimensions()YGValueresolvedDimensions(int index)YGNode.BufferresolvedDimensions(int index, java.util.function.Consumer<YGValue> consumer)Passes the element atindexof theresolvedDimensionsfield to the specifiedConsumer.YGNode.BufferresolvedDimensions(int index, YGValue value)Copies the specifiedYGValueat the specified index of theresolvedDimensionsfield.YGNode.BufferresolvedDimensions(java.util.function.Consumer<YGValue.Buffer> consumer)Passes theresolvedDimensionsfield to the specifiedConsumer.YGNode.BufferresolvedDimensions(YGValue.Buffer value)Copies the specifiedYGValue.Bufferto theresolvedDimensionsfield.YGStylestyle()YGNode.Bufferstyle(YGStyle value)Copies the specifiedYGStyleto thestylefield.booleanuseWebDefaults()YGNode.BufferuseWebDefaults(boolean value)Sets the specified value to theuseWebDefaultsfield.
-
-
-
Constructor Detail
-
Buffer
public Buffer(java.nio.ByteBuffer container)
Creates a newYGNode.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 byYGNode.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
-
context
public long context()
- Returns:
- the value of the
contextfield.
-
hasNewLayout
public boolean hasNewLayout()
- Returns:
- the value of the
hasNewLayoutfield.
-
isReferenceBaseline
public boolean isReferenceBaseline()
- Returns:
- the value of the
isReferenceBaselinefield.
-
isDirty
public boolean isDirty()
- Returns:
- the value of the
isDirtyfield.
-
nodeType
public int nodeType()
- Returns:
- the value of the
nodeTypefield.
-
measureUsesContext
public boolean measureUsesContext()
- Returns:
- the value of the
measureUsesContextfield.
-
baselineUsesContext
public boolean baselineUsesContext()
- Returns:
- the value of the
baselineUsesContextfield.
-
printUsesContext
public boolean printUsesContext()
- Returns:
- the value of the
printUsesContextfield.
-
useWebDefaults
public boolean useWebDefaults()
- Returns:
- the value of the
useWebDefaultsfield.
-
measure_noContext
@Nullable public YGMeasureFunc measure_noContext()
- Returns:
- the value of the
measure.noContextfield.
-
measure_withContext
public long measure_withContext()
- Returns:
- the value of the
measure.withContextfield.
-
baseline_noContext
@Nullable public YGBaselineFunc baseline_noContext()
- Returns:
- the value of the
baseline.noContextfield.
-
baseline_withContext
public long baseline_withContext()
- Returns:
- the value of the
baseline.withContextfield.
-
print_noContext
@Nullable public YGPrintFunc print_noContext()
- Returns:
- the value of the
print.noContextfield.
-
print_withContext
public long print_withContext()
- Returns:
- the value of the
print.withContextfield.
-
dirtied
@Nullable public YGDirtiedFunc dirtied()
- Returns:
- the value of the
dirtiedfield.
-
lineIndex
public int lineIndex()
- Returns:
- the value of the
lineIndexfield.
-
owner
public long owner()
- Returns:
- the value of the
ownerfield.
-
config
public long config()
- Returns:
- the value of the
configfield.
-
resolvedDimensions
public YGValue.Buffer resolvedDimensions()
- Returns:
- a
YGValue.Buffer view of theresolvedDimensionsfield.
-
resolvedDimensions
public YGValue resolvedDimensions(int index)
- Returns:
- a
YGValueview of the struct at the specified index of theresolvedDimensionsfield.
-
context
public YGNode.Buffer context(long value)
Sets the specified value to thecontextfield.
-
hasNewLayout
public YGNode.Buffer hasNewLayout(boolean value)
Sets the specified value to thehasNewLayoutfield.
-
isReferenceBaseline
public YGNode.Buffer isReferenceBaseline(boolean value)
Sets the specified value to theisReferenceBaselinefield.
-
isDirty
public YGNode.Buffer isDirty(boolean value)
Sets the specified value to theisDirtyfield.
-
nodeType
public YGNode.Buffer nodeType(int value)
Sets the specified value to thenodeTypefield.
-
measureUsesContext
public YGNode.Buffer measureUsesContext(boolean value)
Sets the specified value to themeasureUsesContextfield.
-
baselineUsesContext
public YGNode.Buffer baselineUsesContext(boolean value)
Sets the specified value to thebaselineUsesContextfield.
-
printUsesContext
public YGNode.Buffer printUsesContext(boolean value)
Sets the specified value to theprintUsesContextfield.
-
useWebDefaults
public YGNode.Buffer useWebDefaults(boolean value)
Sets the specified value to theuseWebDefaultsfield.
-
measure_noContext
public YGNode.Buffer measure_noContext(@Nullable YGMeasureFuncI value)
Sets the specified value to thenoContextfield.
-
measure_withContext
public YGNode.Buffer measure_withContext(long value)
Sets the specified value to thewithContextfield.
-
baseline_noContext
public YGNode.Buffer baseline_noContext(@Nullable YGBaselineFuncI value)
Sets the specified value to thenoContextfield.
-
baseline_withContext
public YGNode.Buffer baseline_withContext(long value)
Sets the specified value to thewithContextfield.
-
print_noContext
public YGNode.Buffer print_noContext(@Nullable YGPrintFuncI value)
Sets the specified value to thenoContextfield.
-
print_withContext
public YGNode.Buffer print_withContext(long value)
Sets the specified value to thewithContextfield.
-
dirtied
public YGNode.Buffer dirtied(@Nullable YGDirtiedFuncI value)
Sets the specified value to thedirtiedfield.
-
style
public YGNode.Buffer style(YGStyle value)
Copies the specifiedYGStyleto thestylefield.
-
layout
public YGNode.Buffer layout(YGLayout value)
Copies the specifiedYGLayoutto thelayoutfield.
-
lineIndex
public YGNode.Buffer lineIndex(int value)
Sets the specified value to thelineIndexfield.
-
owner
public YGNode.Buffer owner(long value)
Sets the specified value to theownerfield.
-
config
public YGNode.Buffer config(long value)
Sets the specified value to theconfigfield.
-
resolvedDimensions
public YGNode.Buffer resolvedDimensions(YGValue.Buffer value)
Copies the specifiedYGValue.Bufferto theresolvedDimensionsfield.
-
resolvedDimensions
public YGNode.Buffer resolvedDimensions(int index, YGValue value)
Copies the specifiedYGValueat the specified index of theresolvedDimensionsfield.
-
resolvedDimensions
public YGNode.Buffer resolvedDimensions(java.util.function.Consumer<YGValue.Buffer> consumer)
Passes theresolvedDimensionsfield to the specifiedConsumer.
-
resolvedDimensions
public YGNode.Buffer resolvedDimensions(int index, java.util.function.Consumer<YGValue> consumer)
Passes the element atindexof theresolvedDimensionsfield to the specifiedConsumer.
-
-