add new sigc++2 directory
[ardour.git] / libs / gtkmm2 / pango / src / fontmap.hg
1 /* $Id: fontmap.hg,v 1.2 2004/03/03 01:07:40 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 Library General Public
9  * License as published by the Free Software Foundation; either
10  * version 2 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  * Library General Public License for more details.
16  *
17  * You should have received a copy of the GNU Library 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
23 #include <glibmm/object.h>
24 #include <glibmm/arrayhandle.h>
25 #include <pangomm/font.h>
26 #include <pangomm/fontset.h>
27 #include <pangomm/fontfamily.h>
28 #include <pango/pango-fontmap.h>
29
30 _DEFS(pangomm,pango)
31 _PINCLUDE(glibmm/private/object_p.h)
32
33 namespace Pango
34 {
35
36 class Context;
37
38 /** A Pango::FontMap represents the set of fonts available for a particular rendering system.
39  */
40 class FontMap : public Glib::Object
41 {
42    _CLASS_GOBJECT(FontMap, PangoFontMap, PANGO_FONT_MAP, Glib::Object, GObject)
43    _IGNORE(pango_font_map_list_families)
44
45 public:
46   _WRAP_METHOD(Glib::RefPtr<Font> load_font(const Glib::RefPtr<Context>& context, const FontDescription& desc) const, pango_font_map_load_font)
47   _WRAP_METHOD(Glib::RefPtr<Fontset> load_fontset(const Glib::RefPtr<Context>& context, const FontDescription& desc, const Language& language) const, pango_font_map_load_fontset)
48
49   /** List all families for the fontmap.
50    * @return an array of pointers to Pango::FontFamily objects.
51    */
52   Glib::ArrayHandle< Glib::RefPtr<FontFamily> > list_families() const;
53
54   //This is not used unless ENABLE_BACKEND is defined: _WRAP_METHOD(Glib::ustring get_shape_engine_type() const, pango_font_map_get_shape_engine_type)
55   _IGNORE(pango_font_map_get_shape_engine_type)
56 };
57
58 } /* namespace Pango */
59