.\" -*- mode: troff; coding: utf-8 -*- .\" Automatically generated by Pod::Man 5.01 (Pod::Simple 3.43) .\" .\" Standard preamble: .\" ======================================================================== .de Sp \" Vertical space (when we can't use .PP) .if t .sp .5v .if n .sp .. .de Vb \" Begin verbatim text .ft CW .nf .ne \\$1 .. .de Ve \" End verbatim text .ft R .fi .. .\" \*(C` and \*(C' are quotes in nroff, nothing in troff, for use with C<>. .ie n \{\ . ds C` "" . ds C' "" 'br\} .el\{\ . ds C` . ds C' 'br\} .\" .\" Escape single quotes in literal strings from groff's Unicode transform. .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" .\" If the F register is >0, we'll generate index entries on stderr for .\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index .\" entries marked with X<> in POD. Of course, you'll have to process the .\" output yourself in some meaningful fashion. .\" .\" Avoid warning from groff about undefined register 'F'. .de IX .. .nr rF 0 .if \n(.g .if rF .nr rF 1 .if (\n(rF:(\n(.g==0)) \{\ . if \nF \{\ . de IX . tm Index:\\$1\t\\n%\t"\\$2" .. . if !\nF==2 \{\ . nr % 0 . nr F 2 . \} . \} .\} .rr rF .\" ======================================================================== .\" .IX Title "Pango::AttrList 3pm" .TH Pango::AttrList 3pm 2024-03-07 "perl v5.38.2" "User Contributed Perl Documentation" .\" For nroff, turn off justification. Always turn off hyphenation; it makes .\" way too many mistakes in technical documents. .if n .ad l .nh .SH NAME Pango::AttrList \- holds attributes that apply to a section of text .SH DESCRIPTION .IX Header "DESCRIPTION" Pango::AttrList is a collection of Pango::Attributes. These attributes annotate text with styles. .SH HIERARCHY .IX Header "HIERARCHY" .Vb 2 \& Glib::Boxed \& +\-\-\-\-Pango::AttrList .Ve .SH METHODS .IX Header "METHODS" .SS "attrlist = Pango::AttrList\->\fBnew\fP" .IX Subsection "attrlist = Pango::AttrList->new" .ie n .SS "$list\->\fBchange\fP ($attr)" .el .SS "\f(CW$list\fP\->\fBchange\fP ($attr)" .IX Subsection "$list->change ($attr)" .IP \(bu 4 \&\f(CW$attr\fR (Pango::Attribute) .ie n .SS "attrlist or undef = $list\->\fBfilter\fP ($func, $data=undef)" .el .SS "attrlist or undef = \f(CW$list\fP\->\fBfilter\fP ($func, \f(CW$data\fP=undef)" .IX Subsection "attrlist or undef = $list->filter ($func, $data=undef)" .IP \(bu 4 \&\f(CW$func\fR (scalar) .IP \(bu 4 \&\f(CW$data\fR (scalar) .PP Since: pango 1.2 .ie n .SS "$list\->\fBinsert\fP ($attr)" .el .SS "\f(CW$list\fP\->\fBinsert\fP ($attr)" .IX Subsection "$list->insert ($attr)" .IP \(bu 4 \&\f(CW$attr\fR (Pango::Attribute) .ie n .SS "$list\->\fBinsert_before\fP ($attr)" .el .SS "\f(CW$list\fP\->\fBinsert_before\fP ($attr)" .IX Subsection "$list->insert_before ($attr)" .IP \(bu 4 \&\f(CW$attr\fR (Pango::Attribute) .ie n .SS "attriterator = $list\->\fBget_iterator\fP" .el .SS "attriterator = \f(CW$list\fP\->\fBget_iterator\fP" .IX Subsection "attriterator = $list->get_iterator" .ie n .SS "($attr_list, $text, $accel_char) = Pango\->\fBparse_markup\fP ($markup_text, $accel_marker)" .el .SS "($attr_list, \f(CW$text\fP, \f(CW$accel_char\fP) = Pango\->\fBparse_markup\fP ($markup_text, \f(CW$accel_marker\fP)" .IX Subsection "($attr_list, $text, $accel_char) = Pango->parse_markup ($markup_text, $accel_marker)" .IP \(bu 4 \&\f(CW$markup_text\fR (string) .IP \(bu 4 \&\f(CW$accel_marker\fR (character) .PP Parses marked-up text to create a plaintext string and an attribute list. .PP If \fR\f(CI$accel_marker\fR\fI\fR 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 \fI\fR\f(CI$accel_char\fR\fI\fR. Two \fI\fR\f(CI$accel_marker\fR\fI\fR characters following each other reduce to a single literal \fI\fR\f(CI$accel_marker\fR\fI\fR character. .PP May croak with a Glib::Error in $@ on failure. .ie n .SS "$list\->\fBsplice\fP ($other, $pos, $len)" .el .SS "\f(CW$list\fP\->\fBsplice\fP ($other, \f(CW$pos\fP, \f(CW$len\fP)" .IX Subsection "$list->splice ($other, $pos, $len)" .IP \(bu 4 \&\f(CW$other\fR (Pango::AttrList) .IP \(bu 4 \&\f(CW$pos\fR (integer) .IP \(bu 4 \&\f(CW$len\fR (integer) .SH "SEE ALSO" .IX Header "SEE ALSO" Pango, Glib::Boxed .SH COPYRIGHT .IX Header "COPYRIGHT" Copyright (C) 2003\-2011 by the gtk2\-perl team. .PP This software is licensed under the LGPL. See Pango for a full notice.