Pango::...Language(3)

okay bestie, welcome to the Pango::...Language(3) page β€” yes, that's the manual name, User Contributed Perl Documentation and all β€” and today's main character is Pango::AttrLanguage. πŸ’…


🌸 NAME 🌸

Pango::AttrLanguage

That's the name. Iconic, no notes. ✨


πŸ¦‹ HIERARCHY πŸ¦‹

Here's the family tree, and yes it's giving nepo baby energy:

Glib::Boxed
+----Pango::AttrLanguage

πŸ’… METHODS πŸ’…

πŸ› οΈ attribute = Pango::AttrLanguage->new ($language, ...)

This is the constructor situation, periodt. You feed it:

  • $language β€” a Pango::Language object.
  • ... β€” a list.
⚠️ Okay so this is the important part, no cap: Pango::AttrLanguage doesn't take a reference and doesn't copy the Pango::Language object, but demands its validity nonetheless. So make sure the language object stays alive at least as long as the attribute.

Like, literally keep it alive at least as long as the attribute. That's the rule, bestie. 🫢

πŸŽ€ language = $attr->value (...)

This one gives you back language, and it takes:

  • ... β€” a list.

That's the whole documented tea. β˜•


πŸ‘€ SEE ALSO πŸ‘€

Go peek at Pango and Glib::Boxed, bestie. That's the list. 🌈


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

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


This page is from perl v5.42.0, dated 2019-09-16, and the manual is Pango::...Language(3). Bye bestie, go keep those language objects alive πŸ’–πŸ¦‹

πŸ“¦ where this page comes from