Package org.lwjgl.util.yoga
Class YGStyle
- All Implemented Interfaces:
Pointer
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 : 2;
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
gap_[3];
CompactValue
dimensions[2];
CompactValue
minDimensions[2];
CompactValue
maxDimensions[2];
YGFloatOptional
aspectRatio;
}
-
Nested Class Summary
Nested classes/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidation
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
The struct alignment in bytes.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct size in bytes.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
-
Constructor Summary
ConstructorDescriptionYGStyle
(ByteBuffer container) Creates aYGStyle
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionint
int
int
border()
border
(int index) 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) dimensions
(int index) int
int
display()
flex()
int
flexGrow()
int
flexWrap()
gap_()
gap_
(int index) int
margin()
margin
(int index) maxDimensions
(int index) minDimensions
(int index) 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 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 int
nflags
(long struct) 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 CompactValue.Buffer
ngap_
(long struct) Unsafe version ofgap_()
.static CompactValue
ngap_
(long struct, int index) Unsafe version ofgap_
.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()
padding()
padding
(int index) positions
(int index) int
int
sizeof()
Returnssizeof(struct)
.Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
-
Field Details
-
SIZEOF
public static final int SIZEOFThe struct size in bytes. -
ALIGNOF
public static final int ALIGNOFThe struct alignment in bytes. -
FLAGS
public static final int FLAGSThe struct member offsets. -
FLEX
public static final int FLEXThe struct member offsets. -
FLEXGROW
public static final int FLEXGROWThe struct member offsets. -
FLEXSHRINK
public static final int FLEXSHRINKThe struct member offsets. -
FLEXBASIS
public static final int FLEXBASISThe struct member offsets. -
MARGIN
public static final int MARGINThe struct member offsets. -
POSITIONS
public static final int POSITIONSThe struct member offsets. -
PADDING
public static final int PADDINGThe struct member offsets. -
BORDER
public static final int BORDERThe struct member offsets. -
GAP_
public static final int GAP_The struct member offsets. -
DIMENSIONS
public static final int DIMENSIONSThe struct member offsets. -
MINDIMENSIONS
public static final int MINDIMENSIONSThe struct member offsets. -
MAXDIMENSIONS
public static final int MAXDIMENSIONSThe struct member offsets. -
ASPECTRATIO
public static final int ASPECTRATIOThe struct member offsets.
-
-
Constructor Details
-
YGStyle
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 Details
-
sizeof
public int sizeof()Description copied from class:Struct
Returnssizeof(struct)
. -
direction
public int direction()- Returns:
- the value of the
direction
field.
-
flexDirection
public int flexDirection()- Returns:
- the value of the
flexDirection
field.
-
justifyContent
public int justifyContent()- Returns:
- the value of the
justifyContent
field.
-
alignContent
public int alignContent()- Returns:
- the value of the
alignContent
field.
-
alignItems
public int alignItems()- Returns:
- the value of the
alignItems
field.
-
alignSelf
public int alignSelf()- Returns:
- the value of the
alignSelf
field.
-
positionType
public int positionType()- Returns:
- the value of the
positionType
field.
-
flexWrap
public int flexWrap()- Returns:
- the value of the
flexWrap
field.
-
overflow
public int overflow()- Returns:
- the value of the
overflow
field.
-
display
public int display()- Returns:
- the value of the
display
field.
-
flex
- Returns:
- a
YGFloatOptional
view of theflex
field.
-
flexGrow
- Returns:
- a
YGFloatOptional
view of theflexGrow
field.
-
flexShrink
- Returns:
- a
YGFloatOptional
view of theflexShrink
field.
-
flexBasis
- Returns:
- a
CompactValue
view of theflexBasis
field.
-
margin
- Returns:
- a
CompactValue
.Buffer view of themargin
field.
-
margin
- Returns:
- a
CompactValue
view of the struct at the specified index of themargin
field.
-
positions
- Returns:
- a
CompactValue
.Buffer view of thepositions
field.
-
positions
- Returns:
- a
CompactValue
view of the struct at the specified index of thepositions
field.
-
padding
- Returns:
- a
CompactValue
.Buffer view of thepadding
field.
-
padding
- Returns:
- a
CompactValue
view of the struct at the specified index of thepadding
field.
-
border
- Returns:
- a
CompactValue
.Buffer view of theborder
field.
-
border
- Returns:
- a
CompactValue
view of the struct at the specified index of theborder
field.
-
gap_
- Returns:
- a
CompactValue
.Buffer view of thegap_
field.
-
gap_
- Returns:
- a
CompactValue
view of the struct at the specified index of thegap_
field.
-
dimensions
- Returns:
- a
CompactValue
.Buffer view of thedimensions
field.
-
dimensions
- Returns:
- a
CompactValue
view of the struct at the specified index of thedimensions
field.
-
minDimensions
- Returns:
- a
CompactValue
.Buffer view of theminDimensions
field.
-
minDimensions
- Returns:
- a
CompactValue
view of the struct at the specified index of theminDimensions
field.
-
maxDimensions
- Returns:
- a
CompactValue
.Buffer view of themaxDimensions
field.
-
maxDimensions
- Returns:
- a
CompactValue
view of the struct at the specified index of themaxDimensions
field.
-
aspectRatio
- Returns:
- a
YGFloatOptional
view of theaspectRatio
field.
-
create
Returns a newYGStyle
instance for the specified memory address. -
createSafe
-
create
Create aYGStyle.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
-
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
Unsafe version offlex()
. -
nflexGrow
Unsafe version offlexGrow()
. -
nflexShrink
Unsafe version offlexShrink()
. -
nflexBasis
Unsafe version offlexBasis()
. -
nmargin
Unsafe version ofmargin()
. -
nmargin
Unsafe version ofmargin
. -
npositions
Unsafe version ofpositions()
. -
npositions
Unsafe version ofpositions
. -
npadding
Unsafe version ofpadding()
. -
npadding
Unsafe version ofpadding
. -
nborder
Unsafe version ofborder()
. -
nborder
Unsafe version ofborder
. -
ngap_
Unsafe version ofgap_()
. -
ngap_
Unsafe version ofgap_
. -
ndimensions
Unsafe version ofdimensions()
. -
ndimensions
Unsafe version ofdimensions
. -
nminDimensions
Unsafe version ofminDimensions()
. -
nminDimensions
Unsafe version ofminDimensions
. -
nmaxDimensions
Unsafe version ofmaxDimensions()
. -
nmaxDimensions
Unsafe version ofmaxDimensions
. -
naspectRatio
Unsafe version ofaspectRatio()
.
-