Class YGStyle.Buffer

All Implemented Interfaces:
Iterable<YGStyle>, Pointer
Enclosing class:
YGStyle

public static class YGStyle.Buffer extends StructBuffer<YGStyle,YGStyle.Buffer>
An array of YGStyle structs.
  • Constructor Details

    • Buffer

      public Buffer(ByteBuffer container)
      Creates a new YGStyle.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

      public YGFloatOptional flex()
      Returns:
      a YGFloatOptional view of the flex field.
    • flexGrow

      public YGFloatOptional flexGrow()
      Returns:
      a YGFloatOptional view of the flexGrow field.
    • flexShrink

      public YGFloatOptional flexShrink()
      Returns:
      a YGFloatOptional view of the flexShrink field.
    • flexBasis

      public CompactValue flexBasis()
      Returns:
      a CompactValue view of the flexBasis field.
    • margin

      public CompactValue.Buffer margin()
      Returns:
      a CompactValue.Buffer view of the margin field.
    • margin

      public CompactValue margin(int index)
      Returns:
      a CompactValue view of the struct at the specified index of the margin field.
    • positions

      public CompactValue.Buffer positions()
      Returns:
      a CompactValue.Buffer view of the positions field.
    • positions

      public CompactValue positions(int index)
      Returns:
      a CompactValue view of the struct at the specified index of the positions field.
    • padding

      public CompactValue.Buffer padding()
      Returns:
      a CompactValue.Buffer view of the padding field.
    • padding

      public CompactValue padding(int index)
      Returns:
      a CompactValue view of the struct at the specified index of the padding field.
    • border

      public CompactValue.Buffer border()
      Returns:
      a CompactValue.Buffer view of the border field.
    • border

      public CompactValue border(int index)
      Returns:
      a CompactValue view of the struct at the specified index of the border field.
    • gap_

      public CompactValue.Buffer gap_()
      Returns:
      a CompactValue.Buffer view of the gap_ field.
    • gap_

      public CompactValue gap_(int index)
      Returns:
      a CompactValue view of the struct at the specified index of the gap_ field.
    • dimensions

      public CompactValue.Buffer dimensions()
      Returns:
      a CompactValue.Buffer view of the dimensions field.
    • dimensions

      public CompactValue dimensions(int index)
      Returns:
      a CompactValue view of the struct at the specified index of the dimensions field.
    • minDimensions

      public CompactValue.Buffer minDimensions()
      Returns:
      a CompactValue.Buffer view of the minDimensions field.
    • minDimensions

      public CompactValue minDimensions(int index)
      Returns:
      a CompactValue view of the struct at the specified index of the minDimensions field.
    • maxDimensions

      public CompactValue.Buffer maxDimensions()
      Returns:
      a CompactValue.Buffer view of the maxDimensions field.
    • maxDimensions

      public CompactValue maxDimensions(int index)
      Returns:
      a CompactValue view of the struct at the specified index of the maxDimensions field.
    • aspectRatio

      public YGFloatOptional aspectRatio()
      Returns:
      a YGFloatOptional view of the aspectRatio field.