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 the text buffer supports for clipboard copying and as drag and drop source.
cursor-position
The cursor-position property of type :int (Read)
The position of the insert mark, as offset from the beginning of the text 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 text buffer has some text currently selected.
Default value: false
paste-target-list
The paste-target-list property of type gtk-target-list (Read)
The list of targets the text buffer supports for clipboard pasting and as drag and drop destination.
tag-table
The tag-table property of type gtk-text-tag-table (Read / Write / Construct)
The tag table associated with the text buffer.
text
The text property of type :string (Read / Write)
The text content of the text buffer, without child widgets and images.
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 signal is emitted to apply a tag to a range of text in a text buffer. 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 iterators, or has to revalidate them.
buffer
The gtk-text-buffer object which received the signal.
tag
The gtk-text-tag applied tag.
start
The gtk-text-iter start iterator of the range the tag is applied to.
end
The gtk-text-iter end iterator of the range the tag is applied to.
The "begin-user-action" signal
 lambda (buffer)    :run-last      
The signal is emitted at the beginning of a single user visible operation on a text buffer.
buffer
The gtk-text-buffer object which received the signal.
The "changed" signal
 lambda (buffer)    :run-last      
The signal is emitted when the content of a text buffer has changed.
buffer
The gtk-text-buffer object which received the signal.
The "delete-range" signal
 lambda (buffer start end)    :run-last      
The signal is emitted to delete a range from a text buffer. Note that if your handler runs before the default handler it must not invalidate the start and end iterators, or has to revalidate them. The default signal handler revalidates the start and end iterators to both point to the location where text was deleted. Handlers which run after the default handler do not have access to the deleted text.
buffer
The gtk-text-buffer object which received the signal.
start
The gtk-text-iter start iterator of the range to be deleted.
end
The gtk-text-iter end iterator of the range to be deleted.
The "end-user-action" signal
 lambda (buffer)    :run-last      
The signal is emitted at the end of a single user visible operation on the text buffer.
buffer
The gtk-text-buffer object which received the signal.
The "insert-child-anchor" signal
 lambda (buffer location anchor)    :run-last      
The signal is emitted to insert a gtk-text-child-anchor object in a 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 iterator, or has to revalidate it. The default signal handler revalidates it to be placed after the inserted anchor.
buffer
The gtk-text-buffer object which received the signal.
location
The gtk-text-iter position to insert anchor in buffer.
anchor
The gtk-text-child-anchor object to be inserted.
The "insert-pixbuf" signal
 lambda (buffer location pixbuf)    :run-last      
The signal is emitted to insert a gdk-pixbuf object in a 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 iterator, or has to revalidate it. The default signal handler revalidates it to be placed after the inserted pixbuf.
buffer
The gtk-text-buffer object which received the signal.
location
The gtk-text-iter position to insert pixbuf in buffer.
pixbuf
The gdk-pixbuf object to be inserted.
The "insert-text" signal
 lambda (buffer location text len)    :run-last      
The signal is emitted to insert text in a 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 iterator, or has to revalidate it. The default signal handler revalidates it to point to the end of the inserted text.
buffer
The gtk-text-buffer object which received the signal.
location
The gtk-text-iter position to insert text in buffer.
text
A string with the UTF-8 text to be inserted.
len
An integer with the length of the inserted text in bytes.
The "mark-deleted" signal
 lambda (buffer mark)    :run-last      
The signal is emitted as notification after a gtk-text-mark object is deleted.
buffer
The gtk-text-buffer object which received the signal.
mark
The gtk-text-mark object that was deleted.
The "mark-set" signal
 lambda (buffer location mark)    :run-last      
The signal is emitted as notification after a gtk-text-mark object is set.
buffer
The gtk-text-buffer object which received the signal.
location
The gtk-text-iter location of mark in buffer.
mark
The gtk-text-mark object that is set.
The "modified-changed" signal
 lambda (buffer)    :run-last      
The signal is emitted when the modified bit of a text buffer flips.
buffer
The gtk-text-buffer object which received the signal.
The "paste-done" signal
 lambda (buffer clipboard)    :run-last      
The signal is emitted after paste operation has been completed. This is useful to properly scroll the view to the end of the pasted text.
buffer
The gtk-text-buffer object which received the signal.
clipboard
The gtk-clipboard object.
The "remove-tag" signal
 lambda (buffer tag start end)    :run-last      
The signal is emitted to remove all occurrences of tag from a range of text in a 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 iterators, or has to revalidate them.
buffer
The gtk-text-buffer object which received the signal.
tag
The gtk-text-tag object to be removed.
start
The gtk-text-iter start iterator of the range the tag is removed from.
end
The gtk-text-iter end iterator of the range the tag is removed from.
 

Slot Access Functions

Inherited Slot Access Functions

See also

*2021-11-16