---
name: "Pango::AttrList"
section: "3pm"
platform: "linux"
package: "pango-perl"
version: "1.227-20"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/Pango::AttrList"
---

# Pango::AttrList(3pm)

wrapper for PangoAttrList

## NAME

Pango::AttrList - wrapper for PangoAttrList

## DESCRIPTION

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)

## SEE ALSO

Pango, Glib::Boxed

## COPYRIGHT

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

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