public class YGStyle
extends org.lwjgl.system.Struct
struct YGStyle {
YGDirection direction : 2;
YGFlexDirection flexDirection : 2;
YGJustify justifyContent : 3;
YGAlign alignContent : 3;
YGAlign alignItems : 3;
YGAlign alignSelf : 3;
YGPositionType positionType : 1;
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 dimensions[2];
CompactValue minDimensions[2];
CompactValue maxDimensions[2];
YGFloatOptional aspectRatio;
}| Modifier and Type | Class and Description |
|---|---|
static class |
YGStyle.Buffer
An array of
YGStyle structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
ASPECTRATIO
The struct member offsets.
|
static int |
BITFIELD
The struct member offsets.
|
static int |
BORDER
The struct member offsets.
|
static int |
DIMENSIONS
The struct member offsets.
|
static int |
FLEX
The struct member offsets.
|
static int |
FLEXBASIS
The struct member offsets.
|
static int |
FLEXGROW
The struct member offsets.
|
static int |
FLEXSHRINK
The struct member offsets.
|
static int |
MARGIN
The struct member offsets.
|
static int |
MAXDIMENSIONS
The struct member offsets.
|
static int |
MINDIMENSIONS
The struct member offsets.
|
static int |
PADDING
The struct member offsets.
|
static int |
POSITIONS
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
| Constructor and Description |
|---|
YGStyle(java.nio.ByteBuffer container)
Creates a
YGStyle instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
int |
alignContent()
Returns the value of the
alignContent field. |
int |
alignItems()
Returns the value of the
alignItems field. |
int |
alignSelf()
Returns the value of the
alignSelf field. |
YGFloatOptional |
aspectRatio()
Returns a
YGFloatOptional view of the aspectRatio field. |
CompactValue.Buffer |
border()
Returns a
CompactValue.Buffer view of the border field. |
CompactValue |
border(int index)
Returns a
CompactValue view of the struct at the specified index of the border field. |
static YGStyle |
create(long address)
Returns a new
YGStyle instance for the specified memory address. |
static YGStyle.Buffer |
create(long address,
int capacity)
Create a
YGStyle.Buffer instance at the specified memory. |
static YGStyle |
createSafe(long address)
|
static YGStyle.Buffer |
createSafe(long address,
int capacity)
|
CompactValue.Buffer |
dimensions()
Returns a
CompactValue.Buffer view of the dimensions field. |
CompactValue |
dimensions(int index)
Returns a
CompactValue view of the struct at the specified index of the dimensions field. |
int |
direction()
Returns the value of the
direction field. |
int |
display()
Returns the value of the
display field. |
YGFloatOptional |
flex()
Returns a
YGFloatOptional view of the flex field. |
CompactValue |
flexBasis()
Returns a
CompactValue view of the flexBasis field. |
int |
flexDirection()
Returns the value of the
flexDirection field. |
YGFloatOptional |
flexGrow()
Returns a
YGFloatOptional view of the flexGrow field. |
YGFloatOptional |
flexShrink()
Returns a
YGFloatOptional view of the flexShrink field. |
int |
flexWrap()
Returns the value of the
flexWrap field. |
int |
justifyContent()
Returns the value of the
justifyContent field. |
CompactValue.Buffer |
margin()
Returns a
CompactValue.Buffer view of the margin field. |
CompactValue |
margin(int index)
Returns a
CompactValue view of the struct at the specified index of the margin field. |
CompactValue.Buffer |
maxDimensions()
Returns a
CompactValue.Buffer view of the maxDimensions field. |
CompactValue |
maxDimensions(int index)
Returns a
CompactValue view of the struct at the specified index of the maxDimensions field. |
CompactValue.Buffer |
minDimensions()
Returns a
CompactValue.Buffer view of the minDimensions field. |
CompactValue |
minDimensions(int index)
Returns a
CompactValue view of the struct at the specified index of the minDimensions field. |
static int |
nalignContent(long struct)
Unsafe version of
alignContent(). |
static int |
nalignItems(long struct)
Unsafe version of
alignItems(). |
static int |
nalignSelf(long struct)
Unsafe version of
alignSelf(). |
static YGFloatOptional |
naspectRatio(long struct)
Unsafe version of
aspectRatio(). |
static int |
nbitfield(long struct) |
static CompactValue.Buffer |
nborder(long struct)
Unsafe version of
border(). |
static CompactValue |
nborder(long struct,
int index)
Unsafe version of
border. |
static CompactValue.Buffer |
ndimensions(long struct)
Unsafe version of
dimensions(). |
static CompactValue |
ndimensions(long struct,
int index)
Unsafe version of
dimensions. |
static int |
ndirection(long struct)
Unsafe version of
direction(). |
static int |
ndisplay(long struct)
Unsafe version of
display(). |
static YGFloatOptional |
nflex(long struct)
Unsafe version of
flex(). |
static CompactValue |
nflexBasis(long struct)
Unsafe version of
flexBasis(). |
static int |
nflexDirection(long struct)
Unsafe version of
flexDirection(). |
static YGFloatOptional |
nflexGrow(long struct)
Unsafe version of
flexGrow(). |
static YGFloatOptional |
nflexShrink(long struct)
Unsafe version of
flexShrink(). |
static int |
nflexWrap(long struct)
Unsafe version of
flexWrap(). |
static int |
njustifyContent(long struct)
Unsafe version of
justifyContent(). |
static CompactValue.Buffer |
nmargin(long struct)
Unsafe version of
margin(). |
static CompactValue |
nmargin(long struct,
int index)
Unsafe version of
margin. |
static CompactValue.Buffer |
nmaxDimensions(long struct)
Unsafe version of
maxDimensions(). |
static CompactValue |
nmaxDimensions(long struct,
int index)
Unsafe version of
maxDimensions. |
static CompactValue.Buffer |
nminDimensions(long struct)
Unsafe version of
minDimensions(). |
static CompactValue |
nminDimensions(long struct,
int index)
Unsafe version of
minDimensions. |
static int |
noverflow(long struct)
Unsafe version of
overflow(). |
static CompactValue.Buffer |
npadding(long struct)
Unsafe version of
padding(). |
static CompactValue |
npadding(long struct,
int index)
Unsafe version of
padding. |
static CompactValue.Buffer |
npositions(long struct)
Unsafe version of
positions(). |
static CompactValue |
npositions(long struct,
int index)
Unsafe version of
positions. |
static int |
npositionType(long struct)
Unsafe version of
positionType(). |
int |
overflow()
Returns the value of the
overflow field. |
CompactValue.Buffer |
padding()
Returns a
CompactValue.Buffer view of the padding field. |
CompactValue |
padding(int index)
Returns a
CompactValue view of the struct at the specified index of the padding field. |
CompactValue.Buffer |
positions()
Returns a
CompactValue.Buffer view of the positions field. |
CompactValue |
positions(int index)
Returns a
CompactValue view of the struct at the specified index of the positions field. |
int |
positionType()
Returns the value of the
positionType field. |
int |
sizeof() |
public static final int SIZEOF
public static final int ALIGNOF
public static final int BITFIELD
public static final int FLEX
public static final int FLEXGROW
public static final int FLEXSHRINK
public static final int FLEXBASIS
public static final int MARGIN
public static final int POSITIONS
public static final int PADDING
public static final int BORDER
public static final int DIMENSIONS
public static final int MINDIMENSIONS
public static final int MAXDIMENSIONS
public static final int ASPECTRATIO
public YGStyle(java.nio.ByteBuffer container)
YGStyle 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.
public int sizeof()
sizeof in class org.lwjgl.system.Structpublic int direction()
direction field.public int flexDirection()
flexDirection field.public int justifyContent()
justifyContent field.public int alignContent()
alignContent field.public int alignItems()
alignItems field.public int alignSelf()
alignSelf field.public int positionType()
positionType field.public int flexWrap()
flexWrap field.public int overflow()
overflow field.public int display()
display field.public YGFloatOptional flex()
YGFloatOptional view of the flex field.public YGFloatOptional flexGrow()
YGFloatOptional view of the flexGrow field.public YGFloatOptional flexShrink()
YGFloatOptional view of the flexShrink field.public CompactValue flexBasis()
CompactValue view of the flexBasis field.public CompactValue.Buffer margin()
CompactValue.Buffer view of the margin field.public CompactValue margin(int index)
CompactValue view of the struct at the specified index of the margin field.public CompactValue.Buffer positions()
CompactValue.Buffer view of the positions field.public CompactValue positions(int index)
CompactValue view of the struct at the specified index of the positions field.public CompactValue.Buffer padding()
CompactValue.Buffer view of the padding field.public CompactValue padding(int index)
CompactValue view of the struct at the specified index of the padding field.public CompactValue.Buffer border()
CompactValue.Buffer view of the border field.public CompactValue border(int index)
CompactValue view of the struct at the specified index of the border field.public CompactValue.Buffer dimensions()
CompactValue.Buffer view of the dimensions field.public CompactValue dimensions(int index)
CompactValue view of the struct at the specified index of the dimensions field.public CompactValue.Buffer minDimensions()
CompactValue.Buffer view of the minDimensions field.public CompactValue minDimensions(int index)
CompactValue view of the struct at the specified index of the minDimensions field.public CompactValue.Buffer maxDimensions()
CompactValue.Buffer view of the maxDimensions field.public CompactValue maxDimensions(int index)
CompactValue view of the struct at the specified index of the maxDimensions field.public YGFloatOptional aspectRatio()
YGFloatOptional view of the aspectRatio field.public static YGStyle create(long address)
YGStyle instance for the specified memory address.@Nullable public static YGStyle createSafe(long address)
public static YGStyle.Buffer create(long address, int capacity)
YGStyle.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static YGStyle.Buffer createSafe(long address, int capacity)
public static int nbitfield(long struct)
public static int ndirection(long struct)
direction().public static int nflexDirection(long struct)
flexDirection().public static int njustifyContent(long struct)
justifyContent().public static int nalignContent(long struct)
alignContent().public static int nalignItems(long struct)
alignItems().public static int nalignSelf(long struct)
alignSelf().public static int npositionType(long struct)
positionType().public static int nflexWrap(long struct)
flexWrap().public static int noverflow(long struct)
overflow().public static int ndisplay(long struct)
display().public static YGFloatOptional nflex(long struct)
flex().public static YGFloatOptional nflexGrow(long struct)
flexGrow().public static YGFloatOptional nflexShrink(long struct)
flexShrink().public static CompactValue nflexBasis(long struct)
flexBasis().public static CompactValue.Buffer nmargin(long struct)
margin().public static CompactValue nmargin(long struct, int index)
margin.public static CompactValue.Buffer npositions(long struct)
positions().public static CompactValue npositions(long struct, int index)
positions.public static CompactValue.Buffer npadding(long struct)
padding().public static CompactValue npadding(long struct, int index)
padding.public static CompactValue.Buffer nborder(long struct)
border().public static CompactValue nborder(long struct, int index)
border.public static CompactValue.Buffer ndimensions(long struct)
dimensions().public static CompactValue ndimensions(long struct, int index)
dimensions.public static CompactValue.Buffer nminDimensions(long struct)
minDimensions().public static CompactValue nminDimensions(long struct, int index)
minDimensions.public static CompactValue.Buffer nmaxDimensions(long struct)
maxDimensions().public static CompactValue nmaxDimensions(long struct, int index)
maxDimensions.public static YGFloatOptional naspectRatio(long struct)
aspectRatio().Copyright LWJGL. All Rights Reserved. License terms.