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.Struct
Unstable/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 : 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; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
YGStyle.Buffer
An array ofYGStyle
structs.
-
Field Summary
Fields Modifier and Type Field Description static int
ALIGNOF
The struct alignment in bytes.static int
ASPECTRATIO
BITFIELD
BORDER
DIMENSIONS
FLEX
FLEXBASIS
FLEXGROW
FLEXSHRINK
MARGIN
MAXDIMENSIONS
MINDIMENSIONS
PADDING
POSITIONSThe struct member offsets.static int
SIZEOF
The struct size in bytes.
-
Constructor Summary
Constructors Constructor Description YGStyle(java.nio.ByteBuffer container)
Creates aYGStyle
instance at the current position of the specifiedByteBuffer
container.
-
Method Summary
All Methods Static 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.static YGStyle
create(long address)
Returns a newYGStyle
instance for the specified memory address.static YGStyle.Buffer
create(long address, int capacity)
Create aYGStyle.Buffer
instance at the specified memory.static YGStyle
createSafe(long address)
static YGStyle.Buffer
createSafe(long address, int capacity)
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.static int
nalignContent(long struct)
Unsafe version ofalignContent()
.static int
nalignItems(long struct)
Unsafe version ofalignItems()
.static int
nalignSelf(long struct)
Unsafe version ofalignSelf()
.static YGFloatOptional
naspectRatio(long struct)
Unsafe version ofaspectRatio()
.static int
nbitfield(long struct)
static CompactValue.Buffer
nborder(long struct)
Unsafe version ofborder()
.static CompactValue
nborder(long struct, int index)
Unsafe version ofborder
.static CompactValue.Buffer
ndimensions(long struct)
Unsafe version ofdimensions()
.static CompactValue
ndimensions(long struct, int index)
Unsafe version ofdimensions
.static int
ndirection(long struct)
Unsafe version ofdirection()
.static int
ndisplay(long struct)
Unsafe version ofdisplay()
.static YGFloatOptional
nflex(long struct)
Unsafe version offlex()
.static CompactValue
nflexBasis(long struct)
Unsafe version offlexBasis()
.static int
nflexDirection(long struct)
Unsafe version offlexDirection()
.static YGFloatOptional
nflexGrow(long struct)
Unsafe version offlexGrow()
.static YGFloatOptional
nflexShrink(long struct)
Unsafe version offlexShrink()
.static int
nflexWrap(long struct)
Unsafe version offlexWrap()
.static int
njustifyContent(long struct)
Unsafe version ofjustifyContent()
.static CompactValue.Buffer
nmargin(long struct)
Unsafe version ofmargin()
.static CompactValue
nmargin(long struct, int index)
Unsafe version ofmargin
.static CompactValue.Buffer
nmaxDimensions(long struct)
Unsafe version ofmaxDimensions()
.static CompactValue
nmaxDimensions(long struct, int index)
Unsafe version ofmaxDimensions
.static CompactValue.Buffer
nminDimensions(long struct)
Unsafe version ofminDimensions()
.static CompactValue
nminDimensions(long struct, int index)
Unsafe version ofminDimensions
.static int
noverflow(long struct)
Unsafe version ofoverflow()
.static CompactValue.Buffer
npadding(long struct)
Unsafe version ofpadding()
.static CompactValue
npadding(long struct, int index)
Unsafe version ofpadding
.static CompactValue.Buffer
npositions(long struct)
Unsafe version ofpositions()
.static CompactValue
npositions(long struct, int index)
Unsafe version ofpositions
.static int
npositionType(long struct)
Unsafe version ofpositionType()
.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.int
sizeof()
-
-
-
Constructor Detail
-
YGStyle
public YGStyle(java.nio.ByteBuffer container)
Creates aYGStyle
instance at the current position of the specifiedByteBuffer
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.
-
-
Method Detail
-
sizeof
public int sizeof()
- Specified by:
sizeof
in classorg.lwjgl.system.Struct
-
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.
-
create
public static YGStyle create(long address)
Returns a newYGStyle
instance 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.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
@Nullable public static YGStyle.Buffer createSafe(long address, int capacity)
-
nbitfield
public static int nbitfield(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()
.
-
-