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 ofYGStylestructs.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intalignContent()intalignItems()intalignSelf()YGFloatOptionalaspectRatio()CompactValue.Bufferborder()CompactValueborder(int index)CompactValue.Bufferdimensions()CompactValuedimensions(int index)intdirection()intdisplay()YGFloatOptionalflex()CompactValueflexBasis()intflexDirection()YGFloatOptionalflexGrow()YGFloatOptionalflexShrink()intflexWrap()intjustifyContent()CompactValue.Buffermargin()CompactValuemargin(int index)CompactValue.BuffermaxDimensions()CompactValuemaxDimensions(int index)CompactValue.BufferminDimensions()CompactValueminDimensions(int index)intoverflow()CompactValue.Bufferpadding()CompactValuepadding(int index)CompactValue.Bufferpositions()CompactValuepositions(int index)intpositionType()
-
-
-
Constructor Detail
-
Buffer
public Buffer(java.nio.ByteBuffer container)
Creates a newYGStyle.Bufferinstance 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 the
directionfield.
-
flexDirection
public int flexDirection()
- Returns:
- the value of the
flexDirectionfield.
-
justifyContent
public int justifyContent()
- Returns:
- the value of the
justifyContentfield.
-
alignContent
public int alignContent()
- Returns:
- the value of the
alignContentfield.
-
alignItems
public int alignItems()
- Returns:
- the value of the
alignItemsfield.
-
alignSelf
public int alignSelf()
- Returns:
- the value of the
alignSelffield.
-
positionType
public int positionType()
- Returns:
- the value of the
positionTypefield.
-
flexWrap
public int flexWrap()
- Returns:
- the value of the
flexWrapfield.
-
overflow
public int overflow()
- Returns:
- the value of the
overflowfield.
-
display
public int display()
- Returns:
- the value of the
displayfield.
-
flex
public YGFloatOptional flex()
- Returns:
- a
YGFloatOptionalview of theflexfield.
-
flexGrow
public YGFloatOptional flexGrow()
- Returns:
- a
YGFloatOptionalview of theflexGrowfield.
-
flexShrink
public YGFloatOptional flexShrink()
- Returns:
- a
YGFloatOptionalview of theflexShrinkfield.
-
flexBasis
public CompactValue flexBasis()
- Returns:
- a
CompactValueview of theflexBasisfield.
-
margin
public CompactValue.Buffer margin()
- Returns:
- a
CompactValue.Buffer view of themarginfield.
-
margin
public CompactValue margin(int index)
- Returns:
- a
CompactValueview of the struct at the specified index of themarginfield.
-
positions
public CompactValue.Buffer positions()
- Returns:
- a
CompactValue.Buffer view of thepositionsfield.
-
positions
public CompactValue positions(int index)
- Returns:
- a
CompactValueview of the struct at the specified index of thepositionsfield.
-
padding
public CompactValue.Buffer padding()
- Returns:
- a
CompactValue.Buffer view of thepaddingfield.
-
padding
public CompactValue padding(int index)
- Returns:
- a
CompactValueview of the struct at the specified index of thepaddingfield.
-
border
public CompactValue.Buffer border()
- Returns:
- a
CompactValue.Buffer view of theborderfield.
-
border
public CompactValue border(int index)
- Returns:
- a
CompactValueview of the struct at the specified index of theborderfield.
-
dimensions
public CompactValue.Buffer dimensions()
- Returns:
- a
CompactValue.Buffer view of thedimensionsfield.
-
dimensions
public CompactValue dimensions(int index)
- Returns:
- a
CompactValueview of the struct at the specified index of thedimensionsfield.
-
minDimensions
public CompactValue.Buffer minDimensions()
- Returns:
- a
CompactValue.Buffer view of theminDimensionsfield.
-
minDimensions
public CompactValue minDimensions(int index)
- Returns:
- a
CompactValueview of the struct at the specified index of theminDimensionsfield.
-
maxDimensions
public CompactValue.Buffer maxDimensions()
- Returns:
- a
CompactValue.Buffer view of themaxDimensionsfield.
-
maxDimensions
public CompactValue maxDimensions(int index)
- Returns:
- a
CompactValueview of the struct at the specified index of themaxDimensionsfield.
-
aspectRatio
public YGFloatOptional aspectRatio()
- Returns:
- a
YGFloatOptionalview of theaspectRatiofield.
-
-