Class YGCachedMeasurement

  • All Implemented Interfaces:

    public class YGCachedMeasurement
    extends Struct
    Unstable/private API.


     struct YGCachedMeasurement {
         float availableWidth;
         float availableHeight;
         YGMeasureMode widthMeasureMode;
         YGMeasureMode heightMeasureMode;
         float computedWidth;
         float computedHeight;
    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.

        The struct member offsets.
    • Constructor Detail

      • YGCachedMeasurement

        public YGCachedMeasurement​(java.nio.ByteBuffer container)
        Creates a YGCachedMeasurement instance at the current position of the specified ByteBuffer container. Changes to the buffer's content will be visible to the struct instance and vice versa.

        The created instance holds a strong reference to the container object.

    • Method Detail

      • sizeof

        public int sizeof()
        Description copied from class: Struct
        Returns sizeof(struct).
        Specified by:
        sizeof in class Struct
      • availableWidth

        public float availableWidth()
        Returns the value of the availableWidth field.
      • availableHeight

        public float availableHeight()
        Returns the value of the availableHeight field.
      • widthMeasureMode

        public int widthMeasureMode()
        Returns the value of the widthMeasureMode field.
      • heightMeasureMode

        public int heightMeasureMode()
        Returns the value of the heightMeasureMode field.
      • computedWidth

        public float computedWidth()
        Returns the value of the computedWidth field.
      • computedHeight

        public float computedHeight()
        Returns the value of the computedHeight field.
      • create

        public static YGCachedMeasurement create​(long address)
        Returns a new YGCachedMeasurement instance for the specified memory address.
      • createSafe

        public static YGCachedMeasurement createSafe​(long address)
        Like create, but returns null if address is NULL.
      • navailableWidth

        public static float navailableWidth​(long struct)
        Unsafe version of availableWidth().
      • navailableHeight

        public static float navailableHeight​(long struct)
        Unsafe version of availableHeight().
      • nwidthMeasureMode

        public static int nwidthMeasureMode​(long struct)
        Unsafe version of widthMeasureMode().
      • nheightMeasureMode

        public static int nheightMeasureMode​(long struct)
        Unsafe version of heightMeasureMode().
      • ncomputedWidth

        public static float ncomputedWidth​(long struct)
        Unsafe version of computedWidth().
      • ncomputedHeight

        public static float ncomputedHeight​(long struct)
        Unsafe version of computedHeight().