Class YGMeasureFunc

java.lang.Object
org.lwjgl.system.Callback
org.lwjgl.util.yoga.YGMeasureFunc
All Implemented Interfaces:
AutoCloseable, CallbackI, NativeResource, Pointer, YGMeasureFuncI

public abstract class YGMeasureFunc extends Callback implements YGMeasureFuncI

Type


 YGSize (*YGMeasureFuncI.invoke(long, float, int, float, int, org.lwjgl.util.yoga.YGSize)) (
     YGNodeRef node,
     float width,
     YGMeasureMode widthMode,
     float height,
     YGMeasureMode heightMode
 )
  • Method Details

    • create

      public static YGMeasureFunc create(long functionPointer)
      Creates a YGMeasureFunc instance from the specified function pointer.
      Returns:
      the new YGMeasureFunc
    • createSafe

      @Nullable public static YGMeasureFunc createSafe(long functionPointer)
      Like create, but returns null if functionPointer is NULL.
    • create

      public static YGMeasureFunc create(YGMeasureFuncI instance)
      Creates a YGMeasureFunc instance that delegates to the specified YGMeasureFuncI instance.