add new sigc++2 directory
[ardour.git] / libs / gtkmm2 / pango / pangomm / glyph.cc
1 // Generated by gtkmmproc -- DO NOT MODIFY!
2
3
4 #include <pangomm/glyph.h>
5 #include <pangomm/private/glyph_p.h>
6
7 /*
8  * Copyright 2001      Free Software Foundation
9  *
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.
14  *
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.
19  *
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.
23  */
24
25 namespace Pango
26 {
27
28 GlyphInfo::GlyphInfo()
29 {
30   gobject_.glyph = 0;
31 }
32
33
34 GlyphGeometry::GlyphGeometry()
35 {
36   gobject_.width = gobject_.x_offset = gobject_.y_offset = 0;
37 }
38
39 GlyphGeometry::GlyphGeometry(const PangoGlyphGeometry* src)
40 {
41   gobject_.width = src->width;
42   gobject_.x_offset = src->x_offset;
43   gobject_.y_offset = src->y_offset;
44 }
45
46
47 /*GlyphVisAttr::GlyphVisAttr()
48 {
49   gobject_.is_cluster_start = 0;
50 }
51
52 GlyphVisAttr::GlyphVisAttr(const PangoGlyphVisAttr* src)
53 {
54   gobject_.is_cluster_start = src->is_cluster_start;
55 }*/
56
57 } //namespace Pango
58
59
60 namespace Glib
61 {
62
63 Pango::GlyphInfo& wrap(PangoGlyphInfo* object)
64 {
65   return *reinterpret_cast<Pango::GlyphInfo*>(object);
66 }
67
68 const Pango::GlyphInfo& wrap(const PangoGlyphInfo* object)
69 {
70   return *reinterpret_cast<const Pango::GlyphInfo*>(object);
71 }
72
73 Pango::GlyphGeometry& wrap(PangoGlyphGeometry* object)
74 {
75   return *reinterpret_cast<Pango::GlyphGeometry*>(object);
76 }
77
78 const Pango::GlyphGeometry& wrap(const PangoGlyphGeometry* object)
79 {
80   return *reinterpret_cast<const Pango::GlyphGeometry*>(object);
81 }
82
83 /*Pango::GlyphVisAttr& wrap(PangoGlyphVisAttr* object)
84 {
85   return *reinterpret_cast<Pango::GlyphVisAttr*>(object);
86 }
87
88 const Pango::GlyphVisAttr& wrap(const PangoGlyphVisAttr* object)
89 {
90   return *reinterpret_cast<const Pango::GlyphVisAttr*>(object);
91 }*/
92
93 } //namespace Glib
94
95 namespace
96 {
97 } // anonymous namespace
98
99
100 namespace Pango
101 {
102
103
104  Glyph GlyphInfo::get_glyph() const
105 {
106   return gobj()->glyph;
107 }
108  
109  GlyphGeometry GlyphInfo::get_geometry() const
110 {
111   return GlyphGeometry(&(gobj()->geometry));
112 }
113  
114  GlyphVisAttr GlyphInfo::get_attr() const
115 {
116   return gobj()->attr;
117 }
118  
119
120 } // namespace Pango
121
122
123 namespace Pango
124 {
125
126
127  GlyphUnit GlyphGeometry::get_width() const
128 {
129   return gobj()->width;
130 }
131  
132  GlyphUnit GlyphGeometry::get_x_offset() const
133 {
134   return gobj()->x_offset;
135 }
136  
137  GlyphUnit GlyphGeometry::get_y_offset() const
138 {
139   return gobj()->y_offset;
140 }
141  
142
143 } // namespace Pango
144
145