1/* $Id: cairofontmap.hg,v 1.1 2006/05/30 17:14:21 murrayc Exp $ */ 2 3/* fontmap.h 4 * 5 * Copyright 2001 The gtkmm Development Team 6 * 7 * This library is free software; you can redistribute it and/or 8 * modify it under the terms of the GNU Lesser General Public 9 * License as published by the Free Software Foundation; either 10 * version 2.1 of the License, or (at your option) any later version. 11 * 12 * This library is distributed in the hope that it will be useful, 13 * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 * Lesser General Public License for more details. 16 * 17 * You should have received a copy of the GNU Lesser General Public 18 * License along with this library; if not, write to the Free 19 * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 20 */ 21 22#include <glibmm/interface.h> 23#include <pangomm/context.h> 24#include <pango/pangocairo.h> 25 26_DEFS(pangomm,pango) 27_PINCLUDE(glibmm/private/interface_p.h) 28 29#ifndef DOXYGEN_SHOULD_SKIP_THIS 30typedef struct _PangoCairoFontMapIface PangoCairoFontMapIface; 31#endif 32 33namespace Pango 34{ 35 36class Context; 37 38/** A Pango::CairoFontMap represents the set of fonts available for a particular rendering system. 39 */ 40class CairoFontMap : public Glib::Interface 41{ 42 _CLASS_INTERFACE(CairoFontMap, PangoCairoFontMap, PANGO_CAIRO_FONT_MAP, PangoCairoFontMapIface) 43 44public: 45 //_WRAP_METHOD(static Glib::RefPtr<PangoFontMap> get_default(), pango_cairo_font_map_get_default) //TODO: ref this? 46 _WRAP_METHOD(void set_default(), pango_cairo_font_map_set_default) 47 48#m4 _CONVERSION(`cairo_font_type_t',`Cairo::FontType',`static_cast<Cairo::FontType>($3)') 49 _WRAP_METHOD(Cairo::FontType get_font_type() const, pango_cairo_font_map_get_font_type) 50 51 _WRAP_METHOD(void set_resolution(double dpi), pango_cairo_font_map_set_resolution) 52 _WRAP_METHOD(double get_resolution() const, pango_cairo_font_map_get_resolution) 53 54 // TODO: Remove this when we can break ABI. 55 _WRAP_METHOD_DOCS_ONLY(pango_cairo_font_map_create_context) 56 Glib::RefPtr<Context> create_context(); 57}; 58 59} // namespace Pango 60