Blame pango/pangomm/glyph.h

Packit 78284e
// Generated by gmmproc 2.49.5 -- DO NOT MODIFY!
Packit 78284e
#ifndef _PANGOMM_GLYPH_H
Packit 78284e
#define _PANGOMM_GLYPH_H
Packit 78284e
Packit 78284e
Packit 78284e
#include <glibmm/ustring.h>
Packit 78284e
#include <sigc++/sigc++.h>
Packit 78284e
Packit 78284e
/* glyph.h
Packit 78284e
 *
Packit 78284e
 * Copyright (C) 1998-1999 The gtkmm Development Team
Packit 78284e
 *
Packit 78284e
 * This library is free software; you can redistribute it and/or
Packit 78284e
 * modify it under the terms of the GNU Lesser General Public
Packit 78284e
 * License as published by the Free Software Foundation; either
Packit 78284e
 * version 2.1 of the License, or (at your option) any later version.
Packit 78284e
 *
Packit 78284e
 * This library is distributed in the hope that it will be useful,
Packit 78284e
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit 78284e
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Packit 78284e
 * Lesser General Public License for more details.
Packit 78284e
 *
Packit 78284e
 * You should have received a copy of the GNU Lesser General Public
Packit 78284e
 * License along with this library; if not, write to the Free
Packit 78284e
 * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
Packit 78284e
 */
Packit 78284e
Packit 78284e
#include <pango/pango-glyph.h>
Packit 78284e
Packit 78284e
Packit 78284e
namespace Pango
Packit 78284e
{
Packit 78284e
Packit 78284e
class GlyphInfo;
Packit 78284e
class GlyphGeometry;
Packit 78284e
Packit 78284e
Packit 78284e
/** A Pango::Glyph represents a single glyph in the output form of a string.
Packit 78284e
 */
Packit 78284e
typedef PangoGlyph Glyph; //This is defined as a guint32
Packit 78284e
Packit 78284e
Packit 78284e
/** A Pango::GlyphUnit is used to store dimensions within Pango. Dimensions are stored in 1/64ths of a point.
Packit 78284e
 */
Packit 78284e
typedef PangoGlyphUnit GlyphUnit;
Packit 78284e
Packit 78284e
Packit 78284e
/** A Pango::GlyphVisAttr is used to communicate information between the shaping phase and the rendering phase. It's contents are still evolving.
Packit 78284e
 */
Packit 78284e
typedef PangoGlyphVisAttr GlyphVisAttr;
Packit 78284e
Packit 78284e
Packit 78284e
/** A Pango::GlyphInfo represents a single glyph together with positioning information and visual attributes.
Packit 78284e
 */
Packit 78284e
class GlyphInfo
Packit 78284e
{
Packit 78284e
  public:
Packit 78284e
#ifndef DOXYGEN_SHOULD_SKIP_THIS
Packit 78284e
  using CppObjectType = GlyphInfo;
Packit 78284e
  using BaseObjectType = PangoGlyphInfo;
Packit 78284e
#endif /* DOXYGEN_SHOULD_SKIP_THIS */
Packit 78284e
Packit 78284e
private:
Packit 78284e
Packit 78284e
Packit 78284e
public:
Packit 78284e
  GlyphInfo();
Packit 78284e
Packit 78284e
  /** Gets the glyph itself.
Packit 78284e
   * @return The glyph.
Packit 78284e
   */
Packit 78284e
  Glyph get_glyph() const;
Packit 78284e
Packit 78284e
  /** Gets the positional information about the glyph.
Packit 78284e
   * @return A GylphGeometry object.
Packit 78284e
   */
Packit 78284e
  GlyphGeometry get_geometry() const;
Packit 78284e
Packit 78284e
  /** Gets the visual attributes of the glyph.
Packit 78284e
   * @return A GlyphVisAttr structure.
Packit 78284e
   */
Packit 78284e
  GlyphVisAttr get_attr() const;
Packit 78284e
Packit 78284e
//I don't think that we need these set_* functions!
Packit 78284e
//TODO: Who wrote this comment? Investigate. murrayc.
Packit 78284e
  /* Sets the glyph itself.
Packit 78284e
   * @param glyph The new glyph.
Packit 78284e
   */
Packit 78284e
//  _MEMBER_SET(glyph, glyph, Glyph, PangoGlyph)
Packit 78284e
Packit 78284e
  /* Sets the positional information about the glyph.
Packit 78284e
   * @param geometry A GlyphGeometry object.
Packit 78284e
   */
Packit 78284e
//  _MEMBER_SET(geometry, geometry, GlyphGeometry, PangoGlyphGeometry)
Packit 78284e
Packit 78284e
  /* Sets the visual attributes of the glyph.
Packit 78284e
   * @param attr A GylphVisAttr structure.
Packit 78284e
   */
Packit 78284e
//  _MEMBER_SET(attr, attr, GlyphVisAttr, PangoGlyphVisAttr)
Packit 78284e
Packit 78284e
  /// Provides access to the underlying C GObject.
Packit 78284e
  PangoGlyphInfo*       gobj()       { return &gobject_; }
Packit 78284e
  /// Provides access to the underlying C GObject.
Packit 78284e
  const PangoGlyphInfo* gobj() const { return &gobject_; }
Packit 78284e
Packit 78284e
protected:
Packit 78284e
  PangoGlyphInfo gobject_;
Packit 78284e
Packit 78284e
Packit 78284e
};
Packit 78284e
Packit 78284e
Packit 78284e
/** A Pango::GlyphGeometry contains width and positioning information for a single glyph. Distances are in 1/64ths of a point.
Packit 78284e
 */
Packit 78284e
class GlyphGeometry
Packit 78284e
{
Packit 78284e
  public:
Packit 78284e
#ifndef DOXYGEN_SHOULD_SKIP_THIS
Packit 78284e
  using CppObjectType = GlyphGeometry;
Packit 78284e
  using BaseObjectType = PangoGlyphGeometry;
Packit 78284e
#endif /* DOXYGEN_SHOULD_SKIP_THIS */
Packit 78284e
Packit 78284e
private:
Packit 78284e
Packit 78284e
Packit 78284e
public:
Packit 78284e
  GlyphGeometry();
Packit 78284e
  explicit GlyphGeometry(const PangoGlyphGeometry* src);
Packit 78284e
Packit 78284e
  /** Gets the logical width to use for the character.
Packit 78284e
   * @return The logical width.
Packit 78284e
   */
Packit 78284e
  GlyphUnit get_width() const;
Packit 78284e
Packit 78284e
  /** Gets the horizontal offset from nominal character position.
Packit 78284e
   * @return The horizontal offset.
Packit 78284e
   */
Packit 78284e
  GlyphUnit get_x_offset() const;
Packit 78284e
Packit 78284e
  /** Gets the vertical offset from nominal character position.
Packit 78284e
   * @return The vertical offset.
Packit 78284e
   */
Packit 78284e
  GlyphUnit get_y_offset() const;
Packit 78284e
Packit 78284e
//I don't think that we need these set_* functions!
Packit 78284e
  /* Sets the logical width to use for the character.
Packit 78284e
   * @param width The new logical width.
Packit 78284e
   */
Packit 78284e
//  _MEMBER_SET(width, width, GlyphUnit, PangoGlyphUnit)
Packit 78284e
Packit 78284e
  /* Sets the horizontal offset from nominal character position.
Packit 78284e
   * @param x_offset The new horizontal offset.
Packit 78284e
   */
Packit 78284e
//  _MEMBER_SET(x_offset, x_offset, GlyphUnit, PangoGlyphUnit)
Packit 78284e
Packit 78284e
  /* Sets the vertical offset from nominal character position.
Packit 78284e
   * @param y_offset The new vertical offset.
Packit 78284e
   */
Packit 78284e
//  _MEMBER_SET(y_offset, y_offset, GlyphUnit, PangoGlyphUnit)
Packit 78284e
Packit 78284e
  PangoGlyphGeometry*       gobj()       { return &gobject_; }
Packit 78284e
  const PangoGlyphGeometry* gobj() const { return &gobject_; }
Packit 78284e
Packit 78284e
protected:
Packit 78284e
  PangoGlyphGeometry gobject_;
Packit 78284e
Packit 78284e
Packit 78284e
};
Packit 78284e
Packit 78284e
Packit 78284e
/* Since "the contents [of this struct] are still evolving" it might get necessary
Packit 78284e
 * to create a wrapper class for PangoGlyphVisAttr in future. Currently, however,
Packit 78284e
 * PangoGlyphVisAttr just contains one simple data field (guint is_cluster_start).
Packit 78284e
 */
Packit 78284e
/*class GlyphVisAttr
Packit 78284e
{
Packit 78284e
  _CLASS_GENERIC(GlyphVisAttr, PangoGlyphVisAttr)
Packit 78284e
Packit 78284e
public:
Packit 78284e
  GlyphVisAttr();
Packit 78284e
  explicit GlyphVisAttr(const PangoGlyphVisAttr* src);
Packit 78284e
Packit 78284e
  _MEMBER_GET(cluster_start, is_cluster_start, bool, guint)
Packit 78284e
Packit 78284e
  _MEMBER_SET(cluster_start, is_cluster_start, bool, guint)
Packit 78284e
Packit 78284e
  /// Provides access to the underlying C GObject.
Packit 78284e
  PangoGlyphVisAttr*       gobj()       { return &gobject_; }
Packit 78284e
  /// Provides access to the underlying C GObject.
Packit 78284e
  const PangoGlyphVisAttr* gobj() const { return &gobject_; }
Packit 78284e
Packit 78284e
protected:
Packit 78284e
  PangoGlyphVisAttr gobject_;
Packit 78284e
};*/
Packit 78284e
Packit 78284e
} //namespace Pango
Packit 78284e
Packit 78284e
Packit 78284e
namespace Glib
Packit 78284e
{
Packit 78284e
Packit 78284e
/** @relates Pango::GlyphInfo */
Packit 78284e
Pango::GlyphInfo& wrap(PangoGlyphInfo* object);
Packit 78284e
Packit 78284e
/** @relates Pango::GlyphInfo */
Packit 78284e
const Pango::GlyphInfo& wrap(const PangoGlyphInfo* object);
Packit 78284e
Packit 78284e
/** @relates Pango::GlyphGeometry */
Packit 78284e
Pango::GlyphGeometry& wrap(PangoGlyphGeometry* object);
Packit 78284e
Packit 78284e
/** @relates Pango::GlyphGeometry */
Packit 78284e
const Pango::GlyphGeometry& wrap(const PangoGlyphGeometry* object);
Packit 78284e
Packit 78284e
/* @relates Pango::GlyphVisAttr */
Packit 78284e
//Pango::GlyphVisAttr& wrap(PangoGlyphVisAttr* object);
Packit 78284e
Packit 78284e
/* @relates Pango::GlyphVisAttr */
Packit 78284e
//const Pango::GlyphVisAttr& wrap(const PangoGlyphVisAttr* object);
Packit 78284e
Packit 78284e
} //namespace Glib
Packit 78284e
Packit 78284e
Packit 78284e
#endif /* _PANGOMM_GLYPH_H */
Packit 78284e