add new sigc++2 directory
[ardour.git] / libs / gtkmm2 / pango / src / fontface.hg
1 /* $Id: fontface.hg,v 1.3 2004/03/03 01:07:40 murrayc Exp $ */
2
3 /* fontface.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 <pangomm/fontdescription.h>
25 #include <pango/pango-font.h>
26
27 _DEFS(pangomm,pango)
28 _PINCLUDE(glibmm/private/object_p.h)
29
30 namespace Pango
31 {
32
33 /** A Pango::FontFace is used to represent a group of fonts with the same family, slant, weight, width, but varying sizes.
34  */
35 class FontFace : public Glib::Object
36 {
37    _CLASS_GOBJECT(FontFace, PangoFontFace, PANGO_FONT_FACE, Glib::Object, GObject)
38
39 public:
40   _WRAP_METHOD(FontDescription describe() const, pango_font_face_describe)
41   _WRAP_METHOD(Glib::ustring get_name() const, pango_font_face_get_face_name)
42
43   /** List the available sizes for a font. This is only applicable to bitmap fonts. 
44    * For scalable fonts this returns an empty array. 
45    * The sizes returned are in Pango units and are sorted in ascending order.
46    */
47   Glib::ArrayHandle<int> list_sizes() const;
48   _IGNORE(pango_font_face_list_sizes)
49
50   _WRAP_METHOD(bool is_synthesized() const, pango_font_face_is_synthesized)
51   
52 protected:
53   //We can't wrap the virtual functions because PangoFontFace has a hidden class.
54   //We probably don't need to subclass this anyway.
55   //_WRAP_VFUNC(const char* get_name() const, "get_face_name")
56   //_WRAP_VFUNC(PangoFontDescription* describe(), "describe")
57 };
58
59 } /* namespace Pango */
60