Pango::AttrList(3)

✨ NAME ✨

bestie, welcome to the Pango::AttrList(3) page πŸ’– β€” manual name: User Contributed Perl Documentation. This is literally the wrapper for PangoAttrList, no cap.


🌸 DESCRIPTION 🌸

Pango::AttrList is a collection of Pango::Attributes. These attributes annotate text with styles β€” think little style stickers for your text, and yes, they ate πŸ’….


πŸ¦‹ HIERARCHY πŸ¦‹

        Glib::Boxed
        +----Pango::AttrList

πŸŽ€ METHODS πŸŽ€

πŸͺ„ new

attrlist = Pango::AttrList->new

πŸͺ„ change

$list->change ($attr)
  • $attr (Pango::Attribute) β€” the attribute you're handing over, bestie.

πŸͺ„ filter

attrlist or undef = $list->filter ($func, $data=undef)
  • $func (scalar)
  • $data (scalar)

Since: pango 1.2

πŸͺ„ insert

$list->insert ($attr)
  • $attr (Pango::Attribute)

πŸͺ„ insert_before

$list->insert_before ($attr)
  • $attr (Pango::Attribute)

πŸͺ„ get_iterator

attriterator = $list->get_iterator

πŸͺ„ parse_markup

($attr_list, $text, $accel_char) = Pango->parse_markup ($markup_text,
    $accel_marker)
  • $markup_text (string)
  • $accel_marker (character)

Parses marked-up text to create a plaintext string and an attribute list. Iconic behavior, honestly ✨.

If $accel_marker is supplied and nonzero, the given character will mark the character following it as an accelerator. For example, the accel marker might be an ampersand or underscore. All characters marked as an accelerator will receive a PANGO_UNDERLINE_LOW attribute, and the first character so marked will be returned in $accel_char. Two $accel_marker characters following each other reduce to a single literal $accel_marker character.

May croak with a Glib::Error in $@ on failure. So like, handle failure, bestie 😭.

πŸͺ„ splice

$list->splice ($other, $pos, $len)
  • $other (Pango::AttrList)
  • $pos (integer)
  • $len (integer)

πŸ”₯ SEE ALSO πŸ”₯

  • 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.


okay that's the whole page, bestie πŸ’– footer check: perl v5.42.0, dated 2019-09-16 β€” byeee 🫢✨

πŸ“¦ where this page comes from