pangomm  2.41.5
Classes | Typedefs | Enumerations | Functions | Variables
Pango Namespace Reference

Classes

class  Analysis
 A Pango::Analysis stores information about the properties of a segment of text. More...
 
class  AttrColor
 A Pango::AttrColor is used to represent an attribute which is a color. More...
 
class  AttrFloat
 A Pango::AttrFloat is used to represent an attribute with a float or double value. More...
 
class  AttrFontDesc
 A Pango::AttrFontDesc is used to represent an attribute that sets all aspects of the font description at once. More...
 
class  Attribute
 The Pango::Attribute structure represents the common portions of all attributes. More...
 
struct  AttributeTraits
 
class  AttrInt
 A Pango::AttrInt is used to represent an attribute with an integer or enumeration value. More...
 
class  AttrIter
 A Pango::AttrIter is used to represent an iterator through a Pango::AttrList. More...
 
class  AttrLanguage
 A Pango::AttrLanguage is used to represent an attribute that is a language. More...
 
class  AttrList
 A Pango::AttrList represents a list of attributes that apply to a section of text. More...
 
class  AttrShape
 A Pango::AttrShape structure is used to represent an attribute which imposes shape restrictions. More...
 
class  AttrString
 A Pango::AttrString is used to represent an attribute with a string value. More...
 
class  CairoFontMap
 A Pango::CairoFontMap represents the set of fonts available for a particular rendering system. More...
 
class  Color
 A Pango::Color is used to represent a color in an uncalibrated RGB colorspace. More...
 
class  Context
 A Pango::Context stores global information used to control the itemization process. More...
 
class  Coverage
 A Pango::Coverage represents a map from ISO-10646 character point to Pango::Level. More...
 
class  Font
 A Pango::Font is used to represent a font in a rendering-system-independent matter. More...
 
class  FontDescription
 A Pango::FontDescription represents the description of an ideal font. More...
 
class  FontFace
 A Pango::FontFace is used to represent a group of fonts with the same family, slant, weight, width, but varying sizes. More...
 
class  FontFamily
 A Pango::FontFamily is used to represent a family of related font faces. More...
 
class  FontMap
 A Pango::FontMap represents the set of fonts available for a particular rendering system. More...
 
class  FontMetrics
 A Pango::FontMetrics holds the overall metric information for a font (possibly restricted to a script). More...
 
class  Fontset
 A Pango::Fontset is used to represent a set of fonts. More...
 
class  GlyphGeometry
 A Pango::GlyphGeometry contains width and positioning information for a single glyph. More...
 
class  GlyphInfo
 A Pango::GlyphInfo represents a single glyph together with positioning information and visual attributes. More...
 
class  GlyphString
 A Pango::GlyphString is used to store strings of glyphs with geometry and visual attribute information. More...
 
class  Item
 A Pango::Item stores information about a segment of text. More...
 
class  Language
 A Pango::Language is used to represent a language. More...
 
class  Layout
 A Pango::Layout represents an entire paragraph of text. More...
 
class  LayoutIter
 A Pango::LayoutIter can be used to iterate over the visual extents of a Pango::Layout. More...
 
class  LayoutLine
 A Pango::LayoutLine represents one of the lines resulting from laying out a paragraph via Pango::Layout. More...
 
class  LayoutRun
 A Pango::LayoutRun represents a single run within a LayoutLine. More...
 
class  Rectangle
 A Pango::Rectangle represents a rectangle. More...
 
class  Renderer
 Pango::Renderer is a base class that contains the necessary logic for rendering a Pango::Layout or Pango::LayoutLine. More...
 
class  TabArray
 A Pango::TabArray contains an array of tab stops. More...
 
class  Weight_Wrapper
 Wrapper for enum Weight. More...
 

Typedefs

typedef PangoLogAttr LogAttr
 A Pango::LogAttr stores information about the attributes of a single character. More...
 
using Weight = Weight_Wrapper::Weight
 Weight enumerators are scoped by the wrapper class and can be implicitly converted to int. More...
 
typedef PangoGlyph Glyph
 A Pango::Glyph represents a single glyph in the output form of a string. More...
 
typedef PangoGlyphUnit GlyphUnit
 A Pango::GlyphUnit is used to store dimensions within Pango. More...
 
typedef PangoGlyphVisAttr GlyphVisAttr
 A Pango::GlyphVisAttr is used to communicate information between the shaping phase and the rendering phase. More...
 
typedef LayoutRun GlyphItem
 A Pango::GlyphItem is a pair of a Pango::Items and the glyphs resulting from shaping the text corresponding to an item. More...
 
typedef PangoMatrix Matrix
 

Enumerations

enum  AttrType {
  AttrType::INVALID,
  AttrType::LANGUAGE,
  AttrType::FAMILY,
  AttrType::STYLE,
  AttrType::WEIGHT,
  AttrType::VARIANT,
  AttrType::STRETCH,
  AttrType::SIZE,
  AttrType::FONT_DESC,
  AttrType::FOREGROUND,
  AttrType::BACKGROUND,
  AttrType::UNDERLINE,
  AttrType::STRIKETHROUGH,
  AttrType::RISE,
  AttrType::SHAPE,
  AttrType::SCALE_FACTOR,
  AttrType::FALLBACK,
  AttrType::LETTER_SPACING,
  AttrType::UNDERLINE_COLOR,
  AttrType::STRIKETHROUGH_COLOR,
  AttrType::ABSOLUTE_SIZE,
  AttrType::GRAVITY,
  AttrType::GRAVITY_HINT,
  AttrType::FONT_FEATURES,
  AttrType::FOREGROUND_ALPHA,
  AttrType::BACKGROUND_ALPHA
}
 The Pango::AttrType distinguishes between different types of attributes. More...
 
enum  Underline {
  Underline::NONE,
  Underline::SINGLE,
  Underline::DOUBLE,
  Underline::LOW,
  Underline::ERROR
}
 The Pango::Underline enumeration is used to specify whether text should be underlined, and if so, the type of underlining. More...
 
enum  Direction {
  Direction::LTR,
  Direction::RTL,
  Direction::TTB_LTR,
  Direction::TTB_RTL,
  Direction::WEAK_LTR,
  Direction::WEAK_RTL,
  Direction::NEUTRAL
}
 The Pango::Direction type represents a direction in the Unicode bidirectional algorithm; not every value in this enumeration makes sense for every usage of Pango::Direction; for example, the return value of pango_unichar_direction() and pango_find_base_dir() cannot be Pango::Direction::WEAK_LTR or Pango::Direction::WEAK_RTL, since every character is either neutral or has a strong direction; on the other hand Pango::Direction::NEUTRAL doesn't make sense to pass to pango_itemize_with_base_dir(). More...
 
enum  GravityHint {
  GravityHint::NATURAL,
  GravityHint::STRONG,
  GravityHint::LINE
}
 The Pango::GravityHint defines how horizontal scripts should behave in a vertical context. More...
 
enum  Style {
  Style::NORMAL,
  Style::OBLIQUE,
  Style::ITALIC
}
 An enumeration specifying the various slant styles possible for a font. More...
 
enum  Variant {
  Variant::NORMAL,
  Variant::SMALL_CAPS
}
 An enumeration specifying capitalization variant of the font. More...
 
enum  Stretch {
  Stretch::ULTRA_CONDENSED,
  Stretch::EXTRA_CONDENSED,
  Stretch::CONDENSED,
  Stretch::SEMI_CONDENSED,
  Stretch::NORMAL,
  Stretch::SEMI_EXPANDED,
  Stretch::EXPANDED,
  Stretch::EXTRA_EXPANDED,
  Stretch::ULTRA_EXPANDED
}
 An enumeration specifying the width of the font relative to other designs within a family. More...
 
enum  FontMask {
  FontMask::FAMILY = 1 << 0,
  FontMask::STYLE = 1 << 1,
  FontMask::VARIANT = 1 << 2,
  FontMask::WEIGHT = 1 << 3,
  FontMask::STRETCH = 1 << 4,
  FontMask::SIZE = 1 << 5,
  FontMask::GRAVITY = 1 << 6
}
 The bits in a Pango::FontMask correspond to fields in a Pango::FontDescription that have been set. More...
 
enum  Gravity {
  Gravity::SOUTH,
  Gravity::EAST,
  Gravity::NORTH,
  Gravity::WEST,
  Gravity::AUTO
}
 The Pango::Gravity type represents the orientation of glyphs in a segment of text. More...
 
enum  Script {
  Script::INVALID_CODE = -1,
  Script::COMMON,
  Script::INHERITED,
  Script::ARABIC,
  Script::ARMENIAN,
  Script::BENGALI,
  Script::BOPOMOFO,
  Script::CHEROKEE,
  Script::COPTIC,
  Script::CYRILLIC,
  Script::DESERET,
  Script::DEVANAGARI,
  Script::ETHIOPIC,
  Script::GEORGIAN,
  Script::GOTHIC,
  Script::GREEK,
  Script::GUJARATI,
  Script::GURMUKHI,
  Script::HAN,
  Script::HANGUL,
  Script::HEBREW,
  Script::HIRAGANA,
  Script::KANNADA,
  Script::KATAKANA,
  Script::KHMER,
  Script::LAO,
  Script::LATIN,
  Script::MALAYALAM,
  Script::MONGOLIAN,
  Script::MYANMAR,
  Script::OGHAM,
  Script::OLD_ITALIC,
  Script::ORIYA,
  Script::RUNIC,
  Script::SINHALA,
  Script::SYRIAC,
  Script::TAMIL,
  Script::TELUGU,
  Script::THAANA,
  Script::THAI,
  Script::TIBETAN,
  Script::CANADIAN_ABORIGINAL,
  Script::YI,
  Script::TAGALOG,
  Script::HANUNOO,
  Script::BUHID,
  Script::TAGBANWA,
  Script::BRAILLE,
  Script::CYPRIOT,
  Script::LIMBU,
  Script::OSMANYA,
  Script::SHAVIAN,
  Script::LINEAR_B,
  Script::TAI_LE,
  Script::UGARITIC,
  Script::NEW_TAI_LUE,
  Script::BUGINESE,
  Script::GLAGOLITIC,
  Script::TIFINAGH,
  Script::SYLOTI_NAGRI,
  Script::OLD_PERSIAN,
  Script::KHAROSHTHI,
  Script::UNKNOWN,
  Script::BALINESE,
  Script::CUNEIFORM,
  Script::PHOENICIAN,
  Script::PHAGS_PA,
  Script::NKO,
  Script::KAYAH_LI,
  Script::LEPCHA,
  Script::REJANG,
  Script::SUNDANESE,
  Script::SAURASHTRA,
  Script::CHAM,
  Script::OL_CHIKI,
  Script::VAI,
  Script::CARIAN,
  Script::LYCIAN,
  Script::LYDIAN,
  Script::BATAK,
  Script::BRAHMI,
  Script::MANDAIC,
  Script::CHAKMA,
  Script::MEROITIC_CURSIVE,
  Script::MEROITIC_HIEROGLYPHS,
  Script::MIAO,
  Script::SHARADA,
  Script::SORA_SOMPENG,
  Script::TAKRI,
  Script::BASSA_VAH,
  Script::CAUCASIAN_ALBANIAN,
  Script::DUPLOYAN,
  Script::ELBASAN,
  Script::GRANTHA,
  Script::KHOJKI,
  Script::KHUDAWADI,
  Script::LINEAR_A,
  Script::MAHAJANI,
  Script::MANICHAEAN,
  Script::MENDE_KIKAKUI,
  Script::MODI,
  Script::MRO,
  Script::NABATAEAN,
  Script::OLD_NORTH_ARABIAN,
  Script::OLD_PERMIC,
  Script::PAHAWH_HMONG,
  Script::PALMYRENE,
  Script::PAU_CIN_HAU,
  Script::PSALTER_PAHLAVI,
  Script::SIDDHAM,
  Script::TIRHUTA,
  Script::WARANG_CITI,
  Script::AHOM,
  Script::ANATOLIAN_HIEROGLYPHS,
  Script::HATRAN,
  Script::MULTANI,
  Script::OLD_HUNGARIAN,
  Script::SIGNWRITING
}
 The Pango::Script enumeration identifies different writing systems. More...
 
enum  Alignment {
  Alignment::LEFT,
  Alignment::CENTER,
  Alignment::RIGHT
}
 A Pango::Alignment describes how to align the lines of a Pango::Layout within the available space. More...
 
enum  WrapMode {
  WrapMode::WORD,
  WrapMode::CHAR,
  WrapMode::WORD_CHAR
}
 A Pango::WrapMode describes how to wrap the lines of a Pango::Layout to the desired width. More...
 
enum  EllipsizeMode {
  EllipsizeMode::NONE,
  EllipsizeMode::START,
  EllipsizeMode::MIDDLE,
  EllipsizeMode::END
}
 The Pango::EllipsizeMode type describes what sort of (if any) ellipsization should be applied to a line of text. More...
 
enum  TabAlign { TabAlign::LEFT }
 A Pango::TabAlign specifies where a tab stop appears relative to the text. More...
 

Functions

FontMask operator| (FontMask lhs, FontMask rhs)
 
FontMask operator& (FontMask lhs, FontMask rhs)
 
FontMask operator^ (FontMask lhs, FontMask rhs)
 
FontMask operator~ (FontMask flags)
 
FontMaskoperator|= (FontMask& lhs, FontMask rhs)
 
FontMaskoperator&= (FontMask& lhs, FontMask rhs)
 
FontMaskoperator^= (FontMask& lhs, FontMask rhs)
 
void init ()
 Initialize pangomm. More...
 

Variables

const int SCALE = 1024
 
const double SCALE_XX_SMALL = 0.5787037037037
 
const double SCALE_X_SMALL = 0.6444444444444
 
const double SCALE_SMALL = 0.8333333333333
 
const double SCALE_MEDIUM = 1.0
 
const double SCALE_LARGE = 1.2
 
const double SCALE_X_LARGE = 1.4399999999999
 
const double SCALE_XX_LARGE = 1.728
 

Typedef Documentation

◆ Glyph

typedef PangoGlyph Pango::Glyph

A Pango::Glyph represents a single glyph in the output form of a string.

◆ GlyphItem

A Pango::GlyphItem is a pair of a Pango::Items and the glyphs resulting from shaping the text corresponding to an item.

As an example of the usage of Pango::GlyphItem, the results of shaping text with Pango::Layout is a list of Pango::LayoutLine, each of which contains a list of Pango::GlyphItem.

◆ GlyphUnit

typedef PangoGlyphUnit Pango::GlyphUnit

A Pango::GlyphUnit is used to store dimensions within Pango.

Dimensions are stored in 1/64ths of a point.

◆ GlyphVisAttr

typedef PangoGlyphVisAttr Pango::GlyphVisAttr

A Pango::GlyphVisAttr is used to communicate information between the shaping phase and the rendering phase.

It's contents are still evolving.

◆ LogAttr

typedef PangoLogAttr Pango::LogAttr

A Pango::LogAttr stores information about the attributes of a single character.

◆ Matrix

typedef PangoMatrix Pango::Matrix

Function Documentation

◆ init()

void Pango::init ( )

Initialize pangomm.

You may call this more than once. You do not need to call this if you are using Gtk::Main, because it calls it for you.

Variable Documentation

◆ SCALE

const int Pango::SCALE = 1024

◆ SCALE_LARGE

const double Pango::SCALE_LARGE = 1.2

◆ SCALE_MEDIUM

const double Pango::SCALE_MEDIUM = 1.0

◆ SCALE_SMALL

const double Pango::SCALE_SMALL = 0.8333333333333

◆ SCALE_X_LARGE

const double Pango::SCALE_X_LARGE = 1.4399999999999

◆ SCALE_X_SMALL

const double Pango::SCALE_X_SMALL = 0.6444444444444

◆ SCALE_XX_LARGE

const double Pango::SCALE_XX_LARGE = 1.728

◆ SCALE_XX_SMALL

const double Pango::SCALE_XX_SMALL = 0.5787037037037