Package: gtk

Function gtk:text-buffer-bounds

Lambda List

gtk:text-buffer-bounds (buffer)

Arguments

buffer -- a gtk:text-buffer object

Return Value

start -- a gtk:text-iter iterator with the first position in the text buffer
end -- a gtk:text-iter iterator with the end position in the text buffer

Details

Retrieves the first and last iterators in the text buffer. The entire text buffer lies within the range [start, end).

Examples

Get the start and end itererator for a text buffer and clear the text buffer.
(defun clear-buffer (buffer)
  (multiple-value-bind (start end)
      (gtk:text-buffer-bounds buffer)
    (gtk:text-buffer-delete buffer start end)))    
 

See also

2024-7-3