Codex

Pango::AttrList

Section: User Contributed Perl Documentation (3pm)

Updated: 2014-08-29

Index?action=index Return to Main Contents


NAME

Pango::AttrList - holds attributes that apply to a section of text

DESCRIPTION

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

HIERARCHY

METHODS

attrlist = Pango::AttrList->new

$list->change ($attr)

(Pango::Attribute):

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

(scalar):
(scalar):

Since: pango 1.2

$list->insert ($attr)

(Pango::Attribute):

$list->insert_before ($attr)

(Pango::Attribute):

attriterator = $list->get_iterator

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

(string):
(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)

(Pango::AttrList):
(integer):
(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.


Index

NAME

DESCRIPTION

HIERARCHY

METHODS

attrlist = Pango::AttrList->new

$list->change ($attr)

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

$list->insert ($attr)

$list->insert_before ($attr)

attriterator = $list->get_iterator

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

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

SEE ALSO

COPYRIGHT