Interface PaintPushGroupFunc

All Superinterfaces:
FunctionPointer
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface @Generated("org.javagi.JavaGI") public interface PaintPushGroupFunc extends FunctionPointer

Functional interface declaration of the PaintPushGroupFunc callback.

See Also:
  • Method Details

    • run

      void run(PaintFuncs funcs, @Nullable MemorySegment paintData)

      A virtual method for the hb_paint_funcs_t to use an intermediate surface for subsequent paint calls.

      The drawing will be redirected to an intermediate surface until a matching call to the hb_paint_funcs_pop_group_func_t vfunc.

      Parameters:
      funcs - paint functions object
      paintData - The data accompanying the paint functions in hb_font_paint_glyph()
      Since:
      7.0.0
    • upcall

      default void upcall(MemorySegment funcs, MemorySegment paintData, MemorySegment userData)
      The upcall method is called from native code. The parameters are marshaled and run(PaintFuncs, MemorySegment) is executed.
    • toCallback

      default MemorySegment toCallback(Arena arena)
      Creates a native function pointer to the upcall(MemorySegment, MemorySegment, MemorySegment) method.
      Specified by:
      toCallback in interface FunctionPointer
      Parameters:
      arena - the arena in which the function pointer is allocated
      Returns:
      the native function pointer