Package org.lwjgl.util.yoga
Class YGStyle
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.util.yoga.YGStyle
-
- All Implemented Interfaces:
org.lwjgl.system.Pointer
public class YGStyle extends org.lwjgl.system.StructUnstable/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;YGFloatOptionalflex;YGFloatOptionalflexGrow;YGFloatOptionalflexShrink;CompactValueflexBasis;CompactValuemargin[9];CompactValuepositions[9];CompactValuepadding[9];CompactValueborder[9];CompactValuedimensions[2];CompactValueminDimensions[2];CompactValuemaxDimensions[2];YGFloatOptionalaspectRatio; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classYGStyle.BufferAn array ofYGStylestructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intASPECTRATIO
BORDER
DIMENSIONS
FLAGS
FLEX
FLEXBASIS
FLEXGROW
FLEXSHRINK
MARGIN
MAXDIMENSIONS
MINDIMENSIONS
PADDING
POSITIONSThe struct member offsets.static intSIZEOFThe struct size in bytes.
-
Constructor Summary
Constructors Constructor Description YGStyle(java.nio.ByteBuffer container)Creates aYGStyleinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intalignContent()intalignItems()intalignSelf()YGFloatOptionalaspectRatio()CompactValue.Bufferborder()CompactValueborder(int index)static YGStylecreate(long address)Returns a newYGStyleinstance for the specified memory address.static YGStyle.Buffercreate(long address, int capacity)Create aYGStyle.Bufferinstance at the specified memory.static YGStylecreateSafe(long address)static YGStyle.BuffercreateSafe(long address, int capacity)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)static intnalignContent(long struct)Unsafe version ofalignContent().static intnalignItems(long struct)Unsafe version ofalignItems().static intnalignSelf(long struct)Unsafe version ofalignSelf().static YGFloatOptionalnaspectRatio(long struct)Unsafe version ofaspectRatio().static CompactValue.Buffernborder(long struct)Unsafe version ofborder().static CompactValuenborder(long struct, int index)Unsafe version ofborder.static CompactValue.Bufferndimensions(long struct)Unsafe version ofdimensions().static CompactValuendimensions(long struct, int index)Unsafe version ofdimensions.static intndirection(long struct)Unsafe version ofdirection().static intndisplay(long struct)Unsafe version ofdisplay().static intnflags(long struct)static YGFloatOptionalnflex(long struct)Unsafe version offlex().static CompactValuenflexBasis(long struct)Unsafe version offlexBasis().static intnflexDirection(long struct)Unsafe version offlexDirection().static YGFloatOptionalnflexGrow(long struct)Unsafe version offlexGrow().static YGFloatOptionalnflexShrink(long struct)Unsafe version offlexShrink().static intnflexWrap(long struct)Unsafe version offlexWrap().static intnjustifyContent(long struct)Unsafe version ofjustifyContent().static CompactValue.Buffernmargin(long struct)Unsafe version ofmargin().static CompactValuenmargin(long struct, int index)Unsafe version ofmargin.static CompactValue.BuffernmaxDimensions(long struct)Unsafe version ofmaxDimensions().static CompactValuenmaxDimensions(long struct, int index)Unsafe version ofmaxDimensions.static CompactValue.BuffernminDimensions(long struct)Unsafe version ofminDimensions().static CompactValuenminDimensions(long struct, int index)Unsafe version ofminDimensions.static intnoverflow(long struct)Unsafe version ofoverflow().static CompactValue.Buffernpadding(long struct)Unsafe version ofpadding().static CompactValuenpadding(long struct, int index)Unsafe version ofpadding.static CompactValue.Buffernpositions(long struct)Unsafe version ofpositions().static CompactValuenpositions(long struct, int index)Unsafe version ofpositions.static intnpositionType(long struct)Unsafe version ofpositionType().intoverflow()CompactValue.Bufferpadding()CompactValuepadding(int index)CompactValue.Bufferpositions()CompactValuepositions(int index)intpositionType()intsizeof()
-
-
-
Constructor Detail
-
YGStyle
public YGStyle(java.nio.ByteBuffer container)
Creates aYGStyleinstance at the current position of the specifiedByteBuffercontainer. 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.
-
-
Method Detail
-
sizeof
public int sizeof()
- Specified by:
sizeofin classorg.lwjgl.system.Struct
-
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.
-
create
public static YGStyle create(long address)
Returns a newYGStyleinstance for the specified memory address.
-
createSafe
@Nullable public static YGStyle createSafe(long address)
-
create
public static YGStyle.Buffer create(long address, int capacity)
Create aYGStyle.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static YGStyle.Buffer createSafe(long address, int capacity)
-
nflags
public static int nflags(long struct)
-
ndirection
public static int ndirection(long struct)
Unsafe version ofdirection().
-
nflexDirection
public static int nflexDirection(long struct)
Unsafe version offlexDirection().
-
njustifyContent
public static int njustifyContent(long struct)
Unsafe version ofjustifyContent().
-
nalignContent
public static int nalignContent(long struct)
Unsafe version ofalignContent().
-
nalignItems
public static int nalignItems(long struct)
Unsafe version ofalignItems().
-
nalignSelf
public static int nalignSelf(long struct)
Unsafe version ofalignSelf().
-
npositionType
public static int npositionType(long struct)
Unsafe version ofpositionType().
-
nflexWrap
public static int nflexWrap(long struct)
Unsafe version offlexWrap().
-
noverflow
public static int noverflow(long struct)
Unsafe version ofoverflow().
-
ndisplay
public static int ndisplay(long struct)
Unsafe version ofdisplay().
-
nflex
public static YGFloatOptional nflex(long struct)
Unsafe version offlex().
-
nflexGrow
public static YGFloatOptional nflexGrow(long struct)
Unsafe version offlexGrow().
-
nflexShrink
public static YGFloatOptional nflexShrink(long struct)
Unsafe version offlexShrink().
-
nflexBasis
public static CompactValue nflexBasis(long struct)
Unsafe version offlexBasis().
-
nmargin
public static CompactValue.Buffer nmargin(long struct)
Unsafe version ofmargin().
-
nmargin
public static CompactValue nmargin(long struct, int index)
Unsafe version ofmargin.
-
npositions
public static CompactValue.Buffer npositions(long struct)
Unsafe version ofpositions().
-
npositions
public static CompactValue npositions(long struct, int index)
Unsafe version ofpositions.
-
npadding
public static CompactValue.Buffer npadding(long struct)
Unsafe version ofpadding().
-
npadding
public static CompactValue npadding(long struct, int index)
Unsafe version ofpadding.
-
nborder
public static CompactValue.Buffer nborder(long struct)
Unsafe version ofborder().
-
nborder
public static CompactValue nborder(long struct, int index)
Unsafe version ofborder.
-
ndimensions
public static CompactValue.Buffer ndimensions(long struct)
Unsafe version ofdimensions().
-
ndimensions
public static CompactValue ndimensions(long struct, int index)
Unsafe version ofdimensions.
-
nminDimensions
public static CompactValue.Buffer nminDimensions(long struct)
Unsafe version ofminDimensions().
-
nminDimensions
public static CompactValue nminDimensions(long struct, int index)
Unsafe version ofminDimensions.
-
nmaxDimensions
public static CompactValue.Buffer nmaxDimensions(long struct)
Unsafe version ofmaxDimensions().
-
nmaxDimensions
public static CompactValue nmaxDimensions(long struct, int index)
Unsafe version ofmaxDimensions.
-
naspectRatio
public static YGFloatOptional naspectRatio(long struct)
Unsafe version ofaspectRatio().
-
-