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

public Class YGStyle

extends Struct<YGStyle>
Class Inheritance
Imports
javax.annotation.*, java.nio.*, org.lwjgl.system.*

Unstable/private API.

Layout


struct YGStyle {
    YGDirection direction : 2;
    YGFlexDirection flexDirection : 2;
    YGJustify justifyContent : 3;
    YGAlign alignContent : 3;
    YGAlign alignItems : 3;
    YGAlign alignSelf : 3;
    YGPositionType positionType : 2;
    YGWrap flexWrap : 2;
    YGOverflow overflow : 2;
    YGDisplay display : 1;
    YGFloatOptional flex;
    YGFloatOptional flexGrow;
    YGFloatOptional flexShrink;
    CompactValue flexBasis;
    CompactValue margin[9];
    CompactValue positions[9];
    CompactValue padding[9];
    CompactValue border[9];
    CompactValue gap_[3];
    CompactValue dimensions[2];
    CompactValue minDimensions[2];
    CompactValue maxDimensions[2];
    YGFloatOptional aspectRatio;
}

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class
YGStyle.Buffer

An array of YGStyle structs.

Field Summary

Modifier and TypeField and Description
public static final int
ALIGNOF

The struct alignment in bytes.

public static final int
ASPECTRATIO

The struct member offsets.

public static final int
BORDER

The struct member offsets.

public static final int
DIMENSIONS

The struct member offsets.

public static final int
FLAGS

The struct member offsets.

public static final int
FLEX

The struct member offsets.

public static final int
FLEXBASIS

The struct member offsets.

public static final int
FLEXGROW

The struct member offsets.

public static final int
FLEXSHRINK

The struct member offsets.

public static final int
GAP_

The struct member offsets.

public static final int
MARGIN

The struct member offsets.

public static final int
MAXDIMENSIONS

The struct member offsets.

public static final int
MINDIMENSIONS

The struct member offsets.

public static final int
PADDING

The struct member offsets.

public static final int
POSITIONS

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
YGStyle(long address, ByteBuffer container)

public
YGStyle(ByteBuffer container)

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

Method Summary

Modifier and TypeMethod and Description
public int

Returns:

the value of the alignContent field.
alignContent
()

public int

Returns:

the value of the alignItems field.
alignItems
()

public int

Returns:

the value of the alignSelf field.
alignSelf
()

public YGFloatOptional

Returns:

a YGFloatOptional view of the aspectRatio field.
aspectRatio
()

public CompactValue.Buffer

Returns:

a CompactValue.Buffer view of the border field.
border
()

public CompactValue

Returns:

a CompactValue view of the struct at the specified index of the border field.
border
(int index)

protected YGStyle
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 YGStyle
create(long address)

Returns a new YGStyle instance for the specified memory address.

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

Create a YGStyle.Buffer instance at the specified memory.

public static YGStyle
createSafe(long address)

Like create, but returns null if address is NULL.

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

Like create, but returns null if address is NULL.

public CompactValue.Buffer

Returns:

a CompactValue.Buffer view of the dimensions field.
dimensions
()

public CompactValue

Returns:

a CompactValue view of the struct at the specified index of the dimensions field.
dimensions
(int index)

public int

Returns:

the value of the direction field.
direction
()

public int

Returns:

the value of the display field.
display
()

public YGFloatOptional

Returns:

a YGFloatOptional view of the flex field.
flex
()

public CompactValue

Returns:

a CompactValue view of the flexBasis field.
flexBasis
()

public int

Returns:

the value of the flexDirection field.
flexDirection
()

public YGFloatOptional

Returns:

a YGFloatOptional view of the flexGrow field.
flexGrow
()

public YGFloatOptional

Returns:

a YGFloatOptional view of the flexShrink field.
flexShrink
()

public int

Returns:

the value of the flexWrap field.
flexWrap
()

public CompactValue.Buffer

Returns:

a CompactValue.Buffer view of the gap_ field.
gap_
()

public CompactValue

Returns:

a CompactValue view of the struct at the specified index of the gap_ field.
gap_
(int index)

public int

Returns:

the value of the justifyContent field.
justifyContent
()

public CompactValue.Buffer

Returns:

a CompactValue.Buffer view of the margin field.
margin
()

public CompactValue

Returns:

a CompactValue view of the struct at the specified index of the margin field.
margin
(int index)

public CompactValue.Buffer

Returns:

a CompactValue.Buffer view of the maxDimensions field.
maxDimensions
()

public CompactValue

Returns:

a CompactValue view of the struct at the specified index of the maxDimensions field.
maxDimensions
(int index)

public CompactValue.Buffer

Returns:

a CompactValue.Buffer view of the minDimensions field.
minDimensions
()

public CompactValue

Returns:

a CompactValue view of the struct at the specified index of the minDimensions field.
minDimensions
(int index)

public static int
nalignContent(long struct)

Unsafe version of alignContent.

public static int
nalignItems(long struct)

Unsafe version of alignItems.

public static int
nalignSelf(long struct)

Unsafe version of alignSelf.

public static YGFloatOptional
naspectRatio(long struct)

Unsafe version of aspectRatio.

public static CompactValue.Buffer
nborder(long struct)

Unsafe version of border.

public static CompactValue
nborder(long struct, int index)

Unsafe version of border.

public static CompactValue.Buffer
ndimensions(long struct)

Unsafe version of dimensions.

public static CompactValue
ndimensions(long struct, int index)

Unsafe version of dimensions.

public static int
ndirection(long struct)

Unsafe version of direction.

public static int
ndisplay(long struct)

Unsafe version of display.

public static int
nflags(long struct)

public static YGFloatOptional
nflex(long struct)

Unsafe version of flex.

public static CompactValue
nflexBasis(long struct)

Unsafe version of flexBasis.

public static int
nflexDirection(long struct)

Unsafe version of flexDirection.

public static YGFloatOptional
nflexGrow(long struct)

Unsafe version of flexGrow.

public static YGFloatOptional
nflexShrink(long struct)

Unsafe version of flexShrink.

public static int
nflexWrap(long struct)

Unsafe version of flexWrap.

public static CompactValue.Buffer
ngap_(long struct)

Unsafe version of gap_.

public static CompactValue
ngap_(long struct, int index)

Unsafe version of gap_.

public static int
njustifyContent(long struct)

Unsafe version of justifyContent.

public static CompactValue.Buffer
nmargin(long struct)

Unsafe version of margin.

public static CompactValue
nmargin(long struct, int index)

Unsafe version of margin.

public static CompactValue.Buffer
nmaxDimensions(long struct)

Unsafe version of maxDimensions.

public static CompactValue
nmaxDimensions(long struct, int index)

Unsafe version of maxDimensions.

public static CompactValue.Buffer
nminDimensions(long struct)

Unsafe version of minDimensions.

public static CompactValue
nminDimensions(long struct, int index)

Unsafe version of minDimensions.

public static int
noverflow(long struct)

Unsafe version of overflow.

public static CompactValue.Buffer
npadding(long struct)

Unsafe version of padding.

public static CompactValue
npadding(long struct, int index)

Unsafe version of padding.

public static CompactValue.Buffer
npositions(long struct)

Unsafe version of positions.

public static CompactValue
npositions(long struct, int index)

Unsafe version of positions.

public static int
npositionType(long struct)

Unsafe version of positionType.

public int

Returns:

the value of the overflow field.
overflow
()

public CompactValue.Buffer

Returns:

a CompactValue.Buffer view of the padding field.
padding
()

public CompactValue

Returns:

a CompactValue view of the struct at the specified index of the padding field.
padding
(int index)

public CompactValue.Buffer

Returns:

a CompactValue.Buffer view of the positions field.
positions
()

public CompactValue

Returns:

a CompactValue view of the struct at the specified index of the positions field.
positions
(int index)

public int

Returns:

the value of the positionType field.
positionType
()

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