.\" -*- mode: troff; coding: utf-8 -*- .\" Automatically generated by Pod::Man 5.0102 (Pod::Simple 3.45) .\" .\" 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::Layout 3" .TH Pango::Layout 3 2024-09-01 "perl v5.40.0" "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::Layout \- wrapper for PangoLayout .SH HIERARCHY .IX Header "HIERARCHY" .Vb 2 \& Glib::Object \& +\-\-\-\-Pango::Layout .Ve .SH METHODS .IX Header "METHODS" .SS "layout = Pango::Layout\->\fBnew\fP ($context)" .IX Subsection "layout = Pango::Layout->new ($context)" .IP \(bu 4 \&\f(CW$context\fR (Pango::Context) .ie n .SS "alignment = $layout\->\fBget_alignment\fP" .el .SS "alignment = \f(CW$layout\fP\->\fBget_alignment\fP" .IX Subsection "alignment = $layout->get_alignment" .ie n .SS "$layout\->\fBset_alignment\fP ($alignment)" .el .SS "\f(CW$layout\fP\->\fBset_alignment\fP ($alignment)" .IX Subsection "$layout->set_alignment ($alignment)" .IP \(bu 4 \&\f(CW$alignment\fR (Pango::Alignment) .ie n .SS "attrlist or undef = $layout\->\fBget_attributes\fP" .el .SS "attrlist or undef = \f(CW$layout\fP\->\fBget_attributes\fP" .IX Subsection "attrlist or undef = $layout->get_attributes" .ie n .SS "$layout\->\fBset_attributes\fP ($attrs)" .el .SS "\f(CW$layout\fP\->\fBset_attributes\fP ($attrs)" .IX Subsection "$layout->set_attributes ($attrs)" .IP \(bu 4 \&\f(CW$attrs\fR (Pango::AttrList or undef) .ie n .SS "boolean = $layout\->\fBget_auto_dir\fP" .el .SS "boolean = \f(CW$layout\fP\->\fBget_auto_dir\fP" .IX Subsection "boolean = $layout->get_auto_dir" Since: pango 1.4 .ie n .SS "$layout\->\fBset_auto_dir\fP ($auto_dir)" .el .SS "\f(CW$layout\fP\->\fBset_auto_dir\fP ($auto_dir)" .IX Subsection "$layout->set_auto_dir ($auto_dir)" .IP \(bu 4 \&\f(CW$auto_dir\fR (boolean) .PP Since: pango 1.4 .ie n .SS "integer = $layout\->\fBget_baseline\fP" .el .SS "integer = \f(CW$layout\fP\->\fBget_baseline\fP" .IX Subsection "integer = $layout->get_baseline" Since: pango 1.22 .ie n .SS $layout\->\fBcontext_changed\fP .el .SS \f(CW$layout\fP\->\fBcontext_changed\fP .IX Subsection "$layout->context_changed" .ie n .SS "context = $layout\->\fBget_context\fP" .el .SS "context = \f(CW$layout\fP\->\fBget_context\fP" .IX Subsection "context = $layout->get_context" .ie n .SS "layout = $src\->\fBcopy\fP" .el .SS "layout = \f(CW$src\fP\->\fBcopy\fP" .IX Subsection "layout = $src->copy" .ie n .SS "(strong_pos, weak_pos) = $layout\->\fBget_cursor_pos\fP ($index)" .el .SS "(strong_pos, weak_pos) = \f(CW$layout\fP\->\fBget_cursor_pos\fP ($index)" .IX Subsection "(strong_pos, weak_pos) = $layout->get_cursor_pos ($index)" .IP \(bu 4 \&\f(CW$index_\fR (integer) .ie n .SS "ellipsizemode = $layout\->\fBget_ellipsize\fP" .el .SS "ellipsizemode = \f(CW$layout\fP\->\fBget_ellipsize\fP" .IX Subsection "ellipsizemode = $layout->get_ellipsize" Since: pango 1.6 .ie n .SS "$layout\->\fBset_ellipsize\fP ($ellipsize)" .el .SS "\f(CW$layout\fP\->\fBset_ellipsize\fP ($ellipsize)" .IX Subsection "$layout->set_ellipsize ($ellipsize)" .IP \(bu 4 \&\f(CW$ellipsize\fR (Pango::EllipsizeMode) .PP Since: pango 1.6 .ie n .SS "(ink_rect, logical_rect) = $layout\->\fBget_extents\fP" .el .SS "(ink_rect, logical_rect) = \f(CW$layout\fP\->\fBget_extents\fP" .IX Subsection "(ink_rect, logical_rect) = $layout->get_extents" .ie n .SS "(ink_rect, logical_rect) = $layout\->\fBget_pixel_extents\fP" .el .SS "(ink_rect, logical_rect) = \f(CW$layout\fP\->\fBget_pixel_extents\fP" .IX Subsection "(ink_rect, logical_rect) = $layout->get_pixel_extents" .ie n .SS "fontdescription or undef = $layout\->\fBget_font_description\fP" .el .SS "fontdescription or undef = \f(CW$layout\fP\->\fBget_font_description\fP" .IX Subsection "fontdescription or undef = $layout->get_font_description" Since: pango 1.8 .ie n .SS "$layout\->\fBset_font_description\fP ($desc)" .el .SS "\f(CW$layout\fP\->\fBset_font_description\fP ($desc)" .IX Subsection "$layout->set_font_description ($desc)" .IP \(bu 4 \&\f(CW$desc\fR (Pango::FontDescription or undef) .ie n .SS "integer = $layout\->\fBget_height\fP" .el .SS "integer = \f(CW$layout\fP\->\fBget_height\fP" .IX Subsection "integer = $layout->get_height" Since: pango 1.20 .ie n .SS "$layout\->\fBset_height\fP ($height)" .el .SS "\f(CW$layout\fP\->\fBset_height\fP ($height)" .IX Subsection "$layout->set_height ($height)" .IP \(bu 4 \&\f(CW$height\fR (integer) .PP Since: pango 1.20 .ie n .SS "integer = $layout\->\fBget_indent\fP" .el .SS "integer = \f(CW$layout\fP\->\fBget_indent\fP" .IX Subsection "integer = $layout->get_indent" .ie n .SS "$layout\->\fBset_indent\fP ($newval)" .el .SS "\f(CW$layout\fP\->\fBset_indent\fP ($newval)" .IX Subsection "$layout->set_indent ($newval)" .IP \(bu 4 \&\f(CW$newval\fR (integer) .ie n .SS "array reference = $layout\->\fBindex_to_pos\fP ($index_)" .el .SS "array reference = \f(CW$layout\fP\->\fBindex_to_pos\fP ($index_)" .IX Subsection "array reference = $layout->index_to_pos ($index_)" .IP \(bu 4 \&\f(CW$index_\fR (integer) .ie n .SS "boolean = $layout\->\fBis_ellipsized\fP" .el .SS "boolean = \f(CW$layout\fP\->\fBis_ellipsized\fP" .IX Subsection "boolean = $layout->is_ellipsized" Since: pango 1.16 .ie n .SS "boolean = $layout\->\fBis_wrapped\fP" .el .SS "boolean = \f(CW$layout\fP\->\fBis_wrapped\fP" .IX Subsection "boolean = $layout->is_wrapped" Since: pango 1.16 .ie n .SS "layoutiter = $layout\->\fBget_iter\fP" .el .SS "layoutiter = \f(CW$layout\fP\->\fBget_iter\fP" .IX Subsection "layoutiter = $layout->get_iter" .ie n .SS "integer = $layout\->\fBget_justify\fP" .el .SS "integer = \f(CW$layout\fP\->\fBget_justify\fP" .IX Subsection "integer = $layout->get_justify" .ie n .SS "$layout\->\fBset_justify\fP ($newval)" .el .SS "\f(CW$layout\fP\->\fBset_justify\fP ($newval)" .IX Subsection "$layout->set_justify ($newval)" .IP \(bu 4 \&\f(CW$newval\fR (integer) .ie n .SS "integer = $layout\->\fBget_line_count\fP" .el .SS "integer = \f(CW$layout\fP\->\fBget_line_count\fP" .IX Subsection "integer = $layout->get_line_count" .ie n .SS "layoutline or undef = $layout\->\fBget_line\fP ($line)" .el .SS "layoutline or undef = \f(CW$layout\fP\->\fBget_line\fP ($line)" .IX Subsection "layoutline or undef = $layout->get_line ($line)" .IP \(bu 4 \&\f(CW$line\fR (integer) .ie n .SS "layoutline or undef = $layout\->\fBget_line_readonly\fP ($line)" .el .SS "layoutline or undef = \f(CW$layout\fP\->\fBget_line_readonly\fP ($line)" .IX Subsection "layoutline or undef = $layout->get_line_readonly ($line)" .IP \(bu 4 \&\f(CW$line\fR (integer) .PP Since: pango 1.16 .ie n .SS "list = $layout\->\fBget_lines\fP" .el .SS "list = \f(CW$layout\fP\->\fBget_lines\fP" .IX Subsection "list = $layout->get_lines" .ie n .SS "list = $layout\->\fBget_lines_readonly\fP" .el .SS "list = \f(CW$layout\fP\->\fBget_lines_readonly\fP" .IX Subsection "list = $layout->get_lines_readonly" Since: pango 1.16 .ie n .SS "list = $layout\->\fBget_log_attrs\fP" .el .SS "list = \f(CW$layout\fP\->\fBget_log_attrs\fP" .IX Subsection "list = $layout->get_log_attrs" Returns a list of Pango::LogAttr's .ie n .SS "$layout\->\fBset_markup\fP ($markup)" .el .SS "\f(CW$layout\fP\->\fBset_markup\fP ($markup)" .IX Subsection "$layout->set_markup ($markup)" .IP \(bu 4 \&\f(CW$markup\fR (string) .ie n .SS "accel_char = $layout\->\fBset_markup_with_accel\fP ($markup, $accel_marker)" .el .SS "accel_char = \f(CW$layout\fP\->\fBset_markup_with_accel\fP ($markup, \f(CW$accel_marker\fP)" .IX Subsection "accel_char = $layout->set_markup_with_accel ($markup, $accel_marker)" .IP \(bu 4 \&\f(CW$markup\fR (string) .IP \(bu 4 \&\f(CW$accel_marker\fR (character) .ie n .SS "(new_index, new_trailing) = $layout\->\fBmove_cursor_visually\fP ($strong, $old_index, $old_trailing, $direction)" .el .SS "(new_index, new_trailing) = \f(CW$layout\fP\->\fBmove_cursor_visually\fP ($strong, \f(CW$old_index\fP, \f(CW$old_trailing\fP, \f(CW$direction\fP)" .IX Subsection "(new_index, new_trailing) = $layout->move_cursor_visually ($strong, $old_index, $old_trailing, $direction)" .IP \(bu 4 \&\f(CW$strong\fR (boolean) .IP \(bu 4 \&\f(CW$old_index\fR (integer) .IP \(bu 4 \&\f(CW$old_trailing\fR (integer) .IP \(bu 4 \&\f(CW$direction\fR (integer) .ie n .SS "list = $layout\->\fBget_pixel_extents\fP" .el .SS "list = \f(CW$layout\fP\->\fBget_pixel_extents\fP" .IX Subsection "list = $layout->get_pixel_extents" .ie n .SS "(width, height) = $layout\->\fBget_pixel_size\fP" .el .SS "(width, height) = \f(CW$layout\fP\->\fBget_pixel_size\fP" .IX Subsection "(width, height) = $layout->get_pixel_size" .ie n .SS "integer = $layout\->\fBget_single_paragraph_mode\fP" .el .SS "integer = \f(CW$layout\fP\->\fBget_single_paragraph_mode\fP" .IX Subsection "integer = $layout->get_single_paragraph_mode" .ie n .SS "$layout\->\fBset_single_paragraph_mode\fP ($newval)" .el .SS "\f(CW$layout\fP\->\fBset_single_paragraph_mode\fP ($newval)" .IX Subsection "$layout->set_single_paragraph_mode ($newval)" .IP \(bu 4 \&\f(CW$newval\fR (integer) .ie n .SS "(width, height) = $layout\->\fBget_size\fP" .el .SS "(width, height) = \f(CW$layout\fP\->\fBget_size\fP" .IX Subsection "(width, height) = $layout->get_size" .ie n .SS "integer = $layout\->\fBget_spacing\fP" .el .SS "integer = \f(CW$layout\fP\->\fBget_spacing\fP" .IX Subsection "integer = $layout->get_spacing" .ie n .SS "$layout\->\fBset_spacing\fP ($newval)" .el .SS "\f(CW$layout\fP\->\fBset_spacing\fP ($newval)" .IX Subsection "$layout->set_spacing ($newval)" .IP \(bu 4 \&\f(CW$newval\fR (integer) .ie n .SS "tabarray or undef = $layout\->\fBget_tabs\fP" .el .SS "tabarray or undef = \f(CW$layout\fP\->\fBget_tabs\fP" .IX Subsection "tabarray or undef = $layout->get_tabs" .ie n .SS "$layout\->\fBset_tabs\fP ($tabs)" .el .SS "\f(CW$layout\fP\->\fBset_tabs\fP ($tabs)" .IX Subsection "$layout->set_tabs ($tabs)" .IP \(bu 4 \&\f(CW$tabs\fR (Pango::TabArray or undef) .ie n .SS "string = $layout\->\fBget_text\fP" .el .SS "string = \f(CW$layout\fP\->\fBget_text\fP" .IX Subsection "string = $layout->get_text" .ie n .SS "$layout\->\fBset_text\fP ($text)" .el .SS "\f(CW$layout\fP\->\fBset_text\fP ($text)" .IX Subsection "$layout->set_text ($text)" .IP \(bu 4 \&\f(CW$text\fR (string) .ie n .SS "integer = $layout\->\fBget_unknown_glyphs_count\fP" .el .SS "integer = \f(CW$layout\fP\->\fBget_unknown_glyphs_count\fP" .IX Subsection "integer = $layout->get_unknown_glyphs_count" Since: pango 1.16 .ie n .SS "integer = $layout\->\fBget_width\fP" .el .SS "integer = \f(CW$layout\fP\->\fBget_width\fP" .IX Subsection "integer = $layout->get_width" .ie n .SS "$layout\->\fBset_width\fP ($newval)" .el .SS "\f(CW$layout\fP\->\fBset_width\fP ($newval)" .IX Subsection "$layout->set_width ($newval)" .IP \(bu 4 \&\f(CW$newval\fR (integer) .ie n .SS "wrapmode = $layout\->\fBget_wrap\fP" .el .SS "wrapmode = \f(CW$layout\fP\->\fBget_wrap\fP" .IX Subsection "wrapmode = $layout->get_wrap" .ie n .SS "$layout\->\fBset_wrap\fP ($wrap)" .el .SS "\f(CW$layout\fP\->\fBset_wrap\fP ($wrap)" .IX Subsection "$layout->set_wrap ($wrap)" .IP \(bu 4 \&\f(CW$wrap\fR (Pango::WrapMode) .ie n .SS "(index, trailing) = $layout\->\fBxy_to_index\fP ($x, $y)" .el .SS "(index, trailing) = \f(CW$layout\fP\->\fBxy_to_index\fP ($x, \f(CW$y\fP)" .IX Subsection "(index, trailing) = $layout->xy_to_index ($x, $y)" .IP \(bu 4 \&\f(CW$x\fR (integer) .IP \(bu 4 \&\f(CW$y\fR (integer) .SH "ENUMS AND FLAGS" .IX Header "ENUMS AND FLAGS" .SS "enum Pango::Alignment" .IX Subsection "enum Pango::Alignment" .IP \(bu 4 \&'left' / 'PANGO_ALIGN_LEFT' .IP \(bu 4 \&'center' / 'PANGO_ALIGN_CENTER' .IP \(bu 4 \&'right' / 'PANGO_ALIGN_RIGHT' .SS "enum Pango::EllipsizeMode" .IX Subsection "enum Pango::EllipsizeMode" .IP \(bu 4 \&'none' / 'PANGO_ELLIPSIZE_NONE' .IP \(bu 4 \&'start' / 'PANGO_ELLIPSIZE_START' .IP \(bu 4 \&'middle' / 'PANGO_ELLIPSIZE_MIDDLE' .IP \(bu 4 \&'end' / 'PANGO_ELLIPSIZE_END' .SS "enum Pango::WrapMode" .IX Subsection "enum Pango::WrapMode" .IP \(bu 4 \&'word' / 'PANGO_WRAP_WORD' .IP \(bu 4 \&'char' / 'PANGO_WRAP_CHAR' .IP \(bu 4 \&'word\-char' / 'PANGO_WRAP_WORD_CHAR' .SH "SEE ALSO" .IX Header "SEE ALSO" Pango, Glib::Object .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.