
/*

  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 gsiDeclQTextFragment.cc 
*
*  DO NOT EDIT THIS FILE. 
*  This file has been created automatically
*/

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

// -----------------------------------------------------------------------
// class QTextFragment

//  Constructor QTextFragment::QTextFragment()


static void _init_ctor_QTextFragment_0 (qt_gsi::GenericStaticMethod *decl)
{
  decl->set_return_new<QTextFragment *> ();
}

static void _call_ctor_QTextFragment_0 (const qt_gsi::GenericStaticMethod *decl, gsi::SerialArgs &args, gsi::SerialArgs &ret) 
{
  ret.write<QTextFragment *> (new QTextFragment ());
}

static qt_gsi::GenericStaticMethod *_create_ctor_QTextFragment_0 ()
{
  return new qt_gsi::GenericStaticMethod ("new", "@brief Constructor QTextFragment::QTextFragment()\nThis method creates an object of class QTextFragment.", &_init_ctor_QTextFragment_0, &_call_ctor_QTextFragment_0);
}

//  Constructor QTextFragment::QTextFragment(const QTextFragment &o)


static void _init_ctor_QTextFragment_2635 (qt_gsi::GenericStaticMethod *decl)
{
  static gsi::ArgSpecBase argspec_0 ("o");
  decl->add_arg<const QTextFragment & > (argspec_0);
  decl->set_return_new<QTextFragment *> ();
}

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

static qt_gsi::GenericStaticMethod *_create_ctor_QTextFragment_2635 ()
{
  return new qt_gsi::GenericStaticMethod ("new", "@brief Constructor QTextFragment::QTextFragment(const QTextFragment &o)\nThis method creates an object of class QTextFragment.", &_init_ctor_QTextFragment_2635, &_call_ctor_QTextFragment_2635);
}

// QTextCharFormat QTextFragment::charFormat()


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

static void _call_f_charFormat_c0 (const qt_gsi::GenericMethod *decl, void *cls, gsi::SerialArgs &args, gsi::SerialArgs &ret) 
{
  ret.write<QTextCharFormat > ((QTextCharFormat)((QTextFragment *)cls)->charFormat ());
}

static qt_gsi::GenericMethod *_create_f_charFormat_c0 ()
{
  return new qt_gsi::GenericMethod ("charFormat", "@brief Method QTextCharFormat QTextFragment::charFormat()\n", true, &_init_f_charFormat_c0, &_call_f_charFormat_c0);
}

// int QTextFragment::charFormatIndex()


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

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

static qt_gsi::GenericMethod *_create_f_charFormatIndex_c0 ()
{
  return new qt_gsi::GenericMethod ("charFormatIndex", "@brief Method int QTextFragment::charFormatIndex()\n", true, &_init_f_charFormatIndex_c0, &_call_f_charFormatIndex_c0);
}

// bool QTextFragment::contains(int position)


static void _init_f_contains_c767 (qt_gsi::GenericMethod *decl)
{
  static gsi::ArgSpecBase argspec_0 ("position");
  decl->add_arg<int > (argspec_0);
  decl->set_return<bool > ();
}

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

static qt_gsi::GenericMethod *_create_f_contains_c767 ()
{
  return new qt_gsi::GenericMethod ("contains", "@brief Method bool QTextFragment::contains(int position)\n", true, &_init_f_contains_c767, &_call_f_contains_c767);
}

// bool QTextFragment::isValid()


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

static void _call_f_isValid_c0 (const qt_gsi::GenericMethod *decl, void *cls, gsi::SerialArgs &args, gsi::SerialArgs &ret) 
{
  ret.write<bool > ((bool)((QTextFragment *)cls)->isValid ());
}

static qt_gsi::GenericMethod *_create_f_isValid_c0 ()
{
  return new qt_gsi::GenericMethod ("isValid?", "@brief Method bool QTextFragment::isValid()\n", true, &_init_f_isValid_c0, &_call_f_isValid_c0);
}

// int QTextFragment::length()


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

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

static qt_gsi::GenericMethod *_create_f_length_c0 ()
{
  return new qt_gsi::GenericMethod ("length", "@brief Method int QTextFragment::length()\n", true, &_init_f_length_c0, &_call_f_length_c0);
}

// bool QTextFragment::operator!=(const QTextFragment &o)


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

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

static qt_gsi::GenericMethod *_create_f_operator_excl__eq__c2635 ()
{
  return new qt_gsi::GenericMethod ("!=", "@brief Method bool QTextFragment::operator!=(const QTextFragment &o)\n", true, &_init_f_operator_excl__eq__c2635, &_call_f_operator_excl__eq__c2635);
}

// bool QTextFragment::operator<(const QTextFragment &o)


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

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

static qt_gsi::GenericMethod *_create_f_operator_lt__c2635 ()
{
  return new qt_gsi::GenericMethod ("<", "@brief Method bool QTextFragment::operator<(const QTextFragment &o)\n", true, &_init_f_operator_lt__c2635, &_call_f_operator_lt__c2635);
}

// QTextFragment &QTextFragment::operator=(const QTextFragment &o)


static void _init_f_operator_eq__2635 (qt_gsi::GenericMethod *decl)
{
  static gsi::ArgSpecBase argspec_0 ("o");
  decl->add_arg<const QTextFragment & > (argspec_0);
  decl->set_return<QTextFragment & > ();
}

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

static qt_gsi::GenericMethod *_create_f_operator_eq__2635 ()
{
  return new qt_gsi::GenericMethod ("assign", "@brief Method QTextFragment &QTextFragment::operator=(const QTextFragment &o)\n", false, &_init_f_operator_eq__2635, &_call_f_operator_eq__2635);
}

// bool QTextFragment::operator==(const QTextFragment &o)


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

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

static qt_gsi::GenericMethod *_create_f_operator_eq__eq__c2635 ()
{
  return new qt_gsi::GenericMethod ("==", "@brief Method bool QTextFragment::operator==(const QTextFragment &o)\n", true, &_init_f_operator_eq__eq__c2635, &_call_f_operator_eq__eq__c2635);
}

// int QTextFragment::position()


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

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

static qt_gsi::GenericMethod *_create_f_position_c0 ()
{
  return new qt_gsi::GenericMethod ("position", "@brief Method int QTextFragment::position()\n", true, &_init_f_position_c0, &_call_f_position_c0);
}

// QString QTextFragment::text()


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

static void _call_f_text_c0 (const qt_gsi::GenericMethod *decl, void *cls, gsi::SerialArgs &args, gsi::SerialArgs &ret) 
{
  ret.write<QString > ((QString)((QTextFragment *)cls)->text ());
}

static qt_gsi::GenericMethod *_create_f_text_c0 ()
{
  return new qt_gsi::GenericMethod ("text", "@brief Method QString QTextFragment::text()\n", true, &_init_f_text_c0, &_call_f_text_c0);
}


namespace gsi
{
gsi::Class<QTextFragment> decl_QTextFragment ("QTextFragment",
  gsi::Methods(_create_ctor_QTextFragment_0 ()) +
  gsi::Methods(_create_ctor_QTextFragment_2635 ()) +
  gsi::Methods(_create_f_charFormat_c0 ()) +
  gsi::Methods(_create_f_charFormatIndex_c0 ()) +
  gsi::Methods(_create_f_contains_c767 ()) +
  gsi::Methods(_create_f_isValid_c0 ()) +
  gsi::Methods(_create_f_length_c0 ()) +
  gsi::Methods(_create_f_operator_excl__eq__c2635 ()) +
  gsi::Methods(_create_f_operator_lt__c2635 ()) +
  gsi::Methods(_create_f_operator_eq__2635 ()) +
  gsi::Methods(_create_f_operator_eq__eq__c2635 ()) +
  gsi::Methods(_create_f_position_c0 ()) +
  gsi::Methods(_create_f_text_c0 ()),
  "@qt\n@brief Binding of QTextFragment");

}

