public static class YGStyle.Buffer extends org.lwjgl.system.StructBuffer<YGStyle,YGStyle.Buffer>
YGStyle structs.| Constructor and Description |
|---|
Buffer(java.nio.ByteBuffer container)
Creates a new
YGStyle.Buffer instance backed by the specified container. |
Buffer(long address,
int cap) |
| 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. |
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. |
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. |
apply, apply, forEach, get, get, get, get, iterator, parallelStream, put, put, sizeof, spliterator, streampublic Buffer(java.nio.ByteBuffer container)
YGStyle.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 YGStyle.SIZEOF, and its mark will be undefined.
The created buffer instance holds a strong reference to the container object.
public Buffer(long address,
int cap)
public 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.Copyright LWJGL. All Rights Reserved. License terms.