Next:
Gtk2::TextChildAnchor
Previous:
Gtk2::TextAttributes
 [Gtk2-Perl - Table of Contents][Gtk2-Perl - Index]

Gtk2::TextBuffer



NAME

Gtk2::TextBuffer

HIERARCHY

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

METHODS

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

$buffer->add_mark ($mark, $where)

Since: gtk+ 2.12

$buffer->add_selection_clipboard ($clipboard)

Since: gtk+ 2.2

$buffer->apply_tag ($tag, $start, $end)

$buffer->apply_tag_by_name ($name, $start, $end)

boolean = $buffer->backspace ($iter, $interactive, $default_editable)

Since: gtk+ 2.6

$buffer->begin_user_action

(start, end) = $buffer->get_bounds

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

integer = $buffer->get_char_count

$buffer->copy_clipboard ($clipboard)

Since: gtk+ 2.2

targetlist = $buffer->get_copy_target_list

Since: gtk+ 2.10

textchildanchor = $buffer->create_child_anchor ($iter)

textmark = $buffer->create_mark ($mark_name, $where, $left_gravity)

texttag = $buffer->create_tag ($tag_name, $property_name1, $property_value1, ...)

$buffer->cut_clipboard ($clipboard, $default_editable)

Since: gtk+ 2.2

$buffer->delete ($start, $end)

boolean = $buffer->delete_interactive ($start_iter, $end_iter, $default_editable)

$buffer->delete_mark ($mark)

$buffer->delete_mark_by_name ($name)

boolean = $buffer->delete_selection ($interactive, $default_editable)

$register_buffer->deserialize ($content_buffer, $format, $iter, $data)

May croak with a Glib::Error in $@ on failure.

list = $buffer->get_deserialize_formats

boolean = $buffer->deserialize_get_can_create_tags ($format)

$buffer->deserialize_set_can_create_tags ($format, $can_create_tags)

textiter = $buffer->get_end_iter

$buffer->end_user_action

boolean = $buffer->get_has_selection

Since: gtk+ 2.10

$buffer->insert ($iter, $text)

$buffer->insert_at_cursor ($text)

$buffer->insert_child_anchor ($iter, $anchor)

textmark = $buffer->get_insert

boolean = $buffer->insert_interactive ($iter, $text, $default_editable)

boolean = $buffer->insert_interactive_at_cursor ($text, $default_editable)

$buffer->insert_pixbuf ($iter, $pixbuf)

$buffer->insert_range ($iter, $start, $end)

boolean = $buffer->insert_range_interactive ($iter, $start, $end, $default_editable)

$buffer->insert_with_tags ($iter, $text, ...)

$buffer->insert_with_tags_by_name ($iter, $text, ...)

textiter = $buffer->get_iter_at_child_anchor ($anchor)

textiter = $buffer->get_iter_at_line ($line_number)

textiter = $buffer->get_iter_at_line_index ($line_number, $byte_index)

textiter = $buffer->get_iter_at_line_offset ($line_number, $char_offset)

textiter = $buffer->get_iter_at_mark ($mark)

textiter = $buffer->get_iter_at_offset ($char_offset)

integer = $buffer->get_line_count

textmark or undef = $buffer->get_mark ($name)

boolean = $buffer->get_modified

$buffer->set_modified ($setting)

$buffer->move_mark ($mark, $where)

$buffer->move_mark_by_name ($name, $where)

$buffer->paste_clipboard ($clipboard, $override_location, $default_editable)

Since: gtk+ 2.2

targetlist = $buffer->get_paste_target_list

Since: gtk+ 2.10

$buffer->place_cursor ($where)

atom = $buffer->register_deserialize_format ($mime_type, $function, $user_data=undef)

atom = $buffer->register_deserialize_tagset ($tagset_name)

atom = $buffer->register_serialize_format ($mime_type, $function, $user_data=undef)

atom = $buffer->register_serialize_tagset ($tagset_name)

$buffer->remove_all_tags ($start, $end)

$buffer->remove_selection_clipboard ($clipboard)

Since: gtk+ 2.2

$buffer->remove_tag ($tag, $start, $end)

$buffer->remove_tag_by_name ($name, $start, $end)

$buffer->select_range ($ins, $bound)

Since: gtk+ 2.4

textmark = $buffer->get_selection_bound

(start, end) = $buffer->get_selection_bounds

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.

scalar = $register_buffer->serialize ($content_buffer, $format, $start, $end)

list = $buffer->get_serialize_formats

string = $buffer->get_slice ($start, $end, $include_hidden_chars)

textiter = $buffer->get_start_iter

texttagtable = $buffer->get_tag_table

string = $buffer->get_text ($start, $end, $include_hidden_chars)

$buffer->set_text ($text)

$buffer->unregister_deserialize_format ($format)

$buffer->unregister_serialize_format ($format)

PROPERTIES

'copy-target-list' (Gtk2::TargetList : readable / private)
The list of targets this buffer supports for clipboard copying and DND source
'cursor-position' (integer : readable / private)
The position of the insert mark (as offset from the beginning of the buffer)
'has-selection' (boolean : readable / private)
Whether the buffer has some text currently selected
'paste-target-list' (Gtk2::TargetList : readable / private)
The list of targets this buffer supports for clipboard pasting and DND destination
'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-2008 by the gtk2-perl team.

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


[Top] Generated by Marek::Pod::HTML 0.49 on Wed Dec 16 23:03:54 2009