.\" -*- 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 "Gtk2::Pango 3" .TH Gtk2::Pango 3 2023-07-25 "perl v5.38.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 Gtk2::Pango \- constants for use with Pango .SH SYNOPSIS .IX Header "SYNOPSIS" .Vb 1 \& use Gtk2; # gets the actual Pango objects and methods \& \& use Gtk2::Pango; # load extra constants .Ve .SH DESCRIPTION .IX Header "DESCRIPTION" To use Pango effectively, you need a few extra constants that are not supplied in normal ways by the type system or by other means. .PP This module exports all of those extra constants when you load it. They use the fully-prefixed names from the C documentation. .SH EXPORT .IX Header "EXPORT" PangoWeight is indeed defined as an enumerated type whose values can be used as nickname strings in the perl bindings, but in several places where a weight is needed, a gint is requested instead. This is because PangoWeight is actually just a set of predefined values for an integer-valued property. The PANGO_WEIGHT_* constants give you the predefined values: .PP .Vb 6 \& PANGO_WEIGHT_ULTRALIGHT \& PANGO_WEIGHT_LIGHT \& PANGO_WEIGHT_NORMAL \& PANGO_WEIGHT_BOLD \& PANGO_WEIGHT_ULTRABOLD \& PANGO_WEIGHT_HEAVY .Ve .PP These are #defined in the C source, and thus are not available anywhere except here: .PP .Vb 7 \& PANGO_SCALE_XX_SMALL \& PANGO_SCALE_X_SMALL \& PANGO_SCALE_SMALL \& PANGO_SCALE_MEDIUM \& PANGO_SCALE_LARGE \& PANGO_SCALE_X_LARGE \& PANGO_SCALE_XX_LARGE .Ve .PP PANGO_SCALE is needed to convert between Pango units and pixels. It is also available as Gtk2::Pango\->scale. .PP .Vb 1 \& PANGO_SCALE .Ve .SH BUGS .IX Header "BUGS" This module shouldn't exist, but some parts of the API just aren't clean. .PP This stuff is hardcoded directly from the headers of pango 1.2.1. .SH "SEE ALSO" .IX Header "SEE ALSO" perl(1), Gtk2(3pm) .SH AUTHOR .IX Header "AUTHOR" muppet .SH "COPYRIGHT AND LICENSE" .IX Header "COPYRIGHT AND LICENSE" Copyright 2003 by muppet .PP This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. .PP This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. .PP You should have received a copy of the GNU Library General Public License along with this library; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110\-1301 USA.