/* 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 gsiDeclQInputMethodQueryEvent.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 QInputMethodQueryEvent // QFlags QInputMethodQueryEvent::queries() static void _init_f_queries_c0 (qt_gsi::GenericMethod *decl) { decl->set_return > (); } static void _call_f_queries_c0 (const qt_gsi::GenericMethod * /*decl*/, void *cls, gsi::SerialArgs &args, gsi::SerialArgs &ret) { __SUPPRESS_UNUSED_WARNING(args); ret.write > ((QFlags)((QInputMethodQueryEvent *)cls)->queries ()); } // void QInputMethodQueryEvent::setValue(Qt::InputMethodQuery query, const QVariant &value) static void _init_f_setValue_4431 (qt_gsi::GenericMethod *decl) { static gsi::ArgSpecBase argspec_0 ("query"); decl->add_arg::target_type & > (argspec_0); static gsi::ArgSpecBase argspec_1 ("value"); decl->add_arg (argspec_1); decl->set_return (); } static void _call_f_setValue_4431 (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); const QVariant &arg2 = args.read (heap); __SUPPRESS_UNUSED_WARNING(ret); ((QInputMethodQueryEvent *)cls)->setValue (qt_gsi::QtToCppAdaptor(arg1).cref(), arg2); } // QVariant QInputMethodQueryEvent::value(Qt::InputMethodQuery query) static void _init_f_value_c2420 (qt_gsi::GenericMethod *decl) { static gsi::ArgSpecBase argspec_0 ("query"); decl->add_arg::target_type & > (argspec_0); decl->set_return (); } static void _call_f_value_c2420 (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); ret.write ((QVariant)((QInputMethodQueryEvent *)cls)->value (qt_gsi::QtToCppAdaptor(arg1).cref())); } namespace gsi { static gsi::Methods methods_QInputMethodQueryEvent () { gsi::Methods methods; methods += new qt_gsi::GenericMethod ("queries", "@brief Method QFlags QInputMethodQueryEvent::queries()\n", true, &_init_f_queries_c0, &_call_f_queries_c0); methods += new qt_gsi::GenericMethod ("setValue", "@brief Method void QInputMethodQueryEvent::setValue(Qt::InputMethodQuery query, const QVariant &value)\n", false, &_init_f_setValue_4431, &_call_f_setValue_4431); methods += new qt_gsi::GenericMethod ("value", "@brief Method QVariant QInputMethodQueryEvent::value(Qt::InputMethodQuery query)\n", true, &_init_f_value_c2420, &_call_f_value_c2420); return methods; } gsi::Class &qtdecl_QEvent (); gsi::Class decl_QInputMethodQueryEvent (qtdecl_QEvent (), "QInputMethodQueryEvent_Native", methods_QInputMethodQueryEvent (), "@hide\n@alias QInputMethodQueryEvent"); GSIQT_PUBLIC gsi::Class &qtdecl_QInputMethodQueryEvent () { return decl_QInputMethodQueryEvent; } } class QInputMethodQueryEvent_Adaptor : public QInputMethodQueryEvent, public qt_gsi::QtObjectBase { public: virtual ~QInputMethodQueryEvent_Adaptor(); // [adaptor ctor] QInputMethodQueryEvent::QInputMethodQueryEvent(QFlags queries) QInputMethodQueryEvent_Adaptor(QFlags queries) : QInputMethodQueryEvent(queries) { qt_gsi::QtObjectBase::init (this); } }; QInputMethodQueryEvent_Adaptor::~QInputMethodQueryEvent_Adaptor() { } // Constructor QInputMethodQueryEvent::QInputMethodQueryEvent(QFlags queries) (adaptor class) static void _init_ctor_QInputMethodQueryEvent_Adaptor_3116 (qt_gsi::GenericStaticMethod *decl) { static gsi::ArgSpecBase argspec_0 ("queries"); decl->add_arg > (argspec_0); decl->set_return_new (); } static void _call_ctor_QInputMethodQueryEvent_Adaptor_3116 (const qt_gsi::GenericStaticMethod * /*decl*/, gsi::SerialArgs &args, gsi::SerialArgs &ret) { __SUPPRESS_UNUSED_WARNING(args); tl::Heap heap; QFlags arg1 = args.read > (heap); ret.write (new QInputMethodQueryEvent_Adaptor (arg1)); } namespace gsi { gsi::Class &qtdecl_QInputMethodQueryEvent (); static gsi::Methods methods_QInputMethodQueryEvent_Adaptor () { gsi::Methods methods; methods += new qt_gsi::GenericStaticMethod ("new", "@brief Constructor QInputMethodQueryEvent::QInputMethodQueryEvent(QFlags queries)\nThis method creates an object of class QInputMethodQueryEvent.", &_init_ctor_QInputMethodQueryEvent_Adaptor_3116, &_call_ctor_QInputMethodQueryEvent_Adaptor_3116); return methods; } gsi::Class decl_QInputMethodQueryEvent_Adaptor (qtdecl_QInputMethodQueryEvent (), "QInputMethodQueryEvent", methods_QInputMethodQueryEvent_Adaptor (), "@qt\n@brief Binding of QInputMethodQueryEvent"); }