|
Public Methods |
| Attribute () |
| Constructs an invalid attribute.
|
| Attribute (const Attribute& src) |
| Attribute (PangoAttribute* castitem, bool take_copy=true) |
| ~Attribute () |
Attribute& | operator= (const Attribute& src) |
AttrType | get_type () const |
| Gets the type ID for this attribute.
|
unsigned int | get_start_index () const |
| Gets the start index of the range.
|
unsigned int | get_end_index () const |
| Gets the end index of the range.
|
void | set_start_index (const unsigned int& value) |
| Sets the start index of the range.
|
void | set_end_index (const unsigned int& value) |
| Sets the end index of the range.
|
bool | equal (const Attribute& attr2) const |
| Compare two attributes for equality.
|
PangoAttribute* | gobj () |
PangoAttribute* const | gobj () const |
Static Public Methods |
AttrType | register_type (const Glib::ustring& name) |
| Allocate a new attribute type ID.
|
AttrString | create_attr_family (const Glib::ustring& family) |
| Create a new font family attribute.
|
AttrLanguage | create_attr_language (const Language& language) |
| Create a new language tag attribute.
|
AttrColor | create_attr_foreground (guint16 red, guint16 green, guint16 blue) |
| Create a new foreground color attribute.
|
AttrColor | create_attr_background (guint16 red, guint16 green, guint16 blue) |
| Create a new background color attribute.
|
AttrInt | create_attr_size (int size) |
| Create a new font-size attribute.
|
AttrInt | create_attr_style (Style style) |
| Create a new font slant style attribute.
|
AttrInt | create_attr_weight (Weight weight) |
| Create a new font weight attribute.
|
AttrInt | create_attr_variant (Variant variant) |
| Create a new font variant attribute (normal or small caps).
|
AttrInt | create_attr_stretch (Stretch stretch) |
| Create a new font stretch attribute.
|
AttrFontDesc | create_attr_font_desc (const FontDescription& desc) |
| Create a new font description attribute.
|
AttrInt | create_attr_underline (Underline underline) |
| Create a new underline-style object.
|
AttrInt | create_attr_strikethrough (bool strikethrough) |
| Create a new font strike-through attribute.
|
AttrInt | create_attr_rise (int rise) |
| Create a new baseline displacement attribute.
|
AttrFloat | create_attr_scale (double scale_factor) |
| Create a new font size scale attribute.
|
AttrShape | create_attr_shape (const Rectangle& ink_rect, const Rectangle& logical_rect) |
| Create a new shape attribute.
|
Protected Attributes |
PangoAttribute* | gobject_ |
Related Functions |
(Note that these are not member functions.)
|
bool | operator== (const Attribute& lhs, const Attribute& rhs) |
bool | operator!= (const Attribute& lhs, const Attribute& rhs) |
Pango::Attribute | wrap (PangoAttribute* object, bool take_copy=false) |