Interface TextBuffer.OnInsertChildAnchor

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

@FunctionalInterface public static interface TextBuffer.OnInsertChildAnchor
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Emitted to insert a `GtkTextChildAnchor` in a `GtkTextBuffer`.
  • Method Details

    • onInsertChildAnchor

      void onInsertChildAnchor(@Nonnull TextIter location, @Nonnull TextChildAnchor anchor)
      Emitted to insert a `GtkTextChildAnchor` in a `GtkTextBuffer`.

      Insertion actually occurs in the default handler.

      Note that if your handler runs before the default handler
      it must not invalidate the @location iter (or has to
      revalidate it). The default signal handler revalidates
      it to be placed after the inserted @anchor.

      See also: [method@Gtk.TextBuffer.insert_child_anchor].
      Parameters:
      location - position to insert @anchor in @textbuffer
      anchor - the `GtkTextChildAnchor` to be inserted