Class YGLayout.Buffer

  • All Implemented Interfaces:
    java.lang.Iterable<YGLayout>, org.lwjgl.system.Pointer
    Enclosing class:
    YGLayout

    public static class YGLayout.Buffer
    extends org.lwjgl.system.StructBuffer<YGLayout,YGLayout.Buffer>
    An array of YGLayout structs.
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer

        org.lwjgl.system.Pointer.Default
    • Field Summary

      • Fields inherited from interface org.lwjgl.system.Pointer

        BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
    • Constructor Summary

      Constructors 
      Constructor Description
      Buffer​(long address, int cap)  
      Buffer​(java.nio.ByteBuffer container)
      Creates a new YGLayout.Buffer instance backed by the specified container.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.nio.FloatBuffer border()
      Returns a FloatBuffer view of the border field.
      float border​(int index)
      Returns the value at the specified index of the border field.
      YGCachedMeasurement cachedLayout()
      Returns a YGCachedMeasurement view of the cachedLayout field.
      YGCachedMeasurement.Buffer cachedMeasurements()
      Returns a YGCachedMeasurement.Buffer view of the cachedMeasurements field.
      YGCachedMeasurement cachedMeasurements​(int index)
      Returns a YGCachedMeasurement view of the struct at the specified index of the cachedMeasurements field.
      YGFloatOptional computedFlexBasis()
      Returns a YGFloatOptional view of the computedFlexBasis field.
      int computedFlexBasisGeneration()
      Returns the value of the computedFlexBasisGeneration field.
      boolean didUseLegacyFlag()
      Returns the value of the didUseLegacyFlag field.
      java.nio.FloatBuffer dimensions()
      Returns a FloatBuffer view of the dimensions field.
      float dimensions​(int index)
      Returns the value at the specified index of the dimensions field.
      int direction()
      Returns the value of the direction field.
      boolean doesLegacyStretchFlagAffectsLayout()
      Returns the value of the doesLegacyStretchFlagAffectsLayout field.
      int generationCount()
      Returns the value of the generationCount field.
      boolean hadOverflow()
      Returns the value of the hadOverflow field.
      int lastOwnerDirection()
      Returns the value of the lastOwnerDirection field.
      java.nio.FloatBuffer margin()
      Returns a FloatBuffer view of the margin field.
      float margin​(int index)
      Returns the value at the specified index of the margin field.
      java.nio.FloatBuffer measuredDimensions()
      Returns a FloatBuffer view of the measuredDimensions field.
      float measuredDimensions​(int index)
      Returns the value at the specified index of the measuredDimensions field.
      int nextCachedMeasurementsIndex()
      Returns the value of the nextCachedMeasurementsIndex field.
      java.nio.FloatBuffer padding()
      Returns a FloatBuffer view of the padding field.
      float padding​(int index)
      Returns the value at the specified index of the padding field.
      java.nio.FloatBuffer positions()
      Returns a FloatBuffer view of the positions field.
      float positions​(int index)
      Returns the value at the specified index of the positions field.
      • 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 java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
      • Methods inherited from class org.lwjgl.system.Pointer.Default

        equals, hashCode
      • Methods inherited from class org.lwjgl.system.StructBuffer

        apply, apply, forEach, get, get, get, get, iterator, parallelStream, put, put, sizeof, spliterator, stream
    • Constructor Detail

      • Buffer

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

      • positions

        public java.nio.FloatBuffer positions()
        Returns a FloatBuffer view of the positions field.
      • positions

        public float positions​(int index)
        Returns the value at the specified index of the positions field.
      • dimensions

        public java.nio.FloatBuffer dimensions()
        Returns a FloatBuffer view of the dimensions field.
      • dimensions

        public float dimensions​(int index)
        Returns the value at the specified index of the dimensions field.
      • margin

        public java.nio.FloatBuffer margin()
        Returns a FloatBuffer view of the margin field.
      • margin

        public float margin​(int index)
        Returns the value at the specified index of the margin field.
      • border

        public java.nio.FloatBuffer border()
        Returns a FloatBuffer view of the border field.
      • border

        public float border​(int index)
        Returns the value at the specified index of the border field.
      • padding

        public java.nio.FloatBuffer padding()
        Returns a FloatBuffer view of the padding field.
      • padding

        public float padding​(int index)
        Returns the value at the specified index of the padding field.
      • direction

        public int direction()
        Returns the value of the direction field.
      • didUseLegacyFlag

        public boolean didUseLegacyFlag()
        Returns the value of the didUseLegacyFlag field.
      • doesLegacyStretchFlagAffectsLayout

        public boolean doesLegacyStretchFlagAffectsLayout()
        Returns the value of the doesLegacyStretchFlagAffectsLayout field.
      • hadOverflow

        public boolean hadOverflow()
        Returns the value of the hadOverflow field.
      • computedFlexBasisGeneration

        public int computedFlexBasisGeneration()
        Returns the value of the computedFlexBasisGeneration field.
      • generationCount

        public int generationCount()
        Returns the value of the generationCount field.
      • lastOwnerDirection

        public int lastOwnerDirection()
        Returns the value of the lastOwnerDirection field.
      • nextCachedMeasurementsIndex

        public int nextCachedMeasurementsIndex()
        Returns the value of the nextCachedMeasurementsIndex field.
      • measuredDimensions

        public java.nio.FloatBuffer measuredDimensions()
        Returns a FloatBuffer view of the measuredDimensions field.
      • measuredDimensions

        public float measuredDimensions​(int index)
        Returns the value at the specified index of the measuredDimensions field.