struct Gtk::TextBuffer::InsertTextSignal

Overview

Emitted to insert text 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 point to the end of the inserted text.

See also: Gtk::TextBuffer#insert, Gtk::TextBuffer#insert_range.

Defined in:

lib/gi-crystal/src/auto/gtk-4.0/text_buffer.cr

Instance Method Summary

Instance methods inherited from struct GObject::Signal

[](detail : String) : self [], name : String name

Constructor methods inherited from struct GObject::Signal

new(source, detail = nil) new

Instance Method Detail

def connect(*, after : Bool = false, &block : Proc(Gtk::TextIter, String, Int32, Nil)) : GObject::SignalConnection #

def connect(handler : Proc(Gtk::TextIter, String, Int32, Nil), *, after : Bool = false) : GObject::SignalConnection #

def connect(handler : Proc(Gtk::TextBuffer, Gtk::TextIter, String, Int32, Nil), *, after : Bool = false) : GObject::SignalConnection #

def emit(location : Gtk::TextIter, text : String, len : Int32) : Nil #

def name : String #
Description copied from struct GObject::Signal

The signal name