Package org.lwjgl.util.yoga
Class YGFloatOptional
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.util.yoga.YGFloatOptional
-
- All Implemented Interfaces:
org.lwjgl.system.Pointer
public class YGFloatOptional extends org.lwjgl.system.Struct
Layout
struct YGFloatOptional { float value; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
YGFloatOptional.Buffer
An array ofYGFloatOptional
structs.
-
Constructor Summary
Constructors Constructor Description YGFloatOptional(java.nio.ByteBuffer container)
Creates aYGFloatOptional
instance at the current position of the specifiedByteBuffer
container.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static YGFloatOptional
create(long address)
Returns a newYGFloatOptional
instance for the specified memory address.static YGFloatOptional.Buffer
create(long address, int capacity)
Create aYGFloatOptional.Buffer
instance at the specified memory.static YGFloatOptional
createSafe(long address)
static YGFloatOptional.Buffer
createSafe(long address, int capacity)
boolean
isUndefined()
static float
nvalue(long struct)
Unsafe version ofvalue()
.int
sizeof()
float
value()
Returns the value of thevalue
field.
-
-
-
Constructor Detail
-
YGFloatOptional
public YGFloatOptional(java.nio.ByteBuffer container)
Creates aYGFloatOptional
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
-
value
public float value()
Returns the value of thevalue
field.
-
create
public static YGFloatOptional create(long address)
Returns a newYGFloatOptional
instance for the specified memory address.
-
createSafe
@Nullable public static YGFloatOptional createSafe(long address)
-
create
public static YGFloatOptional.Buffer create(long address, int capacity)
Create aYGFloatOptional.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
@Nullable public static YGFloatOptional.Buffer createSafe(long address, int capacity)
-
nvalue
public static float nvalue(long struct)
Unsafe version ofvalue()
.
-
isUndefined
public boolean isUndefined()
-
-