Xfce Foundation Classes
Main Page  | IndexNamespace 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

Classes

Enumerations


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