struct YGLayout {
float positions[4];
float dimensions[2];
float margin[4];
float border[4];
float padding[4];
YGDirection direction : 2;
bool didUseLegacyFlag : 1;
bool doesLegacyStretchFlagAffectsLayout : 1;
bool hadOverflow : 1;
uint32_t computedFlexBasisGeneration;
YGFloatOptional computedFlexBasis;
uint32_t generationCount;
YGDirection lastOwnerDirection;
uint32_t nextCachedMeasurementsIndex;
YGCachedMeasurement cachedMeasurements[16];
float measuredDimensions[2];
YGCachedMeasurement cachedLayout;
}
| Modifier and Type | Class and Description |
|---|---|
| public static class | YGLayout.
An array of |
| Modifier and Type | Field and Description |
|---|---|
| public static final int | ALIGNOF
The struct alignment in bytes. |
| public static final int | BORDER
The struct member offsets. |
| public static final int | CACHEDLAYOUT
The struct member offsets. |
| public static final int | CACHEDMEASUREMENTS
The struct member offsets. |
| public static final int | COMPUTEDFLEXBASIS
The struct member offsets. |
| public static final int | COMPUTEDFLEXBASISGENERATION
The struct member offsets. |
| public static final int | DIMENSIONS
The struct member offsets. |
| public static final int | FLAGS
The struct member offsets. |
| public static final int | GENERATIONCOUNT
The struct member offsets. |
| public static final int | LASTOWNERDIRECTION
The struct member offsets. |
| public static final int | MARGIN
The struct member offsets. |
| public static final int | MEASUREDDIMENSIONS
The struct member offsets. |
| public static final int | NEXTCACHEDMEASUREMENTSINDEX
The struct member offsets. |
| public static final int | PADDING
The struct member offsets. |
| public static final int | POSITIONS
The struct member offsets. |
| public static final int | SIZEOF
The struct size in bytes. |
| Access | Constructor and Description |
|---|---|
| protected | |
| public | YGLayout(ByteBuffer container)
Creates a |
| Modifier and Type | Method and Description |
|---|---|
| public FloatBuffer | |
| public float | |
| public YGCachedMeasurement | |
| public YGCachedMeasurement. | |
| public YGCachedMeasurement | Returns: aYGCachedMeasurement view of the struct at the specified index of the cachedMeasurements field.
|
| public YGFloatOptional | |
| public int | |
| protected YGLayout | create(long
the struct memory address address, ByteBuffer an optional container buffer, to be referenced strongly by the struct instance. container)Implements abstract org. the constructor, but returns the exact type of the Struct subclass.
|
| public static YGLayout | |
| public static YGLayout. | create(long
the memory address address, int the buffer capacity capacity)Create a |
| public static YGLayout | |
| public static YGLayout. | |
| public boolean | |
| public FloatBuffer | |
| public float | |
| public int | |
| public boolean | Returns: the value of thedoesLegacyStretchFlagAffectsLayout field.
|
| public int | |
| public boolean | |
| public int | |
| public FloatBuffer | |
| public float | |
| public FloatBuffer | |
| public float | Returns: the value at the specified index of themeasuredDimensions field.
|
| public static FloatBuffer | |
| public static float | |
| public static YGCachedMeasurement | |
| public static YGCachedMeasurement. | |
| public static YGCachedMeasurement | |
| public static YGFloatOptional | |
| public static int | |
| public static boolean | |
| public static FloatBuffer | |
| public static float | |
| public static int | |
| public static boolean | ndoesLegacyStretchFlagAffectsLayout(long struct)
Unsafe version of |
| public int | |
| public static byte | |
| public static int | |
| public static boolean | |
| public static int | |
| public static FloatBuffer | |
| public static float | |
| public static FloatBuffer | |
| public static float | |
| public static int | |
| public static FloatBuffer | |
| public static float | |
| public static FloatBuffer | |
| public static float | |
| public FloatBuffer | |
| public float | |
| public FloatBuffer | |
| public float | |
| public int |
| ALIGNOF | back to summary |
|---|---|
| public static final int ALIGNOF The struct alignment in bytes. | |
| BORDER | back to summary |
|---|---|
| public static final int BORDER The struct member offsets. | |
| CACHEDLAYOUT | back to summary |
|---|---|
| public static final int CACHEDLAYOUT The struct member offsets. | |
| CACHEDMEASUREMENTS | back to summary |
|---|---|
| public static final int CACHEDMEASUREMENTS The struct member offsets. | |
| COMPUTEDFLEXBASIS | back to summary |
|---|---|
| public static final int COMPUTEDFLEXBASIS The struct member offsets. | |
| COMPUTEDFLEXBASISGENERATION | back to summary |
|---|---|
| public static final int COMPUTEDFLEXBASISGENERATION The struct member offsets. | |
| DIMENSIONS | back to summary |
|---|---|
| public static final int DIMENSIONS The struct member offsets. | |
| FLAGS | back to summary |
|---|---|
| public static final int FLAGS The struct member offsets. | |
| GENERATIONCOUNT | back to summary |
|---|---|
| public static final int GENERATIONCOUNT The struct member offsets. | |
| LASTOWNERDIRECTION | back to summary |
|---|---|
| public static final int LASTOWNERDIRECTION The struct member offsets. | |
| MARGIN | back to summary |
|---|---|
| public static final int MARGIN The struct member offsets. | |
| MEASUREDDIMENSIONS | back to summary |
|---|---|
| public static final int MEASUREDDIMENSIONS The struct member offsets. | |
| NEXTCACHEDMEASUREMENTSINDEX | back to summary |
|---|---|
| public static final int NEXTCACHEDMEASUREMENTSINDEX The struct member offsets. | |
| PADDING | back to summary |
|---|---|
| public static final int PADDING The struct member offsets. | |
| POSITIONS | back to summary |
|---|---|
| public static final int POSITIONS The struct member offsets. | |
| SIZEOF | back to summary |
|---|---|
| public static final int SIZEOF The struct size in bytes. | |
| YGLayout | back to summary |
|---|---|
| protected YGLayout(long address, ByteBuffer container) | |
| YGLayout | back to summary |
|---|---|
| public YGLayout(ByteBuffer container) Creates a The created instance holds a strong reference to the container object. | |
| border | back to summary |
|---|---|
public FloatBuffer border()
| |
| border | back to summary |
|---|---|
public float border(int index)
| |
| cachedLayout | back to summary |
|---|---|
public YGCachedMeasurement cachedLayout()
| |
| cachedMeasurements | back to summary |
|---|---|
public YGCachedMeasurement.
| |
| cachedMeasurements | back to summary |
|---|---|
public YGCachedMeasurement cachedMeasurements(int index)
| |
| computedFlexBasis | back to summary |
|---|---|
public YGFloatOptional computedFlexBasis()
| |
| computedFlexBasisGeneration | back to summary |
|---|---|
public int computedFlexBasisGeneration()
| |
| create | back to summary |
|---|---|
| protected YGLayout create(long address, ByteBuffer container) Implements abstract org. Doc from org. Similar to Effectively, every
| |
| create | back to summary |
|---|---|
| public static YGLayout create(long address) Returns a new | |
| create | back to summary |
|---|---|
| public static YGLayout. Create a
| |
| createSafe | back to summary |
|---|---|
| public static YGLayout createSafe(long address) Like
| |
| createSafe | back to summary |
|---|---|
| public static YGLayout. Like
| |
| didUseLegacyFlag | back to summary |
|---|---|
public boolean didUseLegacyFlag()
| |
| dimensions | back to summary |
|---|---|
public FloatBuffer dimensions()
| |
| dimensions | back to summary |
|---|---|
public float dimensions(int index)
| |
| direction | back to summary |
|---|---|
public int direction()
| |
| doesLegacyStretchFlagAffectsLayout | back to summary |
|---|---|
public boolean doesLegacyStretchFlagAffectsLayout()
| |
| generationCount | back to summary |
|---|---|
public int generationCount()
| |
| hadOverflow | back to summary |
|---|---|
public boolean hadOverflow()
| |
| lastOwnerDirection | back to summary |
|---|---|
public int lastOwnerDirection()
| |
| margin | back to summary |
|---|---|
public FloatBuffer margin()
| |
| margin | back to summary |
|---|---|
public float margin(int index)
| |
| measuredDimensions | back to summary |
|---|---|
public FloatBuffer measuredDimensions()
| |
| measuredDimensions | back to summary |
|---|---|
public float measuredDimensions(int index)
| |
| nborder | back to summary |
|---|---|
| public static FloatBuffer nborder(long struct) Unsafe version of | |
| nborder | back to summary |
|---|---|
| public static float nborder(long struct, int index) Unsafe version of | |
| ncachedLayout | back to summary |
|---|---|
| public static YGCachedMeasurement ncachedLayout(long struct) Unsafe version of | |
| ncachedMeasurements | back to summary |
|---|---|
| public static YGCachedMeasurement. Unsafe version of | |
| ncachedMeasurements | back to summary |
|---|---|
| public static YGCachedMeasurement ncachedMeasurements(long struct, int index) Unsafe version of | |
| ncomputedFlexBasis | back to summary |
|---|---|
| public static YGFloatOptional ncomputedFlexBasis(long struct) Unsafe version of | |
| ncomputedFlexBasisGeneration | back to summary |
|---|---|
| public static int ncomputedFlexBasisGeneration(long struct) Unsafe version of | |
| ndidUseLegacyFlag | back to summary |
|---|---|
| public static boolean ndidUseLegacyFlag(long struct) Unsafe version of | |
| ndimensions | back to summary |
|---|---|
| public static FloatBuffer ndimensions(long struct) Unsafe version of | |
| ndimensions | back to summary |
|---|---|
| public static float ndimensions(long struct, int index) Unsafe version of | |
| ndirection | back to summary |
|---|---|
| public static int ndirection(long struct) Unsafe version of | |
| ndoesLegacyStretchFlagAffectsLayout | back to summary |
|---|---|
| public static boolean ndoesLegacyStretchFlagAffectsLayout(long struct) Unsafe version of | |
| nextCachedMeasurementsIndex | back to summary |
|---|---|
public int nextCachedMeasurementsIndex()
| |
| nflags | back to summary |
|---|---|
| public static byte nflags(long struct) | |
| ngenerationCount | back to summary |
|---|---|
| public static int ngenerationCount(long struct) Unsafe version of | |
| nhadOverflow | back to summary |
|---|---|
| public static boolean nhadOverflow(long struct) Unsafe version of | |
| nlastOwnerDirection | back to summary |
|---|---|
| public static int nlastOwnerDirection(long struct) Unsafe version of | |
| nmargin | back to summary |
|---|---|
| public static FloatBuffer nmargin(long struct) Unsafe version of | |
| nmargin | back to summary |
|---|---|
| public static float nmargin(long struct, int index) Unsafe version of | |
| nmeasuredDimensions | back to summary |
|---|---|
| public static FloatBuffer nmeasuredDimensions(long struct) Unsafe version of | |
| nmeasuredDimensions | back to summary |
|---|---|
| public static float nmeasuredDimensions(long struct, int index) Unsafe version of | |
| nnextCachedMeasurementsIndex | back to summary |
|---|---|
| public static int nnextCachedMeasurementsIndex(long struct) Unsafe version of | |
| npadding | back to summary |
|---|---|
| public static FloatBuffer npadding(long struct) Unsafe version of | |
| npadding | back to summary |
|---|---|
| public static float npadding(long struct, int index) Unsafe version of | |
| npositions | back to summary |
|---|---|
| public static FloatBuffer npositions(long struct) Unsafe version of | |
| npositions | back to summary |
|---|---|
| public static float npositions(long struct, int index) Unsafe version of | |
| padding | back to summary |
|---|---|
public FloatBuffer padding()
| |
| padding | back to summary |
|---|---|
public float padding(int index)
| |
| positions | back to summary |
|---|---|
public FloatBuffer positions()
| |
| positions | back to summary |
|---|---|
public float positions(int index)
| |
| sizeof | back to summary |
|---|---|
| public int sizeof() Implements abstract org. Doc from org. Returns
| |
YGLayout structs.
| Modifier and Type | Field and Description |
|---|---|
| private static final YGLayout |
| Access | Constructor and Description |
|---|---|
| public | Buffer(ByteBuffer container)
Creates a new |
| public | |
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public FloatBuffer | |
| public float | |
| public YGCachedMeasurement | |
| public YGCachedMeasurement. | |
| public YGCachedMeasurement | Returns: aYGCachedMeasurement view of the struct at the specified index of the cachedMeasurements field.
|
| public YGFloatOptional | |
| public int | |
| public boolean | |
| public FloatBuffer | |
| public float | |
| public int | |
| public boolean | Returns: the value of thedoesLegacyStretchFlagAffectsLayout field.
|
| public int | |
| protected YGLayout | |
| public boolean | |
| public int | |
| public FloatBuffer | |
| public float | |
| public FloatBuffer | |
| public float | Returns: the value at the specified index of themeasuredDimensions field.
|
| public int | |
| public FloatBuffer | |
| public float | |
| public FloatBuffer | |
| public float | |
| protected YGLayout. |
| ELEMENT_FACTORY | back to summary |
|---|---|
| private static final YGLayout ELEMENT_FACTORY | |
| Buffer | back to summary |
|---|---|
| public Buffer(ByteBuffer container) Creates a new 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 The created buffer instance holds a strong reference to the container object. | |
| Buffer | back to summary |
|---|---|
| public Buffer(long address, int cap) | |
| Buffer | back to summary |
|---|---|
| pack-priv Buffer(long address, ByteBuffer container, int mark, int pos, int lim, int cap) | |
| border | back to summary |
|---|---|
public FloatBuffer border()
| |
| border | back to summary |
|---|---|
public float border(int index)
| |
| cachedLayout | back to summary |
|---|---|
public YGCachedMeasurement cachedLayout()
| |
| cachedMeasurements | back to summary |
|---|---|
public YGCachedMeasurement.
| |
| cachedMeasurements | back to summary |
|---|---|
public YGCachedMeasurement cachedMeasurements(int index)
| |
| computedFlexBasis | back to summary |
|---|---|
public YGFloatOptional computedFlexBasis()
| |
| computedFlexBasisGeneration | back to summary |
|---|---|
public int computedFlexBasisGeneration()
| |
| didUseLegacyFlag | back to summary |
|---|---|
public boolean didUseLegacyFlag()
| |
| dimensions | back to summary |
|---|---|
public FloatBuffer dimensions()
| |
| dimensions | back to summary |
|---|---|
public float dimensions(int index)
| |
| direction | back to summary |
|---|---|
public int direction()
| |
| doesLegacyStretchFlagAffectsLayout | back to summary |
|---|---|
public boolean doesLegacyStretchFlagAffectsLayout()
| |
| generationCount | back to summary |
|---|---|
public int generationCount()
| |
| getElementFactory | back to summary |
|---|---|
| protected YGLayout getElementFactory() Implements abstract org.
| |
| hadOverflow | back to summary |
|---|---|
public boolean hadOverflow()
| |
| lastOwnerDirection | back to summary |
|---|---|
public int lastOwnerDirection()
| |
| margin | back to summary |
|---|---|
public FloatBuffer margin()
| |
| margin | back to summary |
|---|---|
public float margin(int index)
| |
| measuredDimensions | back to summary |
|---|---|
public FloatBuffer measuredDimensions()
| |
| measuredDimensions | back to summary |
|---|---|
public float measuredDimensions(int index)
| |
| nextCachedMeasurementsIndex | back to summary |
|---|---|
public int nextCachedMeasurementsIndex()
| |
| padding | back to summary |
|---|---|
public FloatBuffer padding()
| |
| padding | back to summary |
|---|---|
public float padding(int index)
| |
| positions | back to summary |
|---|---|
public FloatBuffer positions()
| |
| positions | back to summary |
|---|---|
public float positions(int index)
| |
| self | back to summary |
|---|---|
| protected YGLayout. Implements abstract org.
| |