// -*- c++ -*-
// Generated by gtkmmproc -- DO NOT MODIFY!
#ifndef _LIBGNOMEPRINTMM_FONT_H
#define _LIBGNOMEPRINTMM_FONT_H

#include <glibmm.h>

/* $Id: font.hg,v 1.1 2003/08/24 16:10:03 murrayc Exp $ */
// -*- C++ -*- // this is for the .hg, I realize gensig puts one in

/* Copyright 2003 gnome-vfsmm Development Team
 *
 * 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.
 */

#include <pangomm/font.h>
#include <pangomm/fontmap.h>
#include <glibmm/object.h>


#ifndef DOXYGEN_SHOULD_SKIP_THIS
typedef struct _GnomeFont GnomeFont;
typedef struct _GnomeFontClass GnomeFontClass;
#endif /* DOXYGEN_SHOULD_SKIP_THIS */


namespace Gnome
{

namespace Print
{ class Font_Class; } // namespace Print

} // namespace Gnome
namespace Gnome
{

namespace Print
{

/** @addtogroup libgnomeprintmmEnums Enums and Flags */

/**
 * @ingroup libgnomeprintmmEnums
 */
enum FontWeight
{
  FONT_LIGHTEST = 100,
  FONT_EXTRA_LIGHT = 100,
  FONT_THIN = 200,
  FONT_LIGHT = 300,
  FONT_BOOK = 400,
  FONT_REGULAR = 400,
  FONT_MEDIUM = 500,
  FONT_SEMI = 600,
  FONT_DEMI = 600,
  FONT_BOLD = 700,
  FONT_HEAVY = 900,
  FONT_EXTRABOLD = 900,
  FONT_BLACK = 1000,
  FONT_EXTRABLACK = 1100,
  FONT_HEAVIEST = 1100
};


class Font : public Glib::Object
{
  
#ifndef DOXYGEN_SHOULD_SKIP_THIS

public:
  typedef Font CppObjectType;
  typedef Font_Class CppClassType;
  typedef GnomeFont BaseObjectType;
  typedef GnomeFontClass BaseClassType;

private:  friend class Font_Class;
  static CppClassType font_class_;

private:
  // noncopyable
  Font(const Font&);
  Font& operator=(const Font&);

protected:
  explicit Font(const Glib::ConstructParams& construct_params);
  explicit Font(GnomeFont* castitem);

#endif /* DOXYGEN_SHOULD_SKIP_THIS */

public:
  virtual ~Font();

#ifndef DOXYGEN_SHOULD_SKIP_THIS
  static GType get_type()      G_GNUC_CONST;
  static GType get_base_type() G_GNUC_CONST;
#endif

  ///Provides access to the underlying C GObject.
  GnomeFont*       gobj()       { return reinterpret_cast<GnomeFont*>(gobject_); }

  ///Provides access to the underlying C GObject.
  const GnomeFont* gobj() const { return reinterpret_cast<GnomeFont*>(gobject_); }

  ///Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs.
  GnomeFont* gobj_copy();

private:

protected:
  //_CTOR_DEFAULT
  //_WRAP_CTOR(Font(const Glib::RefPtr<Config>& config), gnome_print_job_new)

public:
  // _WRAP_CREATE()

  
  Glib::ustring get_full_name() const;
  
  double get_ascender() const;
  
  double get_descender() const;
  
  double get_underline_position() const;
  
  double get_underline_thickness();


  static Glib::RefPtr<Font> find(const Glib::ustring& name, double size);
  
  static Glib::RefPtr<Font> find_closest(const Glib::ustring& name, double size);
  
  static Glib::RefPtr<Font> find(const Glib::ustring& string);
  
  static Glib::RefPtr<Font> find_closest(const Glib::ustring& string);
  
  static Glib::RefPtr<Font> find_closest(const Glib::ustring& family, FontWeight weight, bool italic, double size);


  Glib::RefPtr<Pango::Font> get_closest_pango_font(const Glib::RefPtr<Pango::FontMap>& map, double dpi) const;
 
  Pango::FontDescription get_pango_description(double dpi);


public:

public:
  //C++ methods used to invoke GTK+ virtual functions:

protected:
  //GTK+ Virtual Functions (override these to change behaviour):

  //Default Signal Handlers::


};


} // namespace Print
} // namespace Gnome


namespace Glib
{
  /** @relates Gnome::Print::Font
   * @param object The C instance
   * @param take_copy False if the result should take ownership of the C instance. True if it should take a new copy or ref.
   * @result A C++ instance that wraps this C instance.
   */
  Glib::RefPtr<Gnome::Print::Font> wrap(GnomeFont* object, bool take_copy = false);
}


#endif /* _LIBGNOMEPRINTMM_FONT_H */

