/* 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 gsiDeclQGraphicsSceneWheelEvent.cc * * DO NOT EDIT THIS FILE. * This file has been created automatically */ #include #include #include #include #include "gsiQt.h" #include "gsiQtCommon.h" #include "gsiDeclQtTypeTraits.h" #include // ----------------------------------------------------------------------- // class QGraphicsSceneWheelEvent // QFlags QGraphicsSceneWheelEvent::buttons() static void _init_f_buttons_c0 (qt_gsi::GenericMethod *decl) { decl->set_return > (); } static void _call_f_buttons_c0 (const qt_gsi::GenericMethod * /*decl*/, void *cls, gsi::SerialArgs &args, gsi::SerialArgs &ret) { __SUPPRESS_UNUSED_WARNING(args); ret.write > ((QFlags)((QGraphicsSceneWheelEvent *)cls)->buttons ()); } // int QGraphicsSceneWheelEvent::delta() static void _init_f_delta_c0 (qt_gsi::GenericMethod *decl) { decl->set_return (); } static void _call_f_delta_c0 (const qt_gsi::GenericMethod * /*decl*/, void *cls, gsi::SerialArgs &args, gsi::SerialArgs &ret) { __SUPPRESS_UNUSED_WARNING(args); ret.write ((int)((QGraphicsSceneWheelEvent *)cls)->delta ()); } // QFlags QGraphicsSceneWheelEvent::modifiers() static void _init_f_modifiers_c0 (qt_gsi::GenericMethod *decl) { decl->set_return > (); } static void _call_f_modifiers_c0 (const qt_gsi::GenericMethod * /*decl*/, void *cls, gsi::SerialArgs &args, gsi::SerialArgs &ret) { __SUPPRESS_UNUSED_WARNING(args); ret.write > ((QFlags)((QGraphicsSceneWheelEvent *)cls)->modifiers ()); } // Qt::Orientation QGraphicsSceneWheelEvent::orientation() static void _init_f_orientation_c0 (qt_gsi::GenericMethod *decl) { decl->set_return::target_type > (); } static void _call_f_orientation_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(((QGraphicsSceneWheelEvent *)cls)->orientation ())); } // QPointF QGraphicsSceneWheelEvent::pos() static void _init_f_pos_c0 (qt_gsi::GenericMethod *decl) { decl->set_return (); } static void _call_f_pos_c0 (const qt_gsi::GenericMethod * /*decl*/, void *cls, gsi::SerialArgs &args, gsi::SerialArgs &ret) { __SUPPRESS_UNUSED_WARNING(args); ret.write ((QPointF)((QGraphicsSceneWheelEvent *)cls)->pos ()); } // QPointF QGraphicsSceneWheelEvent::scenePos() static void _init_f_scenePos_c0 (qt_gsi::GenericMethod *decl) { decl->set_return (); } static void _call_f_scenePos_c0 (const qt_gsi::GenericMethod * /*decl*/, void *cls, gsi::SerialArgs &args, gsi::SerialArgs &ret) { __SUPPRESS_UNUSED_WARNING(args); ret.write ((QPointF)((QGraphicsSceneWheelEvent *)cls)->scenePos ()); } // QPoint QGraphicsSceneWheelEvent::screenPos() static void _init_f_screenPos_c0 (qt_gsi::GenericMethod *decl) { decl->set_return (); } static void _call_f_screenPos_c0 (const qt_gsi::GenericMethod * /*decl*/, void *cls, gsi::SerialArgs &args, gsi::SerialArgs &ret) { __SUPPRESS_UNUSED_WARNING(args); ret.write ((QPoint)((QGraphicsSceneWheelEvent *)cls)->screenPos ()); } // void QGraphicsSceneWheelEvent::setButtons(QFlags buttons) static void _init_f_setButtons_2602 (qt_gsi::GenericMethod *decl) { static gsi::ArgSpecBase argspec_0 ("buttons"); decl->add_arg > (argspec_0); decl->set_return (); } static void _call_f_setButtons_2602 (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); ((QGraphicsSceneWheelEvent *)cls)->setButtons (arg1); } // void QGraphicsSceneWheelEvent::setDelta(int delta) static void _init_f_setDelta_767 (qt_gsi::GenericMethod *decl) { static gsi::ArgSpecBase argspec_0 ("delta"); decl->add_arg (argspec_0); decl->set_return (); } static void _call_f_setDelta_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); ((QGraphicsSceneWheelEvent *)cls)->setDelta (arg1); } // void QGraphicsSceneWheelEvent::setModifiers(QFlags modifiers) static void _init_f_setModifiers_3077 (qt_gsi::GenericMethod *decl) { static gsi::ArgSpecBase argspec_0 ("modifiers"); decl->add_arg > (argspec_0); decl->set_return (); } static void _call_f_setModifiers_3077 (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); ((QGraphicsSceneWheelEvent *)cls)->setModifiers (arg1); } // void QGraphicsSceneWheelEvent::setOrientation(Qt::Orientation orientation) static void _init_f_setOrientation_1913 (qt_gsi::GenericMethod *decl) { static gsi::ArgSpecBase argspec_0 ("orientation"); decl->add_arg::target_type & > (argspec_0); decl->set_return (); } static void _call_f_setOrientation_1913 (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); ((QGraphicsSceneWheelEvent *)cls)->setOrientation (qt_gsi::QtToCppAdaptor(arg1).cref()); } // void QGraphicsSceneWheelEvent::setPos(const QPointF &pos) static void _init_f_setPos_1986 (qt_gsi::GenericMethod *decl) { static gsi::ArgSpecBase argspec_0 ("pos"); decl->add_arg (argspec_0); decl->set_return (); } static void _call_f_setPos_1986 (const qt_gsi::GenericMethod * /*decl*/, void *cls, gsi::SerialArgs &args, gsi::SerialArgs &ret) { __SUPPRESS_UNUSED_WARNING(args); tl::Heap heap; const QPointF &arg1 = args.read (heap); __SUPPRESS_UNUSED_WARNING(ret); ((QGraphicsSceneWheelEvent *)cls)->setPos (arg1); } // void QGraphicsSceneWheelEvent::setScenePos(const QPointF &pos) static void _init_f_setScenePos_1986 (qt_gsi::GenericMethod *decl) { static gsi::ArgSpecBase argspec_0 ("pos"); decl->add_arg (argspec_0); decl->set_return (); } static void _call_f_setScenePos_1986 (const qt_gsi::GenericMethod * /*decl*/, void *cls, gsi::SerialArgs &args, gsi::SerialArgs &ret) { __SUPPRESS_UNUSED_WARNING(args); tl::Heap heap; const QPointF &arg1 = args.read (heap); __SUPPRESS_UNUSED_WARNING(ret); ((QGraphicsSceneWheelEvent *)cls)->setScenePos (arg1); } // void QGraphicsSceneWheelEvent::setScreenPos(const QPoint &pos) static void _init_f_setScreenPos_1916 (qt_gsi::GenericMethod *decl) { static gsi::ArgSpecBase argspec_0 ("pos"); decl->add_arg (argspec_0); decl->set_return (); } static void _call_f_setScreenPos_1916 (const qt_gsi::GenericMethod * /*decl*/, void *cls, gsi::SerialArgs &args, gsi::SerialArgs &ret) { __SUPPRESS_UNUSED_WARNING(args); tl::Heap heap; const QPoint &arg1 = args.read (heap); __SUPPRESS_UNUSED_WARNING(ret); ((QGraphicsSceneWheelEvent *)cls)->setScreenPos (arg1); } namespace gsi { static gsi::Methods methods_QGraphicsSceneWheelEvent () { gsi::Methods methods; methods += new qt_gsi::GenericMethod (":buttons", "@brief Method QFlags QGraphicsSceneWheelEvent::buttons()\n", true, &_init_f_buttons_c0, &_call_f_buttons_c0); methods += new qt_gsi::GenericMethod (":delta", "@brief Method int QGraphicsSceneWheelEvent::delta()\n", true, &_init_f_delta_c0, &_call_f_delta_c0); methods += new qt_gsi::GenericMethod (":modifiers", "@brief Method QFlags QGraphicsSceneWheelEvent::modifiers()\n", true, &_init_f_modifiers_c0, &_call_f_modifiers_c0); methods += new qt_gsi::GenericMethod (":orientation", "@brief Method Qt::Orientation QGraphicsSceneWheelEvent::orientation()\n", true, &_init_f_orientation_c0, &_call_f_orientation_c0); methods += new qt_gsi::GenericMethod (":pos", "@brief Method QPointF QGraphicsSceneWheelEvent::pos()\n", true, &_init_f_pos_c0, &_call_f_pos_c0); methods += new qt_gsi::GenericMethod (":scenePos", "@brief Method QPointF QGraphicsSceneWheelEvent::scenePos()\n", true, &_init_f_scenePos_c0, &_call_f_scenePos_c0); methods += new qt_gsi::GenericMethod (":screenPos", "@brief Method QPoint QGraphicsSceneWheelEvent::screenPos()\n", true, &_init_f_screenPos_c0, &_call_f_screenPos_c0); methods += new qt_gsi::GenericMethod ("setButtons|buttons=", "@brief Method void QGraphicsSceneWheelEvent::setButtons(QFlags buttons)\n", false, &_init_f_setButtons_2602, &_call_f_setButtons_2602); methods += new qt_gsi::GenericMethod ("setDelta|delta=", "@brief Method void QGraphicsSceneWheelEvent::setDelta(int delta)\n", false, &_init_f_setDelta_767, &_call_f_setDelta_767); methods += new qt_gsi::GenericMethod ("setModifiers|modifiers=", "@brief Method void QGraphicsSceneWheelEvent::setModifiers(QFlags modifiers)\n", false, &_init_f_setModifiers_3077, &_call_f_setModifiers_3077); methods += new qt_gsi::GenericMethod ("setOrientation|orientation=", "@brief Method void QGraphicsSceneWheelEvent::setOrientation(Qt::Orientation orientation)\n", false, &_init_f_setOrientation_1913, &_call_f_setOrientation_1913); methods += new qt_gsi::GenericMethod ("setPos|pos=", "@brief Method void QGraphicsSceneWheelEvent::setPos(const QPointF &pos)\n", false, &_init_f_setPos_1986, &_call_f_setPos_1986); methods += new qt_gsi::GenericMethod ("setScenePos|scenePos=", "@brief Method void QGraphicsSceneWheelEvent::setScenePos(const QPointF &pos)\n", false, &_init_f_setScenePos_1986, &_call_f_setScenePos_1986); methods += new qt_gsi::GenericMethod ("setScreenPos|screenPos=", "@brief Method void QGraphicsSceneWheelEvent::setScreenPos(const QPoint &pos)\n", false, &_init_f_setScreenPos_1916, &_call_f_setScreenPos_1916); return methods; } gsi::Class &qtdecl_QGraphicsSceneEvent (); gsi::Class decl_QGraphicsSceneWheelEvent (qtdecl_QGraphicsSceneEvent (), "QGraphicsSceneWheelEvent_Native", methods_QGraphicsSceneWheelEvent (), "@hide\n@alias QGraphicsSceneWheelEvent"); GSIQT_PUBLIC gsi::Class &qtdecl_QGraphicsSceneWheelEvent () { return decl_QGraphicsSceneWheelEvent; } } class QGraphicsSceneWheelEvent_Adaptor : public QGraphicsSceneWheelEvent, public qt_gsi::QtObjectBase { public: virtual ~QGraphicsSceneWheelEvent_Adaptor(); // [adaptor ctor] QGraphicsSceneWheelEvent::QGraphicsSceneWheelEvent(QEvent::Type type) QGraphicsSceneWheelEvent_Adaptor() : QGraphicsSceneWheelEvent() { qt_gsi::QtObjectBase::init (this); } // [adaptor ctor] QGraphicsSceneWheelEvent::QGraphicsSceneWheelEvent(QEvent::Type type) QGraphicsSceneWheelEvent_Adaptor(QEvent::Type type) : QGraphicsSceneWheelEvent(type) { qt_gsi::QtObjectBase::init (this); } }; QGraphicsSceneWheelEvent_Adaptor::~QGraphicsSceneWheelEvent_Adaptor() { } // Constructor QGraphicsSceneWheelEvent::QGraphicsSceneWheelEvent(QEvent::Type type) (adaptor class) static void _init_ctor_QGraphicsSceneWheelEvent_Adaptor_1565 (qt_gsi::GenericStaticMethod *decl) { static gsi::ArgSpecBase argspec_0 ("type", true, "QEvent::None"); decl->add_arg::target_type & > (argspec_0); decl->set_return_new (); } static void _call_ctor_QGraphicsSceneWheelEvent_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 ? args.read::target_type & > (heap) : (const qt_gsi::Converter::target_type &)(qt_gsi::CppToQtReadAdaptor(heap, QEvent::None)); ret.write (new QGraphicsSceneWheelEvent_Adaptor (qt_gsi::QtToCppAdaptor(arg1).cref())); } namespace gsi { gsi::Class &qtdecl_QGraphicsSceneWheelEvent (); static gsi::Methods methods_QGraphicsSceneWheelEvent_Adaptor () { gsi::Methods methods; methods += new qt_gsi::GenericStaticMethod ("new", "@brief Constructor QGraphicsSceneWheelEvent::QGraphicsSceneWheelEvent(QEvent::Type type)\nThis method creates an object of class QGraphicsSceneWheelEvent.", &_init_ctor_QGraphicsSceneWheelEvent_Adaptor_1565, &_call_ctor_QGraphicsSceneWheelEvent_Adaptor_1565); return methods; } gsi::Class decl_QGraphicsSceneWheelEvent_Adaptor (qtdecl_QGraphicsSceneWheelEvent (), "QGraphicsSceneWheelEvent", methods_QGraphicsSceneWheelEvent_Adaptor (), "@qt\n@brief Binding of QGraphicsSceneWheelEvent"); }