Gtk2::TextMark(3)
β¨ Gtk2::TextMark β the vibe π
okay so bestie, welcome to Gtk2::TextMark π
this is the Perl wrapper for GtkTextMark β yes, the little sticky-note bookmark thing that lives inside a text buffer and remembers a spot for you. She's tiny, she's iconic, she's from the gtk2-perl docs, and she's about to be your new fav. πΈ
π¦ HIERARCHY
so this is where she sits in the family tree, no cap:
Glib::Object
+----Gtk2::TextMark
she inherits everything from Glib::Object like a good main character. periodt. π
π METHODS
textmark = Gtk2::TextMark->new ($name, $left_gravity)
make a whole new mark, fresh out the box β¨ args go like this:
$name(string or undef) β what you wanna call her$left_gravity(boolean) β does she have left gravity or nah
Since: gtk+ 2.12 π«Ά (so if you're on something ancient, that's a you problem bestie)
textbuffer or undef = $mark->get_buffer
gives you back the text buffer she's chilling in β or undef if she's not attached to one rn π
boolean = $mark->get_deleted
is she deleted? true or false, that's the whole tea π
boolean = $mark->get_left_gravity
tells you whether she's got left gravity. boolean moment. π
string or undef = $mark->get_name
returns her name as a string, or undef if she's nameless (mysterious β¨)
boolean = $mark->get_visible
is she visible? boolean, obviously π
$mark->set_visible ($setting)
flip her visibility, like a little light switch π₯
$setting(boolean) β the new visible-ness
π PROPERTIES
'left-gravity' β boolean : default false : readable / writable / construct-only / private / static-nick / static-blurb
whether the mark has left gravity π (that's literally the whole description, bestie, I'm not adding lore)
'name' β string : default undef : readable / writable / construct-only / private / static-nick / static-blurb
the mark's name π·οΈ that's it, that's the description.
π SEE ALSO
go be nosy, these are the related icons:
Gtk2Glib::Object
π 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 whole page, bestie!! π this was documented in the User Contributed Perl Documentation for Gtk2::TextMark(3), shipped with perl v5.42.0, dated 2025-07-25 β mwah, go mark some text, ily πβ¨π¦
π¦ 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