Package org.lwjgl.util.yoga
Class YGStyle.Buffer
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.CustomBuffer<SELF>
-
- org.lwjgl.system.StructBuffer<YGStyle,YGStyle.Buffer>
-
- org.lwjgl.util.yoga.YGStyle.Buffer
-
- All Implemented Interfaces:
java.lang.Iterable<YGStyle>
,org.lwjgl.system.Pointer
- Enclosing class:
- YGStyle
public static class YGStyle.Buffer extends org.lwjgl.system.StructBuffer<YGStyle,YGStyle.Buffer>
An array ofYGStyle
structs.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
alignContent()
Returns the value of thealignContent
field.int
alignItems()
Returns the value of thealignItems
field.int
alignSelf()
Returns the value of thealignSelf
field.YGFloatOptional
aspectRatio()
Returns aYGFloatOptional
view of theaspectRatio
field.CompactValue.Buffer
border()
Returns aCompactValue
.Buffer view of theborder
field.CompactValue
border(int index)
Returns aCompactValue
view of the struct at the specified index of theborder
field.CompactValue.Buffer
dimensions()
Returns aCompactValue
.Buffer view of thedimensions
field.CompactValue
dimensions(int index)
Returns aCompactValue
view of the struct at the specified index of thedimensions
field.int
direction()
Returns the value of thedirection
field.int
display()
Returns the value of thedisplay
field.YGFloatOptional
flex()
Returns aYGFloatOptional
view of theflex
field.CompactValue
flexBasis()
Returns aCompactValue
view of theflexBasis
field.int
flexDirection()
Returns the value of theflexDirection
field.YGFloatOptional
flexGrow()
Returns aYGFloatOptional
view of theflexGrow
field.YGFloatOptional
flexShrink()
Returns aYGFloatOptional
view of theflexShrink
field.int
flexWrap()
Returns the value of theflexWrap
field.int
justifyContent()
Returns the value of thejustifyContent
field.CompactValue.Buffer
margin()
Returns aCompactValue
.Buffer view of themargin
field.CompactValue
margin(int index)
Returns aCompactValue
view of the struct at the specified index of themargin
field.CompactValue.Buffer
maxDimensions()
Returns aCompactValue
.Buffer view of themaxDimensions
field.CompactValue
maxDimensions(int index)
Returns aCompactValue
view of the struct at the specified index of themaxDimensions
field.CompactValue.Buffer
minDimensions()
Returns aCompactValue
.Buffer view of theminDimensions
field.CompactValue
minDimensions(int index)
Returns aCompactValue
view of the struct at the specified index of theminDimensions
field.int
overflow()
Returns the value of theoverflow
field.CompactValue.Buffer
padding()
Returns aCompactValue
.Buffer view of thepadding
field.CompactValue
padding(int index)
Returns aCompactValue
view of the struct at the specified index of thepadding
field.CompactValue.Buffer
positions()
Returns aCompactValue
.Buffer view of thepositions
field.CompactValue
positions(int index)
Returns aCompactValue
view of the struct at the specified index of thepositions
field.int
positionType()
Returns the value of thepositionType
field.
-
-
-
Constructor Detail
-
Buffer
public Buffer(java.nio.ByteBuffer container)
Creates a newYGStyle.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 byYGStyle.SIZEOF
, and its mark will be undefined.The created buffer instance holds a strong reference to the container object.
-
Buffer
public Buffer(long address, int cap)
-
-
Method Detail
-
direction
public int direction()
Returns the value of thedirection
field.
-
flexDirection
public int flexDirection()
Returns the value of theflexDirection
field.
-
justifyContent
public int justifyContent()
Returns the value of thejustifyContent
field.
-
alignContent
public int alignContent()
Returns the value of thealignContent
field.
-
alignItems
public int alignItems()
Returns the value of thealignItems
field.
-
alignSelf
public int alignSelf()
Returns the value of thealignSelf
field.
-
positionType
public int positionType()
Returns the value of thepositionType
field.
-
flexWrap
public int flexWrap()
Returns the value of theflexWrap
field.
-
overflow
public int overflow()
Returns the value of theoverflow
field.
-
display
public int display()
Returns the value of thedisplay
field.
-
flex
public YGFloatOptional flex()
Returns aYGFloatOptional
view of theflex
field.
-
flexGrow
public YGFloatOptional flexGrow()
Returns aYGFloatOptional
view of theflexGrow
field.
-
flexShrink
public YGFloatOptional flexShrink()
Returns aYGFloatOptional
view of theflexShrink
field.
-
flexBasis
public CompactValue flexBasis()
Returns aCompactValue
view of theflexBasis
field.
-
margin
public CompactValue.Buffer margin()
Returns aCompactValue
.Buffer view of themargin
field.
-
margin
public CompactValue margin(int index)
Returns aCompactValue
view of the struct at the specified index of themargin
field.
-
positions
public CompactValue.Buffer positions()
Returns aCompactValue
.Buffer view of thepositions
field.
-
positions
public CompactValue positions(int index)
Returns aCompactValue
view of the struct at the specified index of thepositions
field.
-
padding
public CompactValue.Buffer padding()
Returns aCompactValue
.Buffer view of thepadding
field.
-
padding
public CompactValue padding(int index)
Returns aCompactValue
view of the struct at the specified index of thepadding
field.
-
border
public CompactValue.Buffer border()
Returns aCompactValue
.Buffer view of theborder
field.
-
border
public CompactValue border(int index)
Returns aCompactValue
view of the struct at the specified index of theborder
field.
-
dimensions
public CompactValue.Buffer dimensions()
Returns aCompactValue
.Buffer view of thedimensions
field.
-
dimensions
public CompactValue dimensions(int index)
Returns aCompactValue
view of the struct at the specified index of thedimensions
field.
-
minDimensions
public CompactValue.Buffer minDimensions()
Returns aCompactValue
.Buffer view of theminDimensions
field.
-
minDimensions
public CompactValue minDimensions(int index)
Returns aCompactValue
view of the struct at the specified index of theminDimensions
field.
-
maxDimensions
public CompactValue.Buffer maxDimensions()
Returns aCompactValue
.Buffer view of themaxDimensions
field.
-
maxDimensions
public CompactValue maxDimensions(int index)
Returns aCompactValue
view of the struct at the specified index of themaxDimensions
field.
-
aspectRatio
public YGFloatOptional aspectRatio()
Returns aYGFloatOptional
view of theaspectRatio
field.
-
-