man Gtk2::TextBuffer () - Gtk2::TextBuffer

NAME

Gtk2::TextBuffer

HIERARCHY

  Glib::Object
  +----Gtk2::TextBuffer

METHODS

textbuffer = Gtk2::TextBuffer->new ($tagtable=undef)

$buffer->add_selection_clipboard ($clipboard)

$buffer->begin_user_action

Retrieves the first and last iterators in the buffer, i.e. the entire buffer lies within the range (start,end).

$buffer->copy_clipboard ($clipboard)

* ... (list) pairs of names and values

$buffer->delete_mark ($mark)

$buffer->delete_mark_by_name ($name)

$buffer->end_user_action

$buffer->insert_at_cursor ($text)

* ... (list) of Gtk2::TextTag's
* ... (list) of strings, tag names

$buffer->set_modified ($setting)

$buffer->place_cursor ($where)

$buffer->remove_selection_clipboard ($clipboard)

Returns start and end if some text is selected, empty otherwise; places the bounds of the selection in start and end (if the selection has length 0, then start and end are filled in with the same value). start and end will be in ascending order.

$buffer->set_text ($text)

PROPERTIES

'tag-table' (Gtk2::TextTagTable : readable / writable / construct-only / private)
Text Tag Table
'text' (string : readable / writable / private)
Current text of the buffer

SIGNALS

changed (Gtk2::TextBuffer)
insert-text (Gtk2::TextBuffer, Gtk2::TextIter, string, integer)
insert-pixbuf (Gtk2::TextBuffer, Gtk2::TextIter, Gtk2::Gdk::Pixbuf)
insert-child-anchor (Gtk2::TextBuffer, Gtk2::TextIter, Gtk2::TextChildAnchor)
delete-range (Gtk2::TextBuffer, Gtk2::TextIter, Gtk2::TextIter)
modified-changed (Gtk2::TextBuffer)
mark-set (Gtk2::TextBuffer, Gtk2::TextIter, Gtk2::TextMark)
mark-deleted (Gtk2::TextBuffer, Gtk2::TextMark)
apply-tag (Gtk2::TextBuffer, Gtk2::TextTag, Gtk2::TextIter, Gtk2::TextIter)
remove-tag (Gtk2::TextBuffer, Gtk2::TextTag, Gtk2::TextIter, Gtk2::TextIter)
begin-user-action (Gtk2::TextBuffer)
end-user-action (Gtk2::TextBuffer)

SEE ALSO

Gtk2, Glib::Object

COPYRIGHT

Copyright (C) 2003-2005 by the gtk2-perl team.

This software is licensed under the LGPL. See Gtk2 for a full notice.