Pango::AttrList(3) User Contributed Perl Documentation Pango::AttrList(3)

Pango::AttrList - wrapper for PangoAttrList

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

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

$list->change ($attr)

$attr (Pango::Attribute)

  • $func (scalar)
  • $data (scalar)

Since: pango 1.2

$list->insert ($attr)

$attr (Pango::Attribute)

$list->insert_before ($attr)

$attr (Pango::Attribute)

  • $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)

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.

2024-09-01 perl v5.40.0