Gtk2::TextMark(3)

πŸ“¦
version 1.24993 Β· 2 versions
, in fedora 43

✨ 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:

  • Gtk2
  • Glib::Object

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