1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150
|
/*
KLayout Layout Viewer
Copyright (C) 2006-2023 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 gsiDeclQWindowStateChangeEvent.cc
*
* DO NOT EDIT THIS FILE.
* This file has been created automatically
*/
#include <QWindowStateChangeEvent>
#include <QEvent>
#include "gsiQt.h"
#include "gsiQtGuiCommon.h"
#include <memory>
// -----------------------------------------------------------------------
// class QWindowStateChangeEvent
// bool QWindowStateChangeEvent::isOverride()
static void _init_f_isOverride_c0 (qt_gsi::GenericMethod *decl)
{
decl->set_return<bool > ();
}
static void _call_f_isOverride_c0 (const qt_gsi::GenericMethod * /*decl*/, void *cls, gsi::SerialArgs &args, gsi::SerialArgs &ret)
{
__SUPPRESS_UNUSED_WARNING(args);
ret.write<bool > ((bool)((QWindowStateChangeEvent *)cls)->isOverride ());
}
// QFlags<Qt::WindowState> QWindowStateChangeEvent::oldState()
static void _init_f_oldState_c0 (qt_gsi::GenericMethod *decl)
{
decl->set_return<QFlags<Qt::WindowState> > ();
}
static void _call_f_oldState_c0 (const qt_gsi::GenericMethod * /*decl*/, void *cls, gsi::SerialArgs &args, gsi::SerialArgs &ret)
{
__SUPPRESS_UNUSED_WARNING(args);
ret.write<QFlags<Qt::WindowState> > ((QFlags<Qt::WindowState>)((QWindowStateChangeEvent *)cls)->oldState ());
}
namespace gsi
{
static gsi::Methods methods_QWindowStateChangeEvent () {
gsi::Methods methods;
methods += new qt_gsi::GenericMethod ("isOverride?", "@brief Method bool QWindowStateChangeEvent::isOverride()\n", true, &_init_f_isOverride_c0, &_call_f_isOverride_c0);
methods += new qt_gsi::GenericMethod ("oldState", "@brief Method QFlags<Qt::WindowState> QWindowStateChangeEvent::oldState()\n", true, &_init_f_oldState_c0, &_call_f_oldState_c0);
return methods;
}
gsi::Class<QEvent> &qtdecl_QEvent ();
gsi::Class<QWindowStateChangeEvent> decl_QWindowStateChangeEvent (qtdecl_QEvent (), "QtGui", "QWindowStateChangeEvent_Native",
methods_QWindowStateChangeEvent (),
"@hide\n@alias QWindowStateChangeEvent");
GSI_QTGUI_PUBLIC gsi::Class<QWindowStateChangeEvent> &qtdecl_QWindowStateChangeEvent () { return decl_QWindowStateChangeEvent; }
}
class QWindowStateChangeEvent_Adaptor : public QWindowStateChangeEvent, public qt_gsi::QtObjectBase
{
public:
virtual ~QWindowStateChangeEvent_Adaptor();
// [adaptor ctor] QWindowStateChangeEvent::QWindowStateChangeEvent(QFlags<Qt::WindowState> aOldState, bool isOverride)
QWindowStateChangeEvent_Adaptor(QFlags<Qt::WindowState> aOldState) : QWindowStateChangeEvent(aOldState)
{
qt_gsi::QtObjectBase::init (this);
}
// [adaptor ctor] QWindowStateChangeEvent::QWindowStateChangeEvent(QFlags<Qt::WindowState> aOldState, bool isOverride)
QWindowStateChangeEvent_Adaptor(QFlags<Qt::WindowState> aOldState, bool isOverride) : QWindowStateChangeEvent(aOldState, isOverride)
{
qt_gsi::QtObjectBase::init (this);
}
};
QWindowStateChangeEvent_Adaptor::~QWindowStateChangeEvent_Adaptor() { }
// Constructor QWindowStateChangeEvent::QWindowStateChangeEvent(QFlags<Qt::WindowState> aOldState, bool isOverride) (adaptor class)
static void _init_ctor_QWindowStateChangeEvent_Adaptor_3346 (qt_gsi::GenericStaticMethod *decl)
{
static gsi::ArgSpecBase argspec_0 ("aOldState");
decl->add_arg<QFlags<Qt::WindowState> > (argspec_0);
static gsi::ArgSpecBase argspec_1 ("isOverride", true, "false");
decl->add_arg<bool > (argspec_1);
decl->set_return_new<QWindowStateChangeEvent_Adaptor> ();
}
static void _call_ctor_QWindowStateChangeEvent_Adaptor_3346 (const qt_gsi::GenericStaticMethod * /*decl*/, gsi::SerialArgs &args, gsi::SerialArgs &ret)
{
__SUPPRESS_UNUSED_WARNING(args);
tl::Heap heap;
QFlags<Qt::WindowState> arg1 = gsi::arg_reader<QFlags<Qt::WindowState> >() (args, heap);
bool arg2 = args ? gsi::arg_reader<bool >() (args, heap) : gsi::arg_maker<bool >() (false, heap);
ret.write<QWindowStateChangeEvent_Adaptor *> (new QWindowStateChangeEvent_Adaptor (arg1, arg2));
}
namespace gsi
{
gsi::Class<QWindowStateChangeEvent> &qtdecl_QWindowStateChangeEvent ();
static gsi::Methods methods_QWindowStateChangeEvent_Adaptor () {
gsi::Methods methods;
methods += new qt_gsi::GenericStaticMethod ("new", "@brief Constructor QWindowStateChangeEvent::QWindowStateChangeEvent(QFlags<Qt::WindowState> aOldState, bool isOverride)\nThis method creates an object of class QWindowStateChangeEvent.", &_init_ctor_QWindowStateChangeEvent_Adaptor_3346, &_call_ctor_QWindowStateChangeEvent_Adaptor_3346);
return methods;
}
gsi::Class<QWindowStateChangeEvent_Adaptor> decl_QWindowStateChangeEvent_Adaptor (qtdecl_QWindowStateChangeEvent (), "QtGui", "QWindowStateChangeEvent",
methods_QWindowStateChangeEvent_Adaptor (),
"@qt\n@brief Binding of QWindowStateChangeEvent");
}
|