Package org.lwjgl.util.yoga
Class YGCachedMeasurement
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.util.yoga.YGCachedMeasurement
-
- All Implemented Interfaces:
org.lwjgl.system.Pointer
public class YGCachedMeasurement extends org.lwjgl.system.Struct
Unstable/private API.Layout
struct YGCachedMeasurement { float availableWidth; float availableHeight; YGMeasureMode widthMeasureMode; YGMeasureMode heightMeasureMode; float computedWidth; float computedHeight; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
YGCachedMeasurement.Buffer
An array ofYGCachedMeasurement
structs.
-
Field Summary
Fields Modifier and Type Field Description static int
ALIGNOF
The struct alignment in bytes.static int
AVAILABLEHEIGHT
AVAILABLEWIDTH
COMPUTEDHEIGHT
COMPUTEDWIDTH
HEIGHTMEASUREMODEThe struct member offsets.static int
SIZEOF
The struct size in bytes.static int
WIDTHMEASUREMODE
The struct member offsets.
-
Constructor Summary
Constructors Constructor Description YGCachedMeasurement(java.nio.ByteBuffer container)
Creates aYGCachedMeasurement
instance at the current position of the specifiedByteBuffer
container.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description float
availableHeight()
Returns the value of theavailableHeight
field.float
availableWidth()
Returns the value of theavailableWidth
field.float
computedHeight()
Returns the value of thecomputedHeight
field.float
computedWidth()
Returns the value of thecomputedWidth
field.static YGCachedMeasurement
create(long address)
Returns a newYGCachedMeasurement
instance for the specified memory address.static YGCachedMeasurement.Buffer
create(long address, int capacity)
Create aYGCachedMeasurement.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 theheightMeasureMode
field.static float
navailableHeight(long struct)
Unsafe version ofavailableHeight()
.static float
navailableWidth(long struct)
Unsafe version ofavailableWidth()
.static float
ncomputedHeight(long struct)
Unsafe version ofcomputedHeight()
.static float
ncomputedWidth(long struct)
Unsafe version ofcomputedWidth()
.static int
nheightMeasureMode(long struct)
Unsafe version ofheightMeasureMode()
.static int
nwidthMeasureMode(long struct)
Unsafe version ofwidthMeasureMode()
.int
sizeof()
int
widthMeasureMode()
Returns the value of thewidthMeasureMode
field.
-
-
-
Constructor Detail
-
YGCachedMeasurement
public YGCachedMeasurement(java.nio.ByteBuffer container)
Creates aYGCachedMeasurement
instance at the current position of the specifiedByteBuffer
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.
-
-
Method Detail
-
sizeof
public int sizeof()
- Specified by:
sizeof
in classorg.lwjgl.system.Struct
-
availableWidth
public float availableWidth()
Returns the value of theavailableWidth
field.
-
availableHeight
public float availableHeight()
Returns the value of theavailableHeight
field.
-
widthMeasureMode
public int widthMeasureMode()
Returns the value of thewidthMeasureMode
field.
-
heightMeasureMode
public int heightMeasureMode()
Returns the value of theheightMeasureMode
field.
-
computedWidth
public float computedWidth()
Returns the value of thecomputedWidth
field.
-
computedHeight
public float computedHeight()
Returns the value of thecomputedHeight
field.
-
create
public static YGCachedMeasurement create(long address)
Returns a newYGCachedMeasurement
instance for the specified memory address.
-
createSafe
@Nullable public static YGCachedMeasurement createSafe(long address)
-
create
public static YGCachedMeasurement.Buffer create(long address, int capacity)
Create aYGCachedMeasurement.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
@Nullable public static YGCachedMeasurement.Buffer createSafe(long address, int capacity)
-
navailableWidth
public static float navailableWidth(long struct)
Unsafe version ofavailableWidth()
.
-
navailableHeight
public static float navailableHeight(long struct)
Unsafe version ofavailableHeight()
.
-
nwidthMeasureMode
public static int nwidthMeasureMode(long struct)
Unsafe version ofwidthMeasureMode()
.
-
nheightMeasureMode
public static int nheightMeasureMode(long struct)
Unsafe version ofheightMeasureMode()
.
-
ncomputedWidth
public static float ncomputedWidth(long struct)
Unsafe version ofcomputedWidth()
.
-
ncomputedHeight
public static float ncomputedHeight(long struct)
Unsafe version ofcomputedHeight()
.
-
-