Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

gtk2::pango(3) [suse man page]

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

NAME
Gtk2::Pango - constants for use with Pango SYNOPSIS
use Gtk2; # gets the actual Pango objects and methods use Gtk2::Pango; # load extra constants 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. This module exports all of those extra constants when you load it. They use the fully-prefixed names from the C documentation. 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: PANGO_WEIGHT_ULTRALIGHT PANGO_WEIGHT_LIGHT PANGO_WEIGHT_NORMAL PANGO_WEIGHT_BOLD PANGO_WEIGHT_ULTRABOLD PANGO_WEIGHT_HEAVY These are #defined in the C source, and thus are not available anywhere except here: 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 PANGO_SCALE is needed to convert between Pango units and pixels. It is also available as Gtk2::Pango->scale. PANGO_SCALE BUGS
This module shouldn't exist, but some parts of the API just aren't clean. This stuff is hardcoded directly from the headers of pango 1.2.1. SEE ALSO
perl(1), Gtk2(3pm) AUTHOR
muppet <scott AT asofyet.org> COPYRIGHT AND LICENSE
Copyright 2003 by muppet 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. 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. 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307 USA. perl v5.12.1 2009-05-17 pm::Pango(3)

Check Out this Related Man Page

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

NAME
Pango::FontDescription HIERARCHY
Glib::Boxed +----Pango::FontDescription METHODS
fontdescription = Pango::FontDescription->new double = Pango->PANGO_PIXELS ($d) o $d (double) $desc->set_absolute_size ($size) o $size (double) Since: pango 1.8 boolean = $desc->better_match ($old_match, $new_match) o $old_match (Pango::FontDescription or undef) o $new_match (Pango::FontDescription) boolean = $desc1->equal ($desc2) o $desc2 (Pango::FontDescription) string = $desc->get_family $desc->set_family ($family) o $family (string) $desc->set_family_static ($family) o $family (string) fontdescription = Pango::FontDescription->from_string ($str) o $str (string) gravity = $desc->get_gravity Since: pango 1.16 $desc->set_gravity ($gravity) o $gravity (Pango::Gravity) Since: pango 1.16 integer = $desc->hash $desc->merge ($desc_to_merge, $replace_existing) o $desc_to_merge (Pango::FontDescription) o $replace_existing (boolean) $desc->merge_static ($desc_to_merge, $replace_existing) o $desc_to_merge (Pango::FontDescription) o $replace_existing (boolean) double = Pango->pixels ($d) o $d (double) double = Pango->scale double = Pango->scale_large double = Pango->scale_medium double = Pango->scale_small double = Pango->scale_x_large double = Pango->scale_x_small double = Pango->scale_xx_large double = Pango->scale_xx_small fontmask = $desc->get_set_fields integer = $desc->get_size boolean = $desc->get_size_is_absolute Since: pango 1.8 $desc->set_size ($size) o $size (integer) stretch = $desc->get_stretch $desc->set_stretch ($stretch) o $stretch (Pango::Stretch) style = $desc->get_style $desc->set_style ($style) o $style (Pango::Style) string = $desc->to_filename string = $desc->to_string $desc->unset_fields ($to_unset) o $to_unset (Pango::FontMask) variant = $desc->get_variant $desc->set_variant ($variant) o $variant (Pango::Variant) weight = $desc->get_weight $desc->set_weight ($weight) o $weight (Pango::Weight) ENUMS AND FLAGS
flags Pango::FontMask o 'family' / 'PANGO_FONT_MASK_FAMILY' o 'style' / 'PANGO_FONT_MASK_STYLE' o 'variant' / 'PANGO_FONT_MASK_VARIANT' o 'weight' / 'PANGO_FONT_MASK_WEIGHT' o 'stretch' / 'PANGO_FONT_MASK_STRETCH' o 'size' / 'PANGO_FONT_MASK_SIZE' o 'gravity' / 'PANGO_FONT_MASK_GRAVITY' enum Pango::Gravity o 'south' / 'PANGO_GRAVITY_SOUTH' o 'east' / 'PANGO_GRAVITY_EAST' o 'north' / 'PANGO_GRAVITY_NORTH' o 'west' / 'PANGO_GRAVITY_WEST' o 'auto' / 'PANGO_GRAVITY_AUTO' enum Pango::Stretch o 'ultra-condensed' / 'PANGO_STRETCH_ULTRA_CONDENSED' o 'extra-condensed' / 'PANGO_STRETCH_EXTRA_CONDENSED' o 'condensed' / 'PANGO_STRETCH_CONDENSED' o 'semi-condensed' / 'PANGO_STRETCH_SEMI_CONDENSED' o 'normal' / 'PANGO_STRETCH_NORMAL' o 'semi-expanded' / 'PANGO_STRETCH_SEMI_EXPANDED' o 'expanded' / 'PANGO_STRETCH_EXPANDED' o 'extra-expanded' / 'PANGO_STRETCH_EXTRA_EXPANDED' o 'ultra-expanded' / 'PANGO_STRETCH_ULTRA_EXPANDED' enum Pango::Style o 'normal' / 'PANGO_STYLE_NORMAL' o 'oblique' / 'PANGO_STYLE_OBLIQUE' o 'italic' / 'PANGO_STYLE_ITALIC' enum Pango::Variant o 'normal' / 'PANGO_VARIANT_NORMAL' o 'small-caps' / 'PANGO_VARIANT_SMALL_CAPS' enum Pango::Weight o 'thin' / 'PANGO_WEIGHT_THIN' o 'ultralight' / 'PANGO_WEIGHT_ULTRALIGHT' o 'light' / 'PANGO_WEIGHT_LIGHT' o 'book' / 'PANGO_WEIGHT_BOOK' o 'normal' / 'PANGO_WEIGHT_NORMAL' o 'medium' / 'PANGO_WEIGHT_MEDIUM' o 'semibold' / 'PANGO_WEIGHT_SEMIBOLD' o 'bold' / 'PANGO_WEIGHT_BOLD' o 'ultrabold' / 'PANGO_WEIGHT_ULTRABOLD' o 'heavy' / 'PANGO_WEIGHT_HEAVY' o 'ultraheavy' / 'PANGO_WEIGHT_ULTRAHEAVY' SEE ALSO
Pango, Glib::Boxed COPYRIGHT
Copyright (C) 2003-2009 by the gtk2-perl team. This software is licensed under the LGPL. See Pango for a full notice. perl v5.12.1 2010-07-05 Pango::FontDescription(3)
Man Page