pangomm: Pango Namespace Reference

pangomm 2.50.1

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

## Classes
class | CairoFontMapImpl
| Gdk::CairoFontMapImpl is a Pango::FontMap that implements the Pango::CairoFontMap interface. More...
class | BaselineShift_Wrapper
| Wrapper for enum BaselineShift. More...
class | Attribute
| The Pango::Attribute structure represents the common portions of all attributes. More...
class | AttrString
| A Pango::AttrString is used to represent an attribute with a string value. More...
class | AttrLanguage
| A Pango::AttrLanguage is used to represent an attribute that is a language. More...
class | AttrColor
| A Pango::AttrColor is used to represent an attribute which is a color. More...
class | AttrInt
| A Pango::AttrInt is used to represent an attribute with an integer or enumeration value. 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 | AttrShape
| A Pango::AttrShape structure is used to represent an attribute which imposes shape restrictions. More...
struct | AttributeTraits
class | AttrIter
| A Pango::AttrIter is used to represent an iterator through a Pango::AttrList. More...
class | AttrList
| A Pango::AttrList represents a list of attributes that apply to a section of text. More...
class | CairoFontMap
| Pango::CairoFontMap is an interface implemented by font maps for use with Cairo. 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::Coverage::Level. More...
class | Font
| A Pango::Font is used to represent a font in a rendering-system-independent matter. More...
class | Weight_Wrapper
| Wrapper for enum Weight. 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 | GlyphInfo
| A Pango::GlyphInfo represents a single glyph together with positioning information and visual attributes. More...
class | GlyphGeometry
| A Pango::GlyphGeometry contains width and positioning information for a single glyph. More...
class | GlyphItem
| A Pango::GlyphItem is a pair of a Pango::Item and the glyphs resulting from shaping the text corresponding to an item. More...
class | GlyphString
| A Pango::GlyphString is used to store strings of glyphs with geometry and visual attribute information. More...
class | Analysis
| A Pango::Analysis stores information about the properties of a segment of text. 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 | 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...

## Typedefs
typedef PangoMatrix | Matrix
using | BaselineShift = BaselineShift_Wrapper::BaselineShift
| BaselineShift enumerators are scoped by the wrapper class and can be implicitly converted to int. More...
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...

## Enumerations
enum class | AttrType { INVALID , LANGUAGE , FAMILY , STYLE , WEIGHT , VARIANT , STRETCH , SIZE , FONT_DESC , FOREGROUND , BACKGROUND , UNDERLINE , STRIKETHROUGH , RISE , SHAPE , SCALE_FACTOR , FALLBACK , LETTER_SPACING , UNDERLINE_COLOR , STRIKETHROUGH_COLOR , ABSOLUTE_SIZE , GRAVITY , GRAVITY_HINT , FONT_FEATURES , FOREGROUND_ALPHA , BACKGROUND_ALPHA , ALLOW_BREAKS , SHOW , INSERT_HYPHENS , OVERLINE , OVERLINE_COLOR , LINE_HEIGHT , ABSOLUTE_LINE_HEIGHT , TEXT_TRANSFORM , WORD , SENTENCE , BASELINE_SHIFT , FONT_SCALE }
| The `Pango::AttrType` distinguishes between different types of attributes. More...
enum class | Underline { NONE , SINGLE , DOUBLE , LOW , ERROR , SINGLE_LINE , DOUBLE_LINE , ERROR_LINE }
| The `Pango::Underline` enumeration is used to specify whether text should be underlined, and if so, the type of underlining. More...
enum class | Overline { NONE , SINGLE }
| The `Pango::Overline` enumeration is used to specify whether text should be overlined, and if so, the type of line. More...
enum class | ShowFlags { NONE = 0x0 , SPACES = 1 << 0 , LINE_BREAKS = 1 << 1 , IGNORABLES = 1 << 2 }
| These flags affect how Pango treats characters that are normally not visible in the output. More...
enum class | TextTransform { NONE , LOWERCASE , UPPERCASE , CAPITALIZE }
| An enumeration that affects how Pango treats characters during shaping. More...
enum class | FontScale { NONE , SUPERSCRIPT , SUBSCRIPT , SMALL_CAPS }
| An enumeration that affects font sizes for superscript and subscript positioning and for (emulated) Small Caps. More...
enum class | Direction { LTR , RTL , TTB_LTR , TTB_RTL , WEAK_LTR , WEAK_RTL , NEUTRAL }
| `Pango::Direction` represents a direction in the Unicode bidirectional algorithm. More...
enum class | GravityHint { NATURAL , STRONG , LINE }
| `Pango::GravityHint` defines how horizontal scripts should behave in a vertical context. More...
enum class | Style { NORMAL , OBLIQUE , ITALIC }
| An enumeration specifying the various slant styles possible for a font. More...
enum class | Variant { NORMAL , SMALL_CAPS , ALL_SMALL_CAPS , PETITE_CAPS , ALL_PETITE_CAPS , UNICASE , TITLE_CAPS }
| An enumeration specifying capitalization variant of the font. More...
enum class | Stretch { ULTRA_CONDENSED , EXTRA_CONDENSED , CONDENSED , SEMI_CONDENSED , NORMAL , SEMI_EXPANDED , EXPANDED , EXTRA_EXPANDED , ULTRA_EXPANDED }
| An enumeration specifying the width of the font relative to other designs within a family. More...
enum class | FontMask { FAMILY = 1 << 0 , STYLE = 1 << 1 , VARIANT = 1 << 2 , WEIGHT = 1 << 3 , STRETCH = 1 << 4 , SIZE = 1 << 5 , GRAVITY = 1 << 6 , VARIATIONS = 1 << 7 }
| The bits in a `Pango::FontMask` correspond to the set fields in a `Pango::FontDescription`. More...
enum class | Gravity { SOUTH , EAST , NORTH , WEST , AUTO }
| `Pango::Gravity` represents the orientation of glyphs in a segment of text. More...
enum class | ShapeFlags { NONE = 0x0 , ROUND_POSITIONS = 1 << 0 }
| Flags influencing the shaping process. More...
enum class | Script { INVALID_CODE = -1 , COMMON , INHERITED , ARABIC , ARMENIAN , BENGALI , BOPOMOFO , CHEROKEE , COPTIC , CYRILLIC , DESERET , DEVANAGARI , ETHIOPIC , GEORGIAN , GOTHIC , GREEK , GUJARATI , GURMUKHI , HAN , HANGUL , HEBREW , HIRAGANA , KANNADA , KATAKANA , KHMER , LAO , LATIN , MALAYALAM , MONGOLIAN , MYANMAR , OGHAM , OLD_ITALIC , ORIYA , RUNIC , SINHALA , SYRIAC , TAMIL , TELUGU , THAANA , THAI , TIBETAN , CANADIAN_ABORIGINAL , YI , TAGALOG , HANUNOO , BUHID , TAGBANWA , BRAILLE , CYPRIOT , LIMBU , OSMANYA , SHAVIAN , LINEAR_B , TAI_LE , UGARITIC , NEW_TAI_LUE , BUGINESE , GLAGOLITIC , TIFINAGH , SYLOTI_NAGRI , OLD_PERSIAN , KHAROSHTHI , UNKNOWN , BALINESE , CUNEIFORM , PHOENICIAN , PHAGS_PA , NKO , KAYAH_LI , LEPCHA , REJANG , SUNDANESE , SAURASHTRA , CHAM , OL_CHIKI , VAI , CARIAN , LYCIAN , LYDIAN , BATAK , BRAHMI , MANDAIC , CHAKMA , MEROITIC_CURSIVE , MEROITIC_HIEROGLYPHS , MIAO , SHARADA , SORA_SOMPENG , TAKRI , BASSA_VAH , CAUCASIAN_ALBANIAN , DUPLOYAN , ELBASAN , GRANTHA , KHOJKI , KHUDAWADI , LINEAR_A , MAHAJANI , MANICHAEAN , MENDE_KIKAKUI , MODI , MRO , NABATAEAN , OLD_NORTH_ARABIAN , OLD_PERMIC , PAHAWH_HMONG , PALMYRENE , PAU_CIN_HAU , PSALTER_PAHLAVI , SIDDHAM , TIRHUTA , WARANG_CITI , AHOM , ANATOLIAN_HIEROGLYPHS , HATRAN , MULTANI , OLD_HUNGARIAN , SIGNWRITING }
| The `Pango::Script` enumeration identifies different writing systems. More...
enum class | Alignment { LEFT , CENTER , RIGHT }
| `Pango::Alignment` describes how to align the lines of a `Pango::Layout` within the available space. More...
enum class | WrapMode { WORD , CHAR , WORD_CHAR }
| `Pango::WrapMode` describes how to wrap the lines of a `Pango::Layout` to the desired width. More...
enum class | EllipsizeMode { NONE , START , MIDDLE , END }
| `Pango::EllipsizeMode` describes what sort of ellipsization should be applied to text. More...
enum class | TabAlign { LEFT , RIGHT , CENTER , DECIMAL }
| `Pango::TabAlign` specifies where the text appears relative to the tab stop position. More...

## Functions
void | init ()
| Initialize pangomm. More...
ShowFlags | operator| (ShowFlags lhs, ShowFlags rhs)
ShowFlags | operator& (ShowFlags lhs, ShowFlags rhs)
ShowFlags | operator^ (ShowFlags lhs, ShowFlags rhs)
ShowFlags | operator~ (ShowFlags flags)
ShowFlags & | operator|= (ShowFlags & lhs, ShowFlags rhs)
ShowFlags & | operator&= (ShowFlags & lhs, ShowFlags rhs)
ShowFlags & | operator^= (ShowFlags & lhs, ShowFlags rhs)
FontMask | operator| (FontMask lhs, FontMask rhs)
FontMask | operator& (FontMask lhs, FontMask rhs)
FontMask | operator^ (FontMask lhs, FontMask rhs)
FontMask | operator~ (FontMask flags)
FontMask & | operator|= (FontMask & lhs, FontMask rhs)
FontMask & | operator&= (FontMask & lhs, FontMask rhs)
FontMask & | operator^= (FontMask & lhs, FontMask rhs)
ShapeFlags | operator| (ShapeFlags lhs, ShapeFlags rhs)
ShapeFlags | operator& (ShapeFlags lhs, ShapeFlags rhs)
ShapeFlags | operator^ (ShapeFlags lhs, ShapeFlags rhs)
ShapeFlags | operator~ (ShapeFlags flags)
ShapeFlags & | operator|= (ShapeFlags & lhs, ShapeFlags rhs)
ShapeFlags & | operator&= (ShapeFlags & lhs, ShapeFlags rhs)
ShapeFlags & | operator^= (ShapeFlags & lhs, ShapeFlags rhs)

## 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.

## ◆ 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