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.StructLayout
struct YGFloatOptional { float value; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classYGFloatOptional.BufferAn array ofYGFloatOptionalstructs.
-
Constructor Summary
Constructors Constructor Description YGFloatOptional(java.nio.ByteBuffer container)Creates aYGFloatOptionalinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static YGFloatOptionalcreate(long address)Returns a newYGFloatOptionalinstance for the specified memory address.static YGFloatOptional.Buffercreate(long address, int capacity)Create aYGFloatOptional.Bufferinstance at the specified memory.static YGFloatOptionalcreateSafe(long address)static YGFloatOptional.BuffercreateSafe(long address, int capacity)booleanisUndefined()static floatnvalue(long struct)Unsafe version ofvalue().intsizeof()floatvalue()
-
-
-
Constructor Detail
-
YGFloatOptional
public YGFloatOptional(java.nio.ByteBuffer container)
Creates aYGFloatOptionalinstance at the current position of the specifiedByteBuffercontainer. 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:
sizeofin classorg.lwjgl.system.Struct
-
value
public float value()
- Returns:
- the value of the
valuefield.
-
create
public static YGFloatOptional create(long address)
Returns a newYGFloatOptionalinstance 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.Bufferinstance 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()
-
-