/* * Copyright 2001 Free Software Foundation * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public * License as published by the Free Software Foundation; either * version 2 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Library General Public License for more details. * * You should have received a copy of the GNU Library General Public * License along with this library; if not, write to the Free * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ namespace Pango { GlyphInfo::GlyphInfo() { gobject_.glyph = 0; } GlyphGeometry::GlyphGeometry() { gobject_.width = gobject_.x_offset = gobject_.y_offset = 0; } GlyphGeometry::GlyphGeometry(const PangoGlyphGeometry* src) { gobject_.width = src->width; gobject_.x_offset = src->x_offset; gobject_.y_offset = src->y_offset; } /*GlyphVisAttr::GlyphVisAttr() { gobject_.is_cluster_start = 0; } GlyphVisAttr::GlyphVisAttr(const PangoGlyphVisAttr* src) { gobject_.is_cluster_start = src->is_cluster_start; }*/ } //namespace Pango namespace Glib { Pango::GlyphInfo& wrap(PangoGlyphInfo* object) { return *reinterpret_cast(object); } const Pango::GlyphInfo& wrap(const PangoGlyphInfo* object) { return *reinterpret_cast(object); } Pango::GlyphGeometry& wrap(PangoGlyphGeometry* object) { return *reinterpret_cast(object); } const Pango::GlyphGeometry& wrap(const PangoGlyphGeometry* object) { return *reinterpret_cast(object); } /*Pango::GlyphVisAttr& wrap(PangoGlyphVisAttr* object) { return *reinterpret_cast(object); } const Pango::GlyphVisAttr& wrap(const PangoGlyphVisAttr* object) { return *reinterpret_cast(object); }*/ } //namespace Glib