Gtk2::TextIter(3)
okay so bestie, welcome to the manual page for Gtk2::TextIter(3) β it's literally the wrapper for GtkTextIter, and it's giving main character energy in the Gtk2 Perl world π
β¨. This is your no-skip guide, so grab a boba and let's vibe check every method, flag, and copyright line. No cap.
πΈ NAME πΈ
Gtk2::TextIter β wrapper for GtkTextIter π
π¦ HIERARCHY π¦
the family tree, bestie:
Glib::Boxed
+----Gtk2::TextIter
β¨ METHODS β¨
here's the whole method menu, bestie. every single one. no skipping. periodt. π
textattributes = $iter->get_attributesβ returnstextattributes, iconic.boolean = $iter->backward_charβ returns a boolean, slay.boolean = $iter->backward_chars ($count)β returns a boolean.$count(integer) β the count, bestie.
boolean = $iter->backward_cursor_positionβ returns a boolean, lowkey.boolean = $iter->backward_cursor_positions ($count)β returns a boolean.$count(integer) β the count.
boolean = $iter->backward_find_char ($pred, $user_data=undef, $limit=undef)β returns a boolean.$pred(scalar) β the pred.$user_data(scalar) β defaults to undef.$limit(Gtk2::TextIteror undef) β defaults to undef.
boolean = $iter->backward_lineβ returns a boolean.boolean = $iter->backward_lines ($count)β returns a boolean.$count(integer)
(match_start, match_end) = $iter->backward_search ($str, $flags, $limit=NULL)β returns(match_start, match_end), no cap.$str(string)$flags(Gtk2::TextSearchFlags)$limit(Gtk2::TextIteror undef) β default isNULL.
boolean = $iter->backward_sentence_startβ returns a boolean.boolean = $iter->backward_sentence_starts ($count)β returns a boolean.$count(integer)
boolean = $iter->backward_to_tag_toggle ($tag)β returns a boolean.$tag(Gtk2::TextTagor undef)
boolean = $iter->backward_visible_cursor_positionβ returns a boolean. Since: gtk+ 2.4 β old but iconic.boolean = $iter->backward_visible_cursor_positions ($count)β returns a boolean.$count(integer)- Since: gtk+ 2.4
boolean = $iter->backward_visible_lineβ returns a boolean. Since: gtk+ 2.8boolean = $iter->backward_visible_lines ($count)β returns a boolean.$count(integer)- Since: gtk+ 2.8
boolean = $iter->backward_visible_word_startβ returns a boolean. Since: gtk+ 2.4boolean = $iter->backward_visible_word_starts ($count)β returns a boolean.$count(integer)- Since: gtk+ 2.4
boolean = $iter->backward_word_startβ returns a boolean.boolean = $iter->backward_word_starts ($count)β returns a boolean.$count(integer)
boolean = $iter->begins_tag ($tag)β returns a boolean.$tag(Gtk2::TextTagor undef)
textbuffer = $iter->get_bufferβ returns atextbuffer, slay.integer = $iter->get_bytes_in_lineβ returns an integer.boolean = $iter->can_insert ($default_editability)β returns a boolean.$default_editability(boolean)
character = $iter->get_charβ returns acharacter, iconic.integer = $iter->get_chars_in_lineβ returns an integer.textchildanchor or undef = $iter->get_child_anchorβ returns atextchildanchoror undef.integer = $lhs->compare ($rhs)β returns an integer.$rhs(Gtk2::TextIter)
boolean = $iter->editable ($default_setting)β returns a boolean.$default_setting(boolean)
boolean = $iter->ends_lineβ returns a boolean.boolean = $iter->ends_sentenceβ returns a boolean.boolean = $iter->ends_tag ($tag)β returns a boolean.$tag(Gtk2::TextTagor undef)
boolean = $iter->ends_wordβ returns a boolean.boolean = $lhs->equal ($rhs)β returns a boolean.$rhs(Gtk2::TextIter)
boolean = $iter->forward_charβ returns a boolean.boolean = $iter->forward_chars ($count)β returns a boolean.$count(integer)
boolean = $iter->forward_cursor_positionβ returns a boolean.boolean = $iter->forward_cursor_positions ($count)β returns a boolean.$count(integer)
boolean = $iter->forward_find_char ($pred, $user_data=undef, $limit=undef)β returns a boolean.$pred(scalar)$user_data(scalar) β default undef.$limit(Gtk2::TextIteror undef) β default undef.
boolean = $iter->forward_lineβ returns a boolean.boolean = $iter->forward_lines ($count)β returns a boolean.$count(integer)
(match_start, match_end) = $iter->forward_search ($str, $flags, $limit=NULL)β returns(match_start, match_end).$str(string)$flags(Gtk2::TextSearchFlags)$limit(Gtk2::TextIteror undef) β defaultNULL.
boolean = $iter->forward_sentence_endβ returns a boolean.boolean = $iter->forward_sentence_ends ($count)β returns a boolean.$count(integer)
$iter->forward_to_endβ no return type, just vibes. π«boolean = $iter->forward_to_line_endβ returns a boolean.boolean = $iter->forward_to_tag_toggle ($tag)β returns a boolean.$tag(Gtk2::TextTagor undef)
boolean = $iter->forward_visible_cursor_positionβ returns a boolean. Since: gtk+ 2.4boolean = $iter->forward_visible_cursor_positions ($count)β returns a boolean.$count(integer)- Since: gtk+ 2.4
boolean = $iter->forward_visible_lineβ returns a boolean. Since: gtk+ 2.8boolean = $iter->forward_visible_lines ($count)β returns a boolean.$count(integer)- Since: gtk+ 2.8
boolean = $iter->forward_visible_word_endβ returns a boolean. Since: gtk+ 2.4boolean = $iter->forward_visible_word_ends ($count)β returns a boolean.$count(integer)- Since: gtk+ 2.4
boolean = $iter->forward_word_endβ returns a boolean.boolean = $iter->forward_word_ends ($count)β returns a boolean.$count(integer)
boolean = $iter->has_tag ($tag)β returns a boolean.$tag(Gtk2::TextTag)
boolean = $iter->in_range ($start, $end)β returns a boolean.$start(Gtk2::TextIter)$end(Gtk2::TextIter)
boolean = $iter->inside_sentenceβ returns a boolean.boolean = $iter->inside_wordβ returns a boolean.boolean = $iter->is_cursor_positionβ returns a boolean.boolean = $iter->is_endβ returns a boolean.boolean = $iter->is_startβ returns a boolean.language = $iter->get_languageβ returns alanguage.integer = $iter->get_lineβ returns an integer.integer = $iter->get_line_indexβ returns an integer.$iter->set_line_index ($byte_on_line)β takes:$byte_on_line(integer)
integer = $iter->get_line_offsetβ returns an integer.$iter->set_line_offset ($char_on_line)β takes:$char_on_line(integer)
$iter->set_line ($line_number)β takes:$line_number(integer)
list = $iter->get_marksβ returns a list of allGtk2::TextMarkat 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.integer = $iter->get_offsetβ returns an integer.$iter->set_offset ($char_offset)β takes:$char_offset(integer)
$first->order ($second)β no return type, just vibes. π«$second(Gtk2::TextIter)
pixbuf or undef = $iter->get_pixbufβ returns apixbufor undef.string = $start->get_slice ($end)β returns a string.$end(Gtk2::TextIter)
boolean = $iter->starts_lineβ returns a boolean.boolean = $iter->starts_sentenceβ returns a boolean.boolean = $iter->starts_wordβ returns a boolean.list = $iter->get_tagsβ returns a list of tags that apply toiter, in ascending order of priority (highest-priority tags are last).string = $start->get_text ($end)β returns a string.$end(Gtk2::TextIter)
list = $iter->get_toggled_tags ($toggled_on)β returns a list ofGtk2::TextTagthat are toggled on or off at this point. (Iftoggled_onisTRUE, the list contains tags that are toggled on.) If a tag is toggled on atiter, then some non-empty range of characters followingiterhas that tag applied to it. If a tag is toggled off, then some non-empty range followingiterdoes not have the tag applied to it.$toggled_on(boolean)
boolean = $iter->toggles_tag ($tag)β returns a boolean.$tag(Gtk2::TextTagor undef)
integer = $iter->get_visible_line_indexβ returns an integer.$iter->set_visible_line_index ($byte_on_line)β takes:$byte_on_line(integer)
integer = $iter->get_visible_line_offsetβ returns an integer.$iter->set_visible_line_offset ($char_on_line)β takes:$char_on_line(integer)
string = $start->get_visible_slice ($end)β returns a string.$end(Gtk2::TextIter)
string = $start->get_visible_text ($end)β returns a string.$end(Gtk2::TextIter)
π ENUMS AND FLAGS π
- flags
Gtk2::TextSearchFlags'visible-only'/'GTK_TEXT_SEARCH_VISIBLE_ONLY''text-only'/'GTK_TEXT_SEARCH_TEXT_ONLY'
π SEE ALSO π
Gtk2Glib::Boxed
π COPYRIGHT π
Copyright (C) 2003-2011 by the gtk2-perl team.
This software is licensed under the LGPL. See Gtk2 for a full notice.
and that's the tea, bestie! this page is from perl v5.42.0, dated 2025-07-25, and it's Gtk2::TextIter(3) β now go slay some text buffers. πβ¨π¦
π¦ where this page comes from
- fedora 43: perl-Gtk2 1.24993-23.fc43 Β· LicenseRef-Callaway-LGPLv2+
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms