![]() |
![]() |
Public Types | |
typedef sigc::slot< bool, const Glib::RefPtr<Font >&> | ForeachSlot |
For instance, bool on_foreach(const Glib::RefPtr<Pango::Font>& font);. | |
Public Member Functions | |
void | foreach (const ForeachSlot& slot) |
Iterates through all the fonts in a fontset, calling slot for each one. | |
Glib::RefPtr<Font> | get_font (guint wc) const |
Returns the font in the fontset that contains the best glyph for the unicode character wc. | |
FontMetrics | get_metrics () const |
Get overall metric information for the fonts in the fontset. | |
const PangoFontset* | gobj () const |
Provides access to the underlying C GObject. | |
PangoFontset* | gobj () |
Provides access to the underlying C GObject. | |
PangoFontset* | gobj_copy () |
Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs. | |
virtual | ~Fontset () |
Related Functions | |
(Note that these are not member functions.) | |
Glib::RefPtr<Pango::Fontset> | wrap (PangoFontset* object, bool take_copy=false) |
A Glib::wrap() method for this object. |
typedef sigc::slot<bool, const Glib::RefPtr<Font>&> Pango::Fontset::ForeachSlot |
For instance, bool on_foreach(const Glib::RefPtr<Pango::Font>& font);.
virtual Pango::Fontset::~Fontset | ( | ) | [virtual] |
void Pango::Fontset::foreach | ( | const ForeachSlot& | slot | ) |
Iterates through all the fonts in a fontset, calling slot for each one.
If slot returns true, that stops the iteration.
slot | Callback function |
Glib::RefPtr<Font> Pango::Fontset::get_font | ( | guint | wc | ) | const |
Returns the font in the fontset that contains the best glyph for the unicode character wc.
wc | A unicode character. |
FontMetrics Pango::Fontset::get_metrics | ( | ) | const |
Get overall metric information for the fonts in the fontset.
const PangoFontset* Pango::Fontset::gobj | ( | ) | const [inline] |
PangoFontset* Pango::Fontset::gobj | ( | ) | [inline] |
PangoFontset* Pango::Fontset::gobj_copy | ( | ) |
Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs.
Glib::RefPtr<Pango::Fontset> wrap | ( | PangoFontset * | object, | |
bool | take_copy = false | |||
) | [related] |
A Glib::wrap() method for this object.
object | The C instance. | |
take_copy | False if the result should take ownership of the C instance. True if it should take a new copy or ref. |