Class YGNode.Buffer

    • Constructor Detail

      • Buffer

        public Buffer​(java.nio.ByteBuffer container)
        Creates a new YGNode.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 YGNode.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

      • context

        public long context()
        Returns the value of the context field.
      • print

        @Nullable
        public YGPrintFunc print()
        Returns the value of the print field.
      • hasNewLayout

        public boolean hasNewLayout()
        Returns the value of the hasNewLayout field.
      • nodeType

        public int nodeType()
        Returns the value of the nodeType field.
      • measure

        @Nullable
        public YGMeasureFunc measure()
        Returns the value of the measure field.
      • baseline

        @Nullable
        public YGBaselineFunc baseline()
        Returns the value of the baseline field.
      • dirtied

        @Nullable
        public YGDirtiedFunc dirtied()
        Returns the value of the dirtied field.
      • style

        public YGStyle style()
        Returns a YGStyle view of the style field.
      • layout

        public YGLayout layout()
        Returns a YGLayout view of the layout field.
      • lineIndex

        public int lineIndex()
        Returns the value of the lineIndex field.
      • owner

        public long owner()
        Returns the value of the owner field.
      • children

        public long children()
        Returns the value of the children field.
      • nextChild

        @Nullable
        public YGNode nextChild()
        Returns a YGNode view of the struct pointed to by the nextChild field.
      • config

        public long config()
        Returns the value of the config field.
      • isDirty

        public boolean isDirty()
        Returns the value of the isDirty field.
      • resolvedDimensions

        public YGValue resolvedDimensions​(int index)
        Returns a YGValue view of the pointer at the specified index of the resolvedDimensions field.
      • context

        public YGNode.Buffer context​(long value)
        Sets the specified value to the context field.
      • hasNewLayout

        public YGNode.Buffer hasNewLayout​(boolean value)
        Sets the specified value to the hasNewLayout field.
      • nodeType

        public YGNode.Buffer nodeType​(int value)
        Sets the specified value to the nodeType field.
      • lineIndex

        public YGNode.Buffer lineIndex​(int value)
        Sets the specified value to the lineIndex field.
      • owner

        public YGNode.Buffer owner​(long value)
        Sets the specified value to the owner field.
      • children

        public YGNode.Buffer children​(long value)
        Sets the specified value to the children field.
      • nextChild

        public YGNode.Buffer nextChild​(@Nullable
                                       YGNode value)
        Sets the address of the specified YGNode to the nextChild field.
      • config

        public YGNode.Buffer config​(long value)
        Sets the specified value to the config field.
      • isDirty

        public YGNode.Buffer isDirty​(boolean value)
        Sets the specified value to the isDirty field.
      • resolvedDimensions

        public YGNode.Buffer resolvedDimensions​(int index,
                                                YGValue value)
        Copies the address of the specified YGValue at the specified index of the resolvedDimensions field.