Class YGStyle.Buffer

    • Constructor Detail

      • Buffer

        public Buffer​(java.nio.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 Detail

      • 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.
      • flexBasis

        public YGValue flexBasis()
        Returns a YGValue view of the flexBasis field.
      • flexBasis

        public YGStyle.Buffer flexBasis​(java.util.function.Consumer<YGValue> consumer)
        Passes the flexBasis field to the specified Consumer.
      • margin

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

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

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

        public YGValue border​(int index)
        Returns a YGValue view of the struct at the specified index of the border field.
      • dimensions

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

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

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

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

        public YGValue maxDimensions​(int index)
        Returns a YGValue view of the struct at the specified index of the maxDimensions field.