Interface UnicodeComposeFunc

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 UnicodeComposeFunc extends FunctionPointer

Functional interface declaration of the UnicodeComposeFunc callback.

See Also:
  • Method Details

    • run

      Bool run(UnicodeFuncs ufuncs, Codepoint a, Codepoint b, Codepoint ab)

      A virtual method for the hb_unicode_funcs_t structure.

      This method should compose a sequence of two input Unicode code points by canonical equivalence, returning the composed code point in a hb_codepoint_t output parameter (if successful). The method must return an hb_bool_t indicating the success of the composition.

      Parameters:
      ufuncs - A Unicode-functions structure
      a - The first code point to compose
      b - The second code point to compose
      ab - The composed code point
      Returns:
      true is b composed, false otherwise
    • upcall

      default int upcall(MemorySegment ufuncs, int a, int b, MemorySegment ab, MemorySegment userData)
      The upcall method is called from native code. The parameters are marshaled and run(UnicodeFuncs, Codepoint, Codepoint, Codepoint) is executed.
    • toCallback

      default MemorySegment toCallback(Arena arena)
      Creates a native function pointer to the upcall(MemorySegment, int, int, 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