TextBuffer.connectInsertPixbuf

Connect to InsertPixbuf signal.

The ::insert-pixbuf signal is emitted to insert a #GdkPixbuf 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 pixbuf.

See also: gtk.text_buffer.TextBuffer.insertPixbuf.

class TextBuffer
gulong
connectInsertPixbuf
(
T
)
(,
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] : gdkpixbuf.pixbuf.Pixbuf)
)
)
&&
(
Parameters!T.length < 3 ||
(
ParameterStorageClassTuple!T[2] == ParameterStorageClass.none &&
is(Parameters!T[2] : gtk.text_buffer.TextBuffer)
)
)
&&
Parameters!T.length < 4
)

Parameters

callback T

signal callback delegate or function to connect

void callback(gtk.text_iter.TextIter location, gdkpixbuf.pixbuf.Pixbuf pixbuf, gtk.text_buffer.TextBuffer textBuffer)

location position to insert pixbuf in textbuffer (optional)

pixbuf the #GdkPixbuf to be inserted (optional)

textBuffer the instance the signal is connected to (optional)

after Flag!"After"

Yes.After to execute callback after default handler, No.After to execute before (default)

Return Value

Type: gulong

Signal ID