Top Description Inners Fields Constructors Methods
org.lwjgl.util.yoga

public Class YGNodeFlags

extends Struct<YGNodeFlags>
implements NativeResource
Class Inheritance
All Implemented Interfaces
org.lwjgl.system.NativeResource, java.lang.AutoCloseable
Imports
javax.annotation.*, java.nio.*, org.lwjgl.*, org.lwjgl.system.*

Layout


struct YGNodeFlags {
    bool hasNewLayout : 1;
    bool isReferenceBaseline : 1;
    bool isDirty : 1;
    YGNodeType nodeType : 1;
    bool measureUsesContext : 1;
    bool baselineUsesContext : 1;
    bool printUsesContext : 1;
}

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class
YGNodeFlags.Buffer

An array of YGNodeFlags structs.

Field Summary

Modifier and TypeField and Description
public static final int
ALIGNOF

The struct alignment in bytes.

public static final int
FLAGS

The struct member offsets.

public static final int
SIZEOF

The struct size in bytes.

Inherited from org.lwjgl.system.Struct:
containerDEFAULT_ALIGN_ASDEFAULT_PACK_ALIGNMENT

Constructor Summary

AccessConstructor and Description
protected
YGNodeFlags(long address, ByteBuffer container)

public
YGNodeFlags(ByteBuffer container)

Creates a YGNodeFlags instance at the current position of the specified ByteBuffer container.

Method Summary

Modifier and TypeMethod and Description
public boolean

Returns:

the value of the baselineUsesContext field.
baselineUsesContext
()

public YGNodeFlags
baselineUsesContext(boolean value)

Sets the specified value to the baselineUsesContext field.

public static YGNodeFlags
calloc()

Returns a new YGNodeFlags instance allocated with memCalloc.

public static YGNodeFlags.Buffer
calloc(int
the buffer capacity
capacity
)

Returns a new YGNodeFlags.Buffer instance allocated with memCalloc.

public static YGNodeFlags
calloc(MemoryStack
the stack from which to allocate
stack
)

Returns a new YGNodeFlags instance allocated on the specified MemoryStack and initializes all its bits to zero.

public static YGNodeFlags.Buffer
calloc(int
the buffer capacity
capacity
,
MemoryStack
the stack from which to allocate
stack
)

Returns a new YGNodeFlags.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.

protected YGNodeFlags
create(long
the struct memory address
address
,
ByteBuffer
an optional container buffer, to be referenced strongly by the struct instance.
container
)

Implements abstract org.lwjgl.system.Struct.create.

Similar to the constructor, but returns the exact type of the Struct subclass.
public static YGNodeFlags
create()

Returns a new YGNodeFlags instance allocated with BufferUtils.

public static YGNodeFlags
create(long address)

Returns a new YGNodeFlags instance for the specified memory address.

public static YGNodeFlags.Buffer
create(int
the buffer capacity
capacity
)

Returns a new YGNodeFlags.Buffer instance allocated with BufferUtils.

public static YGNodeFlags.Buffer
create(long
the memory address
address
,
int
the buffer capacity
capacity
)

Create a YGNodeFlags.Buffer instance at the specified memory.

public static YGNodeFlags
createSafe(long address)

Like create, but returns null if address is NULL.

public static YGNodeFlags.Buffer
createSafe(long address, int capacity)

Like create, but returns null if address is NULL.

public boolean

Returns:

the value of the hasNewLayout field.
hasNewLayout
()

public YGNodeFlags
hasNewLayout(boolean value)

Sets the specified value to the hasNewLayout field.

public boolean

Returns:

the value of the isDirty field.
isDirty
()

public YGNodeFlags
isDirty(boolean value)

Sets the specified value to the isDirty field.

public boolean

Returns:

the value of the isReferenceBaseline field.
isReferenceBaseline
()

public YGNodeFlags
isReferenceBaseline(boolean value)

Sets the specified value to the isReferenceBaseline field.

public static YGNodeFlags
malloc()

Returns a new YGNodeFlags instance allocated with memAlloc.

public static YGNodeFlags.Buffer
malloc(int
the buffer capacity
capacity
)

Returns a new YGNodeFlags.Buffer instance allocated with memAlloc.

public static YGNodeFlags
malloc(MemoryStack
the stack from which to allocate
stack
)

Returns a new YGNodeFlags instance allocated on the specified MemoryStack.

public static YGNodeFlags.Buffer
malloc(int
the buffer capacity
capacity
,
MemoryStack
the stack from which to allocate
stack
)

Returns a new YGNodeFlags.Buffer instance allocated on the specified MemoryStack.

public boolean

Returns:

the value of the measureUsesContext field.
measureUsesContext
()

public YGNodeFlags
measureUsesContext(boolean value)

Sets the specified value to the measureUsesContext field.

public static boolean
nbaselineUsesContext(long struct)

Unsafe version of baselineUsesContext.

public static native void
nbaselineUsesContext(long struct, boolean value)

Unsafe version of baselineUsesContext.

public static byte
nflags(long struct)

public static void
nflags(long struct, byte value)

public static boolean
nhasNewLayout(long struct)

Unsafe version of hasNewLayout.

public static native void
nhasNewLayout(long struct, boolean value)

Unsafe version of hasNewLayout.

public static boolean
nisDirty(long struct)

Unsafe version of isDirty.

public static native void
nisDirty(long struct, boolean value)

Unsafe version of isDirty.

public static boolean
nisReferenceBaseline(long struct)

Unsafe version of isReferenceBaseline.

public static native void
nisReferenceBaseline(long struct, boolean value)

Unsafe version of isReferenceBaseline.

public static boolean
nmeasureUsesContext(long struct)

Unsafe version of measureUsesContext.

public static native void
nmeasureUsesContext(long struct, boolean value)

Unsafe version of measureUsesContext.

public static int
nnodeType(long struct)

Unsafe version of nodeType.

public static native void
nnodeType(long struct, int value)

Unsafe version of nodeType.

public int

Returns:

the value of the nodeType field.
nodeType
()

public YGNodeFlags
nodeType(int value)

Sets the specified value to the nodeType field.

public static boolean
nprintUsesContext(long struct)

Unsafe version of printUsesContext.

public static native void
nprintUsesContext(long struct, boolean value)

Unsafe version of printUsesContext.

public boolean

Returns:

the value of the printUsesContext field.
printUsesContext
()

public YGNodeFlags
printUsesContext(boolean value)

Sets the specified value to the printUsesContext field.

public YGNodeFlags
set(boolean hasNewLayout, boolean isReferenceBaseline, boolean isDirty, int nodeType, boolean measureUsesContext, boolean baselineUsesContext, boolean printUsesContext)

Initializes this struct with the specified values.

public YGNodeFlags

Returns:

this struct
set
(YGNodeFlags
the source struct
src
)

Copies the specified struct data to this struct.

public int
sizeof()

Implements abstract org.lwjgl.system.Struct.sizeof.

Returns sizeof(struct).
Inherited from org.lwjgl.system.Struct:
__array__array__array__checkContainer__checkMalloc__create__getContainer__getContainer__member__member__member__padding__padding__struct__struct__union__unionclearfreeisNullvalidate

Field Detail

ALIGNOFback to summary
public static final int ALIGNOF

The struct alignment in bytes.

FLAGSback to summary
public static final int FLAGS

The struct member offsets.

SIZEOFback to summary
public static final int SIZEOF

The struct size in bytes.

Constructor Detail

YGNodeFlagsback to summary
protected YGNodeFlags(long address, ByteBuffer container)
YGNodeFlagsback to summary
public YGNodeFlags(ByteBuffer container)

Creates a YGNodeFlags 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.

Method Detail

baselineUsesContextback to summary
public boolean baselineUsesContext()
Returns:boolean

the value of the baselineUsesContext field.

Annotations
@NativeType:bool
baselineUsesContextback to summary
public YGNodeFlags baselineUsesContext(boolean value)

Sets the specified value to the baselineUsesContext field.

callocback to summary
public static YGNodeFlags calloc()

Returns a new YGNodeFlags instance allocated with memCalloc. The instance must be explicitly freed.

callocback to summary
public static YGNodeFlags.Buffer calloc(int capacity)

Returns a new YGNodeFlags.Buffer instance allocated with memCalloc. The instance must be explicitly freed.

Parameters
capacity:int

the buffer capacity

callocback to summary
public static YGNodeFlags calloc(MemoryStack stack)

Returns a new YGNodeFlags instance allocated on the specified MemoryStack and initializes all its bits to zero.

Parameters
stack:MemoryStack

the stack from which to allocate

callocback to summary
public static YGNodeFlags.Buffer calloc(int capacity, MemoryStack stack)

Returns a new YGNodeFlags.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.

Parameters
capacity:int

the buffer capacity

stack:MemoryStack

the stack from which to allocate

createback to summary
protected YGNodeFlags create(long address, ByteBuffer container)

Implements abstract org.lwjgl.system.Struct.create.

Doc from org.lwjgl.system.Struct.create.

Similar to the constructor, but returns the exact type of the Struct subclass.

Effectively, every Struct instance is a factory for more instances of the same type. This is used by StructBuffer.

Parameters
address:long

the struct memory address

container:ByteBuffer

an optional container buffer, to be referenced strongly by the struct instance.

Annotations
@Override
createback to summary
public static YGNodeFlags create()

Returns a new YGNodeFlags instance allocated with BufferUtils.

createback to summary
public static YGNodeFlags create(long address)

Returns a new YGNodeFlags instance for the specified memory address.

createback to summary
public static YGNodeFlags.Buffer create(int capacity)

Returns a new YGNodeFlags.Buffer instance allocated with BufferUtils.

Parameters
capacity:int

the buffer capacity

createback to summary
public static YGNodeFlags.Buffer create(long address, int capacity)

Create a YGNodeFlags.Buffer instance at the specified memory.

Parameters
address:long

the memory address

capacity:int

the buffer capacity

createSafeback to summary
public static YGNodeFlags createSafe(long address)

Like create, but returns null if address is NULL.

Annotations
@Nullable
createSafeback to summary
public static YGNodeFlags.Buffer createSafe(long address, int capacity)

Like create, but returns null if address is NULL.

Annotations
@Nullable
hasNewLayoutback to summary
public boolean hasNewLayout()
Returns:boolean

the value of the hasNewLayout field.

Annotations
@NativeType:bool
hasNewLayoutback to summary
public YGNodeFlags hasNewLayout(boolean value)

Sets the specified value to the hasNewLayout field.

isDirtyback to summary
public boolean isDirty()
Returns:boolean

the value of the isDirty field.

Annotations
@NativeType:bool
isDirtyback to summary
public YGNodeFlags isDirty(boolean value)

Sets the specified value to the isDirty field.

isReferenceBaselineback to summary
public boolean isReferenceBaseline()
Returns:boolean

the value of the isReferenceBaseline field.

Annotations
@NativeType:bool
isReferenceBaselineback to summary
public YGNodeFlags isReferenceBaseline(boolean value)

Sets the specified value to the isReferenceBaseline field.

mallocback to summary
public static YGNodeFlags malloc()

Returns a new YGNodeFlags instance allocated with memAlloc. The instance must be explicitly freed.

mallocback to summary
public static YGNodeFlags.Buffer malloc(int capacity)

Returns a new YGNodeFlags.Buffer instance allocated with memAlloc. The instance must be explicitly freed.

Parameters
capacity:int

the buffer capacity

mallocback to summary
public static YGNodeFlags malloc(MemoryStack stack)

Returns a new YGNodeFlags instance allocated on the specified MemoryStack.

Parameters
stack:MemoryStack

the stack from which to allocate

mallocback to summary
public static YGNodeFlags.Buffer malloc(int capacity, MemoryStack stack)

Returns a new YGNodeFlags.Buffer instance allocated on the specified MemoryStack.

Parameters
capacity:int

the buffer capacity

stack:MemoryStack

the stack from which to allocate

measureUsesContextback to summary
public boolean measureUsesContext()
Returns:boolean

the value of the measureUsesContext field.

Annotations
@NativeType:bool
measureUsesContextback to summary
public YGNodeFlags measureUsesContext(boolean value)

Sets the specified value to the measureUsesContext field.

nbaselineUsesContextback to summary
public static boolean nbaselineUsesContext(long struct)

Unsafe version of baselineUsesContext.

nbaselineUsesContextback to summary
public static native void nbaselineUsesContext(long struct, boolean value)

Unsafe version of baselineUsesContext.

nflagsback to summary
public static byte nflags(long struct)
nflagsback to summary
public static void nflags(long struct, byte value)
nhasNewLayoutback to summary
public static boolean nhasNewLayout(long struct)

Unsafe version of hasNewLayout.

nhasNewLayoutback to summary
public static native void nhasNewLayout(long struct, boolean value)

Unsafe version of hasNewLayout.

nisDirtyback to summary
public static boolean nisDirty(long struct)

Unsafe version of isDirty.

nisDirtyback to summary
public static native void nisDirty(long struct, boolean value)

Unsafe version of isDirty.

nisReferenceBaselineback to summary
public static boolean nisReferenceBaseline(long struct)

Unsafe version of isReferenceBaseline.

nisReferenceBaselineback to summary
public static native void nisReferenceBaseline(long struct, boolean value)

Unsafe version of isReferenceBaseline.

nmeasureUsesContextback to summary
public static boolean nmeasureUsesContext(long struct)

Unsafe version of measureUsesContext.

nmeasureUsesContextback to summary
public static native void nmeasureUsesContext(long struct, boolean value)

Unsafe version of measureUsesContext.

nnodeTypeback to summary
public static int nnodeType(long struct)

Unsafe version of nodeType.

nnodeTypeback to summary
public static native void nnodeType(long struct, int value)

Unsafe version of nodeType.

nodeTypeback to summary
public int nodeType()
Returns:int

the value of the nodeType field.

Annotations
@NativeType:YGNodeType
nodeTypeback to summary
public YGNodeFlags nodeType(int value)

Sets the specified value to the nodeType field.

nprintUsesContextback to summary
public static boolean nprintUsesContext(long struct)

Unsafe version of printUsesContext.

nprintUsesContextback to summary
public static native void nprintUsesContext(long struct, boolean value)

Unsafe version of printUsesContext.

printUsesContextback to summary
public boolean printUsesContext()
Returns:boolean

the value of the printUsesContext field.

Annotations
@NativeType:bool
printUsesContextback to summary
public YGNodeFlags printUsesContext(boolean value)

Sets the specified value to the printUsesContext field.

setback to summary
public YGNodeFlags set(boolean hasNewLayout, boolean isReferenceBaseline, boolean isDirty, int nodeType, boolean measureUsesContext, boolean baselineUsesContext, boolean printUsesContext)

Initializes this struct with the specified values.

setback to summary
public YGNodeFlags set(YGNodeFlags src)

Copies the specified struct data to this struct.

Parameters
src:YGNodeFlags

the source struct

Returns:YGNodeFlags

this struct

sizeofback to summary
public int sizeof()

Implements abstract org.lwjgl.system.Struct.sizeof.

Doc from org.lwjgl.system.Struct.sizeof.

Returns sizeof(struct).

Annotations
@Override
org.lwjgl.util.yoga back to summary

public Class YGNodeFlags.Buffer

extends StructBuffer<YGNodeFlags, YGNodeFlags.Buffer>
implements NativeResource
Class Inheritance
All Implemented Interfaces
org.lwjgl.system.NativeResource, java.lang.AutoCloseable

An array of YGNodeFlags structs.

Field Summary

Modifier and TypeField and Description
private static final YGNodeFlags

Constructor Summary

AccessConstructor and Description
public
Buffer(ByteBuffer container)

Creates a new YGNodeFlags.Buffer instance backed by the specified container.

public
Buffer(long address, int cap)

pack-priv
Buffer(long address, ByteBuffer container, int mark, int pos, int lim, int cap)

Method Summary

Modifier and TypeMethod and Description
public boolean

Returns:

the value of the baselineUsesContext field.
baselineUsesContext
()

public YGNodeFlags.Buffer
baselineUsesContext(boolean value)

Sets the specified value to the baselineUsesContext field.

protected YGNodeFlags
public boolean

Returns:

the value of the hasNewLayout field.
hasNewLayout
()

public YGNodeFlags.Buffer
hasNewLayout(boolean value)

Sets the specified value to the hasNewLayout field.

public boolean

Returns:

the value of the isDirty field.
isDirty
()

public YGNodeFlags.Buffer
isDirty(boolean value)

Sets the specified value to the isDirty field.

public boolean

Returns:

the value of the isReferenceBaseline field.
isReferenceBaseline
()

public YGNodeFlags.Buffer
isReferenceBaseline(boolean value)

Sets the specified value to the isReferenceBaseline field.

public boolean

Returns:

the value of the measureUsesContext field.
measureUsesContext
()

public YGNodeFlags.Buffer
measureUsesContext(boolean value)

Sets the specified value to the measureUsesContext field.

public int

Returns:

the value of the nodeType field.
nodeType
()

public YGNodeFlags.Buffer
nodeType(int value)

Sets the specified value to the nodeType field.

public boolean

Returns:

the value of the printUsesContext field.
printUsesContext
()

public YGNodeFlags.Buffer
printUsesContext(boolean value)

Sets the specified value to the printUsesContext field.

protected YGNodeFlags.Buffer
Inherited from org.lwjgl.system.StructBuffer:
applyapplyforEachgetgetgetgetiteratorparallelStreamputputsizeofspliteratorstream

Field Detail

ELEMENT_FACTORYback to summary
private static final YGNodeFlags ELEMENT_FACTORY

Constructor Detail

Bufferback to summary
public Buffer(ByteBuffer container)

Creates a new YGNodeFlags.Buffer instance backed by the specified container.

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 YGNodeFlags#SIZEOF, and its mark will be undefined.

The created buffer instance holds a strong reference to the container object.

Bufferback to summary
public Buffer(long address, int cap)
Bufferback to summary
pack-priv Buffer(long address, ByteBuffer container, int mark, int pos, int lim, int cap)

Method Detail

baselineUsesContextback to summary
public boolean baselineUsesContext()
Returns:boolean

the value of the baselineUsesContext field.

Annotations
@NativeType:bool
baselineUsesContextback to summary
public YGNodeFlags.Buffer baselineUsesContext(boolean value)

Sets the specified value to the baselineUsesContext field.

getElementFactoryback to summary
protected YGNodeFlags getElementFactory()

Implements abstract org.lwjgl.system.StructBuffer.getElementFactory.

Annotations
@Override
hasNewLayoutback to summary
public boolean hasNewLayout()
Returns:boolean

the value of the hasNewLayout field.

Annotations
@NativeType:bool
hasNewLayoutback to summary
public YGNodeFlags.Buffer hasNewLayout(boolean value)

Sets the specified value to the hasNewLayout field.

isDirtyback to summary
public boolean isDirty()
Returns:boolean

the value of the isDirty field.

Annotations
@NativeType:bool
isDirtyback to summary
public YGNodeFlags.Buffer isDirty(boolean value)

Sets the specified value to the isDirty field.

isReferenceBaselineback to summary
public boolean isReferenceBaseline()
Returns:boolean

the value of the isReferenceBaseline field.

Annotations
@NativeType:bool
isReferenceBaselineback to summary
public YGNodeFlags.Buffer isReferenceBaseline(boolean value)

Sets the specified value to the isReferenceBaseline field.

measureUsesContextback to summary
public boolean measureUsesContext()
Returns:boolean

the value of the measureUsesContext field.

Annotations
@NativeType:bool
measureUsesContextback to summary
public YGNodeFlags.Buffer measureUsesContext(boolean value)

Sets the specified value to the measureUsesContext field.

nodeTypeback to summary
public int nodeType()
Returns:int

the value of the nodeType field.

Annotations
@NativeType:YGNodeType
nodeTypeback to summary
public YGNodeFlags.Buffer nodeType(int value)

Sets the specified value to the nodeType field.

printUsesContextback to summary
public boolean printUsesContext()
Returns:boolean

the value of the printUsesContext field.

Annotations
@NativeType:bool
printUsesContextback to summary
public YGNodeFlags.Buffer printUsesContext(boolean value)

Sets the specified value to the printUsesContext field.

selfback to summary
protected YGNodeFlags.Buffer self()

Implements abstract org.lwjgl.system.CustomBuffer.self.

Annotations
@Override