Pango::AttrList(3pm)

Pango::AttrList3pm

Wrapper for pangoattrlist

Overview

Pango::AttrList is a collection of Pango::Attributes. These attributes annotate text with styles.

Hierarchy

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

Methods

attrlist = Pango::AttrList->new

$list->change ($attr)

•

$attr (Pango::Attribute)

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

•

$func (scalar)

•

$data (scalar)

Since: pango 1.2

$list->insert ($attr)

•

$attr (Pango::Attribute)

$list->insert_before ($attr)

•

$attr (Pango::Attribute)

attriterator = $list->get_iterator

($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.

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

$list->splice ($other, $pos, $len)

•

$other (Pango::AttrList)

•

$pos (integer)

•

$len (integer)

Releases

9 releases since Debian 6.0 (Squeeze); the text changed 8 times.

  1. 6.0
  2. 7
  3. 8
  4. 9
  5. 10
  6. 11
  7. 12
  8. 13
  9. Arch

From pango-perl 1.227-20 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.