pangomm 2.52.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
 
PangoCairoFontMap * gobj ()
 Provides access to the underlying C GObject. More...
 
const PangoCairoFontMap * gobj () const
 Provides access to the underlying C GObject. More...
 
void set_default ()
 Sets a default Pango::CairoFontMap to use with Cairo. More...
 
Cairo::FontType get_font_type () const
 Gets the type of Cairo font backend that fontmap uses. More...
 
void set_resolution (double dpi)
 Sets the resolution for the fontmap. More...
 
double get_resolution () const
 Gets the resolution for the fontmap. More...
 
- Public Member Functions inherited from Pango::FontMap
 FontMap (FontMap && src) noexcept
 
FontMapoperator= (FontMap && src) noexcept
 
 ~FontMap () noexcept override
 
PangoFontMap * gobj ()
 Provides access to the underlying C GObject. More...
 
const PangoFontMap * gobj () const
 Provides access to the underlying C GObject. More...
 
PangoFontMap * gobj_copy ()
 Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs. More...
 
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. More...
 
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. More...
 
Glib::RefPtr< Contextcreate_context ()
 Creates a Pango::Context connected to fontmap. More...
 
std::vector< Glib::RefPtr< FontFamily > > list_families () const
 List all families for the fontmap. More...
 
guint get_serial () const
 Returns the current serial number of fontmap. More...
 
Glib::RefPtr< FontFamilyget_family (const Glib::ustring & name)
 Gets a font family by name. More...
 
Glib::RefPtr< const FontFamilyget_family (const Glib::ustring & name) const
 Gets a font family by name. More...
 
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. More...
 
Glib::PropertyProxy_ReadOnly< GType > property_item_type () const
 The type of items contained in this list. More...
 
Glib::PropertyProxy_ReadOnly< unsigned int > property_n_items () const
 The number of items contained in this list. More...
 

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. More...
 
static Glib::RefPtr< FontMapget_default ()
 Gets a default Pango::CairoFontMap to use with Cairo. More...
 
- 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. More...
 
- Protected Member Functions inherited from Pango::CairoFontMap
 CairoFontMap ()
 You should derive from this class to use it. More...
 

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