Package: gtk

Class gtk-text-buffer

Superclasses

g-object, common-lisp:standard-object, common-lisp:t

Documented Subclasses

None

Direct Slots

copy-target-list
The copy-target-list property of type gtk-target-list (Read)
The list of targets this buffer supports for clipboard copying and as DND source.
cursor-position
The cursor-position property of type :int (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
has-selection
The has-selection property of type :boolean (Read)
Whether the buffer has some text currently selected.
Default value: nil
paste-target-list
The paste-target-list property of type gtk-target-list (Read)
The list of targets this buffer supports for clipboard pasting and as DND destination.
tag-table
The tag-table property of type gtk-text-tag-table (Read / Write / Construct)
Text Tag Table.
text
The text property of type :string (Read / Write)
The text content of the buffer. Without child widgets and images, see the gtk-text-buffer-get-text function for more information.
Default value: ""

Details

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.

Signal Details

The "apply-tag" signal
 lambda (buffer tag start end)    : Run Last      
The "apply-tag" signal is emitted to apply a tag to a range of text in a gtk-text-buffer object. 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: gtk-text-buffer-apply-tag, gtk-text-buffer-insert-with-tags, gtk-text-buffer-insert-range.
buffer
The object which received the signal.
tag
The applied tag.
start
The start of the range the tag is applied to.
end
The end of the range the tag is applied to.
The "begin-user-action" signal
 lambda (buffer)    : Run Last      
The "begin-user-action" signal is emitted at the beginning of a single user-visible operation on a gtk-text-buffer. See also: gtk-text-buffer-begin-user-action, gtk-text-buffer-insert-interactive, gtk-text-buffer-insert-range-interactive, gtk-text-buffer-delete-interactive, gtk-text-buffer-backspace, gtk-text-buffer-delete-selection.
buffer
The object which received the signal.
The "changed" signal
 lambda (buffer)    : Run Last      
The "changed signal" is emitted when the content of a gtk-text-buffer object has changed.
buffer
The object which received the signal.
The "delete-range" signal
 lambda (buffer start end)    : Run Last      
The "delete-range" signal is emitted to delete a range from a gtk-text-buffer. 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 the function g-signal-connect-after) do not have access to the deleted text. See also the function gtk-text-buffer-delete.
buffer
The object which received the signal.
start
The start of the range to be deleted.
end
The end of the range to be deleted.
The "end-user-action" signal
 lambda (buffer)    : Run Last      
The "end-user-action" signal is emitted at the end of a single user-visible operation on the gtk-text-buffer. See also: gtk-text-buffer-end-user-action, gtk-text-buffer-insert-interactive, gtk-text-buffer-insert-range-interactive, gtk-text-buffer-delete-interactive, gtk-text-buffer-backspace, gtk-text-buffer-delete-selection, gtk-text-buffer-backspace.
buffer
The object which received the signal.
The "insert-child-anchor" signal
 lambda (buffer location anchor)    : Run Last      
The "insert-child-anchor" signal is emitted to insert a gtk-text-child-anchor in a gtk-text-buffer. 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 the function gtk-text-buffer-insert-child-anchor.
buffer
The object which received the signal.
location
Position to insert anchor in buffer.
anchor
The gtk-text-child-anchor to be inserted.
The "insert-pixbuf" signal
 lambda (buffer location pixbuf)    : Run Last      
The "insert-pixbuf" signal is emitted to insert a gdk-pixbuf in a gtk-text-buffer. 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 the function gtk-text-buffer-insert-pixbuf.
buffer
The object which received the signal-
location
Position to insert pixbuf in buffer.
pixbuf
The gdk-pixbuf to be inserted.
The "insert-text" signal
 lambda (buffer location text len)    : Run Last      
The "insert-text" signal is emitted to insert text in a gtk-text-buffer. 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 the functions gtk-text-buffer-insert and gtk-text-buffer-insert-range.
buffer
The object which received the signal.
location
Position to insert text in buffer.
text
The UTF-8 text to be inserted.
len
Length of the inserted text in bytes.
The "mark-deleted" signal
 lambda (buffer mark)    : Run Last      
The "mark-deleted" signal is emitted as notification after a gtk-text-mark is deleted. See also the function gtk-text-buffer-delete-mark.
buffer
The object which received the signal.
mark
The mark that was deleted.
The "mark-set" signal
 lambda (buffer location mark)    : Run Last      
The "mark-set" signal is emitted as notification after a gtk-text-mark is set. See also the functions gtk-text-buffer-create-mark and gtk-text-buffer-move-mark.
buffer
The object which received the signal.
location
The location of mark in buffer.
mark
The mark that is set.
The "modified-changed" signal
 lambda (buffer)    : Run Last      
The "modified-changed" signal is emitted when the modified bit of a gtk-text-buffer flips. See also the function gtk-text-buffer-set-modified.
buffer
The object which received the signal.
The "paste-done" signal
 lambda (buffer clipboard)    : Run Last      
The "paste-done" signal is emitted after paste operation has been completed. This is useful to properly scroll the view to the end of the pasted text. See the function gtk-text-buffer-paste-clipboard for more details.
buffer
The object which received the signal.
The "remove-tag" signal
 lambda (buffer tag start end)    : Run Last      
The "remove-tag" signal is emitted to remove all occurrences of tag from a range of text in a gtk-text-buffer. 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 the function gtk-text-buffer-remove-tag.
buffer
The object which received the signal.
tag
The tag to be removed.
start
The start of the range the tag is removed from.
end
The end of the range the tag is removed from.
 

Slot Access Functions

Inherited Slot Access Functions

See also

2013-8-14