Package org.lwjgl.util.yoga
Class YGLayout.Buffer
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.CustomBuffer<SELF>
-
- org.lwjgl.system.StructBuffer<YGLayout,YGLayout.Buffer>
-
- org.lwjgl.util.yoga.YGLayout.Buffer
-
- All Implemented Interfaces:
java.lang.Iterable<YGLayout>,org.lwjgl.system.Pointer
- Enclosing class:
- YGLayout
public static class YGLayout.Buffer extends org.lwjgl.system.StructBuffer<YGLayout,YGLayout.Buffer>
An array ofYGLayoutstructs.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.nio.FloatBufferborder()floatborder(int index)YGCachedMeasurementcachedLayout()YGCachedMeasurement.BuffercachedMeasurements()YGCachedMeasurementcachedMeasurements(int index)YGFloatOptionalcomputedFlexBasis()intcomputedFlexBasisGeneration()booleandidUseLegacyFlag()java.nio.FloatBufferdimensions()floatdimensions(int index)intdirection()booleandoesLegacyStretchFlagAffectsLayout()intgenerationCount()booleanhadOverflow()intlastOwnerDirection()java.nio.FloatBuffermargin()floatmargin(int index)java.nio.FloatBuffermeasuredDimensions()floatmeasuredDimensions(int index)intnextCachedMeasurementsIndex()java.nio.FloatBufferpadding()floatpadding(int index)java.nio.FloatBufferpositions()floatpositions(int index)
-
-
-
Constructor Detail
-
Buffer
public Buffer(java.nio.ByteBuffer container)
Creates a newYGLayout.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 byYGLayout.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
-
positions
public java.nio.FloatBuffer positions()
- Returns:
- a
FloatBufferview of thepositionsfield.
-
positions
public float positions(int index)
- Returns:
- the value at the specified index of the
positionsfield.
-
dimensions
public java.nio.FloatBuffer dimensions()
- Returns:
- a
FloatBufferview of thedimensionsfield.
-
dimensions
public float dimensions(int index)
- Returns:
- the value at the specified index of the
dimensionsfield.
-
margin
public java.nio.FloatBuffer margin()
- Returns:
- a
FloatBufferview of themarginfield.
-
margin
public float margin(int index)
- Returns:
- the value at the specified index of the
marginfield.
-
border
public java.nio.FloatBuffer border()
- Returns:
- a
FloatBufferview of theborderfield.
-
border
public float border(int index)
- Returns:
- the value at the specified index of the
borderfield.
-
padding
public java.nio.FloatBuffer padding()
- Returns:
- a
FloatBufferview of thepaddingfield.
-
padding
public float padding(int index)
- Returns:
- the value at the specified index of the
paddingfield.
-
direction
public int direction()
- Returns:
- the value of the
directionfield.
-
didUseLegacyFlag
public boolean didUseLegacyFlag()
- Returns:
- the value of the
didUseLegacyFlagfield.
-
doesLegacyStretchFlagAffectsLayout
public boolean doesLegacyStretchFlagAffectsLayout()
- Returns:
- the value of the
doesLegacyStretchFlagAffectsLayoutfield.
-
hadOverflow
public boolean hadOverflow()
- Returns:
- the value of the
hadOverflowfield.
-
computedFlexBasisGeneration
public int computedFlexBasisGeneration()
- Returns:
- the value of the
computedFlexBasisGenerationfield.
-
computedFlexBasis
public YGFloatOptional computedFlexBasis()
- Returns:
- a
YGFloatOptionalview of thecomputedFlexBasisfield.
-
generationCount
public int generationCount()
- Returns:
- the value of the
generationCountfield.
-
lastOwnerDirection
public int lastOwnerDirection()
- Returns:
- the value of the
lastOwnerDirectionfield.
-
nextCachedMeasurementsIndex
public int nextCachedMeasurementsIndex()
- Returns:
- the value of the
nextCachedMeasurementsIndexfield.
-
cachedMeasurements
public YGCachedMeasurement.Buffer cachedMeasurements()
- Returns:
- a
YGCachedMeasurement.Buffer view of thecachedMeasurementsfield.
-
cachedMeasurements
public YGCachedMeasurement cachedMeasurements(int index)
- Returns:
- a
YGCachedMeasurementview of the struct at the specified index of thecachedMeasurementsfield.
-
measuredDimensions
public java.nio.FloatBuffer measuredDimensions()
- Returns:
- a
FloatBufferview of themeasuredDimensionsfield.
-
measuredDimensions
public float measuredDimensions(int index)
- Returns:
- the value at the specified index of the
measuredDimensionsfield.
-
cachedLayout
public YGCachedMeasurement cachedLayout()
- Returns:
- a
YGCachedMeasurementview of thecachedLayoutfield.
-
-