Package org.lwjgl.util.yoga
Class YGStyle.Buffer
- Enclosing class:
YGStyle
An array of
YGStyle
structs.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
Field Summary
Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
-
Constructor Summary
ConstructorDescriptionBuffer
(long address, int cap) Buffer
(ByteBuffer container) Creates a newYGStyle.Buffer
instance backed by the specified container. -
Method Summary
Modifier and TypeMethodDescriptionint
int
int
border()
border
(int index) 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) int
overflow()
padding()
padding
(int index) positions
(int index) int
Methods inherited from class org.lwjgl.system.StructBuffer
apply, apply, forEach, get, get, get, get, iterator, parallelStream, put, put, sizeof, spliterator, stream
Methods inherited from class org.lwjgl.system.CustomBuffer
address, address, address0, capacity, clear, compact, duplicate, flip, free, hasRemaining, limit, limit, mark, position, position, put, remaining, reset, rewind, slice, slice, toString
Methods inherited from class org.lwjgl.system.Pointer.Default
equals, hashCode
-
Constructor Details
-
Buffer
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 by
YGStyle.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 Details
-
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.
-