1 // Generated by gtkmmproc -- DO NOT MODIFY!
4 #include <pangomm/glyph.h>
5 #include <pangomm/private/glyph_p.h>
8 * Copyright 2001 Free Software Foundation
10 * This library is free software; you can redistribute it and/or
11 * modify it under the terms of the GNU Library General Public
12 * License as published by the Free Software Foundation; either
13 * version 2 of the License, or (at your option) any later version.
15 * This library is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18 * Library General Public License for more details.
20 * You should have received a copy of the GNU Library General Public
21 * License along with this library; if not, write to the Free
22 * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
28 GlyphInfo::GlyphInfo()
34 GlyphGeometry::GlyphGeometry()
36 gobject_.width = gobject_.x_offset = gobject_.y_offset = 0;
39 GlyphGeometry::GlyphGeometry(const PangoGlyphGeometry* src)
41 gobject_.width = src->width;
42 gobject_.x_offset = src->x_offset;
43 gobject_.y_offset = src->y_offset;
47 /*GlyphVisAttr::GlyphVisAttr()
49 gobject_.is_cluster_start = 0;
52 GlyphVisAttr::GlyphVisAttr(const PangoGlyphVisAttr* src)
54 gobject_.is_cluster_start = src->is_cluster_start;
63 Pango::GlyphInfo& wrap(PangoGlyphInfo* object)
65 return *reinterpret_cast<Pango::GlyphInfo*>(object);
68 const Pango::GlyphInfo& wrap(const PangoGlyphInfo* object)
70 return *reinterpret_cast<const Pango::GlyphInfo*>(object);
73 Pango::GlyphGeometry& wrap(PangoGlyphGeometry* object)
75 return *reinterpret_cast<Pango::GlyphGeometry*>(object);
78 const Pango::GlyphGeometry& wrap(const PangoGlyphGeometry* object)
80 return *reinterpret_cast<const Pango::GlyphGeometry*>(object);
83 /*Pango::GlyphVisAttr& wrap(PangoGlyphVisAttr* object)
85 return *reinterpret_cast<Pango::GlyphVisAttr*>(object);
88 const Pango::GlyphVisAttr& wrap(const PangoGlyphVisAttr* object)
90 return *reinterpret_cast<const Pango::GlyphVisAttr*>(object);
97 } // anonymous namespace
104 Glyph GlyphInfo::get_glyph() const
106 return gobj()->glyph;
109 GlyphGeometry GlyphInfo::get_geometry() const
111 return GlyphGeometry(&(gobj()->geometry));
114 GlyphVisAttr GlyphInfo::get_attr() const
127 GlyphUnit GlyphGeometry::get_width() const
129 return gobj()->width;
132 GlyphUnit GlyphGeometry::get_x_offset() const
134 return gobj()->x_offset;
137 GlyphUnit GlyphGeometry::get_y_offset() const
139 return gobj()->y_offset;