TextBuffer.connectInsertPaintable
gulong connectInsertPaintable(T)(T callback, Flag!"After" after = No.After) if (isCallable!T
&& is(ReturnType!T == void)
&& (Parameters!T.length < 1 || (ParameterStorageClassTuple!T[0] == ParameterStorageClass.none && is(Parameters!T[0] == gtk.text_iter.TextIter)))
&& (Parameters!T.length < 2 || (ParameterStorageClassTuple!T[1] == ParameterStorageClass.none && is(Parameters!T[1] : gdk.paintable.Paintable)))
&& (Parameters!T.length < 3 || (ParameterStorageClassTuple!T[2] == ParameterStorageClass.none && is(Parameters!T[2] : gtk.text_buffer.TextBuffer)))
&& Parameters!T.length < 4)Connect to InsertPaintable signal.
Emitted to insert a [gdk.paintable.Paintable] in a [gtk.text_buffer.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 be placed after the inserted paintable.
See also: [gtk.text_buffer.TextBuffer.insertPaintable].
Parameters
callback | signal callback delegate or function to connect void callback(gtk.text_iter.TextIter location, gdk.paintable.Paintable paintable, gtk.text_buffer.TextBuffer textBuffer) location position to insert paintable in textbuffer (optional) paintable the [gdk.paintable.Paintable] to be inserted (optional) textBuffer the instance the signal is connected to (optional) |
after | Yes.After to execute callback after default handler, No.After to execute before (default) |
Returns
Signal ID