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 ofYGLayout
structs.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.nio.FloatBuffer
border()
Returns aFloatBuffer
view of theborder
field.float
border(int index)
Returns the value at the specified index of theborder
field.YGCachedMeasurement
cachedLayout()
Returns aYGCachedMeasurement
view of thecachedLayout
field.YGCachedMeasurement.Buffer
cachedMeasurements()
Returns aYGCachedMeasurement
.Buffer view of thecachedMeasurements
field.YGCachedMeasurement
cachedMeasurements(int index)
Returns aYGCachedMeasurement
view of the struct at the specified index of thecachedMeasurements
field.YGFloatOptional
computedFlexBasis()
Returns aYGFloatOptional
view of thecomputedFlexBasis
field.int
computedFlexBasisGeneration()
Returns the value of thecomputedFlexBasisGeneration
field.boolean
didUseLegacyFlag()
Returns the value of thedidUseLegacyFlag
field.java.nio.FloatBuffer
dimensions()
Returns aFloatBuffer
view of thedimensions
field.float
dimensions(int index)
Returns the value at the specified index of thedimensions
field.int
direction()
Returns the value of thedirection
field.boolean
doesLegacyStretchFlagAffectsLayout()
Returns the value of thedoesLegacyStretchFlagAffectsLayout
field.int
generationCount()
Returns the value of thegenerationCount
field.boolean
hadOverflow()
Returns the value of thehadOverflow
field.int
lastOwnerDirection()
Returns the value of thelastOwnerDirection
field.java.nio.FloatBuffer
margin()
Returns aFloatBuffer
view of themargin
field.float
margin(int index)
Returns the value at the specified index of themargin
field.java.nio.FloatBuffer
measuredDimensions()
Returns aFloatBuffer
view of themeasuredDimensions
field.float
measuredDimensions(int index)
Returns the value at the specified index of themeasuredDimensions
field.int
nextCachedMeasurementsIndex()
Returns the value of thenextCachedMeasurementsIndex
field.java.nio.FloatBuffer
padding()
Returns aFloatBuffer
view of thepadding
field.float
padding(int index)
Returns the value at the specified index of thepadding
field.java.nio.FloatBuffer
positions()
Returns aFloatBuffer
view of thepositions
field.float
positions(int index)
Returns the value at the specified index of thepositions
field.
-
-
-
Constructor Detail
-
Buffer
public Buffer(java.nio.ByteBuffer container)
Creates a newYGLayout.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 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 aFloatBuffer
view of thepositions
field.
-
positions
public float positions(int index)
Returns the value at the specified index of thepositions
field.
-
dimensions
public java.nio.FloatBuffer dimensions()
Returns aFloatBuffer
view of thedimensions
field.
-
dimensions
public float dimensions(int index)
Returns the value at the specified index of thedimensions
field.
-
margin
public java.nio.FloatBuffer margin()
Returns aFloatBuffer
view of themargin
field.
-
margin
public float margin(int index)
Returns the value at the specified index of themargin
field.
-
border
public java.nio.FloatBuffer border()
Returns aFloatBuffer
view of theborder
field.
-
border
public float border(int index)
Returns the value at the specified index of theborder
field.
-
padding
public java.nio.FloatBuffer padding()
Returns aFloatBuffer
view of thepadding
field.
-
padding
public float padding(int index)
Returns the value at the specified index of thepadding
field.
-
direction
public int direction()
Returns the value of thedirection
field.
-
didUseLegacyFlag
public boolean didUseLegacyFlag()
Returns the value of thedidUseLegacyFlag
field.
-
doesLegacyStretchFlagAffectsLayout
public boolean doesLegacyStretchFlagAffectsLayout()
Returns the value of thedoesLegacyStretchFlagAffectsLayout
field.
-
hadOverflow
public boolean hadOverflow()
Returns the value of thehadOverflow
field.
-
computedFlexBasisGeneration
public int computedFlexBasisGeneration()
Returns the value of thecomputedFlexBasisGeneration
field.
-
computedFlexBasis
public YGFloatOptional computedFlexBasis()
Returns aYGFloatOptional
view of thecomputedFlexBasis
field.
-
generationCount
public int generationCount()
Returns the value of thegenerationCount
field.
-
lastOwnerDirection
public int lastOwnerDirection()
Returns the value of thelastOwnerDirection
field.
-
nextCachedMeasurementsIndex
public int nextCachedMeasurementsIndex()
Returns the value of thenextCachedMeasurementsIndex
field.
-
cachedMeasurements
public YGCachedMeasurement.Buffer cachedMeasurements()
Returns aYGCachedMeasurement
.Buffer view of thecachedMeasurements
field.
-
cachedMeasurements
public YGCachedMeasurement cachedMeasurements(int index)
Returns aYGCachedMeasurement
view of the struct at the specified index of thecachedMeasurements
field.
-
measuredDimensions
public java.nio.FloatBuffer measuredDimensions()
Returns aFloatBuffer
view of themeasuredDimensions
field.
-
measuredDimensions
public float measuredDimensions(int index)
Returns the value at the specified index of themeasuredDimensions
field.
-
cachedLayout
public YGCachedMeasurement cachedLayout()
Returns aYGCachedMeasurement
view of thecachedLayout
field.
-
-