pangomm 2.54.0
Public Member Functions | List of all members
Pango::CairoFontMapImpl Class Reference

Gdk::CairoFontMapImpl is a Pango::FontMap that implements the Pango::CairoFontMap interface. More...

#include <pangomm/cairofontmapimpl.h>

Inheritance diagram for Pango::CairoFontMapImpl:
Inheritance graph
[legend]

Public Member Functions

 CairoFontMapImpl (CairoFontMapImpl &&src) noexcept
 
CairoFontMapImploperator= (CairoFontMapImpl &&src) noexcept
 
 ~CairoFontMapImpl () noexcept override
 
- Public Member Functions inherited from Pango::CairoFontMap
 CairoFontMap (CairoFontMap &&src) noexcept
 
CairoFontMapoperator= (CairoFontMap &&src) noexcept
 
 ~CairoFontMap () noexcept override
 
PangoCairoFontMapgobj ()
 Provides access to the underlying C GObject.
 
const PangoCairoFontMapgobj () const
 Provides access to the underlying C GObject.
 
void set_default ()
 Sets a default Pango::CairoFontMap to use with Cairo.
 
Cairo::FontType get_font_type () const
 Gets the type of Cairo font backend that fontmap uses.
 
void set_resolution (double dpi)
 Sets the resolution for the fontmap.
 
double get_resolution () const
 Gets the resolution for the fontmap.
 
- Public Member Functions inherited from Pango::FontMap
 FontMap (FontMap &&src) noexcept
 
FontMapoperator= (FontMap &&src) noexcept
 
 ~FontMap () noexcept override
 
PangoFontMapgobj ()
 Provides access to the underlying C GObject.
 
const PangoFontMapgobj () const
 Provides access to the underlying C GObject.
 
PangoFontMapgobj_copy ()
 Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs.
 
Glib::RefPtr< Fontload_font (const Glib::RefPtr< Context > &context, const FontDescription &desc) const
 Load the font in the fontmap that is the closest match for desc.
 
Glib::RefPtr< Fontsetload_fontset (const Glib::RefPtr< Context > &context, const FontDescription &desc, const Language &language) const
 Load a set of fonts in the fontmap that can be used to render a font matching desc.
 
Glib::RefPtr< Contextcreate_context ()
 Creates a Pango::Context connected to fontmap.
 
std::vector< Glib::RefPtr< FontFamily > > list_families () const
 List all families for the fontmap.
 
guint get_serial () const
 Returns the current serial number of fontmap.
 
Glib::RefPtr< FontFamilyget_family (const Glib::ustring & name)
 Gets a font family by name.
 
Glib::RefPtr< const FontFamilyget_family (const Glib::ustring & name) const
 Gets a font family by name.
 
Glib::RefPtr< Fontreload_font (const Glib::RefPtr< Font > &font, double scale, const Glib::RefPtr< Context > &context={}, const Glib::ustring &variations={}) const
 Returns a new font that is like font, except that its size is multiplied by scale, its backend-dependent configuration (e.g. cairo font options) is replaced by the one in context, and its variations are replaced by variations.
 
Glib::PropertyProxy_ReadOnly< GTypeproperty_item_type () const
 The type of items contained in this list.
 
Glib::PropertyProxy_ReadOnly< unsigned intproperty_n_items () const
 The number of items contained in this list.
 

Additional Inherited Members

- Static Public Member Functions inherited from Pango::CairoFontMap
static void add_interface (GType gtype_implementer)
 
static GType get_type ()
 Get the GType for this class, for use with the underlying GObject type system.
 
static Glib::RefPtr< FontMapget_default ()
 Gets a default Pango::CairoFontMap to use with Cairo.
 
- Static Public Member Functions inherited from Pango::FontMap
static GType get_type ()
 Get the GType for this class, for use with the underlying GObject type system.
 
- Protected Member Functions inherited from Pango::CairoFontMap
 CairoFontMap ()
 You should derive from this class to use it.
 

Detailed Description

Gdk::CairoFontMapImpl is a Pango::FontMap that implements the Pango::CairoFontMap interface.

The PangoCairoFontMap interface can be implemented by C classes that derive from PangoFontMap. No public Pango class implements PangoCairoFontMap. Some Pango functions, such as pango_cairo_font_map_get_default(), return an object of a class which is derived from PangoFontMap and implements PangoCairoFontMap. Since that C class is not public, it's not wrapped in a C++ class. A C object of such a class can be wrapped in a Pango::CairoFontMapImpl object. Pango::CairoFontMapImpl does not directly correspond to any Pango class.

This class is intended only for wrapping C objects returned from Pango functions.

See also
Pango::CairoFontMap::get_default()
Since pangomm 2.50:

Constructor & Destructor Documentation

◆ CairoFontMapImpl()

Pango::CairoFontMapImpl::CairoFontMapImpl ( CairoFontMapImpl &&  src)
noexcept

◆ ~CairoFontMapImpl()

Pango::CairoFontMapImpl::~CairoFontMapImpl ( )
overridenoexcept

Member Function Documentation

◆ operator=()

CairoFontMapImpl & Pango::CairoFontMapImpl::operator= ( CairoFontMapImpl &&  src)
noexcept