| GtkTextBuffer {RGtk2} | R Documentation |
Stores attributed text for display in a GtkTextView
gtkTextBufferNew(table = NULL)
gtkTextBufferGetLineCount(object)
gtkTextBufferGetCharCount(object)
gtkTextBufferGetTagTable(object)
gtkTextBufferInsert(object, iter, text, len = -1)
gtkTextBufferInsertAtCursor(object, text, len = -1)
gtkTextBufferInsertInteractive(object, iter, text, default.editable)
gtkTextBufferInsertInteractiveAtCursor(object, text, default.editable)
gtkTextBufferInsertRange(object, iter, start, end)
gtkTextBufferInsertRangeInteractive(object, iter, start, end, default.editable)
gtkTextBufferInsertWithTags(object, iter, text, ...)
gtkTextBufferInsertWithTagsByName(object, iter, text, ...)
gtkTextBufferDelete(object, start, end)
gtkTextBufferDeleteInteractive(object, start.iter, end.iter, default.editable)
gtkTextBufferBackspace(object, iter, interactive, default.editable)
gtkTextBufferSetText(object, text, len = -1)
gtkTextBufferGetText(object, start, end, include.hidden.chars = TRUE)
gtkTextBufferGetSlice(object, start, end, include.hidden.chars = TRUE)
gtkTextBufferInsertPixbuf(object, iter, pixbuf)
gtkTextBufferInsertChildAnchor(object, iter, anchor)
gtkTextBufferCreateChildAnchor(object, iter)
gtkTextBufferCreateMark(object, mark.name = NULL, where, left.gravity = FALSE)
gtkTextBufferMoveMark(object, mark, where)
gtkTextBufferMoveMarkByName(object, name, where)
gtkTextBufferAddMark(object, mark, where)
gtkTextBufferDeleteMark(object, mark)
gtkTextBufferDeleteMarkByName(object, name)
gtkTextBufferGetMark(object, name)
gtkTextBufferGetInsert(object)
gtkTextBufferGetSelectionBound(object)
gtkTextBufferGetHasSelection(object)
gtkTextBufferPlaceCursor(object, where)
gtkTextBufferSelectRange(object, ins, bound)
gtkTextBufferApplyTag(object, tag, start, end)
gtkTextBufferRemoveTag(object, tag, start, end)
gtkTextBufferApplyTagByName(object, name, start, end)
gtkTextBufferRemoveTagByName(object, name, start, end)
gtkTextBufferRemoveAllTags(object, start, end)
gtkTextBufferCreateTag(object, tag.name, ...)
gtkTextBufferGetIterAtLineOffset(object, line.number, char.offset)
gtkTextBufferGetIterAtOffset(object, char.offset)
gtkTextBufferGetIterAtLine(object, line.number)
gtkTextBufferGetIterAtLineIndex(object, line.number, byte.index)
gtkTextBufferGetIterAtMark(object, mark)
gtkTextBufferGetIterAtChildAnchor(object, anchor)
gtkTextBufferGetStartIter(object)
gtkTextBufferGetEndIter(object)
gtkTextBufferGetBounds(object)
gtkTextBufferGetModified(object)
gtkTextBufferSetModified(object, setting)
gtkTextBufferDeleteSelection(object, interactive, default.editable)
gtkTextBufferPasteClipboard(object, clipboard, override.location = NULL, default.editable)
gtkTextBufferCopyClipboard(object, clipboard)
gtkTextBufferCutClipboard(object, clipboard, default.editable)
gtkTextBufferGetSelectionBounds(object)
gtkTextBufferBeginUserAction(object)
gtkTextBufferEndUserAction(object)
gtkTextBufferAddSelectionClipboard(object, clipboard)
gtkTextBufferRemoveSelectionClipboard(object, clipboard)
gtkTextBufferDeserialize(object, content.buffer, format, iter, data, .errwarn = TRUE)
gtkTextBufferDeserializeGetCanCreateTags(object, format)
gtkTextBufferDeserializeSetCanCreateTags(object, format, can.create.tags)
gtkTextBufferGetCopyTargetList(object)
gtkTextBufferGetDeserializeFormats(object)
gtkTextBufferGetPasteTargetList(object)
gtkTextBufferGetSerializeFormats(object)
gtkTextBufferRegisterDeserializeFormat(object, mime.type, fun, user.data)
gtkTextBufferRegisterDeserializeTagset(object, tagset.name = NULL)
gtkTextBufferRegisterSerializeFormat(object, mime.type, fun, user.data)
gtkTextBufferRegisterSerializeTagset(object, tagset.name = NULL)
gtkTextBufferSerialize(object, content.buffer, format, start, end)
gtkTextBufferUnregisterDeserializeFormat(object, format)
gtkTextBufferUnregisterSerializeFormat(object, format)
gtkTextBuffer(table = NULL)
GObject +----GtkTextBuffer
You may wish to begin by reading the text widget conceptual overview which gives an overview of all the objects and data types related to the text widget and how they work together.
GtkTextBuffertagTableGtkTextTagTable]
gtkTextBuffer is the equivalent of gtkTextBufferNew.
GtkTextBufferTargetInfobuffer-contentsrich-texttext
GtkTextBufferDeserializeFunc(register.buffer, content.buffer, iter, data, length, create.tags, user.data, error)gtkTextBufferSerialize, and insert it at iter.
register.bufferGtkTextBuffer] the GtkTextBuffer the format is registered withcontent.bufferGtkTextBuffer] the GtkTextBuffer to deserialize intoiterGtkTextIter] insertion point for the deserialized textdatalengthdatacreate.tagsTRUE if deserializing may create tagsuser.dataerrorGError] return location for a GError
Returns: [logical] TRUE on success, FALSE otherwise
GtkTextBufferSerializeFunc(register.buffer, content.buffer, start, end, length, user.data)register.bufferGtkTextBuffer] the GtkTextBuffer for which the format is registeredcontent.bufferGtkTextBuffer] the GtkTextsBuffer to serializestartGtkTextIter] start of the block of text to serializeendGtkTextIter] end of the block of text to serializelengthuser.data
Returns: [raw] a newly-allocated list of guint8 which contains the serialized
data, or NULL if an error occurred
apply-tag(textbuffer, tag, start, end, user.data)GtkTextBuffer.
Applying actually occurs in the default handler.
Note that if your handler runs before the default handler it must not
invalidate the start and end iters (or has to revalidate them).
See also:
gtkTextBufferApplyTag,
gtkTextBufferInsertWithTags,
gtkTextBufferInsertRange.
textbufferGtkTextBuffer] the object which received the signaltagGtkTextTag] the applied tagstartGtkTextIter] the start of the range the tag is applied toendGtkTextIter] the end of the range the tag is applied touser.data
begin-user-action(textbuffer, user.data)GtkTextBuffer.
See also:
gtkTextBufferBeginUserAction,
gtkTextBufferInsertInteractive,
gtkTextBufferInsertRangeInteractive,
gtkTextBufferDeleteInteractive,
gtkTextBufferBackspace,
gtkTextBufferDeleteSelection.
textbufferGtkTextBuffer] the object which received the signaluser.data
changed(textbuffer, user.data)GtkTextBuffer
has changed.
textbufferGtkTextBuffer] the object which received the signaluser.data
delete-range(textbuffer, start, end, user.data)GtkTextBuffer.
Note that if your handler runs before the default handler it must not
invalidate the start and end iters (or has to revalidate them).
The default signal handler revalidates the start and end iters to
both point point to the location where text was deleted. Handlers
which run after the default handler (see gSignalConnectAfter())
do not have access to the deleted text.
See also: gtkTextBufferDelete.
textbufferGtkTextBuffer] the object which received the signalstartGtkTextIter] the start of the range to be deletedendGtkTextIter] the end of the range to be deleteduser.data
end-user-action(textbuffer, user.data)GtkTextBuffer.
See also:
gtkTextBufferEndUserAction,
gtkTextBufferInsertInteractive,
gtkTextBufferInsertRangeInteractive,
gtkTextBufferDeleteInteractive,
gtkTextBufferBackspace,
gtkTextBufferDeleteSelection,
gtkTextBufferBackspace.
textbufferGtkTextBuffer] the object which received the signaluser.data
insert-child-anchor(textbuffer, location, anchor, user.data)GtkTextChildAnchor 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 anchor.
See also: gtkTextBufferInsertChildAnchor.
textbufferGtkTextBuffer] the object which received the signallocationGtkTextIter] position to insert anchor in textbufferanchorGtkTextChildAnchor] the GtkTextChildAnchor to be inserteduser.data
insert-pixbuf(textbuffer, location, pixbuf, user.data)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: gtkTextBufferInsertPixbuf.
textbufferGtkTextBuffer] the object which received the signallocationGtkTextIter] position to insert pixbuf in textbufferpixbufGdkPixbuf] the GdkPixbuf to be inserteduser.data
insert-text(textbuffer, location, text, len, user.data)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:
gtkTextBufferInsert,
gtkTextBufferInsertRange.
textbufferGtkTextBuffer] the object which received the signallocationGtkTextIter] position to insert text in textbuffertextlenuser.data
mark-deleted(textbuffer, mark, user.data)GtkTextMark is deleted.
See also:
gtkTextBufferDeleteMark.
textbufferGtkTextBuffer] the object which received the signalmarkGtkTextMark] The mark that was deleteduser.data
mark-set(textbuffer, location, mark, user.data)GtkTextMark is set.
See also:
gtkTextBufferCreateMark,
gtkTextBufferMoveMark.
textbufferGtkTextBuffer] the object which received the signallocationGtkTextIter] The location of mark in textbuffermarkGtkTextMark] The mark that is setuser.data
modified-changed(textbuffer, user.data)GtkTextBuffer flips.
See also:
gtkTextBufferSetModified.
textbufferGtkTextBuffer] the object which received the signaluser.data
remove-tag(textbuffer, tag, start, end, user.data)tag from a
range of text in a GtkTextBuffer.
Removal actually occurs in the default handler.
Note that if your handler runs before the default handler it must not
invalidate the start and end iters (or has to revalidate them).
See also:
gtkTextBufferRemoveTag.
textbufferGtkTextBuffer] the object which received the signaltagGtkTextTag] the tag to be removedstartGtkTextIter] the start of the range the tag is removed fromendGtkTextIter] the end of the range the tag is removed fromuser.data
copy-target-list [GtkTargetList : Read]The list of targets this buffer supports for clipboard copying and as DND source.
Since 2.10
cursor-position [integer : Read]The position of the insert mark (as offset from the beginning of the buffer). It is useful for getting notified when the cursor moves.
Allowed values: >= 0 Default value: 0 Since 2.10
has-selection [logical : Read]Whether the buffer has some text currently selected.
Default value: FALSE Since 2.10
paste-target-list [GtkTargetList : Read]The list of targets this buffer supports for clipboard pasting and as DND destination.
Since 2.10
tag-table [GtkTextTagTable : Read / Write / Construct Only]Text Tag Table.
text [character : Read / Write]
The text content of the buffer. Without child widgets and images,
see gtkTextBufferGetText for more information.
Default value: "" Since 2.8
Derived by RGtkGen from GTK+ documentation
http://developer.gnome.org/doc/API/2.0/gtk/GtkTextBuffer.html
GtkTextView
GtkTextIter
GtkTextMark