Method GTK2.TextBuffer()->insert_child_anchor()
- Method
insert_child_anchor
GTK2.TextBuffer
insert_child_anchor(GTK2.TextIter
iter
,GTK2.TextChildAnchor
anchor
)- Description
Inserts a child widget anchor into the buffer at iter. The anchor will be counted as one character in character counts, and when obtaining the buffer contents as a string, will be represented by the Unicode "object replacement character" oxFFFC. Note that the "slice" variants for obtaining portions of the buffer as a string include this character for child anchors, but the "text" variants do not. e.g. see get_slice() and get_text(). Consider create_child_anchor() as a more convenient alternative to this function. The buffer will add a reference to the anchor, so you can unref it after insertion.