public static class YGLayout.Buffer extends org.lwjgl.system.StructBuffer<YGLayout,YGLayout.Buffer>
YGLayout structs.| Constructor and Description |
|---|
Buffer(java.nio.ByteBuffer container)
Creates a new
YGLayout.Buffer instance backed by the specified container. |
Buffer(long address,
int cap) |
| Modifier and Type | Method and Description |
|---|---|
java.nio.FloatBuffer |
border()
Returns a
FloatBuffer view of the border field. |
float |
border(int index)
Returns the value at the specified index of the
border field. |
YGCachedMeasurement |
cachedLayout()
Returns a
YGCachedMeasurement view of the cachedLayout field. |
YGCachedMeasurement.Buffer |
cachedMeasurements()
Returns a
YGCachedMeasurement.Buffer view of the cachedMeasurements field. |
YGCachedMeasurement |
cachedMeasurements(int index)
Returns a
YGCachedMeasurement view of the struct at the specified index of the cachedMeasurements field. |
YGFloatOptional |
computedFlexBasis()
Returns a
YGFloatOptional view of the computedFlexBasis field. |
int |
computedFlexBasisGeneration()
Returns the value of the
computedFlexBasisGeneration field. |
boolean |
didUseLegacyFlag()
Returns the value of the
didUseLegacyFlag field. |
java.nio.FloatBuffer |
dimensions()
Returns a
FloatBuffer view of the dimensions field. |
float |
dimensions(int index)
Returns the value at the specified index of the
dimensions field. |
int |
direction()
Returns the value of the
direction field. |
boolean |
doesLegacyStretchFlagAffectsLayout()
Returns the value of the
doesLegacyStretchFlagAffectsLayout field. |
int |
generationCount()
Returns the value of the
generationCount field. |
boolean |
hadOverflow()
Returns the value of the
hadOverflow field. |
int |
lastOwnerDirection()
Returns the value of the
lastOwnerDirection field. |
java.nio.FloatBuffer |
margin()
Returns a
FloatBuffer view of the margin field. |
float |
margin(int index)
Returns the value at the specified index of the
margin field. |
java.nio.FloatBuffer |
measuredDimensions()
Returns a
FloatBuffer view of the measuredDimensions field. |
float |
measuredDimensions(int index)
Returns the value at the specified index of the
measuredDimensions field. |
int |
nextCachedMeasurementsIndex()
Returns the value of the
nextCachedMeasurementsIndex field. |
java.nio.FloatBuffer |
padding()
Returns a
FloatBuffer view of the padding field. |
float |
padding(int index)
Returns the value at the specified index of the
padding field. |
java.nio.FloatBuffer |
positions()
Returns a
FloatBuffer view of the positions field. |
float |
positions(int index)
Returns the value at the specified index of the
positions field. |
apply, apply, forEach, get, get, get, get, iterator, parallelStream, put, put, sizeof, spliterator, streampublic Buffer(java.nio.ByteBuffer container)
YGLayout.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 YGLayout.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 java.nio.FloatBuffer positions()
FloatBuffer view of the positions field.public float positions(int index)
positions field.public java.nio.FloatBuffer dimensions()
FloatBuffer view of the dimensions field.public float dimensions(int index)
dimensions field.public java.nio.FloatBuffer margin()
FloatBuffer view of the margin field.public float margin(int index)
margin field.public java.nio.FloatBuffer border()
FloatBuffer view of the border field.public float border(int index)
border field.public java.nio.FloatBuffer padding()
FloatBuffer view of the padding field.public float padding(int index)
padding field.public int direction()
direction field.public boolean didUseLegacyFlag()
didUseLegacyFlag field.public boolean doesLegacyStretchFlagAffectsLayout()
doesLegacyStretchFlagAffectsLayout field.public boolean hadOverflow()
hadOverflow field.public int computedFlexBasisGeneration()
computedFlexBasisGeneration field.public YGFloatOptional computedFlexBasis()
YGFloatOptional view of the computedFlexBasis field.public int generationCount()
generationCount field.public int lastOwnerDirection()
lastOwnerDirection field.public int nextCachedMeasurementsIndex()
nextCachedMeasurementsIndex field.public YGCachedMeasurement.Buffer cachedMeasurements()
YGCachedMeasurement.Buffer view of the cachedMeasurements field.public YGCachedMeasurement cachedMeasurements(int index)
YGCachedMeasurement view of the struct at the specified index of the cachedMeasurements field.public java.nio.FloatBuffer measuredDimensions()
FloatBuffer view of the measuredDimensions field.public float measuredDimensions(int index)
measuredDimensions field.public YGCachedMeasurement cachedLayout()
YGCachedMeasurement view of the cachedLayout field.Copyright LWJGL. All Rights Reserved. License terms.