Pango::AttrWeight(3)

✨ NAME ✨

Okay so bestie, you’ve landed on the Pango::AttrWeight(3) page from the User Contributed Perl Documentation, and it’s literally all about Pango::AttrWeight πŸ’…. That’s the whole name section, periodt.

πŸ¦‹ HIERARCHY πŸ¦‹

This is the family tree, no cap:

Glib::Boxed
+----Pango::AttrWeight

So Pango::AttrWeight is sitting under Glib::Boxed β€” iconic inheritance energy πŸ‘‘

πŸŽ€ METHODS πŸŽ€

🌸 attribute = Pango::AttrWeight->new ($weight, ...)

Constructing one, bestie β€” here’s what goes in:

  • $weight (Pango::Weight) β€” the weight value, typed as a Pango::Weight. That’s it, that’s the listed arg πŸ’–
  • ... (list) β€” the rest of the arguments, listed as a list. Keep it moving 🫢

πŸ’– weight = $attr->value (...)

Grab the weight back out via value. The page lists this one arg:

  • ... (list) β€” yep, a list again. Slay ✨

πŸ”₯ ENUMS AND FLAGS πŸ”₯

πŸ‘‘ enum Pango::Weight

These are the named values and their matching constants β€” all twelve of them, no skipping:

  • 'thin' / PANGO_WEIGHT_THIN
  • 'ultralight' / PANGO_WEIGHT_ULTRALIGHT
  • 'light' / PANGO_WEIGHT_LIGHT
  • 'semilight' / PANGO_WEIGHT_SEMILIGHT
  • 'book' / PANGO_WEIGHT_BOOK
  • 'normal' / PANGO_WEIGHT_NORMAL
  • 'medium' / PANGO_WEIGHT_MEDIUM
  • 'semibold' / PANGO_WEIGHT_SEMIBOLD
  • 'bold' / PANGO_WEIGHT_BOLD
  • 'ultrabold' / PANGO_WEIGHT_ULTRABOLD
  • 'heavy' / PANGO_WEIGHT_HEAVY
  • 'ultraheavy' / PANGO_WEIGHT_ULTRAHEAVY

πŸ’œ SEE ALSO πŸ’œ

Go peek at these besties:

  • Pango
  • Glib::Boxed

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

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


πŸ’Œ cute little sign-off: this page is from perl v5.42.0, dated 2019-09-16 β€” mwah, bestie πŸ’‹

πŸ“¦ where this page comes from