struct Gtk::TextBuffer::InsertTextSignal

Overview

Emitted to insert text in a Gtk::TextBuffer.

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 : GObject::Object, detail : Nil | String = nil) new

Instance Method Detail

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

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

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

[View source]
def emit(location : Gtk::TextIter, text : String, len : Int32) : Nil #

[View source]
def name : String #
Description copied from struct GObject::Signal

The signal name


[View source]