Main Page Widgets Namespaces Book

# Enums and Flags

## Enumerations

enum | Pango::AttrType { Pango::ATTR_INVALID, Pango::ATTR_LANGUAGE, Pango::ATTR_FAMILY, Pango::ATTR_STYLE, Pango::ATTR_WEIGHT, Pango::ATTR_VARIANT, Pango::ATTR_STRETCH, Pango::ATTR_SIZE, Pango::ATTR_FONT_DESC, Pango::ATTR_FOREGROUND, Pango::ATTR_BACKGROUND, Pango::ATTR_UNDERLINE, Pango::ATTR_STRIKETHROUGH, Pango::ATTR_RISE, Pango::ATTR_SHAPE, Pango::ATTR_SCALE }
| Pango::AttrType distinguishes between different types of attributes. More...
enum | Pango::Underline { Pango::UNDERLINE_NONE, Pango::UNDERLINE_SINGLE, Pango::UNDERLINE_DOUBLE, Pango::UNDERLINE_LOW }
| A Pango::Underline is used to specify whether text should be underlined, and if so, the type of underlining. More...
enum | Pango::Direction { Pango::DIRECTION_LTR, Pango::DIRECTION_RTL, Pango::DIRECTION_TTB_LTR, Pango::DIRECTION_TTB_RTL }
enum | Pango::CoverageLevel { Pango::COVERAGE_NONE, Pango::COVERAGE_FALLBACK, Pango::COVERAGE_APPROXIMATE, Pango::COVERAGE_EXACT }
enum | Pango::Style { Pango::STYLE_NORMAL, Pango::STYLE_OBLIQUE, Pango::STYLE_ITALIC }
enum | Pango::Variant { Pango::VARIANT_NORMAL, Pango::VARIANT_SMALL_CAPS }
enum | Pango::Stretch { Pango::STRETCH_ULTRA_CONDENSED, Pango::STRETCH_EXTRA_CONDENSED, Pango::STRETCH_CONDENSED, Pango::STRETCH_SEMI_CONDENSED, Pango::STRETCH_NORMAL, Pango::STRETCH_SEMI_EXPANDED, Pango::STRETCH_EXPANDED, Pango::STRETCH_EXTRA_EXPANDED, Pango::STRETCH_ULTRA_EXPANDED }
enum | Pango::Weight { Pango::WEIGHT_ULTRALIGHT = 200, Pango::WEIGHT_LIGHT = 300, Pango::WEIGHT_NORMAL = 400, Pango::WEIGHT_BOLD = 700, Pango::WEIGHT_ULTRABOLD = 800, Pango::WEIGHT_HEAVY = 900 }
enum | Pango::FontMask { Pango::FONT_MASK_FAMILY = 1 << 0, Pango::FONT_MASK_STYLE = 1 << 1, Pango::FONT_MASK_VARIANT = 1 << 2, Pango::FONT_MASK_WEIGHT = 1 << 3, Pango::FONT_MASK_STRETCH = 1 << 4, Pango::FONT_MASK_SIZE = 1 << 5 }
enum | Pango::Alignment { Pango::ALIGN_LEFT, Pango::ALIGN_CENTER, Pango::ALIGN_RIGHT }
enum | Pango::WrapMode { Pango::WRAP_WORD, Pango::WRAP_CHAR, Pango::WRAP_WORD_CHAR }
enum | Pango::TabAlign { Pango::TAB_LEFT }

## Functions

FontMask | Pango::operator| (FontMask lhs, FontMask rhs)
FontMask | Pango::operator& (FontMask lhs, FontMask rhs)
FontMask | Pango::operator^ (FontMask lhs, FontMask rhs)
FontMask | Pango::operator~ (FontMask flags)
FontMask& | Pango::operator|= (FontMask& lhs, FontMask rhs)
FontMask& | Pango::operator&= (FontMask& lhs, FontMask rhs)
FontMask& | Pango::operator^= (FontMask& lhs, FontMask rhs)

## Enumeration Type Documentation

enum Pango::Alignment

Enumeration values:

  ALIGN_LEFT |
  ALIGN_CENTER |
  ALIGN_RIGHT |

enum Pango::AttrType

Pango::AttrType distinguishes between different types of attributes.

Along with the predefined values, it is possible to allocate additional values for custom attributes using Pango::Attribute::register_type(). The predefined values are given below.

Enumeration values:

  ATTR_INVALID |
  ATTR_LANGUAGE |
  ATTR_FAMILY |
  ATTR_STYLE |
  ATTR_WEIGHT |
  ATTR_VARIANT |
  ATTR_STRETCH |
  ATTR_SIZE |
  ATTR_FONT_DESC |
  ATTR_FOREGROUND |
  ATTR_BACKGROUND |
  ATTR_UNDERLINE |
  ATTR_STRIKETHROUGH |
  ATTR_RISE |
  ATTR_SHAPE |
  ATTR_SCALE |

enum Pango::CoverageLevel

Enumeration values:

  COVERAGE_NONE |
  COVERAGE_FALLBACK |
  COVERAGE_APPROXIMATE |
  COVERAGE_EXACT |

enum Pango::Direction

Enumeration values:

  DIRECTION_LTR |
  DIRECTION_RTL |
  DIRECTION_TTB_LTR |
  DIRECTION_TTB_RTL |

enum Pango::FontMask

Bitwise operators:
  `FontMask operator|(FontMask, FontMask)`
  `FontMask operator&(FontMask, FontMask)`
  `FontMask operator^(FontMask, FontMask)`
  `FontMask operator~(FontMask)`
  `FontMask& operator|=(FontMask&, FontMask)`
  `FontMask& operator&=(FontMask&, FontMask)`
  `FontMask& operator^=(FontMask&, FontMask)`

Enumeration values:

  FONT_MASK_FAMILY |
  FONT_MASK_STYLE |
  FONT_MASK_VARIANT |
  FONT_MASK_WEIGHT |
  FONT_MASK_STRETCH |
  FONT_MASK_SIZE |

enum Pango::Stretch

Enumeration values:

  STRETCH_ULTRA_CONDENSED |
  STRETCH_EXTRA_CONDENSED |
  STRETCH_CONDENSED |
  STRETCH_SEMI_CONDENSED |
  STRETCH_NORMAL |
  STRETCH_SEMI_EXPANDED |
  STRETCH_EXPANDED |
  STRETCH_EXTRA_EXPANDED |
  STRETCH_ULTRA_EXPANDED |

enum Pango::Style

Enumeration values:

  STYLE_NORMAL |
  STYLE_OBLIQUE |
  STYLE_ITALIC |

enum Pango::TabAlign

Enumeration values:

  TAB_LEFT |

enum Pango::Underline

A Pango::Underline is used to specify whether text should be underlined, and if so, the type of underlining.

Enumeration values:

  UNDERLINE_NONE |
  UNDERLINE_SINGLE |
  UNDERLINE_DOUBLE |
  UNDERLINE_LOW |

enum Pango::Variant

Enumeration values:

  VARIANT_NORMAL |
  VARIANT_SMALL_CAPS |

enum Pango::Weight

Enumeration values:

  WEIGHT_ULTRALIGHT |
  WEIGHT_LIGHT |
  WEIGHT_NORMAL |
  WEIGHT_BOLD |
  WEIGHT_ULTRABOLD |
  WEIGHT_HEAVY |

enum Pango::WrapMode

Enumeration values:

  WRAP_WORD |
  WRAP_CHAR |
  WRAP_WORD_CHAR |

## Function Documentation

FontMask operator& | ( | FontMask | lhs,
|  | FontMask | rhs
| ) | `[inline]`

FontMask& operator&= | ( | FontMask& | lhs,
|  | FontMask | rhs
| ) | `[inline]`

FontMask operator^ | ( | FontMask | lhs,
|  | FontMask | rhs
| ) | `[inline]`

FontMask& operator^= | ( | FontMask& | lhs,
|  | FontMask | rhs
| ) | `[inline]`

FontMask operator| | ( | FontMask | lhs,
|  | FontMask | rhs
| ) | `[inline]`

FontMask& operator|= | ( | FontMask& | lhs,
|  | FontMask | rhs
| ) | `[inline]`

FontMask operator~ | ( | FontMask | flags | ) | `[inline]`