add new sigc++2 directory
[ardour.git] / libs / gtkmm2 / pango / src / fontmetrics.hg
1 /* $Id: fontmetrics.hg,v 1.2 2004/12/01 11:46:29 murrayc Exp $ */
2
3 /* fontmetrics.h
4  *
5  * Copyright (C) 1998-1999 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 #include <pango/pango-font.h>
23
24 _DEFS(pangomm,pango)
25
26 namespace Pango
27 {
28
29 /** A Pango::FontMetrics holds the overall metric information for a font (possibly restricted to a script).
30  */
31 class FontMetrics
32 {
33   _CLASS_BOXEDTYPE(FontMetrics, PangoFontMetrics, NONE, pango_font_metrics_ref, pango_font_metrics_unref)
34   _IGNORE(pango_font_metrics_unref, pango_font_metrics_ref)
35 public:
36   _WRAP_METHOD(int get_ascent() const, pango_font_metrics_get_ascent)
37   _WRAP_METHOD(int get_descent() const, pango_font_metrics_get_descent)
38   _WRAP_METHOD(int get_approximate_char_width() const, pango_font_metrics_get_approximate_char_width)
39   _WRAP_METHOD(int get_approximate_digit_width() const, pango_font_metrics_get_approximate_digit_width)
40
41   _WRAP_METHOD(int get_underline_position() const, pango_font_metrics_get_underline_position)
42   _WRAP_METHOD(int get_underline_thickness() const, pango_font_metrics_get_underline_thickness)
43   _WRAP_METHOD(int get_strikethrough_position() const, pango_font_metrics_get_strikethrough_position)
44   _WRAP_METHOD(int get_strikethrough_thickness() const, pango_font_metrics_get_strikethrough_thickness)
45
46 };
47
48 } //namespace Pango