Logo Search packages:      
Sourcecode: ardour version File versions

Pango::FontDescription Class Reference

#include <fontdescription.h>

List of all members.

Detailed Description

A Pango::FontDescription represents the description of an ideal font. It is used both to list what fonts are available on the system and also for specifying the characteristics of a font to load.

Definition at line 248 of file fontdescription.h.

Public Types

typedef PangoFontDescription BaseObjectType
typedef FontDescription CppObjectType

Public Member Functions

bool better_match (const FontDescription &old_match, const FontDescription &new_match) const
 FontDescription (const Glib::ustring &font_name)
 FontDescription (const FontDescription &other)
 FontDescription (PangoFontDescription *gobject, bool make_a_copy=true)
Glib::ustring get_family () const
FontMask get_set_fields () const
int get_size () const
Stretch get_stretch () const
Style get_style () const
Variant get_variant () const
Weight get_weight () const
const PangoFontDescription * gobj () const
 Provides access to the underlying C instance.
PangoFontDescription * gobj ()
 Provides access to the underlying C instance.
PangoFontDescription * gobj_copy () const
 Provides access to the underlying C instance. The caller is responsible for freeing it. Use when directly setting fields in structs.
guint hash () const
void merge (const FontDescription &desc_to_merge, bool replace_existing)
FontDescriptionoperator= (const FontDescription &other)
void set_family (const Glib::ustring &family)
void set_size (int size)
void set_stretch (Stretch stretch)
void set_style (Style style)
void set_variant (Variant variant)
void set_weight (Weight weight)
void swap (FontDescription &other)
Glib::ustring to_filename () const
Glib::ustring to_string () const
void unset_fields (FontMask to_unset)

Static Public Member Functions

static GType get_type () G_GNUC_CONST

Protected Attributes

PangoFontDescription * gobject_

Related Functions

(Note that these are not member functions.)

bool operator!= (const FontDescription &lhs, const FontDescription &rhs)
bool operator== (const FontDescription &lhs, const FontDescription &rhs)
void swap (FontDescription &lhs, FontDescription &rhs)
Pango::FontDescription wrap (PangoFontDescription *object, bool take_copy=false)

The documentation for this class was generated from the following files:

Generated by  Doxygen 1.6.0   Back to index