
/*

  KLayout Layout Viewer
  Copyright (C) 2006-2016 Matthias Koefferlein

  This program is free software; you can redistribute it and/or modify
  it under the terms of the GNU General Public License as published by
  the Free Software Foundation; either version 2 of the License, or
  (at your option) any later version.

  This program 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 General Public License for more details.

  You should have received a copy of the GNU General Public License
  along with this program; if not, write to the Free Software
  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA

*/

/**
*  @file gsiDeclQFontMetrics.cc 
*
*  DO NOT EDIT THIS FILE. 
*  This file has been created automatically
*/

#include "gsiQtGui.h"
#include "gsiDeclQtTypeTraits.h"
#include "gsiDeclQFontMetrics_Enums.h"
#include <memory>

// -----------------------------------------------------------------------
// class QFontMetrics

//  Constructor QFontMetrics::QFontMetrics(const QFont &)


static void _init_ctor_QFontMetrics_1801 (qt_gsi::GenericStaticMethod *decl)
{
  static gsi::ArgSpecBase argspec_0 ("arg1");
  decl->add_arg<const QFont & > (argspec_0);
  decl->set_return_new<QFontMetrics *> ();
}

static void _call_ctor_QFontMetrics_1801 (const qt_gsi::GenericStaticMethod *decl, gsi::SerialArgs &args, gsi::SerialArgs &ret) 
{
  const QFont &arg1 = args.read<const QFont & > ();
  ret.write<QFontMetrics *> (new QFontMetrics (arg1));
}

static qt_gsi::GenericStaticMethod *_create_ctor_QFontMetrics_1801 ()
{
  return new qt_gsi::GenericStaticMethod ("new", "@brief Constructor QFontMetrics::QFontMetrics(const QFont &)\nThis method creates an object of class QFontMetrics.", &_init_ctor_QFontMetrics_1801, &_call_ctor_QFontMetrics_1801);
}

//  Constructor QFontMetrics::QFontMetrics(const QFont &, QPaintDevice *pd)


static void _init_ctor_QFontMetrics_3496 (qt_gsi::GenericStaticMethod *decl)
{
  static gsi::ArgSpecBase argspec_0 ("arg1");
  decl->add_arg<const QFont & > (argspec_0);
  static gsi::ArgSpecBase argspec_1 ("pd");
  decl->add_arg<QPaintDevice * > (argspec_1);
  decl->set_return_new<QFontMetrics *> ();
}

static void _call_ctor_QFontMetrics_3496 (const qt_gsi::GenericStaticMethod *decl, gsi::SerialArgs &args, gsi::SerialArgs &ret) 
{
  const QFont &arg1 = args.read<const QFont & > ();
  QPaintDevice *arg2 = args.read<QPaintDevice * > ();
  ret.write<QFontMetrics *> (new QFontMetrics (arg1, arg2));
}

static qt_gsi::GenericStaticMethod *_create_ctor_QFontMetrics_3496 ()
{
  return new qt_gsi::GenericStaticMethod ("new", "@brief Constructor QFontMetrics::QFontMetrics(const QFont &, QPaintDevice *pd)\nThis method creates an object of class QFontMetrics.", &_init_ctor_QFontMetrics_3496, &_call_ctor_QFontMetrics_3496);
}

//  Constructor QFontMetrics::QFontMetrics(const QFontMetrics &)


static void _init_ctor_QFontMetrics_2528 (qt_gsi::GenericStaticMethod *decl)
{
  static gsi::ArgSpecBase argspec_0 ("arg1");
  decl->add_arg<const QFontMetrics & > (argspec_0);
  decl->set_return_new<QFontMetrics *> ();
}

static void _call_ctor_QFontMetrics_2528 (const qt_gsi::GenericStaticMethod *decl, gsi::SerialArgs &args, gsi::SerialArgs &ret) 
{
  const QFontMetrics &arg1 = args.read<const QFontMetrics & > ();
  ret.write<QFontMetrics *> (new QFontMetrics (arg1));
}

static qt_gsi::GenericStaticMethod *_create_ctor_QFontMetrics_2528 ()
{
  return new qt_gsi::GenericStaticMethod ("new", "@brief Constructor QFontMetrics::QFontMetrics(const QFontMetrics &)\nThis method creates an object of class QFontMetrics.", &_init_ctor_QFontMetrics_2528, &_call_ctor_QFontMetrics_2528);
}

// int QFontMetrics::ascent()


static void _init_f_ascent_c0 (qt_gsi::GenericMethod *decl)
{
  decl->set_return<int > ();
}

static void _call_f_ascent_c0 (const qt_gsi::GenericMethod *decl, void *cls, gsi::SerialArgs &args, gsi::SerialArgs &ret) 
{
  ret.write<int > ((int)((QFontMetrics *)cls)->ascent ());
}

static qt_gsi::GenericMethod *_create_f_ascent_c0 ()
{
  return new qt_gsi::GenericMethod ("ascent", "@brief Method int QFontMetrics::ascent()\n", true, &_init_f_ascent_c0, &_call_f_ascent_c0);
}

// int QFontMetrics::averageCharWidth()


static void _init_f_averageCharWidth_c0 (qt_gsi::GenericMethod *decl)
{
  decl->set_return<int > ();
}

static void _call_f_averageCharWidth_c0 (const qt_gsi::GenericMethod *decl, void *cls, gsi::SerialArgs &args, gsi::SerialArgs &ret) 
{
  ret.write<int > ((int)((QFontMetrics *)cls)->averageCharWidth ());
}

static qt_gsi::GenericMethod *_create_f_averageCharWidth_c0 ()
{
  return new qt_gsi::GenericMethod ("averageCharWidth", "@brief Method int QFontMetrics::averageCharWidth()\n", true, &_init_f_averageCharWidth_c0, &_call_f_averageCharWidth_c0);
}

// QRect QFontMetrics::boundingRect(QChar)


static void _init_f_boundingRect_c899 (qt_gsi::GenericMethod *decl)
{
  static gsi::ArgSpecBase argspec_0 ("arg1");
  decl->add_arg<const qt_gsi::Converter<QChar>::target_type & > (argspec_0);
  decl->set_return<QRect > ();
}

static void _call_f_boundingRect_c899 (const qt_gsi::GenericMethod *decl, void *cls, gsi::SerialArgs &args, gsi::SerialArgs &ret) 
{
  const qt_gsi::Converter<QChar>::target_type & arg1 = args.read<const qt_gsi::Converter<QChar>::target_type & > ();
  ret.write<QRect > ((QRect)((QFontMetrics *)cls)->boundingRect (qt_gsi::QtToCppAdaptor<QChar>(arg1).cref()));
}

static qt_gsi::GenericMethod *_create_f_boundingRect_c899 ()
{
  return new qt_gsi::GenericMethod ("boundingRect", "@brief Method QRect QFontMetrics::boundingRect(QChar)\n", true, &_init_f_boundingRect_c899, &_call_f_boundingRect_c899);
}

// QRect QFontMetrics::boundingRect(const QString &text)


static void _init_f_boundingRect_c2025 (qt_gsi::GenericMethod *decl)
{
  static gsi::ArgSpecBase argspec_0 ("text");
  decl->add_arg<const QString & > (argspec_0);
  decl->set_return<QRect > ();
}

static void _call_f_boundingRect_c2025 (const qt_gsi::GenericMethod *decl, void *cls, gsi::SerialArgs &args, gsi::SerialArgs &ret) 
{
  const QString &arg1 = args.read<const QString & > ();
  ret.write<QRect > ((QRect)((QFontMetrics *)cls)->boundingRect (arg1));
}

static qt_gsi::GenericMethod *_create_f_boundingRect_c2025 ()
{
  return new qt_gsi::GenericMethod ("boundingRect", "@brief Method QRect QFontMetrics::boundingRect(const QString &text)\n", true, &_init_f_boundingRect_c2025, &_call_f_boundingRect_c2025);
}

// QRect QFontMetrics::boundingRect(const QRect &r, int flags, const QString &text, int tabstops, int *tabarray)


static void _init_f_boundingRect_c5872 (qt_gsi::GenericMethod *decl)
{
  static gsi::ArgSpecBase argspec_0 ("r");
  decl->add_arg<const QRect & > (argspec_0);
  static gsi::ArgSpecBase argspec_1 ("flags");
  decl->add_arg<int > (argspec_1);
  static gsi::ArgSpecBase argspec_2 ("text");
  decl->add_arg<const QString & > (argspec_2);
  static gsi::ArgSpecBase argspec_3 ("tabstops", true, "0");
  decl->add_arg<int > (argspec_3);
  static gsi::ArgSpecBase argspec_4 ("tabarray", true, "0");
  decl->add_arg<int * > (argspec_4);
  decl->set_return<QRect > ();
}

static void _call_f_boundingRect_c5872 (const qt_gsi::GenericMethod *decl, void *cls, gsi::SerialArgs &args, gsi::SerialArgs &ret) 
{
  const QRect &arg1 = args.read<const QRect & > ();
  int arg2 = args.read<int > ();
  const QString &arg3 = args.read<const QString & > ();
  int arg4 = args ? args.read<int > () : (int)(0);
  int *arg5 = args ? args.read<int * > () : (int *)(0);
  ret.write<QRect > ((QRect)((QFontMetrics *)cls)->boundingRect (arg1, arg2, arg3, arg4, arg5));
}

static qt_gsi::GenericMethod *_create_f_boundingRect_c5872 ()
{
  return new qt_gsi::GenericMethod ("boundingRect", "@brief Method QRect QFontMetrics::boundingRect(const QRect &r, int flags, const QString &text, int tabstops, int *tabarray)\n", true, &_init_f_boundingRect_c5872, &_call_f_boundingRect_c5872);
}

// QRect QFontMetrics::boundingRect(int x, int y, int w, int h, int flags, const QString &text, int tabstops, int *tabarray)


static void _init_f_boundingRect_c6824 (qt_gsi::GenericMethod *decl)
{
  static gsi::ArgSpecBase argspec_0 ("x");
  decl->add_arg<int > (argspec_0);
  static gsi::ArgSpecBase argspec_1 ("y");
  decl->add_arg<int > (argspec_1);
  static gsi::ArgSpecBase argspec_2 ("w");
  decl->add_arg<int > (argspec_2);
  static gsi::ArgSpecBase argspec_3 ("h");
  decl->add_arg<int > (argspec_3);
  static gsi::ArgSpecBase argspec_4 ("flags");
  decl->add_arg<int > (argspec_4);
  static gsi::ArgSpecBase argspec_5 ("text");
  decl->add_arg<const QString & > (argspec_5);
  static gsi::ArgSpecBase argspec_6 ("tabstops", true, "0");
  decl->add_arg<int > (argspec_6);
  static gsi::ArgSpecBase argspec_7 ("tabarray", true, "0");
  decl->add_arg<int * > (argspec_7);
  decl->set_return<QRect > ();
}

static void _call_f_boundingRect_c6824 (const qt_gsi::GenericMethod *decl, void *cls, gsi::SerialArgs &args, gsi::SerialArgs &ret) 
{
  int arg1 = args.read<int > ();
  int arg2 = args.read<int > ();
  int arg3 = args.read<int > ();
  int arg4 = args.read<int > ();
  int arg5 = args.read<int > ();
  const QString &arg6 = args.read<const QString & > ();
  int arg7 = args ? args.read<int > () : (int)(0);
  int *arg8 = args ? args.read<int * > () : (int *)(0);
  ret.write<QRect > ((QRect)((QFontMetrics *)cls)->boundingRect (arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8));
}

static qt_gsi::GenericMethod *_create_f_boundingRect_c6824 ()
{
  return new qt_gsi::GenericMethod ("boundingRect", "@brief Method QRect QFontMetrics::boundingRect(int x, int y, int w, int h, int flags, const QString &text, int tabstops, int *tabarray)\n", true, &_init_f_boundingRect_c6824, &_call_f_boundingRect_c6824);
}

// int QFontMetrics::charWidth(const QString &str, int pos)


static void _init_f_charWidth_c2684 (qt_gsi::GenericMethod *decl)
{
  static gsi::ArgSpecBase argspec_0 ("str");
  decl->add_arg<const QString & > (argspec_0);
  static gsi::ArgSpecBase argspec_1 ("pos");
  decl->add_arg<int > (argspec_1);
  decl->set_return<int > ();
}

static void _call_f_charWidth_c2684 (const qt_gsi::GenericMethod *decl, void *cls, gsi::SerialArgs &args, gsi::SerialArgs &ret) 
{
  const QString &arg1 = args.read<const QString & > ();
  int arg2 = args.read<int > ();
  ret.write<int > ((int)((QFontMetrics *)cls)->charWidth (arg1, arg2));
}

static qt_gsi::GenericMethod *_create_f_charWidth_c2684 ()
{
  return new qt_gsi::GenericMethod ("charWidth", "@brief Method int QFontMetrics::charWidth(const QString &str, int pos)\n", true, &_init_f_charWidth_c2684, &_call_f_charWidth_c2684);
}

// int QFontMetrics::descent()


static void _init_f_descent_c0 (qt_gsi::GenericMethod *decl)
{
  decl->set_return<int > ();
}

static void _call_f_descent_c0 (const qt_gsi::GenericMethod *decl, void *cls, gsi::SerialArgs &args, gsi::SerialArgs &ret) 
{
  ret.write<int > ((int)((QFontMetrics *)cls)->descent ());
}

static qt_gsi::GenericMethod *_create_f_descent_c0 ()
{
  return new qt_gsi::GenericMethod ("descent", "@brief Method int QFontMetrics::descent()\n", true, &_init_f_descent_c0, &_call_f_descent_c0);
}

// QString QFontMetrics::elidedText(const QString &text, Qt::TextElideMode mode, int width, int flags)


static void _init_f_elidedText_c5277 (qt_gsi::GenericMethod *decl)
{
  static gsi::ArgSpecBase argspec_0 ("text");
  decl->add_arg<const QString & > (argspec_0);
  static gsi::ArgSpecBase argspec_1 ("mode");
  decl->add_arg<const qt_gsi::Converter<Qt::TextElideMode>::target_type & > (argspec_1);
  static gsi::ArgSpecBase argspec_2 ("width");
  decl->add_arg<int > (argspec_2);
  static gsi::ArgSpecBase argspec_3 ("flags", true, "0");
  decl->add_arg<int > (argspec_3);
  decl->set_return<QString > ();
}

static void _call_f_elidedText_c5277 (const qt_gsi::GenericMethod *decl, void *cls, gsi::SerialArgs &args, gsi::SerialArgs &ret) 
{
  const QString &arg1 = args.read<const QString & > ();
  const qt_gsi::Converter<Qt::TextElideMode>::target_type & arg2 = args.read<const qt_gsi::Converter<Qt::TextElideMode>::target_type & > ();
  int arg3 = args.read<int > ();
  int arg4 = args ? args.read<int > () : (int)(0);
  ret.write<QString > ((QString)((QFontMetrics *)cls)->elidedText (arg1, qt_gsi::QtToCppAdaptor<Qt::TextElideMode>(arg2).cref(), arg3, arg4));
}

static qt_gsi::GenericMethod *_create_f_elidedText_c5277 ()
{
  return new qt_gsi::GenericMethod ("elidedText", "@brief Method QString QFontMetrics::elidedText(const QString &text, Qt::TextElideMode mode, int width, int flags)\n", true, &_init_f_elidedText_c5277, &_call_f_elidedText_c5277);
}

// int QFontMetrics::height()


static void _init_f_height_c0 (qt_gsi::GenericMethod *decl)
{
  decl->set_return<int > ();
}

static void _call_f_height_c0 (const qt_gsi::GenericMethod *decl, void *cls, gsi::SerialArgs &args, gsi::SerialArgs &ret) 
{
  ret.write<int > ((int)((QFontMetrics *)cls)->height ());
}

static qt_gsi::GenericMethod *_create_f_height_c0 ()
{
  return new qt_gsi::GenericMethod ("height", "@brief Method int QFontMetrics::height()\n", true, &_init_f_height_c0, &_call_f_height_c0);
}

// bool QFontMetrics::inFont(QChar)


static void _init_f_inFont_c899 (qt_gsi::GenericMethod *decl)
{
  static gsi::ArgSpecBase argspec_0 ("arg1");
  decl->add_arg<const qt_gsi::Converter<QChar>::target_type & > (argspec_0);
  decl->set_return<bool > ();
}

static void _call_f_inFont_c899 (const qt_gsi::GenericMethod *decl, void *cls, gsi::SerialArgs &args, gsi::SerialArgs &ret) 
{
  const qt_gsi::Converter<QChar>::target_type & arg1 = args.read<const qt_gsi::Converter<QChar>::target_type & > ();
  ret.write<bool > ((bool)((QFontMetrics *)cls)->inFont (qt_gsi::QtToCppAdaptor<QChar>(arg1).cref()));
}

static qt_gsi::GenericMethod *_create_f_inFont_c899 ()
{
  return new qt_gsi::GenericMethod ("inFont", "@brief Method bool QFontMetrics::inFont(QChar)\n", true, &_init_f_inFont_c899, &_call_f_inFont_c899);
}

// int QFontMetrics::leading()


static void _init_f_leading_c0 (qt_gsi::GenericMethod *decl)
{
  decl->set_return<int > ();
}

static void _call_f_leading_c0 (const qt_gsi::GenericMethod *decl, void *cls, gsi::SerialArgs &args, gsi::SerialArgs &ret) 
{
  ret.write<int > ((int)((QFontMetrics *)cls)->leading ());
}

static qt_gsi::GenericMethod *_create_f_leading_c0 ()
{
  return new qt_gsi::GenericMethod ("leading", "@brief Method int QFontMetrics::leading()\n", true, &_init_f_leading_c0, &_call_f_leading_c0);
}

// int QFontMetrics::leftBearing(QChar)


static void _init_f_leftBearing_c899 (qt_gsi::GenericMethod *decl)
{
  static gsi::ArgSpecBase argspec_0 ("arg1");
  decl->add_arg<const qt_gsi::Converter<QChar>::target_type & > (argspec_0);
  decl->set_return<int > ();
}

static void _call_f_leftBearing_c899 (const qt_gsi::GenericMethod *decl, void *cls, gsi::SerialArgs &args, gsi::SerialArgs &ret) 
{
  const qt_gsi::Converter<QChar>::target_type & arg1 = args.read<const qt_gsi::Converter<QChar>::target_type & > ();
  ret.write<int > ((int)((QFontMetrics *)cls)->leftBearing (qt_gsi::QtToCppAdaptor<QChar>(arg1).cref()));
}

static qt_gsi::GenericMethod *_create_f_leftBearing_c899 ()
{
  return new qt_gsi::GenericMethod ("leftBearing", "@brief Method int QFontMetrics::leftBearing(QChar)\n", true, &_init_f_leftBearing_c899, &_call_f_leftBearing_c899);
}

// int QFontMetrics::lineSpacing()


static void _init_f_lineSpacing_c0 (qt_gsi::GenericMethod *decl)
{
  decl->set_return<int > ();
}

static void _call_f_lineSpacing_c0 (const qt_gsi::GenericMethod *decl, void *cls, gsi::SerialArgs &args, gsi::SerialArgs &ret) 
{
  ret.write<int > ((int)((QFontMetrics *)cls)->lineSpacing ());
}

static qt_gsi::GenericMethod *_create_f_lineSpacing_c0 ()
{
  return new qt_gsi::GenericMethod ("lineSpacing", "@brief Method int QFontMetrics::lineSpacing()\n", true, &_init_f_lineSpacing_c0, &_call_f_lineSpacing_c0);
}

// int QFontMetrics::lineWidth()


static void _init_f_lineWidth_c0 (qt_gsi::GenericMethod *decl)
{
  decl->set_return<int > ();
}

static void _call_f_lineWidth_c0 (const qt_gsi::GenericMethod *decl, void *cls, gsi::SerialArgs &args, gsi::SerialArgs &ret) 
{
  ret.write<int > ((int)((QFontMetrics *)cls)->lineWidth ());
}

static qt_gsi::GenericMethod *_create_f_lineWidth_c0 ()
{
  return new qt_gsi::GenericMethod ("lineWidth", "@brief Method int QFontMetrics::lineWidth()\n", true, &_init_f_lineWidth_c0, &_call_f_lineWidth_c0);
}

// int QFontMetrics::maxWidth()


static void _init_f_maxWidth_c0 (qt_gsi::GenericMethod *decl)
{
  decl->set_return<int > ();
}

static void _call_f_maxWidth_c0 (const qt_gsi::GenericMethod *decl, void *cls, gsi::SerialArgs &args, gsi::SerialArgs &ret) 
{
  ret.write<int > ((int)((QFontMetrics *)cls)->maxWidth ());
}

static qt_gsi::GenericMethod *_create_f_maxWidth_c0 ()
{
  return new qt_gsi::GenericMethod ("maxWidth", "@brief Method int QFontMetrics::maxWidth()\n", true, &_init_f_maxWidth_c0, &_call_f_maxWidth_c0);
}

// int QFontMetrics::minLeftBearing()


static void _init_f_minLeftBearing_c0 (qt_gsi::GenericMethod *decl)
{
  decl->set_return<int > ();
}

static void _call_f_minLeftBearing_c0 (const qt_gsi::GenericMethod *decl, void *cls, gsi::SerialArgs &args, gsi::SerialArgs &ret) 
{
  ret.write<int > ((int)((QFontMetrics *)cls)->minLeftBearing ());
}

static qt_gsi::GenericMethod *_create_f_minLeftBearing_c0 ()
{
  return new qt_gsi::GenericMethod ("minLeftBearing", "@brief Method int QFontMetrics::minLeftBearing()\n", true, &_init_f_minLeftBearing_c0, &_call_f_minLeftBearing_c0);
}

// int QFontMetrics::minRightBearing()


static void _init_f_minRightBearing_c0 (qt_gsi::GenericMethod *decl)
{
  decl->set_return<int > ();
}

static void _call_f_minRightBearing_c0 (const qt_gsi::GenericMethod *decl, void *cls, gsi::SerialArgs &args, gsi::SerialArgs &ret) 
{
  ret.write<int > ((int)((QFontMetrics *)cls)->minRightBearing ());
}

static qt_gsi::GenericMethod *_create_f_minRightBearing_c0 ()
{
  return new qt_gsi::GenericMethod ("minRightBearing", "@brief Method int QFontMetrics::minRightBearing()\n", true, &_init_f_minRightBearing_c0, &_call_f_minRightBearing_c0);
}

// bool QFontMetrics::operator !=(const QFontMetrics &other)


static void _init_f_operator_excl__eq__2528 (qt_gsi::GenericMethod *decl)
{
  static gsi::ArgSpecBase argspec_0 ("other");
  decl->add_arg<const QFontMetrics & > (argspec_0);
  decl->set_return<bool > ();
}

static void _call_f_operator_excl__eq__2528 (const qt_gsi::GenericMethod *decl, void *cls, gsi::SerialArgs &args, gsi::SerialArgs &ret) 
{
  const QFontMetrics &arg1 = args.read<const QFontMetrics & > ();
  ret.write<bool > ((bool)((QFontMetrics *)cls)->operator != (arg1));
}

static qt_gsi::GenericMethod *_create_f_operator_excl__eq__2528 ()
{
  return new qt_gsi::GenericMethod ("!=", "@brief Method bool QFontMetrics::operator !=(const QFontMetrics &other)\n", false, &_init_f_operator_excl__eq__2528, &_call_f_operator_excl__eq__2528);
}

// bool QFontMetrics::operator !=(const QFontMetrics &other)


static void _init_f_operator_excl__eq__c2528 (qt_gsi::GenericMethod *decl)
{
  static gsi::ArgSpecBase argspec_0 ("other");
  decl->add_arg<const QFontMetrics & > (argspec_0);
  decl->set_return<bool > ();
}

static void _call_f_operator_excl__eq__c2528 (const qt_gsi::GenericMethod *decl, void *cls, gsi::SerialArgs &args, gsi::SerialArgs &ret) 
{
  const QFontMetrics &arg1 = args.read<const QFontMetrics & > ();
  ret.write<bool > ((bool)((QFontMetrics *)cls)->operator != (arg1));
}

static qt_gsi::GenericMethod *_create_f_operator_excl__eq__c2528 ()
{
  return new qt_gsi::GenericMethod ("!=", "@brief Method bool QFontMetrics::operator !=(const QFontMetrics &other)\n", true, &_init_f_operator_excl__eq__c2528, &_call_f_operator_excl__eq__c2528);
}

// QFontMetrics &QFontMetrics::operator=(const QFontMetrics &)


static void _init_f_operator_eq__2528 (qt_gsi::GenericMethod *decl)
{
  static gsi::ArgSpecBase argspec_0 ("arg1");
  decl->add_arg<const QFontMetrics & > (argspec_0);
  decl->set_return<QFontMetrics & > ();
}

static void _call_f_operator_eq__2528 (const qt_gsi::GenericMethod *decl, void *cls, gsi::SerialArgs &args, gsi::SerialArgs &ret) 
{
  const QFontMetrics &arg1 = args.read<const QFontMetrics & > ();
  ret.write<QFontMetrics & > ((QFontMetrics &)((QFontMetrics *)cls)->operator= (arg1));
}

static qt_gsi::GenericMethod *_create_f_operator_eq__2528 ()
{
  return new qt_gsi::GenericMethod ("assign", "@brief Method QFontMetrics &QFontMetrics::operator=(const QFontMetrics &)\n", false, &_init_f_operator_eq__2528, &_call_f_operator_eq__2528);
}

// bool QFontMetrics::operator==(const QFontMetrics &other)


static void _init_f_operator_eq__eq__2528 (qt_gsi::GenericMethod *decl)
{
  static gsi::ArgSpecBase argspec_0 ("other");
  decl->add_arg<const QFontMetrics & > (argspec_0);
  decl->set_return<bool > ();
}

static void _call_f_operator_eq__eq__2528 (const qt_gsi::GenericMethod *decl, void *cls, gsi::SerialArgs &args, gsi::SerialArgs &ret) 
{
  const QFontMetrics &arg1 = args.read<const QFontMetrics & > ();
  ret.write<bool > ((bool)((QFontMetrics *)cls)->operator== (arg1));
}

static qt_gsi::GenericMethod *_create_f_operator_eq__eq__2528 ()
{
  return new qt_gsi::GenericMethod ("==", "@brief Method bool QFontMetrics::operator==(const QFontMetrics &other)\n", false, &_init_f_operator_eq__eq__2528, &_call_f_operator_eq__eq__2528);
}

// bool QFontMetrics::operator==(const QFontMetrics &other)


static void _init_f_operator_eq__eq__c2528 (qt_gsi::GenericMethod *decl)
{
  static gsi::ArgSpecBase argspec_0 ("other");
  decl->add_arg<const QFontMetrics & > (argspec_0);
  decl->set_return<bool > ();
}

static void _call_f_operator_eq__eq__c2528 (const qt_gsi::GenericMethod *decl, void *cls, gsi::SerialArgs &args, gsi::SerialArgs &ret) 
{
  const QFontMetrics &arg1 = args.read<const QFontMetrics & > ();
  ret.write<bool > ((bool)((QFontMetrics *)cls)->operator== (arg1));
}

static qt_gsi::GenericMethod *_create_f_operator_eq__eq__c2528 ()
{
  return new qt_gsi::GenericMethod ("==", "@brief Method bool QFontMetrics::operator==(const QFontMetrics &other)\n", true, &_init_f_operator_eq__eq__c2528, &_call_f_operator_eq__eq__c2528);
}

// int QFontMetrics::overlinePos()


static void _init_f_overlinePos_c0 (qt_gsi::GenericMethod *decl)
{
  decl->set_return<int > ();
}

static void _call_f_overlinePos_c0 (const qt_gsi::GenericMethod *decl, void *cls, gsi::SerialArgs &args, gsi::SerialArgs &ret) 
{
  ret.write<int > ((int)((QFontMetrics *)cls)->overlinePos ());
}

static qt_gsi::GenericMethod *_create_f_overlinePos_c0 ()
{
  return new qt_gsi::GenericMethod ("overlinePos", "@brief Method int QFontMetrics::overlinePos()\n", true, &_init_f_overlinePos_c0, &_call_f_overlinePos_c0);
}

// int QFontMetrics::rightBearing(QChar)


static void _init_f_rightBearing_c899 (qt_gsi::GenericMethod *decl)
{
  static gsi::ArgSpecBase argspec_0 ("arg1");
  decl->add_arg<const qt_gsi::Converter<QChar>::target_type & > (argspec_0);
  decl->set_return<int > ();
}

static void _call_f_rightBearing_c899 (const qt_gsi::GenericMethod *decl, void *cls, gsi::SerialArgs &args, gsi::SerialArgs &ret) 
{
  const qt_gsi::Converter<QChar>::target_type & arg1 = args.read<const qt_gsi::Converter<QChar>::target_type & > ();
  ret.write<int > ((int)((QFontMetrics *)cls)->rightBearing (qt_gsi::QtToCppAdaptor<QChar>(arg1).cref()));
}

static qt_gsi::GenericMethod *_create_f_rightBearing_c899 ()
{
  return new qt_gsi::GenericMethod ("rightBearing", "@brief Method int QFontMetrics::rightBearing(QChar)\n", true, &_init_f_rightBearing_c899, &_call_f_rightBearing_c899);
}

// QSize QFontMetrics::size(int flags, const QString &str, int tabstops, int *tabarray)


static void _init_f_size_c4188 (qt_gsi::GenericMethod *decl)
{
  static gsi::ArgSpecBase argspec_0 ("flags");
  decl->add_arg<int > (argspec_0);
  static gsi::ArgSpecBase argspec_1 ("str");
  decl->add_arg<const QString & > (argspec_1);
  static gsi::ArgSpecBase argspec_2 ("tabstops", true, "0");
  decl->add_arg<int > (argspec_2);
  static gsi::ArgSpecBase argspec_3 ("tabarray", true, "0");
  decl->add_arg<int * > (argspec_3);
  decl->set_return<QSize > ();
}

static void _call_f_size_c4188 (const qt_gsi::GenericMethod *decl, void *cls, gsi::SerialArgs &args, gsi::SerialArgs &ret) 
{
  int arg1 = args.read<int > ();
  const QString &arg2 = args.read<const QString & > ();
  int arg3 = args ? args.read<int > () : (int)(0);
  int *arg4 = args ? args.read<int * > () : (int *)(0);
  ret.write<QSize > ((QSize)((QFontMetrics *)cls)->size (arg1, arg2, arg3, arg4));
}

static qt_gsi::GenericMethod *_create_f_size_c4188 ()
{
  return new qt_gsi::GenericMethod ("size", "@brief Method QSize QFontMetrics::size(int flags, const QString &str, int tabstops, int *tabarray)\n", true, &_init_f_size_c4188, &_call_f_size_c4188);
}

// int QFontMetrics::strikeOutPos()


static void _init_f_strikeOutPos_c0 (qt_gsi::GenericMethod *decl)
{
  decl->set_return<int > ();
}

static void _call_f_strikeOutPos_c0 (const qt_gsi::GenericMethod *decl, void *cls, gsi::SerialArgs &args, gsi::SerialArgs &ret) 
{
  ret.write<int > ((int)((QFontMetrics *)cls)->strikeOutPos ());
}

static qt_gsi::GenericMethod *_create_f_strikeOutPos_c0 ()
{
  return new qt_gsi::GenericMethod ("strikeOutPos", "@brief Method int QFontMetrics::strikeOutPos()\n", true, &_init_f_strikeOutPos_c0, &_call_f_strikeOutPos_c0);
}

// QRect QFontMetrics::tightBoundingRect(const QString &text)


static void _init_f_tightBoundingRect_c2025 (qt_gsi::GenericMethod *decl)
{
  static gsi::ArgSpecBase argspec_0 ("text");
  decl->add_arg<const QString & > (argspec_0);
  decl->set_return<QRect > ();
}

static void _call_f_tightBoundingRect_c2025 (const qt_gsi::GenericMethod *decl, void *cls, gsi::SerialArgs &args, gsi::SerialArgs &ret) 
{
  const QString &arg1 = args.read<const QString & > ();
  ret.write<QRect > ((QRect)((QFontMetrics *)cls)->tightBoundingRect (arg1));
}

static qt_gsi::GenericMethod *_create_f_tightBoundingRect_c2025 ()
{
  return new qt_gsi::GenericMethod ("tightBoundingRect", "@brief Method QRect QFontMetrics::tightBoundingRect(const QString &text)\n", true, &_init_f_tightBoundingRect_c2025, &_call_f_tightBoundingRect_c2025);
}

// int QFontMetrics::underlinePos()


static void _init_f_underlinePos_c0 (qt_gsi::GenericMethod *decl)
{
  decl->set_return<int > ();
}

static void _call_f_underlinePos_c0 (const qt_gsi::GenericMethod *decl, void *cls, gsi::SerialArgs &args, gsi::SerialArgs &ret) 
{
  ret.write<int > ((int)((QFontMetrics *)cls)->underlinePos ());
}

static qt_gsi::GenericMethod *_create_f_underlinePos_c0 ()
{
  return new qt_gsi::GenericMethod ("underlinePos", "@brief Method int QFontMetrics::underlinePos()\n", true, &_init_f_underlinePos_c0, &_call_f_underlinePos_c0);
}

// int QFontMetrics::width(const QString &, int len)


static void _init_f_width_c2684 (qt_gsi::GenericMethod *decl)
{
  static gsi::ArgSpecBase argspec_0 ("arg1");
  decl->add_arg<const QString & > (argspec_0);
  static gsi::ArgSpecBase argspec_1 ("len", true, "-1");
  decl->add_arg<int > (argspec_1);
  decl->set_return<int > ();
}

static void _call_f_width_c2684 (const qt_gsi::GenericMethod *decl, void *cls, gsi::SerialArgs &args, gsi::SerialArgs &ret) 
{
  const QString &arg1 = args.read<const QString & > ();
  int arg2 = args ? args.read<int > () : (int)(-1);
  ret.write<int > ((int)((QFontMetrics *)cls)->width (arg1, arg2));
}

static qt_gsi::GenericMethod *_create_f_width_c2684 ()
{
  return new qt_gsi::GenericMethod ("width", "@brief Method int QFontMetrics::width(const QString &, int len)\n", true, &_init_f_width_c2684, &_call_f_width_c2684);
}

// int QFontMetrics::width(QChar)


static void _init_f_width_c899 (qt_gsi::GenericMethod *decl)
{
  static gsi::ArgSpecBase argspec_0 ("arg1");
  decl->add_arg<const qt_gsi::Converter<QChar>::target_type & > (argspec_0);
  decl->set_return<int > ();
}

static void _call_f_width_c899 (const qt_gsi::GenericMethod *decl, void *cls, gsi::SerialArgs &args, gsi::SerialArgs &ret) 
{
  const qt_gsi::Converter<QChar>::target_type & arg1 = args.read<const qt_gsi::Converter<QChar>::target_type & > ();
  ret.write<int > ((int)((QFontMetrics *)cls)->width (qt_gsi::QtToCppAdaptor<QChar>(arg1).cref()));
}

static qt_gsi::GenericMethod *_create_f_width_c899 ()
{
  return new qt_gsi::GenericMethod ("width", "@brief Method int QFontMetrics::width(QChar)\n", true, &_init_f_width_c899, &_call_f_width_c899);
}

// int QFontMetrics::xHeight()


static void _init_f_xHeight_c0 (qt_gsi::GenericMethod *decl)
{
  decl->set_return<int > ();
}

static void _call_f_xHeight_c0 (const qt_gsi::GenericMethod *decl, void *cls, gsi::SerialArgs &args, gsi::SerialArgs &ret) 
{
  ret.write<int > ((int)((QFontMetrics *)cls)->xHeight ());
}

static qt_gsi::GenericMethod *_create_f_xHeight_c0 ()
{
  return new qt_gsi::GenericMethod ("xHeight", "@brief Method int QFontMetrics::xHeight()\n", true, &_init_f_xHeight_c0, &_call_f_xHeight_c0);
}


namespace gsi
{
gsi::Class<QFontMetrics> decl_QFontMetrics ("QFontMetrics",
  gsi::Methods(_create_ctor_QFontMetrics_1801 ()) +
  gsi::Methods(_create_ctor_QFontMetrics_3496 ()) +
  gsi::Methods(_create_ctor_QFontMetrics_2528 ()) +
  gsi::Methods(_create_f_ascent_c0 ()) +
  gsi::Methods(_create_f_averageCharWidth_c0 ()) +
  gsi::Methods(_create_f_boundingRect_c899 ()) +
  gsi::Methods(_create_f_boundingRect_c2025 ()) +
  gsi::Methods(_create_f_boundingRect_c5872 ()) +
  gsi::Methods(_create_f_boundingRect_c6824 ()) +
  gsi::Methods(_create_f_charWidth_c2684 ()) +
  gsi::Methods(_create_f_descent_c0 ()) +
  gsi::Methods(_create_f_elidedText_c5277 ()) +
  gsi::Methods(_create_f_height_c0 ()) +
  gsi::Methods(_create_f_inFont_c899 ()) +
  gsi::Methods(_create_f_leading_c0 ()) +
  gsi::Methods(_create_f_leftBearing_c899 ()) +
  gsi::Methods(_create_f_lineSpacing_c0 ()) +
  gsi::Methods(_create_f_lineWidth_c0 ()) +
  gsi::Methods(_create_f_maxWidth_c0 ()) +
  gsi::Methods(_create_f_minLeftBearing_c0 ()) +
  gsi::Methods(_create_f_minRightBearing_c0 ()) +
  gsi::Methods(_create_f_operator_excl__eq__2528 ()) +
  gsi::Methods(_create_f_operator_excl__eq__c2528 ()) +
  gsi::Methods(_create_f_operator_eq__2528 ()) +
  gsi::Methods(_create_f_operator_eq__eq__2528 ()) +
  gsi::Methods(_create_f_operator_eq__eq__c2528 ()) +
  gsi::Methods(_create_f_overlinePos_c0 ()) +
  gsi::Methods(_create_f_rightBearing_c899 ()) +
  gsi::Methods(_create_f_size_c4188 ()) +
  gsi::Methods(_create_f_strikeOutPos_c0 ()) +
  gsi::Methods(_create_f_tightBoundingRect_c2025 ()) +
  gsi::Methods(_create_f_underlinePos_c0 ()) +
  gsi::Methods(_create_f_width_c2684 ()) +
  gsi::Methods(_create_f_width_c899 ()) +
  gsi::Methods(_create_f_xHeight_c0 ()),
  "@qt\n@brief Binding of QFontMetrics");

}

