public class YGCachedMeasurement
extends org.lwjgl.system.Struct
struct YGCachedMeasurement {
float availableWidth;
float availableHeight;
YGMeasureMode widthMeasureMode;
YGMeasureMode heightMeasureMode;
float computedWidth;
float computedHeight;
}| Modifier and Type | Class and Description |
|---|---|
static class |
YGCachedMeasurement.Buffer
An array of
YGCachedMeasurement structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
AVAILABLEHEIGHT
The struct member offsets.
|
static int |
AVAILABLEWIDTH
The struct member offsets.
|
static int |
COMPUTEDHEIGHT
The struct member offsets.
|
static int |
COMPUTEDWIDTH
The struct member offsets.
|
static int |
HEIGHTMEASUREMODE
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
static int |
WIDTHMEASUREMODE
The struct member offsets.
|
| Constructor and Description |
|---|
YGCachedMeasurement(java.nio.ByteBuffer container)
Creates a
YGCachedMeasurement instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
float |
availableHeight()
Returns the value of the
availableHeight field. |
float |
availableWidth()
Returns the value of the
availableWidth field. |
float |
computedHeight()
Returns the value of the
computedHeight field. |
float |
computedWidth()
Returns the value of the
computedWidth field. |
static YGCachedMeasurement |
create(long address)
Returns a new
YGCachedMeasurement instance for the specified memory address. |
static YGCachedMeasurement.Buffer |
create(long address,
int capacity)
Create a
YGCachedMeasurement.Buffer instance at the specified memory. |
static YGCachedMeasurement |
createSafe(long address)
|
static YGCachedMeasurement.Buffer |
createSafe(long address,
int capacity)
|
int |
heightMeasureMode()
Returns the value of the
heightMeasureMode field. |
static float |
navailableHeight(long struct)
Unsafe version of
availableHeight(). |
static float |
navailableWidth(long struct)
Unsafe version of
availableWidth(). |
static float |
ncomputedHeight(long struct)
Unsafe version of
computedHeight(). |
static float |
ncomputedWidth(long struct)
Unsafe version of
computedWidth(). |
static int |
nheightMeasureMode(long struct)
Unsafe version of
heightMeasureMode(). |
static int |
nwidthMeasureMode(long struct)
Unsafe version of
widthMeasureMode(). |
int |
sizeof() |
int |
widthMeasureMode()
Returns the value of the
widthMeasureMode field. |
public static final int SIZEOF
public static final int ALIGNOF
public static final int AVAILABLEWIDTH
public static final int AVAILABLEHEIGHT
public static final int WIDTHMEASUREMODE
public static final int HEIGHTMEASUREMODE
public static final int COMPUTEDWIDTH
public static final int COMPUTEDHEIGHT
public YGCachedMeasurement(java.nio.ByteBuffer container)
YGCachedMeasurement instance at the current position of the specified ByteBuffer container. Changes to the buffer's content will be
visible to the struct instance and vice versa.
The created instance holds a strong reference to the container object.
public int sizeof()
sizeof in class org.lwjgl.system.Structpublic float availableWidth()
availableWidth field.public float availableHeight()
availableHeight field.public int widthMeasureMode()
widthMeasureMode field.public int heightMeasureMode()
heightMeasureMode field.public float computedWidth()
computedWidth field.public float computedHeight()
computedHeight field.public static YGCachedMeasurement create(long address)
YGCachedMeasurement instance for the specified memory address.@Nullable public static YGCachedMeasurement createSafe(long address)
public static YGCachedMeasurement.Buffer create(long address, int capacity)
YGCachedMeasurement.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static YGCachedMeasurement.Buffer createSafe(long address, int capacity)
public static float navailableWidth(long struct)
availableWidth().public static float navailableHeight(long struct)
availableHeight().public static int nwidthMeasureMode(long struct)
widthMeasureMode().public static int nheightMeasureMode(long struct)
heightMeasureMode().public static float ncomputedWidth(long struct)
computedWidth().public static float ncomputedHeight(long struct)
computedHeight().Copyright LWJGL. All Rights Reserved. License terms.