/* KLayout Layout Viewer Copyright (C) 2006-2017 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 #include #include #include #include #include #include #include #include #include #include #include #include "gsiQt.h" #include "gsiQtCommon.h" #include "gsiDeclQtTypeTraits.h" #include // ----------------------------------------------------------------------- // class QTextBlockFormat // Constructor QTextBlockFormat::QTextBlockFormat() static void _init_ctor_QTextBlockFormat_0 (qt_gsi::GenericStaticMethod *decl) { decl->set_return_new (); } static void _call_ctor_QTextBlockFormat_0 (const qt_gsi::GenericStaticMethod * /*decl*/, gsi::SerialArgs &args, gsi::SerialArgs &ret) { __SUPPRESS_UNUSED_WARNING(args); ret.write (new QTextBlockFormat ()); } // QFlags QTextBlockFormat::alignment() static void _init_f_alignment_c0 (qt_gsi::GenericMethod *decl) { decl->set_return > (); } static void _call_f_alignment_c0 (const qt_gsi::GenericMethod * /*decl*/, void *cls, gsi::SerialArgs &args, gsi::SerialArgs &ret) { __SUPPRESS_UNUSED_WARNING(args); ret.write > ((QFlags)((QTextBlockFormat *)cls)->alignment ()); } // double QTextBlockFormat::bottomMargin() static void _init_f_bottomMargin_c0 (qt_gsi::GenericMethod *decl) { decl->set_return (); } static void _call_f_bottomMargin_c0 (const qt_gsi::GenericMethod * /*decl*/, void *cls, gsi::SerialArgs &args, gsi::SerialArgs &ret) { __SUPPRESS_UNUSED_WARNING(args); ret.write ((double)((QTextBlockFormat *)cls)->bottomMargin ()); } // int QTextBlockFormat::indent() static void _init_f_indent_c0 (qt_gsi::GenericMethod *decl) { decl->set_return (); } static void _call_f_indent_c0 (const qt_gsi::GenericMethod * /*decl*/, void *cls, gsi::SerialArgs &args, gsi::SerialArgs &ret) { __SUPPRESS_UNUSED_WARNING(args); ret.write ((int)((QTextBlockFormat *)cls)->indent ()); } // () const static void _init_f_isValid_c0 (qt_gsi::GenericMethod *decl) { decl->set_return (); } static void _call_f_isValid_c0 (const qt_gsi::GenericMethod * /*decl*/, void *cls, gsi::SerialArgs &args, gsi::SerialArgs &ret) { __SUPPRESS_UNUSED_WARNING(args); ret.write ((bool)((QTextBlockFormat *)cls)->isValid ()); } // double QTextBlockFormat::leftMargin() static void _init_f_leftMargin_c0 (qt_gsi::GenericMethod *decl) { decl->set_return (); } static void _call_f_leftMargin_c0 (const qt_gsi::GenericMethod * /*decl*/, void *cls, gsi::SerialArgs &args, gsi::SerialArgs &ret) { __SUPPRESS_UNUSED_WARNING(args); ret.write ((double)((QTextBlockFormat *)cls)->leftMargin ()); } // bool QTextBlockFormat::nonBreakableLines() static void _init_f_nonBreakableLines_c0 (qt_gsi::GenericMethod *decl) { decl->set_return (); } static void _call_f_nonBreakableLines_c0 (const qt_gsi::GenericMethod * /*decl*/, void *cls, gsi::SerialArgs &args, gsi::SerialArgs &ret) { __SUPPRESS_UNUSED_WARNING(args); ret.write ((bool)((QTextBlockFormat *)cls)->nonBreakableLines ()); } // QFlags QTextBlockFormat::pageBreakPolicy() static void _init_f_pageBreakPolicy_c0 (qt_gsi::GenericMethod *decl) { decl->set_return > (); } static void _call_f_pageBreakPolicy_c0 (const qt_gsi::GenericMethod * /*decl*/, void *cls, gsi::SerialArgs &args, gsi::SerialArgs &ret) { __SUPPRESS_UNUSED_WARNING(args); ret.write > ((QFlags)((QTextBlockFormat *)cls)->pageBreakPolicy ()); } // double QTextBlockFormat::rightMargin() static void _init_f_rightMargin_c0 (qt_gsi::GenericMethod *decl) { decl->set_return (); } static void _call_f_rightMargin_c0 (const qt_gsi::GenericMethod * /*decl*/, void *cls, gsi::SerialArgs &args, gsi::SerialArgs &ret) { __SUPPRESS_UNUSED_WARNING(args); ret.write ((double)((QTextBlockFormat *)cls)->rightMargin ()); } // void QTextBlockFormat::setAlignment(QFlags alignment) static void _init_f_setAlignment_2750 (qt_gsi::GenericMethod *decl) { static gsi::ArgSpecBase argspec_0 ("alignment"); decl->add_arg > (argspec_0); decl->set_return (); } static void _call_f_setAlignment_2750 (const qt_gsi::GenericMethod * /*decl*/, void *cls, gsi::SerialArgs &args, gsi::SerialArgs &ret) { __SUPPRESS_UNUSED_WARNING(args); tl::Heap heap; QFlags arg1 = args.read > (heap); __SUPPRESS_UNUSED_WARNING(ret); ((QTextBlockFormat *)cls)->setAlignment (arg1); } // void QTextBlockFormat::setBottomMargin(double margin) static void _init_f_setBottomMargin_1071 (qt_gsi::GenericMethod *decl) { static gsi::ArgSpecBase argspec_0 ("margin"); decl->add_arg (argspec_0); decl->set_return (); } static void _call_f_setBottomMargin_1071 (const qt_gsi::GenericMethod * /*decl*/, void *cls, gsi::SerialArgs &args, gsi::SerialArgs &ret) { __SUPPRESS_UNUSED_WARNING(args); tl::Heap heap; double arg1 = args.read (heap); __SUPPRESS_UNUSED_WARNING(ret); ((QTextBlockFormat *)cls)->setBottomMargin (arg1); } // void QTextBlockFormat::setIndent(int indent) static void _init_f_setIndent_767 (qt_gsi::GenericMethod *decl) { static gsi::ArgSpecBase argspec_0 ("indent"); decl->add_arg (argspec_0); decl->set_return (); } static void _call_f_setIndent_767 (const qt_gsi::GenericMethod * /*decl*/, void *cls, gsi::SerialArgs &args, gsi::SerialArgs &ret) { __SUPPRESS_UNUSED_WARNING(args); tl::Heap heap; int arg1 = args.read (heap); __SUPPRESS_UNUSED_WARNING(ret); ((QTextBlockFormat *)cls)->setIndent (arg1); } // void QTextBlockFormat::setLeftMargin(double margin) static void _init_f_setLeftMargin_1071 (qt_gsi::GenericMethod *decl) { static gsi::ArgSpecBase argspec_0 ("margin"); decl->add_arg (argspec_0); decl->set_return (); } static void _call_f_setLeftMargin_1071 (const qt_gsi::GenericMethod * /*decl*/, void *cls, gsi::SerialArgs &args, gsi::SerialArgs &ret) { __SUPPRESS_UNUSED_WARNING(args); tl::Heap heap; double arg1 = args.read (heap); __SUPPRESS_UNUSED_WARNING(ret); ((QTextBlockFormat *)cls)->setLeftMargin (arg1); } // void QTextBlockFormat::setNonBreakableLines(bool b) static void _init_f_setNonBreakableLines_864 (qt_gsi::GenericMethod *decl) { static gsi::ArgSpecBase argspec_0 ("b"); decl->add_arg (argspec_0); decl->set_return (); } static void _call_f_setNonBreakableLines_864 (const qt_gsi::GenericMethod * /*decl*/, void *cls, gsi::SerialArgs &args, gsi::SerialArgs &ret) { __SUPPRESS_UNUSED_WARNING(args); tl::Heap heap; bool arg1 = args.read (heap); __SUPPRESS_UNUSED_WARNING(ret); ((QTextBlockFormat *)cls)->setNonBreakableLines (arg1); } // void QTextBlockFormat::setPageBreakPolicy(QFlags flags) static void _init_f_setPageBreakPolicy_3611 (qt_gsi::GenericMethod *decl) { static gsi::ArgSpecBase argspec_0 ("flags"); decl->add_arg > (argspec_0); decl->set_return (); } static void _call_f_setPageBreakPolicy_3611 (const qt_gsi::GenericMethod * /*decl*/, void *cls, gsi::SerialArgs &args, gsi::SerialArgs &ret) { __SUPPRESS_UNUSED_WARNING(args); tl::Heap heap; QFlags arg1 = args.read > (heap); __SUPPRESS_UNUSED_WARNING(ret); ((QTextBlockFormat *)cls)->setPageBreakPolicy (arg1); } // void QTextBlockFormat::setRightMargin(double margin) static void _init_f_setRightMargin_1071 (qt_gsi::GenericMethod *decl) { static gsi::ArgSpecBase argspec_0 ("margin"); decl->add_arg (argspec_0); decl->set_return (); } static void _call_f_setRightMargin_1071 (const qt_gsi::GenericMethod * /*decl*/, void *cls, gsi::SerialArgs &args, gsi::SerialArgs &ret) { __SUPPRESS_UNUSED_WARNING(args); tl::Heap heap; double arg1 = args.read (heap); __SUPPRESS_UNUSED_WARNING(ret); ((QTextBlockFormat *)cls)->setRightMargin (arg1); } // void QTextBlockFormat::setTabPositions(const QList &tabs) static void _init_f_setTabPositions_3458 (qt_gsi::GenericMethod *decl) { static gsi::ArgSpecBase argspec_0 ("tabs"); decl->add_arg & > (argspec_0); decl->set_return (); } static void _call_f_setTabPositions_3458 (const qt_gsi::GenericMethod * /*decl*/, void *cls, gsi::SerialArgs &args, gsi::SerialArgs &ret) { __SUPPRESS_UNUSED_WARNING(args); tl::Heap heap; const QList &arg1 = args.read & > (heap); __SUPPRESS_UNUSED_WARNING(ret); ((QTextBlockFormat *)cls)->setTabPositions (arg1); } // void QTextBlockFormat::setTextIndent(double aindent) static void _init_f_setTextIndent_1071 (qt_gsi::GenericMethod *decl) { static gsi::ArgSpecBase argspec_0 ("aindent"); decl->add_arg (argspec_0); decl->set_return (); } static void _call_f_setTextIndent_1071 (const qt_gsi::GenericMethod * /*decl*/, void *cls, gsi::SerialArgs &args, gsi::SerialArgs &ret) { __SUPPRESS_UNUSED_WARNING(args); tl::Heap heap; double arg1 = args.read (heap); __SUPPRESS_UNUSED_WARNING(ret); ((QTextBlockFormat *)cls)->setTextIndent (arg1); } // void QTextBlockFormat::setTopMargin(double margin) static void _init_f_setTopMargin_1071 (qt_gsi::GenericMethod *decl) { static gsi::ArgSpecBase argspec_0 ("margin"); decl->add_arg (argspec_0); decl->set_return (); } static void _call_f_setTopMargin_1071 (const qt_gsi::GenericMethod * /*decl*/, void *cls, gsi::SerialArgs &args, gsi::SerialArgs &ret) { __SUPPRESS_UNUSED_WARNING(args); tl::Heap heap; double arg1 = args.read (heap); __SUPPRESS_UNUSED_WARNING(ret); ((QTextBlockFormat *)cls)->setTopMargin (arg1); } // QList QTextBlockFormat::tabPositions() static void _init_f_tabPositions_c0 (qt_gsi::GenericMethod *decl) { decl->set_return > (); } static void _call_f_tabPositions_c0 (const qt_gsi::GenericMethod * /*decl*/, void *cls, gsi::SerialArgs &args, gsi::SerialArgs &ret) { __SUPPRESS_UNUSED_WARNING(args); ret.write > ((QList)((QTextBlockFormat *)cls)->tabPositions ()); } // double QTextBlockFormat::textIndent() static void _init_f_textIndent_c0 (qt_gsi::GenericMethod *decl) { decl->set_return (); } static void _call_f_textIndent_c0 (const qt_gsi::GenericMethod * /*decl*/, void *cls, gsi::SerialArgs &args, gsi::SerialArgs &ret) { __SUPPRESS_UNUSED_WARNING(args); ret.write ((double)((QTextBlockFormat *)cls)->textIndent ()); } // double QTextBlockFormat::topMargin() static void _init_f_topMargin_c0 (qt_gsi::GenericMethod *decl) { decl->set_return (); } static void _call_f_topMargin_c0 (const qt_gsi::GenericMethod * /*decl*/, void *cls, gsi::SerialArgs &args, gsi::SerialArgs &ret) { __SUPPRESS_UNUSED_WARNING(args); ret.write ((double)((QTextBlockFormat *)cls)->topMargin ()); } namespace gsi { static gsi::Methods methods_QTextBlockFormat () { gsi::Methods methods; methods += 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); methods += new qt_gsi::GenericMethod (":alignment", "@brief Method QFlags QTextBlockFormat::alignment()\n", true, &_init_f_alignment_c0, &_call_f_alignment_c0); methods += new qt_gsi::GenericMethod (":bottomMargin", "@brief Method double QTextBlockFormat::bottomMargin()\n", true, &_init_f_bottomMargin_c0, &_call_f_bottomMargin_c0); methods += new qt_gsi::GenericMethod (":indent", "@brief Method int QTextBlockFormat::indent()\n", true, &_init_f_indent_c0, &_call_f_indent_c0); methods += new qt_gsi::GenericMethod ("isValid?", "@brief Method () const\n", true, &_init_f_isValid_c0, &_call_f_isValid_c0); methods += new qt_gsi::GenericMethod (":leftMargin", "@brief Method double QTextBlockFormat::leftMargin()\n", true, &_init_f_leftMargin_c0, &_call_f_leftMargin_c0); methods += new qt_gsi::GenericMethod (":nonBreakableLines", "@brief Method bool QTextBlockFormat::nonBreakableLines()\n", true, &_init_f_nonBreakableLines_c0, &_call_f_nonBreakableLines_c0); methods += new qt_gsi::GenericMethod (":pageBreakPolicy", "@brief Method QFlags QTextBlockFormat::pageBreakPolicy()\n", true, &_init_f_pageBreakPolicy_c0, &_call_f_pageBreakPolicy_c0); methods += new qt_gsi::GenericMethod (":rightMargin", "@brief Method double QTextBlockFormat::rightMargin()\n", true, &_init_f_rightMargin_c0, &_call_f_rightMargin_c0); methods += new qt_gsi::GenericMethod ("setAlignment|alignment=", "@brief Method void QTextBlockFormat::setAlignment(QFlags alignment)\n", false, &_init_f_setAlignment_2750, &_call_f_setAlignment_2750); methods += new qt_gsi::GenericMethod ("setBottomMargin|bottomMargin=", "@brief Method void QTextBlockFormat::setBottomMargin(double margin)\n", false, &_init_f_setBottomMargin_1071, &_call_f_setBottomMargin_1071); methods += new qt_gsi::GenericMethod ("setIndent|indent=", "@brief Method void QTextBlockFormat::setIndent(int indent)\n", false, &_init_f_setIndent_767, &_call_f_setIndent_767); methods += new qt_gsi::GenericMethod ("setLeftMargin|leftMargin=", "@brief Method void QTextBlockFormat::setLeftMargin(double margin)\n", false, &_init_f_setLeftMargin_1071, &_call_f_setLeftMargin_1071); methods += new qt_gsi::GenericMethod ("setNonBreakableLines|nonBreakableLines=", "@brief Method void QTextBlockFormat::setNonBreakableLines(bool b)\n", false, &_init_f_setNonBreakableLines_864, &_call_f_setNonBreakableLines_864); methods += new qt_gsi::GenericMethod ("setPageBreakPolicy|pageBreakPolicy=", "@brief Method void QTextBlockFormat::setPageBreakPolicy(QFlags flags)\n", false, &_init_f_setPageBreakPolicy_3611, &_call_f_setPageBreakPolicy_3611); methods += new qt_gsi::GenericMethod ("setRightMargin|rightMargin=", "@brief Method void QTextBlockFormat::setRightMargin(double margin)\n", false, &_init_f_setRightMargin_1071, &_call_f_setRightMargin_1071); methods += new qt_gsi::GenericMethod ("setTabPositions|tabPositions=", "@brief Method void QTextBlockFormat::setTabPositions(const QList &tabs)\n", false, &_init_f_setTabPositions_3458, &_call_f_setTabPositions_3458); methods += new qt_gsi::GenericMethod ("setTextIndent|textIndent=", "@brief Method void QTextBlockFormat::setTextIndent(double aindent)\n", false, &_init_f_setTextIndent_1071, &_call_f_setTextIndent_1071); methods += new qt_gsi::GenericMethod ("setTopMargin|topMargin=", "@brief Method void QTextBlockFormat::setTopMargin(double margin)\n", false, &_init_f_setTopMargin_1071, &_call_f_setTopMargin_1071); methods += new qt_gsi::GenericMethod (":tabPositions", "@brief Method QList QTextBlockFormat::tabPositions()\n", true, &_init_f_tabPositions_c0, &_call_f_tabPositions_c0); methods += new qt_gsi::GenericMethod (":textIndent", "@brief Method double QTextBlockFormat::textIndent()\n", true, &_init_f_textIndent_c0, &_call_f_textIndent_c0); methods += new qt_gsi::GenericMethod (":topMargin", "@brief Method double QTextBlockFormat::topMargin()\n", true, &_init_f_topMargin_c0, &_call_f_topMargin_c0); return methods; } gsi::Class &qtdecl_QTextFormat (); gsi::Class decl_QTextBlockFormat (qtdecl_QTextFormat (), "QTextBlockFormat", methods_QTextBlockFormat (), "@qt\n@brief Binding of QTextBlockFormat"); GSIQT_PUBLIC gsi::Class &qtdecl_QTextBlockFormat () { return decl_QTextBlockFormat; } }