Interface PadStickyEventsForeachFunction

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

Functional interface declaration of the PadStickyEventsForeachFunction callback.

See Also:
  • Method Details

    • run

      boolean run(Pad pad, @Nullable Event[] event)

      Callback used by gst_pad_sticky_events_foreach().

      When this function returns true, the next event will be returned. When false is returned, gst_pad_sticky_events_foreach() will return.

      When event is set to null, the item will be removed from the list of sticky events. event can be replaced by assigning a new reference to it. This function is responsible for unreffing the old event when removing or modifying.

      Parameters:
      pad - the GstPad.
      event - a sticky GstEvent.
      Returns:
      true if the iteration should continue
    • upcall

      default int upcall(MemorySegment pad, MemorySegment event, MemorySegment userData)
      The upcall method is called from native code. The parameters are marshaled and run(Pad, Event[]) 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