logo top
Main Page   Widgets   Namespaces   Book  

Pango::FontDescription Class Reference

A Pango::FontDescription represents the description of an ideal font. More...

List of all members.

Public Member Functions

 FontDescription ()
 FontDescription (PangoFontDescription* gobject, bool make_a_copy=true)
 FontDescription (const FontDescription& other)
FontDescriptionoperator= (const FontDescription& other)
 ~FontDescription ()
void swap (FontDescription& other)
PangoFontDescription* gobj ()
 Provides access to the underlying C instance.

const PangoFontDescription* gobj () const
 Provides access to the underlying C instance.

PangoFontDescription* gobj_copy () const
 FontDescription (const Glib::ustring& font_name)
 Constructs a font description from a string representation.

guint hash () const
void set_family (const Glib::ustring& family)
Glib::ustring get_family () const
void set_style (Style style)
Style get_style () const
void set_variant (Variant variant)
Variant get_variant () const
void set_weight (Weight weight)
Weight get_weight () const
void set_stretch (Stretch stretch)
Stretch get_stretch () const
void set_size (int size)
int get_size () const
FontMask get_set_fields () const
void unset_fields (FontMask to_unset)
void merge (const FontDescription& desc_to_merge, bool replace_existing)
bool better_match (const FontDescription& old_match, const FontDescription& new_match) const
Glib::ustring to_string () const
Glib::ustring to_filename () 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)


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.


Constructor & Destructor Documentation

Pango::FontDescription::FontDescription (  ) 
 

Pango::FontDescription::FontDescription ( PangoFontDescription*  gobject,
bool  make_a_copy = true
[explicit]
 

Pango::FontDescription::FontDescription ( const FontDescription other  ) 
 

Pango::FontDescription::~FontDescription (  ) 
 

Pango::FontDescription::FontDescription ( const Glib::ustring font_name  )  [explicit]
 

Constructs a font description from a string representation.

font_name must have the form "[FAMILY-LIST] [STYLE-OPTIONS] [SIZE]", where FAMILY-LIST is a comma separated list of families optionally terminated by a comma, STYLE_OPTIONS is a whitespace separated list of words where each WORD describes one of style, variant, weight, or stretch, and SIZE is an decimal number (size in points). Any one of the options may be absent. If FAMILY-LIST is absent, then the family_name field of the resulting font description will be initialized to 0. If STYLE-OPTIONS is missing, then all style options will be set to the default values. If SIZE is missing, the size in the resulting font description will be set to 0.

Parameters:
font_name String representation of a font description.


Member Function Documentation

bool Pango::FontDescription::better_match ( const FontDescription old_match,
const FontDescription new_match
const
 

Glib::ustring Pango::FontDescription::get_family (  )  const
 

FontMask Pango::FontDescription::get_set_fields (  )  const
 

int Pango::FontDescription::get_size (  )  const
 

Stretch Pango::FontDescription::get_stretch (  )  const
 

Style Pango::FontDescription::get_style (  )  const
 

Variant Pango::FontDescription::get_variant (  )  const
 

Weight Pango::FontDescription::get_weight (  )  const
 

const PangoFontDescription* Pango::FontDescription::gobj (  )  const [inline]
 

Provides access to the underlying C instance.

PangoFontDescription* Pango::FontDescription::gobj (  )  [inline]
 

Provides access to the underlying C instance.

PangoFontDescription* Pango::FontDescription::gobj_copy (  )  const
 

guint Pango::FontDescription::hash (  )  const
 

void Pango::FontDescription::merge ( const FontDescription desc_to_merge,
bool  replace_existing
 

FontDescription& Pango::FontDescription::operator= ( const FontDescription other  ) 
 

void Pango::FontDescription::set_family ( const Glib::ustring family  ) 
 

void Pango::FontDescription::set_size ( int  size  ) 
 

void Pango::FontDescription::set_stretch ( Stretch  stretch  ) 
 

void Pango::FontDescription::set_style ( Style  style  ) 
 

void Pango::FontDescription::set_variant ( Variant  variant  ) 
 

void Pango::FontDescription::set_weight ( Weight  weight  ) 
 

void Pango::FontDescription::swap ( FontDescription other  ) 
 

Glib::ustring Pango::FontDescription::to_filename (  )  const
 

Glib::ustring Pango::FontDescription::to_string (  )  const
 

void Pango::FontDescription::unset_fields ( FontMask  to_unset  ) 
 


Friends And Related Function Documentation

bool operator!= ( const FontDescription lhs,
const FontDescription rhs
[related]
 

bool operator== ( const FontDescription lhs,
const FontDescription rhs
[related]
 

void swap ( FontDescription lhs,
FontDescription rhs
[related]
 

Pango::FontDescription wrap ( PangoFontDescription*  object,
bool  take_copy = false
[related]
 


Member Data Documentation

PangoFontDescription* Pango::FontDescription::gobject_ [protected]
 


The documentation for this class was generated from the following file:
Generated for gtkmm 2.2 by Doxygen 1.3.4 © 1997-2001