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

        public CompactValue margin​(int index)
        Returns a CompactValue view of the struct at the specified index of the margin 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 padding​(int index)
        Returns a CompactValue view of the struct at the specified index of the padding field.
      • border

        public CompactValue border​(int index)
        Returns a CompactValue view of the struct at the specified index of the border 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 minDimensions​(int index)
        Returns a CompactValue view of the struct at the specified index of the minDimensions field.
      • maxDimensions

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