/* KLayout Layout Viewer Copyright (C) 2006-2018 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 gsiDeclQModelIndex.cc * * DO NOT EDIT THIS FILE. * This file has been created automatically */ #include #include #include "gsiQt.h" #include "gsiQtCommon.h" #include "gsiDeclQtTypeTraits.h" #include // ----------------------------------------------------------------------- // class QModelIndex // Constructor QModelIndex::QModelIndex() static void _init_ctor_QModelIndex_0 (qt_gsi::GenericStaticMethod *decl) { decl->set_return_new (); } static void _call_ctor_QModelIndex_0 (const qt_gsi::GenericStaticMethod * /*decl*/, gsi::SerialArgs &args, gsi::SerialArgs &ret) { __SUPPRESS_UNUSED_WARNING(args); ret.write (new QModelIndex ()); } // Constructor QModelIndex::QModelIndex(const QModelIndex &other) static void _init_ctor_QModelIndex_2395 (qt_gsi::GenericStaticMethod *decl) { static gsi::ArgSpecBase argspec_0 ("other"); decl->add_arg (argspec_0); decl->set_return_new (); } static void _call_ctor_QModelIndex_2395 (const qt_gsi::GenericStaticMethod * /*decl*/, gsi::SerialArgs &args, gsi::SerialArgs &ret) { __SUPPRESS_UNUSED_WARNING(args); tl::Heap heap; const QModelIndex &arg1 = args.read (heap); ret.write (new QModelIndex (arg1)); } // QModelIndex QModelIndex::child(int row, int column) static void _init_f_child_c1426 (qt_gsi::GenericMethod *decl) { static gsi::ArgSpecBase argspec_0 ("row"); decl->add_arg (argspec_0); static gsi::ArgSpecBase argspec_1 ("column"); decl->add_arg (argspec_1); decl->set_return (); } static void _call_f_child_c1426 (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); int arg2 = args.read (heap); ret.write ((QModelIndex)((QModelIndex *)cls)->child (arg1, arg2)); } // int QModelIndex::column() static void _init_f_column_c0 (qt_gsi::GenericMethod *decl) { decl->set_return (); } static void _call_f_column_c0 (const qt_gsi::GenericMethod * /*decl*/, void *cls, gsi::SerialArgs &args, gsi::SerialArgs &ret) { __SUPPRESS_UNUSED_WARNING(args); ret.write ((int)((QModelIndex *)cls)->column ()); } // QVariant QModelIndex::data(int role) static void _init_f_data_c767 (qt_gsi::GenericMethod *decl) { static gsi::ArgSpecBase argspec_0 ("role", true, "Qt::DisplayRole"); decl->add_arg (argspec_0); decl->set_return (); } static void _call_f_data_c767 (const qt_gsi::GenericMethod * /*decl*/, void *cls, gsi::SerialArgs &args, gsi::SerialArgs &ret) { __SUPPRESS_UNUSED_WARNING(args); tl::Heap heap; int arg1 = args ? args.read (heap) : (int)(Qt::DisplayRole); ret.write ((QVariant)((QModelIndex *)cls)->data (arg1)); } // QFlags QModelIndex::flags() static void _init_f_flags_c0 (qt_gsi::GenericMethod *decl) { decl->set_return > (); } static void _call_f_flags_c0 (const qt_gsi::GenericMethod * /*decl*/, void *cls, gsi::SerialArgs &args, gsi::SerialArgs &ret) { __SUPPRESS_UNUSED_WARNING(args); ret.write > ((QFlags)((QModelIndex *)cls)->flags ()); } // qint64 QModelIndex::internalId() static void _init_f_internalId_c0 (qt_gsi::GenericMethod *decl) { decl->set_return (); } static void _call_f_internalId_c0 (const qt_gsi::GenericMethod * /*decl*/, void *cls, gsi::SerialArgs &args, gsi::SerialArgs &ret) { __SUPPRESS_UNUSED_WARNING(args); ret.write ((qint64)((QModelIndex *)cls)->internalId ()); } // void *QModelIndex::internalPointer() static void _init_f_internalPointer_c0 (qt_gsi::GenericMethod *decl) { decl->set_return (); } static void _call_f_internalPointer_c0 (const qt_gsi::GenericMethod * /*decl*/, void *cls, gsi::SerialArgs &args, gsi::SerialArgs &ret) { __SUPPRESS_UNUSED_WARNING(args); ret.write ((void *)((QModelIndex *)cls)->internalPointer ()); } // bool QModelIndex::isValid() 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)((QModelIndex *)cls)->isValid ()); } // const QAbstractItemModel *QModelIndex::model() static void _init_f_model_c0 (qt_gsi::GenericMethod *decl) { decl->set_return (); } static void _call_f_model_c0 (const qt_gsi::GenericMethod * /*decl*/, void *cls, gsi::SerialArgs &args, gsi::SerialArgs &ret) { __SUPPRESS_UNUSED_WARNING(args); ret.write ((const QAbstractItemModel *)((QModelIndex *)cls)->model ()); } // bool QModelIndex::operator!=(const QModelIndex &other) static void _init_f_operator_excl__eq__c2395 (qt_gsi::GenericMethod *decl) { static gsi::ArgSpecBase argspec_0 ("other"); decl->add_arg (argspec_0); decl->set_return (); } static void _call_f_operator_excl__eq__c2395 (const qt_gsi::GenericMethod * /*decl*/, void *cls, gsi::SerialArgs &args, gsi::SerialArgs &ret) { __SUPPRESS_UNUSED_WARNING(args); tl::Heap heap; const QModelIndex &arg1 = args.read (heap); ret.write ((bool)((QModelIndex *)cls)->operator!= (arg1)); } // bool QModelIndex::operator<(const QModelIndex &other) static void _init_f_operator_lt__c2395 (qt_gsi::GenericMethod *decl) { static gsi::ArgSpecBase argspec_0 ("other"); decl->add_arg (argspec_0); decl->set_return (); } static void _call_f_operator_lt__c2395 (const qt_gsi::GenericMethod * /*decl*/, void *cls, gsi::SerialArgs &args, gsi::SerialArgs &ret) { __SUPPRESS_UNUSED_WARNING(args); tl::Heap heap; const QModelIndex &arg1 = args.read (heap); ret.write ((bool)((QModelIndex *)cls)->operator< (arg1)); } // bool QModelIndex::operator==(const QModelIndex &other) static void _init_f_operator_eq__eq__c2395 (qt_gsi::GenericMethod *decl) { static gsi::ArgSpecBase argspec_0 ("other"); decl->add_arg (argspec_0); decl->set_return (); } static void _call_f_operator_eq__eq__c2395 (const qt_gsi::GenericMethod * /*decl*/, void *cls, gsi::SerialArgs &args, gsi::SerialArgs &ret) { __SUPPRESS_UNUSED_WARNING(args); tl::Heap heap; const QModelIndex &arg1 = args.read (heap); ret.write ((bool)((QModelIndex *)cls)->operator== (arg1)); } // QModelIndex QModelIndex::parent() static void _init_f_parent_c0 (qt_gsi::GenericMethod *decl) { decl->set_return (); } static void _call_f_parent_c0 (const qt_gsi::GenericMethod * /*decl*/, void *cls, gsi::SerialArgs &args, gsi::SerialArgs &ret) { __SUPPRESS_UNUSED_WARNING(args); ret.write ((QModelIndex)((QModelIndex *)cls)->parent ()); } // int QModelIndex::row() static void _init_f_row_c0 (qt_gsi::GenericMethod *decl) { decl->set_return (); } static void _call_f_row_c0 (const qt_gsi::GenericMethod * /*decl*/, void *cls, gsi::SerialArgs &args, gsi::SerialArgs &ret) { __SUPPRESS_UNUSED_WARNING(args); ret.write ((int)((QModelIndex *)cls)->row ()); } // QModelIndex QModelIndex::sibling(int row, int column) static void _init_f_sibling_c1426 (qt_gsi::GenericMethod *decl) { static gsi::ArgSpecBase argspec_0 ("row"); decl->add_arg (argspec_0); static gsi::ArgSpecBase argspec_1 ("column"); decl->add_arg (argspec_1); decl->set_return (); } static void _call_f_sibling_c1426 (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); int arg2 = args.read (heap); ret.write ((QModelIndex)((QModelIndex *)cls)->sibling (arg1, arg2)); } namespace gsi { static gsi::Methods methods_QModelIndex () { gsi::Methods methods; methods += new qt_gsi::GenericStaticMethod ("new", "@brief Constructor QModelIndex::QModelIndex()\nThis method creates an object of class QModelIndex.", &_init_ctor_QModelIndex_0, &_call_ctor_QModelIndex_0); methods += new qt_gsi::GenericStaticMethod ("new", "@brief Constructor QModelIndex::QModelIndex(const QModelIndex &other)\nThis method creates an object of class QModelIndex.", &_init_ctor_QModelIndex_2395, &_call_ctor_QModelIndex_2395); methods += new qt_gsi::GenericMethod ("child", "@brief Method QModelIndex QModelIndex::child(int row, int column)\n", true, &_init_f_child_c1426, &_call_f_child_c1426); methods += new qt_gsi::GenericMethod ("column", "@brief Method int QModelIndex::column()\n", true, &_init_f_column_c0, &_call_f_column_c0); methods += new qt_gsi::GenericMethod ("data", "@brief Method QVariant QModelIndex::data(int role)\n", true, &_init_f_data_c767, &_call_f_data_c767); methods += new qt_gsi::GenericMethod ("flags", "@brief Method QFlags QModelIndex::flags()\n", true, &_init_f_flags_c0, &_call_f_flags_c0); methods += new qt_gsi::GenericMethod ("internalId", "@brief Method qint64 QModelIndex::internalId()\n", true, &_init_f_internalId_c0, &_call_f_internalId_c0); methods += new qt_gsi::GenericMethod ("internalPointer", "@brief Method void *QModelIndex::internalPointer()\n", true, &_init_f_internalPointer_c0, &_call_f_internalPointer_c0); methods += new qt_gsi::GenericMethod ("isValid?", "@brief Method bool QModelIndex::isValid()\n", true, &_init_f_isValid_c0, &_call_f_isValid_c0); methods += new qt_gsi::GenericMethod ("model", "@brief Method const QAbstractItemModel *QModelIndex::model()\n", true, &_init_f_model_c0, &_call_f_model_c0); methods += new qt_gsi::GenericMethod ("!=", "@brief Method bool QModelIndex::operator!=(const QModelIndex &other)\n", true, &_init_f_operator_excl__eq__c2395, &_call_f_operator_excl__eq__c2395); methods += new qt_gsi::GenericMethod ("<", "@brief Method bool QModelIndex::operator<(const QModelIndex &other)\n", true, &_init_f_operator_lt__c2395, &_call_f_operator_lt__c2395); methods += new qt_gsi::GenericMethod ("==", "@brief Method bool QModelIndex::operator==(const QModelIndex &other)\n", true, &_init_f_operator_eq__eq__c2395, &_call_f_operator_eq__eq__c2395); methods += new qt_gsi::GenericMethod ("parent", "@brief Method QModelIndex QModelIndex::parent()\n", true, &_init_f_parent_c0, &_call_f_parent_c0); methods += new qt_gsi::GenericMethod ("row", "@brief Method int QModelIndex::row()\n", true, &_init_f_row_c0, &_call_f_row_c0); methods += new qt_gsi::GenericMethod ("sibling", "@brief Method QModelIndex QModelIndex::sibling(int row, int column)\n", true, &_init_f_sibling_c1426, &_call_f_sibling_c1426); return methods; } gsi::Class decl_QModelIndex ("QModelIndex", methods_QModelIndex (), "@qt\n@brief Binding of QModelIndex"); GSIQT_PUBLIC gsi::Class &qtdecl_QModelIndex () { return decl_QModelIndex; } }