/* 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 gsiDeclQGraphicsSceneEvent.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 QGraphicsSceneEvent // void QGraphicsSceneEvent::setWidget(QWidget *widget) static void _init_f_setWidget_1315 (qt_gsi::GenericMethod *decl) { static gsi::ArgSpecBase argspec_0 ("widget"); decl->add_arg (argspec_0); decl->set_return (); } static void _call_f_setWidget_1315 (const qt_gsi::GenericMethod * /*decl*/, void *cls, gsi::SerialArgs &args, gsi::SerialArgs &ret) { __SUPPRESS_UNUSED_WARNING(args); tl::Heap heap; QWidget *arg1 = args.read (heap); __SUPPRESS_UNUSED_WARNING(ret); ((QGraphicsSceneEvent *)cls)->setWidget (arg1); } // QWidget *QGraphicsSceneEvent::widget() static void _init_f_widget_c0 (qt_gsi::GenericMethod *decl) { decl->set_return (); } static void _call_f_widget_c0 (const qt_gsi::GenericMethod * /*decl*/, void *cls, gsi::SerialArgs &args, gsi::SerialArgs &ret) { __SUPPRESS_UNUSED_WARNING(args); ret.write ((QWidget *)((QGraphicsSceneEvent *)cls)->widget ()); } namespace gsi { static gsi::Methods methods_QGraphicsSceneEvent () { gsi::Methods methods; methods += new qt_gsi::GenericMethod ("setWidget|widget=", "@brief Method void QGraphicsSceneEvent::setWidget(QWidget *widget)\n", false, &_init_f_setWidget_1315, &_call_f_setWidget_1315); methods += new qt_gsi::GenericMethod (":widget", "@brief Method QWidget *QGraphicsSceneEvent::widget()\n", true, &_init_f_widget_c0, &_call_f_widget_c0); return methods; } gsi::Class &qtdecl_QEvent (); gsi::Class decl_QGraphicsSceneEvent (qtdecl_QEvent (), "QGraphicsSceneEvent_Native", methods_QGraphicsSceneEvent (), "@hide\n@alias QGraphicsSceneEvent"); GSIQT_PUBLIC gsi::Class &qtdecl_QGraphicsSceneEvent () { return decl_QGraphicsSceneEvent; } } class QGraphicsSceneEvent_Adaptor : public QGraphicsSceneEvent, public qt_gsi::QtObjectBase { public: virtual ~QGraphicsSceneEvent_Adaptor(); // [adaptor ctor] QGraphicsSceneEvent::QGraphicsSceneEvent(QEvent::Type type) QGraphicsSceneEvent_Adaptor(QEvent::Type type) : QGraphicsSceneEvent(type) { qt_gsi::QtObjectBase::init (this); } }; QGraphicsSceneEvent_Adaptor::~QGraphicsSceneEvent_Adaptor() { } // Constructor QGraphicsSceneEvent::QGraphicsSceneEvent(QEvent::Type type) (adaptor class) static void _init_ctor_QGraphicsSceneEvent_Adaptor_1565 (qt_gsi::GenericStaticMethod *decl) { static gsi::ArgSpecBase argspec_0 ("type"); decl->add_arg::target_type & > (argspec_0); decl->set_return_new (); } static void _call_ctor_QGraphicsSceneEvent_Adaptor_1565 (const qt_gsi::GenericStaticMethod * /*decl*/, 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); ret.write (new QGraphicsSceneEvent_Adaptor (qt_gsi::QtToCppAdaptor(arg1).cref())); } namespace gsi { gsi::Class &qtdecl_QGraphicsSceneEvent (); static gsi::Methods methods_QGraphicsSceneEvent_Adaptor () { gsi::Methods methods; methods += new qt_gsi::GenericStaticMethod ("new", "@brief Constructor QGraphicsSceneEvent::QGraphicsSceneEvent(QEvent::Type type)\nThis method creates an object of class QGraphicsSceneEvent.", &_init_ctor_QGraphicsSceneEvent_Adaptor_1565, &_call_ctor_QGraphicsSceneEvent_Adaptor_1565); return methods; } gsi::Class decl_QGraphicsSceneEvent_Adaptor (qtdecl_QGraphicsSceneEvent (), "QGraphicsSceneEvent", methods_QGraphicsSceneEvent_Adaptor (), "@qt\n@brief Binding of QGraphicsSceneEvent"); }