|
Packit |
78284e |
/* $Id: fontmap.hg,v 1.2 2004/03/03 01:07:40 murrayc Exp $ */
|
|
Packit |
78284e |
|
|
Packit |
78284e |
/* fontmap.h
|
|
Packit |
78284e |
*
|
|
Packit |
78284e |
* Copyright 2001 The gtkmm Development Team
|
|
Packit |
78284e |
*
|
|
Packit |
78284e |
* This library is free software; you can redistribute it and/or
|
|
Packit |
78284e |
* modify it under the terms of the GNU Lesser General Public
|
|
Packit |
78284e |
* License as published by the Free Software Foundation; either
|
|
Packit |
78284e |
* version 2.1 of the License, or (at your option) any later version.
|
|
Packit |
78284e |
*
|
|
Packit |
78284e |
* This library is distributed in the hope that it will be useful,
|
|
Packit |
78284e |
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
Packit |
78284e |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
Packit |
78284e |
* Lesser General Public License for more details.
|
|
Packit |
78284e |
*
|
|
Packit |
78284e |
* You should have received a copy of the GNU Lesser General Public
|
|
Packit |
78284e |
* License along with this library; if not, write to the Free
|
|
Packit |
78284e |
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
|
Packit |
78284e |
*/
|
|
Packit |
78284e |
|
|
Packit |
78284e |
|
|
Packit |
78284e |
#include <glibmm/object.h>
|
|
Packit |
78284e |
#include <glibmm/arrayhandle.h>
|
|
Packit |
78284e |
#include <pangomm/font.h>
|
|
Packit |
78284e |
#include <pangomm/fontset.h>
|
|
Packit |
78284e |
#include <pangomm/fontfamily.h>
|
|
Packit |
78284e |
#include <pango/pango-fontmap.h>
|
|
Packit |
78284e |
|
|
Packit |
78284e |
_DEFS(pangomm,pango)
|
|
Packit |
78284e |
_PINCLUDE(glibmm/private/object_p.h)
|
|
Packit |
78284e |
|
|
Packit |
78284e |
namespace Pango
|
|
Packit |
78284e |
{
|
|
Packit |
78284e |
|
|
Packit |
78284e |
class Context;
|
|
Packit |
78284e |
|
|
Packit |
78284e |
/** A Pango::FontMap represents the set of fonts available for a particular rendering system.
|
|
Packit |
78284e |
*/
|
|
Packit |
78284e |
class FontMap : public Glib::Object
|
|
Packit |
78284e |
{
|
|
Packit |
78284e |
_CLASS_GOBJECT(FontMap, PangoFontMap, PANGO_FONT_MAP, Glib::Object, GObject)
|
|
Packit |
78284e |
_IGNORE(pango_font_map_list_families)
|
|
Packit |
78284e |
|
|
Packit |
78284e |
public:
|
|
Packit |
78284e |
_WRAP_METHOD(Glib::RefPtr<Font> load_font(const Glib::RefPtr<Context>& context, const FontDescription& desc) const, pango_font_map_load_font)
|
|
Packit |
78284e |
_WRAP_METHOD(Glib::RefPtr<Fontset> load_fontset(const Glib::RefPtr<Context>& context, const FontDescription& desc, const Language& language) const, pango_font_map_load_fontset)
|
|
Packit |
78284e |
|
|
Packit |
78284e |
_WRAP_METHOD(Glib::RefPtr<Context> create_context(), pango_font_map_create_context)
|
|
Packit |
78284e |
|
|
Packit |
78284e |
/** List all families for the fontmap.
|
|
Packit |
78284e |
* @return an array of pointers to Pango::FontFamily objects.
|
|
Packit |
78284e |
*/
|
|
Packit |
78284e |
Glib::ArrayHandle< Glib::RefPtr<FontFamily> > list_families() const;
|
|
Packit |
78284e |
|
|
Packit |
78284e |
_WRAP_METHOD(guint get_serial() const, pango_font_map_get_serial)
|
|
Packit |
78284e |
|
|
Packit |
78284e |
_IGNORE(pango_font_map_changed)
|
|
Packit |
78284e |
|
|
Packit |
78284e |
//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)
|
|
Packit |
78284e |
_IGNORE(pango_font_map_get_shape_engine_type)
|
|
Packit |
78284e |
};
|
|
Packit |
78284e |
|
|
Packit |
78284e |
} /* namespace Pango */
|
|
Packit |
78284e |
|