
/*

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

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

// -----------------------------------------------------------------------
// class QTextBlockFormat

//  Constructor QTextBlockFormat::QTextBlockFormat()


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

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

static qt_gsi::GenericStaticMethod *_create_ctor_QTextBlockFormat_0 ()
{
  return new qt_gsi::GenericStaticMethod ("new", "@brief Constructor QTextBlockFormat::QTextBlockFormat()\nThis method creates an object of class QTextBlockFormat.", &_init_ctor_QTextBlockFormat_0, &_call_ctor_QTextBlockFormat_0);
}

// QFlags<Qt::AlignmentFlag> QTextBlockFormat::alignment()


static void _init_f_alignment_c0 (qt_gsi::GenericMethod *decl)
{
  decl->set_return<qt_gsi::Converter<QFlags<Qt::AlignmentFlag> >::target_type > ();
}

static void _call_f_alignment_c0 (const qt_gsi::GenericMethod *decl, void *cls, gsi::SerialArgs &args, gsi::SerialArgs &ret) 
{
  ret.write<qt_gsi::Converter<QFlags<Qt::AlignmentFlag> >::target_type > ((qt_gsi::Converter<QFlags<Qt::AlignmentFlag> >::target_type)qt_gsi::CppToQtAdaptor<QFlags<Qt::AlignmentFlag> >(((QTextBlockFormat *)cls)->alignment ()));
}

static qt_gsi::GenericMethod *_create_f_alignment_c0 ()
{
  return new qt_gsi::GenericMethod (":alignment", "@brief Method QFlags<Qt::AlignmentFlag> QTextBlockFormat::alignment()\n", true, &_init_f_alignment_c0, &_call_f_alignment_c0);
}

// double QTextBlockFormat::bottomMargin()


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

static void _call_f_bottomMargin_c0 (const qt_gsi::GenericMethod *decl, void *cls, gsi::SerialArgs &args, gsi::SerialArgs &ret) 
{
  ret.write<double > ((double)((QTextBlockFormat *)cls)->bottomMargin ());
}

static qt_gsi::GenericMethod *_create_f_bottomMargin_c0 ()
{
  return new qt_gsi::GenericMethod (":bottomMargin", "@brief Method double QTextBlockFormat::bottomMargin()\n", true, &_init_f_bottomMargin_c0, &_call_f_bottomMargin_c0);
}

// int QTextBlockFormat::indent()


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

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

static qt_gsi::GenericMethod *_create_f_indent_c0 ()
{
  return new qt_gsi::GenericMethod (":indent", "@brief Method int QTextBlockFormat::indent()\n", true, &_init_f_indent_c0, &_call_f_indent_c0);
}

// bool QTextBlockFormat::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)((QTextBlockFormat *)cls)->isValid ());
}

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

// double QTextBlockFormat::leftMargin()


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

static void _call_f_leftMargin_c0 (const qt_gsi::GenericMethod *decl, void *cls, gsi::SerialArgs &args, gsi::SerialArgs &ret) 
{
  ret.write<double > ((double)((QTextBlockFormat *)cls)->leftMargin ());
}

static qt_gsi::GenericMethod *_create_f_leftMargin_c0 ()
{
  return new qt_gsi::GenericMethod (":leftMargin", "@brief Method double QTextBlockFormat::leftMargin()\n", true, &_init_f_leftMargin_c0, &_call_f_leftMargin_c0);
}

// bool QTextBlockFormat::nonBreakableLines()


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

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

static qt_gsi::GenericMethod *_create_f_nonBreakableLines_c0 ()
{
  return new qt_gsi::GenericMethod (":nonBreakableLines", "@brief Method bool QTextBlockFormat::nonBreakableLines()\n", true, &_init_f_nonBreakableLines_c0, &_call_f_nonBreakableLines_c0);
}

// QFlags<QTextFormat::PageBreakFlag> QTextBlockFormat::pageBreakPolicy()


static void _init_f_pageBreakPolicy_c0 (qt_gsi::GenericMethod *decl)
{
  decl->set_return<qt_gsi::Converter<QFlags<QTextFormat::PageBreakFlag> >::target_type > ();
}

static void _call_f_pageBreakPolicy_c0 (const qt_gsi::GenericMethod *decl, void *cls, gsi::SerialArgs &args, gsi::SerialArgs &ret) 
{
  ret.write<qt_gsi::Converter<QFlags<QTextFormat::PageBreakFlag> >::target_type > ((qt_gsi::Converter<QFlags<QTextFormat::PageBreakFlag> >::target_type)qt_gsi::CppToQtAdaptor<QFlags<QTextFormat::PageBreakFlag> >(((QTextBlockFormat *)cls)->pageBreakPolicy ()));
}

static qt_gsi::GenericMethod *_create_f_pageBreakPolicy_c0 ()
{
  return new qt_gsi::GenericMethod (":pageBreakPolicy", "@brief Method QFlags<QTextFormat::PageBreakFlag> QTextBlockFormat::pageBreakPolicy()\n", true, &_init_f_pageBreakPolicy_c0, &_call_f_pageBreakPolicy_c0);
}

// double QTextBlockFormat::rightMargin()


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

static void _call_f_rightMargin_c0 (const qt_gsi::GenericMethod *decl, void *cls, gsi::SerialArgs &args, gsi::SerialArgs &ret) 
{
  ret.write<double > ((double)((QTextBlockFormat *)cls)->rightMargin ());
}

static qt_gsi::GenericMethod *_create_f_rightMargin_c0 ()
{
  return new qt_gsi::GenericMethod (":rightMargin", "@brief Method double QTextBlockFormat::rightMargin()\n", true, &_init_f_rightMargin_c0, &_call_f_rightMargin_c0);
}

// void QTextBlockFormat::setAlignment(QFlags<Qt::AlignmentFlag> alignment)


static void _init_f_setAlignment_2750 (qt_gsi::GenericMethod *decl)
{
  static gsi::ArgSpecBase argspec_0 ("alignment");
  decl->add_arg<const qt_gsi::Converter<QFlags<Qt::AlignmentFlag> >::target_type & > (argspec_0);
  decl->set_return<void > ();
}

static void _call_f_setAlignment_2750 (const qt_gsi::GenericMethod *decl, void *cls, gsi::SerialArgs &args, gsi::SerialArgs &ret) 
{
  const qt_gsi::Converter<QFlags<Qt::AlignmentFlag> >::target_type & arg1 = args.read<const qt_gsi::Converter<QFlags<Qt::AlignmentFlag> >::target_type & > ();
  ((QTextBlockFormat *)cls)->setAlignment (qt_gsi::QtToCppAdaptor<QFlags<Qt::AlignmentFlag> >(arg1).cref());
}

static qt_gsi::GenericMethod *_create_f_setAlignment_2750 ()
{
  return new qt_gsi::GenericMethod ("setAlignment|alignment=", "@brief Method void QTextBlockFormat::setAlignment(QFlags<Qt::AlignmentFlag> alignment)\n", false, &_init_f_setAlignment_2750, &_call_f_setAlignment_2750);
}

// void QTextBlockFormat::setBottomMargin(double margin)


static void _init_f_setBottomMargin_1071 (qt_gsi::GenericMethod *decl)
{
  static gsi::ArgSpecBase argspec_0 ("margin");
  decl->add_arg<double > (argspec_0);
  decl->set_return<void > ();
}

static void _call_f_setBottomMargin_1071 (const qt_gsi::GenericMethod *decl, void *cls, gsi::SerialArgs &args, gsi::SerialArgs &ret) 
{
  double arg1 = args.read<double > ();
  ((QTextBlockFormat *)cls)->setBottomMargin (arg1);
}

static qt_gsi::GenericMethod *_create_f_setBottomMargin_1071 ()
{
  return new qt_gsi::GenericMethod ("setBottomMargin|bottomMargin=", "@brief Method void QTextBlockFormat::setBottomMargin(double margin)\n", false, &_init_f_setBottomMargin_1071, &_call_f_setBottomMargin_1071);
}

// void QTextBlockFormat::setIndent(int indent)


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

static void _call_f_setIndent_767 (const qt_gsi::GenericMethod *decl, void *cls, gsi::SerialArgs &args, gsi::SerialArgs &ret) 
{
  int arg1 = args.read<int > ();
  ((QTextBlockFormat *)cls)->setIndent (arg1);
}

static qt_gsi::GenericMethod *_create_f_setIndent_767 ()
{
  return new qt_gsi::GenericMethod ("setIndent|indent=", "@brief Method void QTextBlockFormat::setIndent(int indent)\n", false, &_init_f_setIndent_767, &_call_f_setIndent_767);
}

// void QTextBlockFormat::setLeftMargin(double margin)


static void _init_f_setLeftMargin_1071 (qt_gsi::GenericMethod *decl)
{
  static gsi::ArgSpecBase argspec_0 ("margin");
  decl->add_arg<double > (argspec_0);
  decl->set_return<void > ();
}

static void _call_f_setLeftMargin_1071 (const qt_gsi::GenericMethod *decl, void *cls, gsi::SerialArgs &args, gsi::SerialArgs &ret) 
{
  double arg1 = args.read<double > ();
  ((QTextBlockFormat *)cls)->setLeftMargin (arg1);
}

static qt_gsi::GenericMethod *_create_f_setLeftMargin_1071 ()
{
  return new qt_gsi::GenericMethod ("setLeftMargin|leftMargin=", "@brief Method void QTextBlockFormat::setLeftMargin(double margin)\n", false, &_init_f_setLeftMargin_1071, &_call_f_setLeftMargin_1071);
}

// void QTextBlockFormat::setNonBreakableLines(bool b)


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

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

static qt_gsi::GenericMethod *_create_f_setNonBreakableLines_864 ()
{
  return new qt_gsi::GenericMethod ("setNonBreakableLines|nonBreakableLines=", "@brief Method void QTextBlockFormat::setNonBreakableLines(bool b)\n", false, &_init_f_setNonBreakableLines_864, &_call_f_setNonBreakableLines_864);
}

// void QTextBlockFormat::setPageBreakPolicy(QFlags<QTextFormat::PageBreakFlag> flags)


static void _init_f_setPageBreakPolicy_3611 (qt_gsi::GenericMethod *decl)
{
  static gsi::ArgSpecBase argspec_0 ("flags");
  decl->add_arg<const qt_gsi::Converter<QFlags<QTextFormat::PageBreakFlag> >::target_type & > (argspec_0);
  decl->set_return<void > ();
}

static void _call_f_setPageBreakPolicy_3611 (const qt_gsi::GenericMethod *decl, void *cls, gsi::SerialArgs &args, gsi::SerialArgs &ret) 
{
  const qt_gsi::Converter<QFlags<QTextFormat::PageBreakFlag> >::target_type & arg1 = args.read<const qt_gsi::Converter<QFlags<QTextFormat::PageBreakFlag> >::target_type & > ();
  ((QTextBlockFormat *)cls)->setPageBreakPolicy (qt_gsi::QtToCppAdaptor<QFlags<QTextFormat::PageBreakFlag> >(arg1).cref());
}

static qt_gsi::GenericMethod *_create_f_setPageBreakPolicy_3611 ()
{
  return new qt_gsi::GenericMethod ("setPageBreakPolicy|pageBreakPolicy=", "@brief Method void QTextBlockFormat::setPageBreakPolicy(QFlags<QTextFormat::PageBreakFlag> flags)\n", false, &_init_f_setPageBreakPolicy_3611, &_call_f_setPageBreakPolicy_3611);
}

// void QTextBlockFormat::setRightMargin(double margin)


static void _init_f_setRightMargin_1071 (qt_gsi::GenericMethod *decl)
{
  static gsi::ArgSpecBase argspec_0 ("margin");
  decl->add_arg<double > (argspec_0);
  decl->set_return<void > ();
}

static void _call_f_setRightMargin_1071 (const qt_gsi::GenericMethod *decl, void *cls, gsi::SerialArgs &args, gsi::SerialArgs &ret) 
{
  double arg1 = args.read<double > ();
  ((QTextBlockFormat *)cls)->setRightMargin (arg1);
}

static qt_gsi::GenericMethod *_create_f_setRightMargin_1071 ()
{
  return new qt_gsi::GenericMethod ("setRightMargin|rightMargin=", "@brief Method void QTextBlockFormat::setRightMargin(double margin)\n", false, &_init_f_setRightMargin_1071, &_call_f_setRightMargin_1071);
}

// void QTextBlockFormat::setTabPositions(const QList<QTextOption::Tab> &tabs)


static void _init_f_setTabPositions_3458 (qt_gsi::GenericMethod *decl)
{
  static gsi::ArgSpecBase argspec_0 ("tabs");
  decl->add_arg<const qt_gsi::Converter<QList<QTextOption::Tab> >::target_type & > (argspec_0);
  decl->set_return<void > ();
}

static void _call_f_setTabPositions_3458 (const qt_gsi::GenericMethod *decl, void *cls, gsi::SerialArgs &args, gsi::SerialArgs &ret) 
{
  const qt_gsi::Converter<QList<QTextOption::Tab> >::target_type & arg1 = args.read<const qt_gsi::Converter<QList<QTextOption::Tab> >::target_type & > ();
  ((QTextBlockFormat *)cls)->setTabPositions (qt_gsi::QtToCppAdaptor<QList<QTextOption::Tab> >(arg1).cref());
}

static qt_gsi::GenericMethod *_create_f_setTabPositions_3458 ()
{
  return new qt_gsi::GenericMethod ("setTabPositions|tabPositions=", "@brief Method void QTextBlockFormat::setTabPositions(const QList<QTextOption::Tab> &tabs)\n", false, &_init_f_setTabPositions_3458, &_call_f_setTabPositions_3458);
}

// void QTextBlockFormat::setTextIndent(double aindent)


static void _init_f_setTextIndent_1071 (qt_gsi::GenericMethod *decl)
{
  static gsi::ArgSpecBase argspec_0 ("aindent");
  decl->add_arg<double > (argspec_0);
  decl->set_return<void > ();
}

static void _call_f_setTextIndent_1071 (const qt_gsi::GenericMethod *decl, void *cls, gsi::SerialArgs &args, gsi::SerialArgs &ret) 
{
  double arg1 = args.read<double > ();
  ((QTextBlockFormat *)cls)->setTextIndent (arg1);
}

static qt_gsi::GenericMethod *_create_f_setTextIndent_1071 ()
{
  return new qt_gsi::GenericMethod ("setTextIndent|textIndent=", "@brief Method void QTextBlockFormat::setTextIndent(double aindent)\n", false, &_init_f_setTextIndent_1071, &_call_f_setTextIndent_1071);
}

// void QTextBlockFormat::setTopMargin(double margin)


static void _init_f_setTopMargin_1071 (qt_gsi::GenericMethod *decl)
{
  static gsi::ArgSpecBase argspec_0 ("margin");
  decl->add_arg<double > (argspec_0);
  decl->set_return<void > ();
}

static void _call_f_setTopMargin_1071 (const qt_gsi::GenericMethod *decl, void *cls, gsi::SerialArgs &args, gsi::SerialArgs &ret) 
{
  double arg1 = args.read<double > ();
  ((QTextBlockFormat *)cls)->setTopMargin (arg1);
}

static qt_gsi::GenericMethod *_create_f_setTopMargin_1071 ()
{
  return new qt_gsi::GenericMethod ("setTopMargin|topMargin=", "@brief Method void QTextBlockFormat::setTopMargin(double margin)\n", false, &_init_f_setTopMargin_1071, &_call_f_setTopMargin_1071);
}

// QList<QTextOption::Tab> QTextBlockFormat::tabPositions()


static void _init_f_tabPositions_c0 (qt_gsi::GenericMethod *decl)
{
  decl->set_return<qt_gsi::Converter<QList<QTextOption::Tab> >::target_type > ();
}

static void _call_f_tabPositions_c0 (const qt_gsi::GenericMethod *decl, void *cls, gsi::SerialArgs &args, gsi::SerialArgs &ret) 
{
  ret.write<qt_gsi::Converter<QList<QTextOption::Tab> >::target_type > ((qt_gsi::Converter<QList<QTextOption::Tab> >::target_type)qt_gsi::CppToQtAdaptor<QList<QTextOption::Tab> >(((QTextBlockFormat *)cls)->tabPositions ()));
}

static qt_gsi::GenericMethod *_create_f_tabPositions_c0 ()
{
  return new qt_gsi::GenericMethod (":tabPositions", "@brief Method QList<QTextOption::Tab> QTextBlockFormat::tabPositions()\n", true, &_init_f_tabPositions_c0, &_call_f_tabPositions_c0);
}

// double QTextBlockFormat::textIndent()


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

static void _call_f_textIndent_c0 (const qt_gsi::GenericMethod *decl, void *cls, gsi::SerialArgs &args, gsi::SerialArgs &ret) 
{
  ret.write<double > ((double)((QTextBlockFormat *)cls)->textIndent ());
}

static qt_gsi::GenericMethod *_create_f_textIndent_c0 ()
{
  return new qt_gsi::GenericMethod (":textIndent", "@brief Method double QTextBlockFormat::textIndent()\n", true, &_init_f_textIndent_c0, &_call_f_textIndent_c0);
}

// double QTextBlockFormat::topMargin()


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

static void _call_f_topMargin_c0 (const qt_gsi::GenericMethod *decl, void *cls, gsi::SerialArgs &args, gsi::SerialArgs &ret) 
{
  ret.write<double > ((double)((QTextBlockFormat *)cls)->topMargin ());
}

static qt_gsi::GenericMethod *_create_f_topMargin_c0 ()
{
  return new qt_gsi::GenericMethod (":topMargin", "@brief Method double QTextBlockFormat::topMargin()\n", true, &_init_f_topMargin_c0, &_call_f_topMargin_c0);
}


namespace gsi
{
extern gsi::Class<QTextFormat> decl_QTextFormat;

gsi::Class<QTextBlockFormat> decl_QTextBlockFormat (decl_QTextFormat, "QTextBlockFormat",
  gsi::Methods(_create_ctor_QTextBlockFormat_0 ()) +
  gsi::Methods(_create_f_alignment_c0 ()) +
  gsi::Methods(_create_f_bottomMargin_c0 ()) +
  gsi::Methods(_create_f_indent_c0 ()) +
  gsi::Methods(_create_f_isValid_c0 ()) +
  gsi::Methods(_create_f_leftMargin_c0 ()) +
  gsi::Methods(_create_f_nonBreakableLines_c0 ()) +
  gsi::Methods(_create_f_pageBreakPolicy_c0 ()) +
  gsi::Methods(_create_f_rightMargin_c0 ()) +
  gsi::Methods(_create_f_setAlignment_2750 ()) +
  gsi::Methods(_create_f_setBottomMargin_1071 ()) +
  gsi::Methods(_create_f_setIndent_767 ()) +
  gsi::Methods(_create_f_setLeftMargin_1071 ()) +
  gsi::Methods(_create_f_setNonBreakableLines_864 ()) +
  gsi::Methods(_create_f_setPageBreakPolicy_3611 ()) +
  gsi::Methods(_create_f_setRightMargin_1071 ()) +
  gsi::Methods(_create_f_setTabPositions_3458 ()) +
  gsi::Methods(_create_f_setTextIndent_1071 ()) +
  gsi::Methods(_create_f_setTopMargin_1071 ()) +
  gsi::Methods(_create_f_tabPositions_c0 ()) +
  gsi::Methods(_create_f_textIndent_c0 ()) +
  gsi::Methods(_create_f_topMargin_c0 ()),
  "@qt\n@brief Binding of QTextBlockFormat");

}

