/usr/include/pangomm-1.4/pangomm/glyph.h is in libpangomm-1.4-dev 2.34.0-1.1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 | // -*- c++ -*-
// Generated by gtkmmproc -- DO NOT MODIFY!
#ifndef _PANGOMM_GLYPH_H
#define _PANGOMM_GLYPH_H
#include <glibmm/ustring.h>
#include <sigc++/sigc++.h>
/* glyph.h
*
* Copyright (C) 1998-1999 The gtkmm Development Team
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 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
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
#include <pango/pango-glyph.h>
namespace Pango
{
class GlyphInfo;
class GlyphGeometry;
/** A Pango::Glyph represents a single glyph in the output form of a string.
*/
typedef PangoGlyph Glyph; //This is defined as a guint32
/** A Pango::GlyphUnit is used to store dimensions within Pango. Dimensions are stored in 1/64ths of a point.
*/
typedef PangoGlyphUnit GlyphUnit;
/** A Pango::GlyphVisAttr is used to communicate information between the shaping phase and the rendering phase. It's contents are still evolving.
*/
typedef PangoGlyphVisAttr GlyphVisAttr;
/** A Pango::GlyphInfo represents a single glyph together with positioning information and visual attributes.
*/
class GlyphInfo
{
public:
#ifndef DOXYGEN_SHOULD_SKIP_THIS
typedef GlyphInfo CppObjectType;
typedef PangoGlyphInfo BaseObjectType;
#endif /* DOXYGEN_SHOULD_SKIP_THIS */
private:
public:
GlyphInfo();
/** Gets the glyph itself.
* @return The glyph.
*/
Glyph get_glyph() const;
/** Gets the positional information about the glyph.
* @return A GylphGeometry object.
*/
GlyphGeometry get_geometry() const;
/** Gets the visual attributes of the glyph.
* @return A GlyphVisAttr structure.
*/
GlyphVisAttr get_attr() const;
//I don't think that we need these set_* functions!
//TODO: Who wrote this comment? Investigate. murrayc.
/* Sets the glyph itself.
* @param glyph The new glyph.
*/
// _MEMBER_SET(glyph, glyph, Glyph, PangoGlyph)
/* Sets the positional information about the glyph.
* @param geometry A GlyphGeometry object.
*/
// _MEMBER_SET(geometry, geometry, GlyphGeometry, PangoGlyphGeometry)
/* Sets the visual attributes of the glyph.
* @param attr A GylphVisAttr structure.
*/
// _MEMBER_SET(attr, attr, GlyphVisAttr, PangoGlyphVisAttr)
/// Provides access to the underlying C GObject.
PangoGlyphInfo* gobj() { return &gobject_; }
/// Provides access to the underlying C GObject.
const PangoGlyphInfo* gobj() const { return &gobject_; }
protected:
PangoGlyphInfo gobject_;
};
/** A Pango::GlyphGeometry contains width and positioning information for a single glyph. Distances are in 1/64ths of a point.
*/
class GlyphGeometry
{
public:
#ifndef DOXYGEN_SHOULD_SKIP_THIS
typedef GlyphGeometry CppObjectType;
typedef PangoGlyphGeometry BaseObjectType;
#endif /* DOXYGEN_SHOULD_SKIP_THIS */
private:
public:
GlyphGeometry();
explicit GlyphGeometry(const PangoGlyphGeometry* src);
/** Gets the logical width to use for the character.
* @return The logical width.
*/
GlyphUnit get_width() const;
/** Gets the horizontal offset from nominal character position.
* @return The horizontal offset.
*/
GlyphUnit get_x_offset() const;
/** Gets the vertical offset from nominal character position.
* @return The vertical offset.
*/
GlyphUnit get_y_offset() const;
//I don't think that we need these set_* functions!
/* Sets the logical width to use for the character.
* @param width The new logical width.
*/
// _MEMBER_SET(width, width, GlyphUnit, PangoGlyphUnit)
/* Sets the horizontal offset from nominal character position.
* @param x_offset The new horizontal offset.
*/
// _MEMBER_SET(x_offset, x_offset, GlyphUnit, PangoGlyphUnit)
/* Sets the vertical offset from nominal character position.
* @param y_offset The new vertical offset.
*/
// _MEMBER_SET(y_offset, y_offset, GlyphUnit, PangoGlyphUnit)
PangoGlyphGeometry* gobj() { return &gobject_; }
const PangoGlyphGeometry* gobj() const { return &gobject_; }
protected:
PangoGlyphGeometry gobject_;
};
/* Since "the contents [of this struct] are still evolving" it might get necessary
* to create a wrapper class for PangoGlyphVisAttr in future. Currently, however,
* PangoGlyphVisAttr just contains one simple data field (guint is_cluster_start).
*/
/*class GlyphVisAttr
{
_CLASS_GENERIC(GlyphVisAttr, PangoGlyphVisAttr)
public:
GlyphVisAttr();
explicit GlyphVisAttr(const PangoGlyphVisAttr* src);
_MEMBER_GET(cluster_start, is_cluster_start, bool, guint)
_MEMBER_SET(cluster_start, is_cluster_start, bool, guint)
/// Provides access to the underlying C GObject.
PangoGlyphVisAttr* gobj() { return &gobject_; }
/// Provides access to the underlying C GObject.
const PangoGlyphVisAttr* gobj() const { return &gobject_; }
protected:
PangoGlyphVisAttr gobject_;
};*/
} //namespace Pango
namespace Glib
{
/** @relates Pango::GlyphInfo */
Pango::GlyphInfo& wrap(PangoGlyphInfo* object);
/** @relates Pango::GlyphInfo */
const Pango::GlyphInfo& wrap(const PangoGlyphInfo* object);
/** @relates Pango::GlyphGeometry */
Pango::GlyphGeometry& wrap(PangoGlyphGeometry* object);
/** @relates Pango::GlyphGeometry */
const Pango::GlyphGeometry& wrap(const PangoGlyphGeometry* object);
/* @relates Pango::GlyphVisAttr */
//Pango::GlyphVisAttr& wrap(PangoGlyphVisAttr* object);
/* @relates Pango::GlyphVisAttr */
//const Pango::GlyphVisAttr& wrap(const PangoGlyphVisAttr* object);
} //namespace Glib
#endif /* _PANGOMM_GLYPH_H */
|