Ubuntu Manpages

Gtk2::TextIter

wrapper for GtkTextIter

  Glib::Boxed
  +----Gtk2::TextIter

boolean = $iter->backward_chars ($count)

  • $count (integer)

boolean = $iter->backward_cursor_positions ($count)

  • $count (integer)

boolean = $iter->backward_find_char ($pred, $user_data=undef, $limit=undef)

  • $pred (scalar)
  • $user_data (scalar)
  • $limit (Gtk2::TextIter or undef)

boolean = $iter->backward_lines ($count)

  • $count (integer)

(match_start, match_end) = $iter->backward_search ($str, $flags, $limit=NULL)

  • $str (string)
  • $flags (Gtk2::TextSearchFlags)
  • $limit (Gtk2::TextIter or undef)

boolean = $iter->backward_sentence_starts ($count)

  • $count (integer)

boolean = $iter->backward_to_tag_toggle ($tag)

  • $tag (Gtk2::TextTag or undef)

boolean = $iter->backward_visible_cursor_position

Since: gtk+ 2.4

boolean = $iter->backward_visible_cursor_positions ($count)

  • $count (integer)

Since: gtk+ 2.4

boolean = $iter->backward_visible_line

Since: gtk+ 2.8

boolean = $iter->backward_visible_lines ($count)

  • $count (integer)

Since: gtk+ 2.8

boolean = $iter->backward_visible_word_start

Since: gtk+ 2.4

boolean = $iter->backward_visible_word_starts ($count)

  • $count (integer)

Since: gtk+ 2.4

boolean = $iter->backward_word_starts ($count)

  • $count (integer)

boolean = $iter->begins_tag ($tag)

  • $tag (Gtk2::TextTag or undef)

boolean = $iter->can_insert ($default_editability)

  • $default_editability (boolean)

  • $rhs (Gtk2::TextIter)

boolean = $iter->editable ($default_setting)

  • $default_setting (boolean)

boolean = $iter->ends_tag ($tag)

  • $tag (Gtk2::TextTag or undef)

  • $rhs (Gtk2::TextIter)

boolean = $iter->forward_chars ($count)

  • $count (integer)

boolean = $iter->forward_cursor_positions ($count)

  • $count (integer)

boolean = $iter->forward_find_char ($pred, $user_data=undef, $limit=undef)

  • $pred (scalar)
  • $user_data (scalar)
  • $limit (Gtk2::TextIter or undef)

boolean = $iter->forward_lines ($count)

  • $count (integer)

(match_start, match_end) = $iter->forward_search ($str, $flags, $limit=NULL)

  • $str (string)
  • $flags (Gtk2::TextSearchFlags)
  • $limit (Gtk2::TextIter or undef)

boolean = $iter->forward_sentence_ends ($count)

  • $count (integer)

boolean = $iter->forward_to_tag_toggle ($tag)

  • $tag (Gtk2::TextTag or undef)

boolean = $iter->forward_visible_cursor_position

Since: gtk+ 2.4

boolean = $iter->forward_visible_cursor_positions ($count)

  • $count (integer)

Since: gtk+ 2.4

boolean = $iter->forward_visible_line

Since: gtk+ 2.8

boolean = $iter->forward_visible_lines ($count)

  • $count (integer)

Since: gtk+ 2.8

boolean = $iter->forward_visible_word_end

Since: gtk+ 2.4

boolean = $iter->forward_visible_word_ends ($count)

  • $count (integer)

Since: gtk+ 2.4

boolean = $iter->forward_word_ends ($count)

  • $count (integer)

boolean = $iter->has_tag ($tag)

  • $tag (Gtk2::TextTag)

boolean = $iter->in_range ($start, $end)

  • $start (Gtk2::TextIter)
  • $end (Gtk2::TextIter)

$iter->set_line_index ($byte_on_line)

  • $byte_on_line (integer)

$iter->set_line_offset ($char_on_line)

  • $char_on_line (integer)

$iter->set_line ($line_number)

  • $line_number (integer)

list = $iter->get_marks

Returns a list of all Gtk2::TextMark at this location. Because marks are not iterable (they don't take up any "space" in the buffer, they are just marks in between iterable locations), multiple marks can exist in the same place. The returned list is not in any meaningful order.

$iter->set_offset ($char_offset)

  • $char_offset (integer)

  • $second (Gtk2::TextIter)

string = $start->get_slice ($end)

  • $end (Gtk2::TextIter)

list = $iter->get_tags

Returns a list of tags that apply to iter, in ascending order of priority (highest-priority tags are last).

string = $start->get_text ($end)

  • $end (Gtk2::TextIter)

list = $iter->get_toggled_tags ($toggled_on)

  • $toggled_on (boolean)

Returns a list of Gtk2::TextTag that are toggled on or off at this point. (If toggled_on is TRUE, the list contains tags that are toggled on.) If a tag is toggled on at iter, then some non-empty range of characters following iter has that tag applied to it. If a tag is toggled off, then some non-empty range following iter does not have the tag applied to it.

boolean = $iter->toggles_tag ($tag)

  • $tag (Gtk2::TextTag or undef)

$iter->set_visible_line_index ($byte_on_line)

  • $byte_on_line (integer)

$iter->set_visible_line_offset ($char_on_line)

  • $char_on_line (integer)

string = $start->get_visible_slice ($end)

  • $end (Gtk2::TextIter)

string = $start->get_visible_text ($end)

  • $end (Gtk2::TextIter)

  • 'visible-only' / 'GTK_TEXT_SEARCH_VISIBLE_ONLY'
  • 'text-only' / 'GTK_TEXT_SEARCH_TEXT_ONLY'

Gtk2, Glib::Boxed

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

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