Main Page Widgets Namespaces Book

# Enums and Flags

## Enumerations
enum | AttrType { 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 }
| Pango::AttrType distinguishes between different types of attributes. More...
enum | Underline { UNDERLINE_NONE, UNDERLINE_SINGLE, UNDERLINE_DOUBLE, UNDERLINE_LOW }
| A Pango::Underline 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 }
enum | CoverageLevel { COVERAGE_NONE, COVERAGE_FALLBACK, COVERAGE_APPROXIMATE, COVERAGE_EXACT }
enum | Style { STYLE_NORMAL, STYLE_OBLIQUE, STYLE_ITALIC }
enum | Variant { VARIANT_NORMAL, VARIANT_SMALL_CAPS }
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 }
enum | Weight { WEIGHT_ULTRALIGHT = 200, WEIGHT_LIGHT = 300, WEIGHT_NORMAL = 400, WEIGHT_BOLD = 700, WEIGHT_ULTRABOLD = 800, WEIGHT_HEAVY = 900 }
enum | FontMask { FONT_MASK_FAMILY = 1 << 0, FONT_MASK_STYLE = 1 << 1, FONT_MASK_VARIANT = 1 << 2, FONT_MASK_WEIGHT = 1 << 3, FONT_MASK_STRETCH = 1 << 4, FONT_MASK_SIZE = 1 << 5 }
enum | Alignment { ALIGN_LEFT, ALIGN_CENTER, ALIGN_RIGHT }
enum | WrapMode { WRAP_WORD, WRAP_CHAR, WRAP_WORD_CHAR }
enum | TabAlign { TAB_LEFT }
## Functions
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)

## 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]`