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 ofYGNode
structs.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description YGBaselineFunc
baseline_noContext()
Returns the value of thebaseline.noContext
field.YGNode.Buffer
baseline_noContext(YGBaselineFuncI value)
Sets the specified value to thebaseline.noContext
field.long
baseline_withContext()
Returns the value of thebaseline.withContext
field.YGNode.Buffer
baseline_withContext(long value)
Sets the specified value to thebaseline.withContext
field.boolean
baselineUsesContext()
Returns the value of thebaselineUsesContext
field.YGNode.Buffer
baselineUsesContext(boolean value)
Sets the specified value to thebaselineUsesContext
field.long
config()
Returns the value of theconfig
field.YGNode.Buffer
config(long value)
Sets the specified value to theconfig
field.long
context()
Returns the value of thecontext
field.YGNode.Buffer
context(long value)
Sets the specified value to thecontext
field.YGDirtiedFunc
dirtied()
Returns the value of thedirtied
field.YGNode.Buffer
dirtied(YGDirtiedFuncI value)
Sets the specified value to thedirtied
field.boolean
hasNewLayout()
Returns the value of thehasNewLayout
field.YGNode.Buffer
hasNewLayout(boolean value)
Sets the specified value to thehasNewLayout
field.boolean
isDirty()
Returns the value of theisDirty
field.YGNode.Buffer
isDirty(boolean value)
Sets the specified value to theisDirty
field.boolean
isReferenceBaseline()
Returns the value of theisReferenceBaseline
field.YGNode.Buffer
isReferenceBaseline(boolean value)
Sets the specified value to theisReferenceBaseline
field.YGLayout
layout()
Returns aYGLayout
view of thelayout
field.YGNode.Buffer
layout(YGLayout value)
Copies the specifiedYGLayout
to thelayout
field.int
lineIndex()
Returns the value of thelineIndex
field.YGNode.Buffer
lineIndex(int value)
Sets the specified value to thelineIndex
field.YGMeasureFunc
measure_noContext()
Returns the value of themeasure.noContext
field.YGNode.Buffer
measure_noContext(YGMeasureFuncI value)
Sets the specified value to themeasure.noContext
field.long
measure_withContext()
Returns the value of themeasure.withContext
field.YGNode.Buffer
measure_withContext(long value)
Sets the specified value to themeasure.withContext
field.boolean
measureUsesContext()
Returns the value of themeasureUsesContext
field.YGNode.Buffer
measureUsesContext(boolean value)
Sets the specified value to themeasureUsesContext
field.int
nodeType()
Returns the value of thenodeType
field.YGNode.Buffer
nodeType(int value)
Sets the specified value to thenodeType
field.long
owner()
Returns the value of theowner
field.YGNode.Buffer
owner(long value)
Sets the specified value to theowner
field.YGPrintFunc
print_noContext()
Returns the value of theprint.noContext
field.YGNode.Buffer
print_noContext(YGPrintFuncI value)
Sets the specified value to theprint.noContext
field.long
print_withContext()
Returns the value of theprint.withContext
field.YGNode.Buffer
print_withContext(long value)
Sets the specified value to theprint.withContext
field.boolean
printUsesContext()
Returns the value of theprintUsesContext
field.YGNode.Buffer
printUsesContext(boolean value)
Sets the specified value to theprintUsesContext
field.YGValue.Buffer
resolvedDimensions()
Returns aYGValue
.Buffer view of theresolvedDimensions
field.YGValue
resolvedDimensions(int index)
Returns aYGValue
view of the struct at the specified index of theresolvedDimensions
field.YGNode.Buffer
resolvedDimensions(int index, java.util.function.Consumer<YGValue> consumer)
Passes the element atindex
of theresolvedDimensions
field to the specifiedConsumer
.YGNode.Buffer
resolvedDimensions(int index, YGValue value)
Copies the specifiedYGValue
at the specified index of theresolvedDimensions
field.YGNode.Buffer
resolvedDimensions(java.util.function.Consumer<YGValue.Buffer> consumer)
Passes theresolvedDimensions
field to the specifiedConsumer
.YGNode.Buffer
resolvedDimensions(YGValue.Buffer value)
Copies the specifiedYGValue.Buffer
to theresolvedDimensions
field.YGStyle
style()
Returns aYGStyle
view of thestyle
field.YGNode.Buffer
style(YGStyle value)
Copies the specifiedYGStyle
to thestyle
field.boolean
useWebDefaults()
Returns the value of theuseWebDefaults
field.YGNode.Buffer
useWebDefaults(boolean value)
Sets the specified value to theuseWebDefaults
field.
-
-
-
Constructor Detail
-
Buffer
public Buffer(java.nio.ByteBuffer container)
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 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 thecontext
field.
-
hasNewLayout
public boolean hasNewLayout()
Returns the value of thehasNewLayout
field.
-
isReferenceBaseline
public boolean isReferenceBaseline()
Returns the value of theisReferenceBaseline
field.
-
isDirty
public boolean isDirty()
Returns the value of theisDirty
field.
-
nodeType
public int nodeType()
Returns the value of thenodeType
field.
-
measureUsesContext
public boolean measureUsesContext()
Returns the value of themeasureUsesContext
field.
-
baselineUsesContext
public boolean baselineUsesContext()
Returns the value of thebaselineUsesContext
field.
-
printUsesContext
public boolean printUsesContext()
Returns the value of theprintUsesContext
field.
-
useWebDefaults
public boolean useWebDefaults()
Returns the value of theuseWebDefaults
field.
-
measure_noContext
@Nullable public YGMeasureFunc measure_noContext()
Returns the value of themeasure.noContext
field.
-
measure_withContext
public long measure_withContext()
Returns the value of themeasure.withContext
field.
-
baseline_noContext
@Nullable public YGBaselineFunc baseline_noContext()
Returns the value of thebaseline.noContext
field.
-
baseline_withContext
public long baseline_withContext()
Returns the value of thebaseline.withContext
field.
-
print_noContext
@Nullable public YGPrintFunc print_noContext()
Returns the value of theprint.noContext
field.
-
print_withContext
public long print_withContext()
Returns the value of theprint.withContext
field.
-
dirtied
@Nullable public YGDirtiedFunc dirtied()
Returns the value of thedirtied
field.
-
lineIndex
public int lineIndex()
Returns the value of thelineIndex
field.
-
owner
public long owner()
Returns the value of theowner
field.
-
config
public long config()
Returns the value of theconfig
field.
-
resolvedDimensions
public YGValue.Buffer resolvedDimensions()
Returns aYGValue
.Buffer view of theresolvedDimensions
field.
-
resolvedDimensions
public YGValue resolvedDimensions(int index)
Returns aYGValue
view of the struct at the specified index of theresolvedDimensions
field.
-
context
public YGNode.Buffer context(long value)
Sets the specified value to thecontext
field.
-
hasNewLayout
public YGNode.Buffer hasNewLayout(boolean value)
Sets the specified value to thehasNewLayout
field.
-
isReferenceBaseline
public YGNode.Buffer isReferenceBaseline(boolean value)
Sets the specified value to theisReferenceBaseline
field.
-
isDirty
public YGNode.Buffer isDirty(boolean value)
Sets the specified value to theisDirty
field.
-
nodeType
public YGNode.Buffer nodeType(int value)
Sets the specified value to thenodeType
field.
-
measureUsesContext
public YGNode.Buffer measureUsesContext(boolean value)
Sets the specified value to themeasureUsesContext
field.
-
baselineUsesContext
public YGNode.Buffer baselineUsesContext(boolean value)
Sets the specified value to thebaselineUsesContext
field.
-
printUsesContext
public YGNode.Buffer printUsesContext(boolean value)
Sets the specified value to theprintUsesContext
field.
-
useWebDefaults
public YGNode.Buffer useWebDefaults(boolean value)
Sets the specified value to theuseWebDefaults
field.
-
measure_noContext
public YGNode.Buffer measure_noContext(@Nullable YGMeasureFuncI value)
Sets the specified value to themeasure.noContext
field.
-
measure_withContext
public YGNode.Buffer measure_withContext(long value)
Sets the specified value to themeasure.withContext
field.
-
baseline_noContext
public YGNode.Buffer baseline_noContext(@Nullable YGBaselineFuncI value)
Sets the specified value to thebaseline.noContext
field.
-
baseline_withContext
public YGNode.Buffer baseline_withContext(long value)
Sets the specified value to thebaseline.withContext
field.
-
print_noContext
public YGNode.Buffer print_noContext(@Nullable YGPrintFuncI value)
Sets the specified value to theprint.noContext
field.
-
print_withContext
public YGNode.Buffer print_withContext(long value)
Sets the specified value to theprint.withContext
field.
-
dirtied
public YGNode.Buffer dirtied(@Nullable YGDirtiedFuncI value)
Sets the specified value to thedirtied
field.
-
style
public YGNode.Buffer style(YGStyle value)
Copies the specifiedYGStyle
to thestyle
field.
-
layout
public YGNode.Buffer layout(YGLayout value)
Copies the specifiedYGLayout
to thelayout
field.
-
lineIndex
public YGNode.Buffer lineIndex(int value)
Sets the specified value to thelineIndex
field.
-
owner
public YGNode.Buffer owner(long value)
Sets the specified value to theowner
field.
-
config
public YGNode.Buffer config(long value)
Sets the specified value to theconfig
field.
-
resolvedDimensions
public YGNode.Buffer resolvedDimensions(YGValue.Buffer value)
Copies the specifiedYGValue.Buffer
to theresolvedDimensions
field.
-
resolvedDimensions
public YGNode.Buffer resolvedDimensions(int index, YGValue value)
Copies the specifiedYGValue
at the specified index of theresolvedDimensions
field.
-
resolvedDimensions
public YGNode.Buffer resolvedDimensions(java.util.function.Consumer<YGValue.Buffer> consumer)
Passes theresolvedDimensions
field to the specifiedConsumer
.
-
resolvedDimensions
public YGNode.Buffer resolvedDimensions(int index, java.util.function.Consumer<YGValue> consumer)
Passes the element atindex
of theresolvedDimensions
field to the specifiedConsumer
.
-
-