/* 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 gsiDeclQTextListFormat.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 QTextListFormat // Constructor QTextListFormat::QTextListFormat() static void _init_ctor_QTextListFormat_0 (qt_gsi::GenericStaticMethod *decl) { decl->set_return_new (); } static void _call_ctor_QTextListFormat_0 (const qt_gsi::GenericStaticMethod * /*decl*/, gsi::SerialArgs &args, gsi::SerialArgs &ret) { __SUPPRESS_UNUSED_WARNING(args); ret.write (new QTextListFormat ()); } // int QTextListFormat::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)((QTextListFormat *)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)((QTextListFormat *)cls)->isValid ()); } // void QTextListFormat::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); ((QTextListFormat *)cls)->setIndent (arg1); } // void QTextListFormat::setStyle(QTextListFormat::Style style) static void _init_f_setStyle_2612 (qt_gsi::GenericMethod *decl) { static gsi::ArgSpecBase argspec_0 ("style"); decl->add_arg::target_type & > (argspec_0); decl->set_return (); } static void _call_f_setStyle_2612 (const qt_gsi::GenericMethod * /*decl*/, void *cls, gsi::SerialArgs &args, gsi::SerialArgs &ret) { __SUPPRESS_UNUSED_WARNING(args); tl::Heap heap; const qt_gsi::Converter::target_type & arg1 = args.read::target_type & > (heap); __SUPPRESS_UNUSED_WARNING(ret); ((QTextListFormat *)cls)->setStyle (qt_gsi::QtToCppAdaptor(arg1).cref()); } // QTextListFormat::Style QTextListFormat::style() static void _init_f_style_c0 (qt_gsi::GenericMethod *decl) { decl->set_return::target_type > (); } static void _call_f_style_c0 (const qt_gsi::GenericMethod * /*decl*/, void *cls, gsi::SerialArgs &args, gsi::SerialArgs &ret) { __SUPPRESS_UNUSED_WARNING(args); ret.write::target_type > ((qt_gsi::Converter::target_type)qt_gsi::CppToQtAdaptor(((QTextListFormat *)cls)->style ())); } namespace gsi { static gsi::Methods methods_QTextListFormat () { gsi::Methods methods; methods += new qt_gsi::GenericStaticMethod ("new", "@brief Constructor QTextListFormat::QTextListFormat()\nThis method creates an object of class QTextListFormat.", &_init_ctor_QTextListFormat_0, &_call_ctor_QTextListFormat_0); methods += new qt_gsi::GenericMethod (":indent", "@brief Method int QTextListFormat::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 ("setIndent|indent=", "@brief Method void QTextListFormat::setIndent(int indent)\n", false, &_init_f_setIndent_767, &_call_f_setIndent_767); methods += new qt_gsi::GenericMethod ("setStyle|style=", "@brief Method void QTextListFormat::setStyle(QTextListFormat::Style style)\n", false, &_init_f_setStyle_2612, &_call_f_setStyle_2612); methods += new qt_gsi::GenericMethod (":style", "@brief Method QTextListFormat::Style QTextListFormat::style()\n", true, &_init_f_style_c0, &_call_f_style_c0); return methods; } gsi::Class &qtdecl_QTextFormat (); gsi::Class decl_QTextListFormat (qtdecl_QTextFormat (), "QTextListFormat", methods_QTextListFormat (), "@qt\n@brief Binding of QTextListFormat"); GSIQT_PUBLIC gsi::Class &qtdecl_QTextListFormat () { return decl_QTextListFormat; } } // Implementation of the enum wrapper class for QTextListFormat::Style namespace qt_gsi { static gsi::Enum decl_QTextListFormat_Style_Enum ("QTextListFormat_Style", gsi::enum_const ("ListDisc", QTextListFormat::ListDisc, "@brief Enum constant QTextListFormat::ListDisc") + gsi::enum_const ("ListCircle", QTextListFormat::ListCircle, "@brief Enum constant QTextListFormat::ListCircle") + gsi::enum_const ("ListSquare", QTextListFormat::ListSquare, "@brief Enum constant QTextListFormat::ListSquare") + gsi::enum_const ("ListDecimal", QTextListFormat::ListDecimal, "@brief Enum constant QTextListFormat::ListDecimal") + gsi::enum_const ("ListLowerAlpha", QTextListFormat::ListLowerAlpha, "@brief Enum constant QTextListFormat::ListLowerAlpha") + gsi::enum_const ("ListUpperAlpha", QTextListFormat::ListUpperAlpha, "@brief Enum constant QTextListFormat::ListUpperAlpha") + gsi::enum_const ("ListLowerRoman", QTextListFormat::ListLowerRoman, "@brief Enum constant QTextListFormat::ListLowerRoman") + gsi::enum_const ("ListUpperRoman", QTextListFormat::ListUpperRoman, "@brief Enum constant QTextListFormat::ListUpperRoman") + gsi::enum_const ("ListStyleUndefined", QTextListFormat::ListStyleUndefined, "@brief Enum constant QTextListFormat::ListStyleUndefined"), "@qt\n@brief This class represents the QTextListFormat::Style enum"); static gsi::QFlagsClass decl_QTextListFormat_Style_Enums ("QTextListFormat_QFlags_Style", "@qt\n@brief This class represents the QFlags flag set"); // Inject the declarations into the parent static gsi::ClassExt inject_QTextListFormat_Style_Enum_in_parent (decl_QTextListFormat_Style_Enum.defs ()); static gsi::ClassExt decl_QTextListFormat_Style_Enum_as_child (decl_QTextListFormat_Style_Enum, "Style"); static gsi::ClassExt decl_QTextListFormat_Style_Enums_as_child (decl_QTextListFormat_Style_Enums, "QFlags_Style"); }