Interface TextBuffer.OnInsertPaintable

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.OnInsertPaintable
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    onInsertPaintable(TextIter location, Paintable paintable)
    Emitted to insert a `GdkPaintable` in a `GtkTextBuffer`.
  • Method Details

    • onInsertPaintable

      void onInsertPaintable(@Nonnull TextIter location, @Nonnull Paintable paintable)
      Emitted to insert a `GdkPaintable` 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 @paintable.

      See also: [method@Gtk.TextBuffer.insert_paintable].
      Parameters:
      location - position to insert @paintable in @textbuffer
      paintable - the `GdkPaintable` to be inserted