Xfce Foundation Classes
Main Page | Index | Namespace List | Alphabetical List | Class List | File List

# attributes.hh File Reference

A PangoAttibute C++ wrapper interface. More...

`#include <xfc/object.hh>`
`#include <xfc/pango/font.hh>`
`#include <pango/pango-attributes.h>`
`#include <gdk/gdkpango.h>`
`#include <vector>`
`#include <xfc/pango/inline/attributes.inl>`

## Namespaces

- namespace Xfc
- namespace Xfc::Gdk
- namespace Xfc::Pango

## Classes

- class Xfc::Pango::Color
    A PangoColor C++ wrapper class. More...
- class Xfc::Pango::Attribute
    A PangoAttriubte C++ wrapper class. More...
- class Xfc::Pango::AttrString
    A PangoAttrString C++ wrapper class. More...
- class Xfc::Pango::AttrLanguage
    A PangoAttrLanguage C++ wrapper class. More...
- class Xfc::Pango::AttrFamily
    Pango font family name C++ wrapper class. More...
- class Xfc::Pango::AttrColor
    A PangoAttrColor C++ wrapper class. More...
- class Xfc::Pango::AttrForeground
    Pango foreground color C++ wrapper class. More...
- class Xfc::Pango::AttrBackground
    A Pango background color C++ wrapper class. More...
- class Xfc::Pango::AttrInt
    A PangoAttrInt C++ wrapper class. More...
- class Xfc::Pango::AttrSize
    Pango size C++ wrapper class. More...
- class Xfc::Pango::AttrStyle
    Pango style C++ wrapper class. More...
- class Xfc::Pango::AttrWeight
    Pango weight C++ wrapper class. More...
- class Xfc::Pango::AttrVariant
    Pango variant C++ wrapper class. More...
- class Xfc::Pango::AttrStretch
    Pango stretch C++ wrapper class. More...
- class Xfc::Pango::AttrUnderline
    Pango underline C++ wrapper class. More...
- class Xfc::Pango::AttrStrikethrough
    Pango strikethrough C++ wrapper class. More...
- class Xfc::Pango::AttrRise
    Pango rise C++ wrapper class. More...
- class Xfc::Pango::AttrFontDesc
    A PangoAttrFontDesc C++ wrapper class. More...
- class Xfc::Pango::AttrShape
    A PangoAttrShape C++ wrapper class. More...
- class Xfc::Pango::AttrFloat
    A PangoAttrFloat C++ wrapper class. More...
- class Xfc::Pango::AttrScale
    Pango scale C++ wrapper class. More...
- class Xfc::Pango::AttrFallback
    Pango fallback C++ wrapper class. More...
- class Xfc::Pango::AttrLetterSpacing
    Pango letter spacing C++ wrapper class. More...
- class Xfc::Pango::AttrUnderlineColor
    Pango underline color C++ wrapper class. More...
- class Xfc::Pango::AttrStrikethroughColor
    Pango strikethrough color C++ wrapper class. More...
- class Xfc::Pango::AttrStipple
    A GdkPangoAttrStipple C++ wrapper class. More...
- class Xfc::Pango::AttrEmbossed
    A GdkPangoAttrEmbossed C++ wrapper class. More...
- class Xfc::Pango::AttrIterator
    A PangoAttrIterator C++ wrapper class. More...
- class Xfc::Pango::AttrList
    A PangoAttrList C++ wrapper class. More...

## Enumerations

- enum Underline {
  UNDERLINE_NONE = PANGO_UNDERLINE_NONE,
  UNDERLINE_SINGLE = PANGO_UNDERLINE_SINGLE,
  UNDERLINE_DOUBLE = PANGO_UNDERLINE_DOUBLE,
  UNDERLINE_LOW = PANGO_UNDERLINE_LOW,
  UNDERLINE_ERROR = PANGO_UNDERLINE_ERROR
  }
    Underline is used to specify whether text should be underlined, and if so, the type of underlining. More...
- enum AttrType {
  ATTR_INVALID = PANGO_ATTR_INVALID,
  ATTR_LANGUAGE = PANGO_ATTR_LANGUAGE,
  ATTR_FAMILY = PANGO_ATTR_FAMILY,
  ATTR_STYLE = PANGO_ATTR_STYLE,
  ATTR_WEIGHT = PANGO_ATTR_WEIGHT,
  ATTR_VARIANT = PANGO_ATTR_VARIANT,
  ATTR_STRETCH = PANGO_ATTR_STRETCH,
  ATTR_SIZE = PANGO_ATTR_SIZE,
  ATTR_FONT_DESC = PANGO_ATTR_FONT_DESC,
  ATTR_FOREGROUND = PANGO_ATTR_FOREGROUND,
  ATTR_BACKGROUND = PANGO_ATTR_BACKGROUND,
  ATTR_UNDERLINE = PANGO_ATTR_UNDERLINE,
  ATTR_STRIKETHROUGH = PANGO_ATTR_STRIKETHROUGH,
  ATTR_RISE = PANGO_ATTR_RISE,
  ATTR_SHAPE = PANGO_ATTR_SHAPE,
  ATTR_SCALE = PANGO_ATTR_SCALE,
  ATTR_FALLBACK = PANGO_ATTR_FALLBACK,
  ATTR_LETTER_SPACING = PANGO_ATTR_LETTER_SPACING,
  ATTR_UNDERLINE_COLOR = PANGO_ATTR_UNDERLINE_COLOR,
  ATTR_STRIKETHROUGH_COLOR = PANGO_ATTR_STRIKETHROUGH_COLOR
  }
    Distinguishes between different types of attributes. More...

## Detailed Description

A PangoAttibute C++ wrapper interface.

Provides Attribute and its derived classes, a group a classes that distinguish between different types of pango attributes.

## Enumeration Type Documentation

enum AttrType

Distinguishes between different types of attributes.

Along with the predefined values, it is possible to allocate additional values for custom attributes using pango_attr_register_type(). The predefined values are given below. The type of class used to store the attribute is listed in parentheses after the description.

Enumeration values:

  ATTR_INVALID | Invalid.
  ATTR_LANGUAGE | Language (AttrLanguage).
  ATTR_FAMILY | Font family name list (AttrString).
  ATTR_STYLE | Font slant style (AttrInt).
  ATTR_WEIGHT | Font weight (AttrInt).
  ATTR_VARIANT | Font variant (normal or small caps) (AttrInt).
  ATTR_STRETCH | Font stretch (AttrInt).
  ATTR_SIZE | Font size in points divided by PANGO_SCALE (AttrInt).
  ATTR_FONT_DESC | Font description (AttrFontDesc).
  ATTR_FOREGROUND | Foreground color (AttrColor).
  ATTR_BACKGROUND | Background color (AttrColor).
  ATTR_UNDERLINE | Whether the text has an underline (AttrInt).
  ATTR_STRIKETHROUGH | Whether the text is struck-through (AttrInt).
  ATTR_RISE | Baseline displacement (AttrInt).
  ATTR_SHAPE | Shape (AttrShape).
  ATTR_SCALE | Font size scale factor (AttrScale).
  ATTR_FALLBACK | Whether fallback is enabled (AttrInt).
  ATTR_LETTER_SPACING | The amount of extra space to add between graphemes.
  ATTR_UNDERLINE_COLOR | The color of underlines.
  ATTR_STRIKETHROUGH_COLOR | The color of strikethrough lines.

enum Underline

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

Enumeration values:

  UNDERLINE_NONE | No underline should be drawn.
  UNDERLINE_SINGLE | A single underline should be drawn.
  UNDERLINE_DOUBLE | A double underline should be drawn.
  UNDERLINE_LOW | A single underline should be drawn at a position beneath the ink extents of the text being underlined; this should be used only for underlining single characters, such as for keyboard accelerators; UNDERLINE_SINGLE should be used for extended portions of text.
  UNDERLINE_ERROR | A wavy underline should be drawn below; this underline is typically used to indicate an error such as a possilble mispelling; in some cases an contrasting color may automatically be used.

Xfce Foundation Classes

Copyright © 2004-2005 The XFC Development Team | XFC 4.3