flutter: Add Platform_dart and regenerate bindings
This commit is contained in:
@@ -0,0 +1,514 @@
|
||||
/*
|
||||
This file is part of KDDockWidgets.
|
||||
|
||||
SPDX-FileCopyrightText: 2019-2022 Klarälvdalens Datakonsult AB, a KDAB Group company <info@kdab.com>
|
||||
Author: Sérgio Martins <sergio.martins@kdab.com>
|
||||
|
||||
SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only
|
||||
|
||||
Contact KDAB at <info@kdab.com> for commercial licensing options.
|
||||
*/
|
||||
#include "Controller_wrapper.h"
|
||||
|
||||
|
||||
#include <QDebug>
|
||||
|
||||
|
||||
namespace Dartagnan {
|
||||
|
||||
typedef int (*CleanupCallback)(void *thisPtr);
|
||||
static CleanupCallback s_cleanupCallback = nullptr;
|
||||
|
||||
template<typename T>
|
||||
struct ValueWrapper
|
||||
{
|
||||
T value;
|
||||
};
|
||||
|
||||
}
|
||||
namespace KDDockWidgetsBindings_wrappersNS {
|
||||
bool Controller_wrapper::close()
|
||||
{
|
||||
// tag=1000
|
||||
|
||||
// tag=1004
|
||||
return ::KDDockWidgets::Controller::close();
|
||||
}
|
||||
void Controller_wrapper::customEvent(QEvent *event)
|
||||
{
|
||||
// tag=1000
|
||||
if (m_customEventCallback) {
|
||||
// tag=1001
|
||||
const void *thisPtr = this;
|
||||
m_customEventCallback(const_cast<void *>(thisPtr), event);
|
||||
} else {
|
||||
// tag=1002
|
||||
::KDDockWidgets::Controller::customEvent(event);
|
||||
}
|
||||
}
|
||||
// tag=1009
|
||||
void Controller_wrapper::customEvent_nocallback(QEvent *event)
|
||||
{
|
||||
// tag=1003
|
||||
::KDDockWidgets::Controller::customEvent(event);
|
||||
}
|
||||
bool Controller_wrapper::event(QEvent *event)
|
||||
{
|
||||
// tag=1000
|
||||
if (m_eventCallback) {
|
||||
// tag=1001
|
||||
const void *thisPtr = this;
|
||||
return m_eventCallback(const_cast<void *>(thisPtr), event);
|
||||
} else {
|
||||
// tag=1002
|
||||
return ::KDDockWidgets::Controller::event(event);
|
||||
}
|
||||
}
|
||||
// tag=1009
|
||||
bool Controller_wrapper::event_nocallback(QEvent *event)
|
||||
{
|
||||
// tag=1003
|
||||
return ::KDDockWidgets::Controller::event(event);
|
||||
}
|
||||
bool Controller_wrapper::eventFilter(QObject *watched, QEvent *event)
|
||||
{
|
||||
// tag=1000
|
||||
if (m_eventFilterCallback) {
|
||||
// tag=1001
|
||||
const void *thisPtr = this;
|
||||
return m_eventFilterCallback(const_cast<void *>(thisPtr), watched, event);
|
||||
} else {
|
||||
// tag=1002
|
||||
return ::KDDockWidgets::Controller::eventFilter(watched, event);
|
||||
}
|
||||
}
|
||||
// tag=1009
|
||||
bool Controller_wrapper::eventFilter_nocallback(QObject *watched, QEvent *event)
|
||||
{
|
||||
// tag=1003
|
||||
return ::KDDockWidgets::Controller::eventFilter(watched, event);
|
||||
}
|
||||
QRect Controller_wrapper::geometry() const
|
||||
{
|
||||
// tag=1000
|
||||
|
||||
// tag=1004
|
||||
return ::KDDockWidgets::Controller::geometry();
|
||||
}
|
||||
int Controller_wrapper::height() const
|
||||
{
|
||||
// tag=1000
|
||||
|
||||
// tag=1004
|
||||
return ::KDDockWidgets::Controller::height();
|
||||
}
|
||||
bool Controller_wrapper::inDtor() const
|
||||
{
|
||||
// tag=1000
|
||||
|
||||
// tag=1004
|
||||
return ::KDDockWidgets::Controller::inDtor();
|
||||
}
|
||||
bool Controller_wrapper::isVisible() const
|
||||
{
|
||||
// tag=1000
|
||||
|
||||
// tag=1004
|
||||
return ::KDDockWidgets::Controller::isVisible();
|
||||
}
|
||||
QPoint Controller_wrapper::mapToGlobal(QPoint arg__1) const
|
||||
{
|
||||
// tag=1000
|
||||
|
||||
// tag=1004
|
||||
return ::KDDockWidgets::Controller::mapToGlobal(arg__1);
|
||||
}
|
||||
void Controller_wrapper::parentViewChanged(KDDockWidgets::View *parent)
|
||||
{
|
||||
// tag=1000
|
||||
|
||||
// tag=1004
|
||||
::KDDockWidgets::Controller::parentViewChanged(parent);
|
||||
}
|
||||
QPoint Controller_wrapper::pos() const
|
||||
{
|
||||
// tag=1000
|
||||
|
||||
// tag=1004
|
||||
return ::KDDockWidgets::Controller::pos();
|
||||
}
|
||||
QRect Controller_wrapper::rect() const
|
||||
{
|
||||
// tag=1000
|
||||
|
||||
// tag=1004
|
||||
return ::KDDockWidgets::Controller::rect();
|
||||
}
|
||||
void Controller_wrapper::setParentView(KDDockWidgets::View *parent)
|
||||
{
|
||||
// tag=1000
|
||||
|
||||
// tag=1004
|
||||
::KDDockWidgets::Controller::setParentView(parent);
|
||||
}
|
||||
void Controller_wrapper::setParentView_impl(KDDockWidgets::View *parent)
|
||||
{
|
||||
// tag=1000
|
||||
if (m_setParentView_implCallback) {
|
||||
// tag=1001
|
||||
const void *thisPtr = this;
|
||||
m_setParentView_implCallback(const_cast<void *>(thisPtr), parent);
|
||||
} else {
|
||||
// tag=1002
|
||||
::KDDockWidgets::Controller::setParentView_impl(parent);
|
||||
}
|
||||
}
|
||||
// tag=1009
|
||||
void Controller_wrapper::setParentView_impl_nocallback(KDDockWidgets::View *parent)
|
||||
{
|
||||
// tag=1003
|
||||
::KDDockWidgets::Controller::setParentView_impl(parent);
|
||||
}
|
||||
void Controller_wrapper::setVisible(bool arg__1)
|
||||
{
|
||||
// tag=1000
|
||||
|
||||
// tag=1004
|
||||
::KDDockWidgets::Controller::setVisible(arg__1);
|
||||
}
|
||||
void Controller_wrapper::show() const
|
||||
{
|
||||
// tag=1000
|
||||
|
||||
// tag=1004
|
||||
::KDDockWidgets::Controller::show();
|
||||
}
|
||||
QSize Controller_wrapper::size() const
|
||||
{
|
||||
// tag=1000
|
||||
|
||||
// tag=1004
|
||||
return ::KDDockWidgets::Controller::size();
|
||||
}
|
||||
QString Controller_wrapper::tr(const char *s, const char *c, int n)
|
||||
{
|
||||
// tag=1000
|
||||
|
||||
// tag=1004
|
||||
return ::KDDockWidgets::Controller::tr(s, c, n);
|
||||
}
|
||||
KDDockWidgets::View *Controller_wrapper::view() const
|
||||
{
|
||||
// tag=1000
|
||||
|
||||
// tag=1004
|
||||
return ::KDDockWidgets::Controller::view();
|
||||
}
|
||||
int Controller_wrapper::width() const
|
||||
{
|
||||
// tag=1000
|
||||
|
||||
// tag=1004
|
||||
return ::KDDockWidgets::Controller::width();
|
||||
}
|
||||
int Controller_wrapper::x() const
|
||||
{
|
||||
// tag=1000
|
||||
|
||||
// tag=1004
|
||||
return ::KDDockWidgets::Controller::x();
|
||||
}
|
||||
int Controller_wrapper::y() const
|
||||
{
|
||||
// tag=1000
|
||||
|
||||
// tag=1004
|
||||
return ::KDDockWidgets::Controller::y();
|
||||
}
|
||||
|
||||
// tag=1005
|
||||
Controller_wrapper::~Controller_wrapper()
|
||||
{
|
||||
}
|
||||
|
||||
}
|
||||
// tag=1013
|
||||
static KDDockWidgets::Controller *fromPtr(void *ptr)
|
||||
{
|
||||
return reinterpret_cast<KDDockWidgets::Controller *>(ptr);
|
||||
}
|
||||
// tag=1014
|
||||
static KDDockWidgetsBindings_wrappersNS::Controller_wrapper *fromWrapperPtr(void *ptr)
|
||||
{
|
||||
return reinterpret_cast<KDDockWidgetsBindings_wrappersNS::Controller_wrapper *>(ptr);
|
||||
}
|
||||
extern "C" {
|
||||
|
||||
// tag=1049
|
||||
void c_KDDockWidgets__Controller_Finalizer(void *, void *cppObj, void *)
|
||||
{
|
||||
delete reinterpret_cast<KDDockWidgetsBindings_wrappersNS::Controller_wrapper *>(cppObj);
|
||||
}
|
||||
// tag=1050
|
||||
// close()
|
||||
bool c_KDDockWidgets__Controller__close(void *thisObj)
|
||||
{
|
||||
return
|
||||
// tag=1010
|
||||
fromPtr(thisObj)->close();
|
||||
}
|
||||
|
||||
// tag=1050
|
||||
// customEvent(QEvent * event)
|
||||
void c_KDDockWidgets__Controller__customEvent_QEvent(void *thisObj, void *event_)
|
||||
{
|
||||
auto event = reinterpret_cast<QEvent *>(event_);
|
||||
// tag=1011
|
||||
|
||||
// tag=1074
|
||||
fromWrapperPtr(thisObj)->customEvent_nocallback(event);
|
||||
}
|
||||
|
||||
// tag=1079
|
||||
void c_KDDockWidgets__Controller__onDestroyed_QObject(void *thisObj, void *contextQObject, void *callback)
|
||||
{
|
||||
auto instance = reinterpret_cast<Controller *>(thisObj);
|
||||
auto context = reinterpret_cast<QObject *>(contextQObject);
|
||||
QObject::connect(instance, &Controller::destroyed, context ? context : instance, [thisObj, callback] {
|
||||
typedef void (*SignalHandler_callback)(void *);
|
||||
auto dartCallback = reinterpret_cast<SignalHandler_callback>(callback);
|
||||
dartCallback(thisObj); });
|
||||
}
|
||||
|
||||
// tag=1050
|
||||
// event(QEvent * event)
|
||||
bool c_KDDockWidgets__Controller__event_QEvent(void *thisObj, void *event_)
|
||||
{
|
||||
auto event = reinterpret_cast<QEvent *>(event_);
|
||||
return
|
||||
// tag=1016
|
||||
[&] {auto targetPtr = fromPtr(thisObj);auto wrapperPtr = dynamic_cast<KDDockWidgetsBindings_wrappersNS::Controller_wrapper*>(targetPtr);if (wrapperPtr) { return wrapperPtr->event_nocallback(event);} else { return targetPtr->event(event);} }();
|
||||
}
|
||||
|
||||
// tag=1050
|
||||
// eventFilter(QObject * watched, QEvent * event)
|
||||
bool c_KDDockWidgets__Controller__eventFilter_QObject_QEvent(void *thisObj, void *watched_, void *event_)
|
||||
{
|
||||
auto watched = reinterpret_cast<QObject *>(watched_);
|
||||
auto event = reinterpret_cast<QEvent *>(event_);
|
||||
return
|
||||
// tag=1016
|
||||
[&] {auto targetPtr = fromPtr(thisObj);auto wrapperPtr = dynamic_cast<KDDockWidgetsBindings_wrappersNS::Controller_wrapper*>(targetPtr);if (wrapperPtr) { return wrapperPtr->eventFilter_nocallback(watched,event);} else { return targetPtr->eventFilter(watched,event);} }();
|
||||
}
|
||||
|
||||
// tag=1050
|
||||
// geometry() const
|
||||
void *c_KDDockWidgets__Controller__geometry(void *thisObj)
|
||||
{
|
||||
return
|
||||
// tag=1010
|
||||
|
||||
// tag=1072
|
||||
new Dartagnan::ValueWrapper<QRect> { fromPtr(thisObj)->geometry() };
|
||||
}
|
||||
|
||||
// tag=1050
|
||||
// height() const
|
||||
int c_KDDockWidgets__Controller__height(void *thisObj)
|
||||
{
|
||||
return
|
||||
// tag=1010
|
||||
fromPtr(thisObj)->height();
|
||||
}
|
||||
|
||||
// tag=1050
|
||||
// inDtor() const
|
||||
bool c_KDDockWidgets__Controller__inDtor(void *thisObj)
|
||||
{
|
||||
return
|
||||
// tag=1010
|
||||
fromPtr(thisObj)->inDtor();
|
||||
}
|
||||
|
||||
// tag=1050
|
||||
// isVisible() const
|
||||
bool c_KDDockWidgets__Controller__isVisible(void *thisObj)
|
||||
{
|
||||
return
|
||||
// tag=1010
|
||||
fromPtr(thisObj)->isVisible();
|
||||
}
|
||||
|
||||
// tag=1050
|
||||
// mapToGlobal(QPoint arg__1) const
|
||||
void *c_KDDockWidgets__Controller__mapToGlobal_QPoint(void *thisObj, void *arg__1_)
|
||||
{
|
||||
auto &arg__1 = *reinterpret_cast<QPoint *>(arg__1_);
|
||||
return
|
||||
// tag=1010
|
||||
|
||||
// tag=1072
|
||||
new Dartagnan::ValueWrapper<QPoint> { fromPtr(thisObj)->mapToGlobal(arg__1) };
|
||||
}
|
||||
|
||||
// tag=1050
|
||||
// parentViewChanged(KDDockWidgets::View * parent)
|
||||
void c_KDDockWidgets__Controller__parentViewChanged_View(void *thisObj, void *parent_)
|
||||
{
|
||||
auto parent = reinterpret_cast<KDDockWidgets::View *>(parent_);
|
||||
// tag=1010
|
||||
fromPtr(thisObj)->parentViewChanged(parent);
|
||||
}
|
||||
|
||||
// tag=1079
|
||||
void c_KDDockWidgets__Controller__onParentViewChanged_View(void *thisObj, void *contextQObject, void *callback)
|
||||
{
|
||||
auto instance = reinterpret_cast<Controller *>(thisObj);
|
||||
auto context = reinterpret_cast<QObject *>(contextQObject);
|
||||
QObject::connect(instance, &Controller::parentViewChanged, context ? context : instance, [thisObj, callback] {
|
||||
typedef void (*SignalHandler_callback)(void *);
|
||||
auto dartCallback = reinterpret_cast<SignalHandler_callback>(callback);
|
||||
dartCallback(thisObj); });
|
||||
}
|
||||
|
||||
// tag=1050
|
||||
// pos() const
|
||||
void *c_KDDockWidgets__Controller__pos(void *thisObj)
|
||||
{
|
||||
return
|
||||
// tag=1010
|
||||
|
||||
// tag=1072
|
||||
new Dartagnan::ValueWrapper<QPoint> { fromPtr(thisObj)->pos() };
|
||||
}
|
||||
|
||||
// tag=1050
|
||||
// rect() const
|
||||
void *c_KDDockWidgets__Controller__rect(void *thisObj)
|
||||
{
|
||||
return
|
||||
// tag=1010
|
||||
|
||||
// tag=1072
|
||||
new Dartagnan::ValueWrapper<QRect> { fromPtr(thisObj)->rect() };
|
||||
}
|
||||
|
||||
// tag=1050
|
||||
// setParentView(KDDockWidgets::View * parent)
|
||||
void c_KDDockWidgets__Controller__setParentView_View(void *thisObj, void *parent_)
|
||||
{
|
||||
auto parent = reinterpret_cast<KDDockWidgets::View *>(parent_);
|
||||
// tag=1010
|
||||
fromPtr(thisObj)->setParentView(parent);
|
||||
}
|
||||
|
||||
// tag=1050
|
||||
// setParentView_impl(KDDockWidgets::View * parent)
|
||||
void c_KDDockWidgets__Controller__setParentView_impl_View(void *thisObj, void *parent_)
|
||||
{
|
||||
auto parent = reinterpret_cast<KDDockWidgets::View *>(parent_);
|
||||
// tag=1011
|
||||
|
||||
// tag=1074
|
||||
fromWrapperPtr(thisObj)->setParentView_impl_nocallback(parent);
|
||||
}
|
||||
|
||||
// tag=1050
|
||||
// setVisible(bool arg__1)
|
||||
void c_KDDockWidgets__Controller__setVisible_bool(void *thisObj, bool arg__1)
|
||||
{
|
||||
// tag=1010
|
||||
fromPtr(thisObj)->setVisible(arg__1);
|
||||
}
|
||||
|
||||
// tag=1050
|
||||
// show() const
|
||||
void c_KDDockWidgets__Controller__show(void *thisObj)
|
||||
{
|
||||
// tag=1010
|
||||
fromPtr(thisObj)->show();
|
||||
}
|
||||
|
||||
// tag=1050
|
||||
// size() const
|
||||
void *c_KDDockWidgets__Controller__size(void *thisObj)
|
||||
{
|
||||
return
|
||||
// tag=1010
|
||||
|
||||
// tag=1072
|
||||
new Dartagnan::ValueWrapper<QSize> { fromPtr(thisObj)->size() };
|
||||
}
|
||||
|
||||
// tag=1050
|
||||
// tr(const char * s, const char * c, int n)
|
||||
void *c_static_KDDockWidgets__Controller__tr_char_char_int(const char *s, const char *c, int n)
|
||||
{
|
||||
return
|
||||
// tag=1068
|
||||
|
||||
// tag=1072
|
||||
new Dartagnan::ValueWrapper<QString> { KDDockWidgetsBindings_wrappersNS::Controller_wrapper::tr(s, c, n) };
|
||||
}
|
||||
|
||||
// tag=1050
|
||||
// view() const
|
||||
void *c_KDDockWidgets__Controller__view(void *thisObj)
|
||||
{
|
||||
return
|
||||
// tag=1010
|
||||
fromPtr(thisObj)->view();
|
||||
}
|
||||
|
||||
// tag=1050
|
||||
// width() const
|
||||
int c_KDDockWidgets__Controller__width(void *thisObj)
|
||||
{
|
||||
return
|
||||
// tag=1010
|
||||
fromPtr(thisObj)->width();
|
||||
}
|
||||
|
||||
// tag=1050
|
||||
// x() const
|
||||
int c_KDDockWidgets__Controller__x(void *thisObj)
|
||||
{
|
||||
return
|
||||
// tag=1010
|
||||
fromPtr(thisObj)->x();
|
||||
}
|
||||
|
||||
// tag=1050
|
||||
// y() const
|
||||
int c_KDDockWidgets__Controller__y(void *thisObj)
|
||||
{
|
||||
return
|
||||
// tag=1010
|
||||
fromPtr(thisObj)->y();
|
||||
}
|
||||
void c_KDDockWidgets__Controller__destructor(void *thisObj)
|
||||
{
|
||||
|
||||
// tag=1055
|
||||
delete fromPtr(thisObj);
|
||||
}
|
||||
void c_KDDockWidgets__Controller__registerVirtualMethodCallback(void *ptr, void *callback, int methodId)
|
||||
{
|
||||
// tag=1048
|
||||
auto wrapper = fromWrapperPtr(ptr);
|
||||
switch (methodId) {
|
||||
case 294:
|
||||
wrapper->m_customEventCallback = reinterpret_cast<KDDockWidgetsBindings_wrappersNS::Controller_wrapper::Callback_customEvent>(callback);
|
||||
break;
|
||||
case 305:
|
||||
wrapper->m_eventCallback = reinterpret_cast<KDDockWidgetsBindings_wrappersNS::Controller_wrapper::Callback_event>(callback);
|
||||
break;
|
||||
case 306:
|
||||
wrapper->m_eventFilterCallback = reinterpret_cast<KDDockWidgetsBindings_wrappersNS::Controller_wrapper::Callback_eventFilter>(callback);
|
||||
break;
|
||||
case 682:
|
||||
wrapper->m_setParentView_implCallback = reinterpret_cast<KDDockWidgetsBindings_wrappersNS::Controller_wrapper::Callback_setParentView_impl>(callback);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,196 @@
|
||||
/*
|
||||
This file is part of KDDockWidgets.
|
||||
|
||||
SPDX-FileCopyrightText: 2019-2022 Klarälvdalens Datakonsult AB, a KDAB Group company <info@kdab.com>
|
||||
Author: Sérgio Martins <sergio.martins@kdab.com>
|
||||
|
||||
SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only
|
||||
|
||||
Contact KDAB at <info@kdab.com> for commercial licensing options.
|
||||
*/
|
||||
|
||||
// tag=1040
|
||||
#include "KDDockWidgetsBindings_exports.h"
|
||||
#include <Controller.h>
|
||||
#include <qstring.h>
|
||||
#include <View.h>
|
||||
#include <qrect.h>
|
||||
#include <qpoint.h>
|
||||
#include <qsize.h>
|
||||
#include <qobject.h>
|
||||
#include <qlist.h>
|
||||
#include <qbytearray.h>
|
||||
#include <qcoreevent.h>
|
||||
|
||||
namespace KDDockWidgetsBindings_wrappersNS {
|
||||
// tag=1017
|
||||
class Controller_wrapper : public ::KDDockWidgets::Controller
|
||||
{
|
||||
public:
|
||||
~Controller_wrapper();
|
||||
// tag=1041
|
||||
bool close();
|
||||
// tag=1041
|
||||
virtual void customEvent(QEvent *event);
|
||||
// tag=1008
|
||||
virtual void customEvent_nocallback(QEvent *event);
|
||||
// tag=1041
|
||||
virtual bool event(QEvent *event);
|
||||
// tag=1008
|
||||
virtual bool event_nocallback(QEvent *event);
|
||||
// tag=1041
|
||||
virtual bool eventFilter(QObject *watched, QEvent *event);
|
||||
// tag=1008
|
||||
virtual bool eventFilter_nocallback(QObject *watched, QEvent *event);
|
||||
// tag=1041
|
||||
QRect geometry() const;
|
||||
// tag=1041
|
||||
int height() const;
|
||||
// tag=1041
|
||||
bool inDtor() const;
|
||||
// tag=1041
|
||||
bool isVisible() const;
|
||||
// tag=1041
|
||||
QPoint mapToGlobal(QPoint arg__1) const;
|
||||
// tag=1041
|
||||
void parentViewChanged(KDDockWidgets::View *parent);
|
||||
// tag=1041
|
||||
QPoint pos() const;
|
||||
// tag=1041
|
||||
QRect rect() const;
|
||||
// tag=1041
|
||||
void setParentView(KDDockWidgets::View *parent);
|
||||
// tag=1041
|
||||
virtual void setParentView_impl(KDDockWidgets::View *parent);
|
||||
// tag=1008
|
||||
virtual void setParentView_impl_nocallback(KDDockWidgets::View *parent);
|
||||
// tag=1041
|
||||
void setVisible(bool arg__1);
|
||||
// tag=1041
|
||||
void show() const;
|
||||
// tag=1041
|
||||
QSize size() const;
|
||||
// tag=1041
|
||||
static QString tr(const char *s, const char *c, int n);
|
||||
// tag=1041
|
||||
KDDockWidgets::View *view() const;
|
||||
// tag=1041
|
||||
int width() const;
|
||||
// tag=1041
|
||||
int x() const;
|
||||
// tag=1041
|
||||
int y() const;
|
||||
// tag=1042
|
||||
typedef void (*Callback_customEvent)(void *, QEvent *event);
|
||||
Callback_customEvent m_customEventCallback = nullptr;
|
||||
// tag=1042
|
||||
typedef bool (*Callback_event)(void *, QEvent *event);
|
||||
Callback_event m_eventCallback = nullptr;
|
||||
// tag=1042
|
||||
typedef bool (*Callback_eventFilter)(void *, QObject *watched, QEvent *event);
|
||||
Callback_eventFilter m_eventFilterCallback = nullptr;
|
||||
// tag=1042
|
||||
typedef void (*Callback_setParentView_impl)(void *, KDDockWidgets::View *parent);
|
||||
Callback_setParentView_impl m_setParentView_implCallback = nullptr;
|
||||
};
|
||||
}
|
||||
extern "C" {
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::Controller::close()
|
||||
KDDockWidgetsBindings_EXPORT bool c_KDDockWidgets__Controller__close(void *thisObj);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::Controller::customEvent(QEvent * event)
|
||||
KDDockWidgetsBindings_EXPORT void c_KDDockWidgets__Controller__customEvent_QEvent(void *thisObj, void *event_);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::Controller::event(QEvent * event)
|
||||
KDDockWidgetsBindings_EXPORT bool c_KDDockWidgets__Controller__event_QEvent(void *thisObj, void *event_);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::Controller::eventFilter(QObject * watched, QEvent * event)
|
||||
KDDockWidgetsBindings_EXPORT bool c_KDDockWidgets__Controller__eventFilter_QObject_QEvent(void *thisObj, void *watched_, void *event_);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::Controller::geometry() const
|
||||
KDDockWidgetsBindings_EXPORT void *c_KDDockWidgets__Controller__geometry(void *thisObj);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::Controller::height() const
|
||||
KDDockWidgetsBindings_EXPORT int c_KDDockWidgets__Controller__height(void *thisObj);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::Controller::inDtor() const
|
||||
KDDockWidgetsBindings_EXPORT bool c_KDDockWidgets__Controller__inDtor(void *thisObj);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::Controller::isVisible() const
|
||||
KDDockWidgetsBindings_EXPORT bool c_KDDockWidgets__Controller__isVisible(void *thisObj);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::Controller::mapToGlobal(QPoint arg__1) const
|
||||
KDDockWidgetsBindings_EXPORT void *c_KDDockWidgets__Controller__mapToGlobal_QPoint(void *thisObj, void *arg__1_);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::Controller::parentViewChanged(KDDockWidgets::View * parent)
|
||||
KDDockWidgetsBindings_EXPORT void c_KDDockWidgets__Controller__parentViewChanged_View(void *thisObj, void *parent_);
|
||||
|
||||
// tag=1078
|
||||
KDDockWidgetsBindings_EXPORT void c_KDDockWidgets__Controller__onParentViewChanged_View(void *thisObj, void *contextQObject, void *callback);
|
||||
// tag=1067
|
||||
// KDDockWidgets::Controller::pos() const
|
||||
KDDockWidgetsBindings_EXPORT void *c_KDDockWidgets__Controller__pos(void *thisObj);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::Controller::rect() const
|
||||
KDDockWidgetsBindings_EXPORT void *c_KDDockWidgets__Controller__rect(void *thisObj);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::Controller::setParentView(KDDockWidgets::View * parent)
|
||||
KDDockWidgetsBindings_EXPORT void c_KDDockWidgets__Controller__setParentView_View(void *thisObj, void *parent_);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::Controller::setParentView_impl(KDDockWidgets::View * parent)
|
||||
KDDockWidgetsBindings_EXPORT void c_KDDockWidgets__Controller__setParentView_impl_View(void *thisObj, void *parent_);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::Controller::setVisible(bool arg__1)
|
||||
KDDockWidgetsBindings_EXPORT void c_KDDockWidgets__Controller__setVisible_bool(void *thisObj, bool arg__1);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::Controller::show() const
|
||||
KDDockWidgetsBindings_EXPORT void c_KDDockWidgets__Controller__show(void *thisObj);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::Controller::size() const
|
||||
KDDockWidgetsBindings_EXPORT void *c_KDDockWidgets__Controller__size(void *thisObj);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::Controller::tr(const char * s, const char * c, int n)
|
||||
KDDockWidgetsBindings_EXPORT void *c_static_KDDockWidgets__Controller__tr_char_char_int(const char *s, const char *c, int n);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::Controller::view() const
|
||||
KDDockWidgetsBindings_EXPORT void *c_KDDockWidgets__Controller__view(void *thisObj);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::Controller::width() const
|
||||
KDDockWidgetsBindings_EXPORT int c_KDDockWidgets__Controller__width(void *thisObj);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::Controller::x() const
|
||||
KDDockWidgetsBindings_EXPORT int c_KDDockWidgets__Controller__x(void *thisObj);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::Controller::y() const
|
||||
KDDockWidgetsBindings_EXPORT int c_KDDockWidgets__Controller__y(void *thisObj);
|
||||
|
||||
// tag=1066
|
||||
KDDockWidgetsBindings_EXPORT void c_KDDockWidgets__Controller__destructor(void *thisObj);
|
||||
|
||||
// tag=1046
|
||||
KDDockWidgetsBindings_EXPORT void c_KDDockWidgets__Controller__registerVirtualMethodCallback(void *ptr, void *callback, int methodId);
|
||||
// tag=1047
|
||||
KDDockWidgetsBindings_EXPORT void c_KDDockWidgets__Controller_Finalizer(void *, void *cppObj, void *);
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
/*
|
||||
This file is part of KDDockWidgets.
|
||||
|
||||
SPDX-FileCopyrightText: 2019-2022 Klarälvdalens Datakonsult AB, a KDAB Group company <info@kdab.com>
|
||||
Author: Sérgio Martins <sergio.martins@kdab.com>
|
||||
|
||||
SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only
|
||||
|
||||
Contact KDAB at <info@kdab.com> for commercial licensing options.
|
||||
*/
|
||||
#include "Controllers_wrapper.h"
|
||||
|
||||
|
||||
#include <QDebug>
|
||||
|
||||
|
||||
namespace Dartagnan {
|
||||
|
||||
typedef int (*CleanupCallback)(void *thisPtr);
|
||||
static CleanupCallback s_cleanupCallback = nullptr;
|
||||
|
||||
template<typename T>
|
||||
struct ValueWrapper
|
||||
{
|
||||
T value;
|
||||
};
|
||||
|
||||
}
|
||||
extern "C" {
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
/*
|
||||
This file is part of KDDockWidgets.
|
||||
|
||||
SPDX-FileCopyrightText: 2019-2022 Klarälvdalens Datakonsult AB, a KDAB Group company <info@kdab.com>
|
||||
Author: Sérgio Martins <sergio.martins@kdab.com>
|
||||
|
||||
SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only
|
||||
|
||||
Contact KDAB at <info@kdab.com> for commercial licensing options.
|
||||
*/
|
||||
|
||||
// tag=1040
|
||||
#include "KDDockWidgetsBindings_exports.h"
|
||||
#include <KDDockWidgets.h>
|
||||
|
||||
extern "C" {
|
||||
|
||||
// tag=1047
|
||||
KDDockWidgetsBindings_EXPORT void c_KDDockWidgets__Controllers_Finalizer(void *, void *cppObj, void *);
|
||||
}
|
||||
@@ -0,0 +1,947 @@
|
||||
/*
|
||||
This file is part of KDDockWidgets.
|
||||
|
||||
SPDX-FileCopyrightText: 2019-2022 Klarälvdalens Datakonsult AB, a KDAB Group company <info@kdab.com>
|
||||
Author: Sérgio Martins <sergio.martins@kdab.com>
|
||||
|
||||
SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only
|
||||
|
||||
Contact KDAB at <info@kdab.com> for commercial licensing options.
|
||||
*/
|
||||
#include "Platform_flutter_wrapper.h"
|
||||
|
||||
|
||||
#include <QDebug>
|
||||
|
||||
|
||||
namespace Dartagnan {
|
||||
|
||||
typedef int (*CleanupCallback)(void *thisPtr);
|
||||
static CleanupCallback s_cleanupCallback = nullptr;
|
||||
|
||||
template<typename T>
|
||||
struct ValueWrapper
|
||||
{
|
||||
T value;
|
||||
};
|
||||
|
||||
}
|
||||
namespace KDDockWidgetsBindings_wrappersNS {
|
||||
// tag=1006
|
||||
Platform_flutter_wrapper::Platform_flutter_wrapper()
|
||||
: ::KDDockWidgets::Platform_flutter()
|
||||
{
|
||||
}
|
||||
QString Platform_flutter_wrapper::applicationName() const
|
||||
{
|
||||
// tag=1000
|
||||
if (m_applicationNameCallback) {
|
||||
// tag=1001
|
||||
const void *thisPtr = this;
|
||||
return *m_applicationNameCallback(const_cast<void *>(thisPtr));
|
||||
} else {
|
||||
// tag=1002
|
||||
return ::KDDockWidgets::Platform_flutter::applicationName();
|
||||
}
|
||||
}
|
||||
// tag=1009
|
||||
QString Platform_flutter_wrapper::applicationName_nocallback() const
|
||||
{
|
||||
// tag=1003
|
||||
return ::KDDockWidgets::Platform_flutter::applicationName();
|
||||
}
|
||||
KDDockWidgets::ViewFactory *Platform_flutter_wrapper::createDefaultViewFactory()
|
||||
{
|
||||
// tag=1000
|
||||
if (m_createDefaultViewFactoryCallback) {
|
||||
// tag=1001
|
||||
const void *thisPtr = this;
|
||||
return m_createDefaultViewFactoryCallback(const_cast<void *>(thisPtr));
|
||||
} else {
|
||||
// tag=1002
|
||||
return ::KDDockWidgets::Platform_flutter::createDefaultViewFactory();
|
||||
}
|
||||
}
|
||||
// tag=1009
|
||||
KDDockWidgets::ViewFactory *Platform_flutter_wrapper::createDefaultViewFactory_nocallback()
|
||||
{
|
||||
// tag=1003
|
||||
return ::KDDockWidgets::Platform_flutter::createDefaultViewFactory();
|
||||
}
|
||||
KDDockWidgets::View *Platform_flutter_wrapper::createView(KDDockWidgets::Controller *controller, KDDockWidgets::View *parent) const
|
||||
{
|
||||
// tag=1000
|
||||
if (m_createViewCallback) {
|
||||
// tag=1001
|
||||
const void *thisPtr = this;
|
||||
return m_createViewCallback(const_cast<void *>(thisPtr), controller, parent);
|
||||
} else {
|
||||
// tag=1002
|
||||
return ::KDDockWidgets::Platform_flutter::createView(controller, parent);
|
||||
}
|
||||
}
|
||||
// tag=1009
|
||||
KDDockWidgets::View *Platform_flutter_wrapper::createView_nocallback(KDDockWidgets::Controller *controller, KDDockWidgets::View *parent) const
|
||||
{
|
||||
// tag=1003
|
||||
return ::KDDockWidgets::Platform_flutter::createView(controller, parent);
|
||||
}
|
||||
bool Platform_flutter_wrapper::hasActivePopup() const
|
||||
{
|
||||
// tag=1000
|
||||
if (m_hasActivePopupCallback) {
|
||||
// tag=1001
|
||||
const void *thisPtr = this;
|
||||
return m_hasActivePopupCallback(const_cast<void *>(thisPtr));
|
||||
} else {
|
||||
// tag=1002
|
||||
return ::KDDockWidgets::Platform_flutter::hasActivePopup();
|
||||
}
|
||||
}
|
||||
// tag=1009
|
||||
bool Platform_flutter_wrapper::hasActivePopup_nocallback() const
|
||||
{
|
||||
// tag=1003
|
||||
return ::KDDockWidgets::Platform_flutter::hasActivePopup();
|
||||
}
|
||||
bool Platform_flutter_wrapper::inDisallowedDragView(QPoint globalPos) const
|
||||
{
|
||||
// tag=1000
|
||||
if (m_inDisallowedDragViewCallback) {
|
||||
// tag=1001
|
||||
const void *thisPtr = this;
|
||||
return m_inDisallowedDragViewCallback(const_cast<void *>(thisPtr), globalPos);
|
||||
} else {
|
||||
// tag=1002
|
||||
return ::KDDockWidgets::Platform_flutter::inDisallowedDragView(globalPos);
|
||||
}
|
||||
}
|
||||
// tag=1009
|
||||
bool Platform_flutter_wrapper::inDisallowedDragView_nocallback(QPoint globalPos) const
|
||||
{
|
||||
// tag=1003
|
||||
return ::KDDockWidgets::Platform_flutter::inDisallowedDragView(globalPos);
|
||||
}
|
||||
void Platform_flutter_wrapper::init()
|
||||
{
|
||||
// tag=1000
|
||||
|
||||
// tag=1004
|
||||
::KDDockWidgets::Platform_flutter::init();
|
||||
}
|
||||
void Platform_flutter_wrapper::installMessageHandler()
|
||||
{
|
||||
// tag=1000
|
||||
if (m_installMessageHandlerCallback) {
|
||||
// tag=1001
|
||||
const void *thisPtr = this;
|
||||
m_installMessageHandlerCallback(const_cast<void *>(thisPtr));
|
||||
} else {
|
||||
// tag=1002
|
||||
::KDDockWidgets::Platform_flutter::installMessageHandler();
|
||||
}
|
||||
}
|
||||
// tag=1009
|
||||
void Platform_flutter_wrapper::installMessageHandler_nocallback()
|
||||
{
|
||||
// tag=1003
|
||||
::KDDockWidgets::Platform_flutter::installMessageHandler();
|
||||
}
|
||||
bool Platform_flutter_wrapper::isLeftMouseButtonPressed() const
|
||||
{
|
||||
// tag=1000
|
||||
if (m_isLeftMouseButtonPressedCallback) {
|
||||
// tag=1001
|
||||
const void *thisPtr = this;
|
||||
return m_isLeftMouseButtonPressedCallback(const_cast<void *>(thisPtr));
|
||||
} else {
|
||||
// tag=1002
|
||||
return ::KDDockWidgets::Platform_flutter::isLeftMouseButtonPressed();
|
||||
}
|
||||
}
|
||||
// tag=1009
|
||||
bool Platform_flutter_wrapper::isLeftMouseButtonPressed_nocallback() const
|
||||
{
|
||||
// tag=1003
|
||||
return ::KDDockWidgets::Platform_flutter::isLeftMouseButtonPressed();
|
||||
}
|
||||
bool Platform_flutter_wrapper::isProcessingAppQuitEvent() const
|
||||
{
|
||||
// tag=1000
|
||||
if (m_isProcessingAppQuitEventCallback) {
|
||||
// tag=1001
|
||||
const void *thisPtr = this;
|
||||
return m_isProcessingAppQuitEventCallback(const_cast<void *>(thisPtr));
|
||||
} else {
|
||||
// tag=1002
|
||||
return ::KDDockWidgets::Platform_flutter::isProcessingAppQuitEvent();
|
||||
}
|
||||
}
|
||||
// tag=1009
|
||||
bool Platform_flutter_wrapper::isProcessingAppQuitEvent_nocallback() const
|
||||
{
|
||||
// tag=1003
|
||||
return ::KDDockWidgets::Platform_flutter::isProcessingAppQuitEvent();
|
||||
}
|
||||
const char *Platform_flutter_wrapper::name() const
|
||||
{
|
||||
// tag=1000
|
||||
if (m_nameCallback) {
|
||||
// tag=1001
|
||||
const void *thisPtr = this;
|
||||
return m_nameCallback(const_cast<void *>(thisPtr));
|
||||
} else {
|
||||
// tag=1002
|
||||
return ::KDDockWidgets::Platform_flutter::name();
|
||||
}
|
||||
}
|
||||
// tag=1009
|
||||
const char *Platform_flutter_wrapper::name_nocallback() const
|
||||
{
|
||||
// tag=1003
|
||||
return ::KDDockWidgets::Platform_flutter::name();
|
||||
}
|
||||
QString Platform_flutter_wrapper::organizationName() const
|
||||
{
|
||||
// tag=1000
|
||||
if (m_organizationNameCallback) {
|
||||
// tag=1001
|
||||
const void *thisPtr = this;
|
||||
return *m_organizationNameCallback(const_cast<void *>(thisPtr));
|
||||
} else {
|
||||
// tag=1002
|
||||
return ::KDDockWidgets::Platform_flutter::organizationName();
|
||||
}
|
||||
}
|
||||
// tag=1009
|
||||
QString Platform_flutter_wrapper::organizationName_nocallback() const
|
||||
{
|
||||
// tag=1003
|
||||
return ::KDDockWidgets::Platform_flutter::organizationName();
|
||||
}
|
||||
void Platform_flutter_wrapper::restoreMouseCursor()
|
||||
{
|
||||
// tag=1000
|
||||
if (m_restoreMouseCursorCallback) {
|
||||
// tag=1001
|
||||
const void *thisPtr = this;
|
||||
m_restoreMouseCursorCallback(const_cast<void *>(thisPtr));
|
||||
} else {
|
||||
// tag=1002
|
||||
::KDDockWidgets::Platform_flutter::restoreMouseCursor();
|
||||
}
|
||||
}
|
||||
// tag=1009
|
||||
void Platform_flutter_wrapper::restoreMouseCursor_nocallback()
|
||||
{
|
||||
// tag=1003
|
||||
::KDDockWidgets::Platform_flutter::restoreMouseCursor();
|
||||
}
|
||||
int Platform_flutter_wrapper::screenNumberFor(KDDockWidgets::View *arg__1) const
|
||||
{
|
||||
// tag=1000
|
||||
if (m_screenNumberForCallback) {
|
||||
// tag=1001
|
||||
const void *thisPtr = this;
|
||||
return m_screenNumberForCallback(const_cast<void *>(thisPtr), arg__1);
|
||||
} else {
|
||||
// tag=1002
|
||||
return ::KDDockWidgets::Platform_flutter::screenNumberFor(arg__1);
|
||||
}
|
||||
}
|
||||
// tag=1009
|
||||
int Platform_flutter_wrapper::screenNumberFor_nocallback(KDDockWidgets::View *arg__1) const
|
||||
{
|
||||
// tag=1003
|
||||
return ::KDDockWidgets::Platform_flutter::screenNumberFor(arg__1);
|
||||
}
|
||||
QSize Platform_flutter_wrapper::screenSizeFor(KDDockWidgets::View *arg__1) const
|
||||
{
|
||||
// tag=1000
|
||||
if (m_screenSizeForCallback) {
|
||||
// tag=1001
|
||||
const void *thisPtr = this;
|
||||
return *m_screenSizeForCallback(const_cast<void *>(thisPtr), arg__1);
|
||||
} else {
|
||||
// tag=1002
|
||||
return ::KDDockWidgets::Platform_flutter::screenSizeFor(arg__1);
|
||||
}
|
||||
}
|
||||
// tag=1009
|
||||
QSize Platform_flutter_wrapper::screenSizeFor_nocallback(KDDockWidgets::View *arg__1) const
|
||||
{
|
||||
// tag=1003
|
||||
return ::KDDockWidgets::Platform_flutter::screenSizeFor(arg__1);
|
||||
}
|
||||
void Platform_flutter_wrapper::sendEvent(KDDockWidgets::View *arg__1, QEvent *arg__2) const
|
||||
{
|
||||
// tag=1000
|
||||
if (m_sendEventCallback) {
|
||||
// tag=1001
|
||||
const void *thisPtr = this;
|
||||
m_sendEventCallback(const_cast<void *>(thisPtr), arg__1, arg__2);
|
||||
} else {
|
||||
// tag=1002
|
||||
::KDDockWidgets::Platform_flutter::sendEvent(arg__1, arg__2);
|
||||
}
|
||||
}
|
||||
// tag=1009
|
||||
void Platform_flutter_wrapper::sendEvent_nocallback(KDDockWidgets::View *arg__1, QEvent *arg__2) const
|
||||
{
|
||||
// tag=1003
|
||||
::KDDockWidgets::Platform_flutter::sendEvent(arg__1, arg__2);
|
||||
}
|
||||
void Platform_flutter_wrapper::setMouseCursor(Qt::CursorShape arg__1)
|
||||
{
|
||||
// tag=1000
|
||||
if (m_setMouseCursorCallback) {
|
||||
// tag=1001
|
||||
const void *thisPtr = this;
|
||||
m_setMouseCursorCallback(const_cast<void *>(thisPtr), arg__1);
|
||||
} else {
|
||||
// tag=1002
|
||||
::KDDockWidgets::Platform_flutter::setMouseCursor(arg__1);
|
||||
}
|
||||
}
|
||||
// tag=1009
|
||||
void Platform_flutter_wrapper::setMouseCursor_nocallback(Qt::CursorShape arg__1)
|
||||
{
|
||||
// tag=1003
|
||||
::KDDockWidgets::Platform_flutter::setMouseCursor(arg__1);
|
||||
}
|
||||
KDDockWidgets::View *Platform_flutter_wrapper::tests_createNonClosableView(KDDockWidgets::View *parent)
|
||||
{
|
||||
// tag=1000
|
||||
if (m_tests_createNonClosableViewCallback) {
|
||||
// tag=1001
|
||||
const void *thisPtr = this;
|
||||
return m_tests_createNonClosableViewCallback(const_cast<void *>(thisPtr), parent);
|
||||
} else {
|
||||
// tag=1002
|
||||
return ::KDDockWidgets::Platform_flutter::tests_createNonClosableView(parent);
|
||||
}
|
||||
}
|
||||
// tag=1009
|
||||
KDDockWidgets::View *Platform_flutter_wrapper::tests_createNonClosableView_nocallback(KDDockWidgets::View *parent)
|
||||
{
|
||||
// tag=1003
|
||||
return ::KDDockWidgets::Platform_flutter::tests_createNonClosableView(parent);
|
||||
}
|
||||
void Platform_flutter_wrapper::tests_deinitPlatform_impl()
|
||||
{
|
||||
// tag=1000
|
||||
if (m_tests_deinitPlatform_implCallback) {
|
||||
// tag=1001
|
||||
const void *thisPtr = this;
|
||||
m_tests_deinitPlatform_implCallback(const_cast<void *>(thisPtr));
|
||||
} else {
|
||||
// tag=1002
|
||||
::KDDockWidgets::Platform_flutter::tests_deinitPlatform_impl();
|
||||
}
|
||||
}
|
||||
// tag=1009
|
||||
void Platform_flutter_wrapper::tests_deinitPlatform_impl_nocallback()
|
||||
{
|
||||
// tag=1003
|
||||
::KDDockWidgets::Platform_flutter::tests_deinitPlatform_impl();
|
||||
}
|
||||
void Platform_flutter_wrapper::tests_initPlatform_impl()
|
||||
{
|
||||
// tag=1000
|
||||
if (m_tests_initPlatform_implCallback) {
|
||||
// tag=1001
|
||||
const void *thisPtr = this;
|
||||
m_tests_initPlatform_implCallback(const_cast<void *>(thisPtr));
|
||||
} else {
|
||||
// tag=1002
|
||||
::KDDockWidgets::Platform_flutter::tests_initPlatform_impl();
|
||||
}
|
||||
}
|
||||
// tag=1009
|
||||
void Platform_flutter_wrapper::tests_initPlatform_impl_nocallback()
|
||||
{
|
||||
// tag=1003
|
||||
::KDDockWidgets::Platform_flutter::tests_initPlatform_impl();
|
||||
}
|
||||
void Platform_flutter_wrapper::tests_wait(int ms)
|
||||
{
|
||||
// tag=1000
|
||||
if (m_tests_waitCallback) {
|
||||
// tag=1001
|
||||
const void *thisPtr = this;
|
||||
m_tests_waitCallback(const_cast<void *>(thisPtr), ms);
|
||||
} else {
|
||||
// tag=1002
|
||||
::KDDockWidgets::Platform_flutter::tests_wait(ms);
|
||||
}
|
||||
}
|
||||
// tag=1009
|
||||
void Platform_flutter_wrapper::tests_wait_nocallback(int ms)
|
||||
{
|
||||
// tag=1003
|
||||
::KDDockWidgets::Platform_flutter::tests_wait(ms);
|
||||
}
|
||||
bool Platform_flutter_wrapper::tests_waitForDeleted(KDDockWidgets::View *arg__1, int timeout) const
|
||||
{
|
||||
// tag=1000
|
||||
if (m_tests_waitForDeletedCallback) {
|
||||
// tag=1001
|
||||
const void *thisPtr = this;
|
||||
return m_tests_waitForDeletedCallback(const_cast<void *>(thisPtr), arg__1, timeout);
|
||||
} else {
|
||||
// tag=1002
|
||||
return ::KDDockWidgets::Platform_flutter::tests_waitForDeleted(arg__1, timeout);
|
||||
}
|
||||
}
|
||||
// tag=1009
|
||||
bool Platform_flutter_wrapper::tests_waitForDeleted_nocallback(KDDockWidgets::View *arg__1, int timeout) const
|
||||
{
|
||||
// tag=1003
|
||||
return ::KDDockWidgets::Platform_flutter::tests_waitForDeleted(arg__1, timeout);
|
||||
}
|
||||
bool Platform_flutter_wrapper::tests_waitForDeleted(QObject *arg__1, int timeout) const
|
||||
{
|
||||
// tag=1000
|
||||
if (m_tests_waitForDeleted_2Callback) {
|
||||
// tag=1001
|
||||
const void *thisPtr = this;
|
||||
return m_tests_waitForDeleted_2Callback(const_cast<void *>(thisPtr), arg__1, timeout);
|
||||
} else {
|
||||
// tag=1002
|
||||
return ::KDDockWidgets::Platform_flutter::tests_waitForDeleted(arg__1, timeout);
|
||||
}
|
||||
}
|
||||
// tag=1009
|
||||
bool Platform_flutter_wrapper::tests_waitForDeleted_nocallback(QObject *arg__1, int timeout) const
|
||||
{
|
||||
// tag=1003
|
||||
return ::KDDockWidgets::Platform_flutter::tests_waitForDeleted(arg__1, timeout);
|
||||
}
|
||||
bool Platform_flutter_wrapper::tests_waitForEvent(KDDockWidgets::View *arg__1, QEvent::Type type, int timeout) const
|
||||
{
|
||||
// tag=1000
|
||||
if (m_tests_waitForEventCallback) {
|
||||
// tag=1001
|
||||
const void *thisPtr = this;
|
||||
return m_tests_waitForEventCallback(const_cast<void *>(thisPtr), arg__1, type, timeout);
|
||||
} else {
|
||||
// tag=1002
|
||||
return ::KDDockWidgets::Platform_flutter::tests_waitForEvent(arg__1, type, timeout);
|
||||
}
|
||||
}
|
||||
// tag=1009
|
||||
bool Platform_flutter_wrapper::tests_waitForEvent_nocallback(KDDockWidgets::View *arg__1, QEvent::Type type, int timeout) const
|
||||
{
|
||||
// tag=1003
|
||||
return ::KDDockWidgets::Platform_flutter::tests_waitForEvent(arg__1, type, timeout);
|
||||
}
|
||||
bool Platform_flutter_wrapper::tests_waitForEvent(QObject *w, QEvent::Type type, int timeout) const
|
||||
{
|
||||
// tag=1000
|
||||
if (m_tests_waitForEvent_2Callback) {
|
||||
// tag=1001
|
||||
const void *thisPtr = this;
|
||||
return m_tests_waitForEvent_2Callback(const_cast<void *>(thisPtr), w, type, timeout);
|
||||
} else {
|
||||
// tag=1002
|
||||
return ::KDDockWidgets::Platform_flutter::tests_waitForEvent(w, type, timeout);
|
||||
}
|
||||
}
|
||||
// tag=1009
|
||||
bool Platform_flutter_wrapper::tests_waitForEvent_nocallback(QObject *w, QEvent::Type type, int timeout) const
|
||||
{
|
||||
// tag=1003
|
||||
return ::KDDockWidgets::Platform_flutter::tests_waitForEvent(w, type, timeout);
|
||||
}
|
||||
bool Platform_flutter_wrapper::tests_waitForResize(KDDockWidgets::Controller *arg__1, int timeout) const
|
||||
{
|
||||
// tag=1000
|
||||
if (m_tests_waitForResizeCallback) {
|
||||
// tag=1001
|
||||
const void *thisPtr = this;
|
||||
return m_tests_waitForResizeCallback(const_cast<void *>(thisPtr), arg__1, timeout);
|
||||
} else {
|
||||
// tag=1002
|
||||
return ::KDDockWidgets::Platform_flutter::tests_waitForResize(arg__1, timeout);
|
||||
}
|
||||
}
|
||||
// tag=1009
|
||||
bool Platform_flutter_wrapper::tests_waitForResize_nocallback(KDDockWidgets::Controller *arg__1, int timeout) const
|
||||
{
|
||||
// tag=1003
|
||||
return ::KDDockWidgets::Platform_flutter::tests_waitForResize(arg__1, timeout);
|
||||
}
|
||||
bool Platform_flutter_wrapper::tests_waitForResize(KDDockWidgets::View *arg__1, int timeout) const
|
||||
{
|
||||
// tag=1000
|
||||
if (m_tests_waitForResize_2Callback) {
|
||||
// tag=1001
|
||||
const void *thisPtr = this;
|
||||
return m_tests_waitForResize_2Callback(const_cast<void *>(thisPtr), arg__1, timeout);
|
||||
} else {
|
||||
// tag=1002
|
||||
return ::KDDockWidgets::Platform_flutter::tests_waitForResize(arg__1, timeout);
|
||||
}
|
||||
}
|
||||
// tag=1009
|
||||
bool Platform_flutter_wrapper::tests_waitForResize_nocallback(KDDockWidgets::View *arg__1, int timeout) const
|
||||
{
|
||||
// tag=1003
|
||||
return ::KDDockWidgets::Platform_flutter::tests_waitForResize(arg__1, timeout);
|
||||
}
|
||||
void Platform_flutter_wrapper::ungrabMouse()
|
||||
{
|
||||
// tag=1000
|
||||
if (m_ungrabMouseCallback) {
|
||||
// tag=1001
|
||||
const void *thisPtr = this;
|
||||
m_ungrabMouseCallback(const_cast<void *>(thisPtr));
|
||||
} else {
|
||||
// tag=1002
|
||||
::KDDockWidgets::Platform_flutter::ungrabMouse();
|
||||
}
|
||||
}
|
||||
// tag=1009
|
||||
void Platform_flutter_wrapper::ungrabMouse_nocallback()
|
||||
{
|
||||
// tag=1003
|
||||
::KDDockWidgets::Platform_flutter::ungrabMouse();
|
||||
}
|
||||
void Platform_flutter_wrapper::uninstallMessageHandler()
|
||||
{
|
||||
// tag=1000
|
||||
if (m_uninstallMessageHandlerCallback) {
|
||||
// tag=1001
|
||||
const void *thisPtr = this;
|
||||
m_uninstallMessageHandlerCallback(const_cast<void *>(thisPtr));
|
||||
} else {
|
||||
// tag=1002
|
||||
::KDDockWidgets::Platform_flutter::uninstallMessageHandler();
|
||||
}
|
||||
}
|
||||
// tag=1009
|
||||
void Platform_flutter_wrapper::uninstallMessageHandler_nocallback()
|
||||
{
|
||||
// tag=1003
|
||||
::KDDockWidgets::Platform_flutter::uninstallMessageHandler();
|
||||
}
|
||||
bool Platform_flutter_wrapper::usesFallbackMouseGrabber() const
|
||||
{
|
||||
// tag=1000
|
||||
if (m_usesFallbackMouseGrabberCallback) {
|
||||
// tag=1001
|
||||
const void *thisPtr = this;
|
||||
return m_usesFallbackMouseGrabberCallback(const_cast<void *>(thisPtr));
|
||||
} else {
|
||||
// tag=1002
|
||||
return ::KDDockWidgets::Platform_flutter::usesFallbackMouseGrabber();
|
||||
}
|
||||
}
|
||||
// tag=1009
|
||||
bool Platform_flutter_wrapper::usesFallbackMouseGrabber_nocallback() const
|
||||
{
|
||||
// tag=1003
|
||||
return ::KDDockWidgets::Platform_flutter::usesFallbackMouseGrabber();
|
||||
}
|
||||
|
||||
// tag=1005
|
||||
Platform_flutter_wrapper::~Platform_flutter_wrapper()
|
||||
{
|
||||
}
|
||||
|
||||
}
|
||||
// tag=1013
|
||||
static KDDockWidgets::Platform_flutter *fromPtr(void *ptr)
|
||||
{
|
||||
return reinterpret_cast<KDDockWidgets::Platform_flutter *>(ptr);
|
||||
}
|
||||
// tag=1014
|
||||
static KDDockWidgetsBindings_wrappersNS::Platform_flutter_wrapper *fromWrapperPtr(void *ptr)
|
||||
{
|
||||
return reinterpret_cast<KDDockWidgetsBindings_wrappersNS::Platform_flutter_wrapper *>(ptr);
|
||||
}
|
||||
extern "C" {
|
||||
|
||||
// tag=1049
|
||||
void c_KDDockWidgets__Platform_flutter_Finalizer(void *, void *cppObj, void *)
|
||||
{
|
||||
delete reinterpret_cast<KDDockWidgetsBindings_wrappersNS::Platform_flutter_wrapper *>(cppObj);
|
||||
}
|
||||
void *c_KDDockWidgets__Platform_flutter__constructor()
|
||||
{
|
||||
|
||||
// tag=1056
|
||||
auto ptr = new KDDockWidgetsBindings_wrappersNS::Platform_flutter_wrapper();
|
||||
return reinterpret_cast<void *>(ptr);
|
||||
}
|
||||
|
||||
// tag=1050
|
||||
// applicationName() const
|
||||
void *c_KDDockWidgets__Platform_flutter__applicationName(void *thisObj)
|
||||
{
|
||||
return
|
||||
// tag=1016
|
||||
|
||||
// tag=1072
|
||||
new Dartagnan::ValueWrapper<QString> { [&] {auto targetPtr = fromPtr(thisObj);auto wrapperPtr = dynamic_cast<KDDockWidgetsBindings_wrappersNS::Platform_flutter_wrapper*>(targetPtr);if (wrapperPtr) { return wrapperPtr->applicationName_nocallback();} else { return targetPtr->applicationName();} }() };
|
||||
}
|
||||
|
||||
// tag=1050
|
||||
// createDefaultViewFactory()
|
||||
void *c_KDDockWidgets__Platform_flutter__createDefaultViewFactory(void *thisObj)
|
||||
{
|
||||
return
|
||||
// tag=1016
|
||||
[&] {auto targetPtr = fromPtr(thisObj);auto wrapperPtr = dynamic_cast<KDDockWidgetsBindings_wrappersNS::Platform_flutter_wrapper*>(targetPtr);if (wrapperPtr) { return wrapperPtr->createDefaultViewFactory_nocallback();} else { return targetPtr->createDefaultViewFactory();} }();
|
||||
}
|
||||
|
||||
// tag=1050
|
||||
// createView(KDDockWidgets::Controller * controller, KDDockWidgets::View * parent) const
|
||||
void *c_KDDockWidgets__Platform_flutter__createView_Controller_View(void *thisObj, void *controller_, void *parent_)
|
||||
{
|
||||
auto controller = reinterpret_cast<KDDockWidgets::Controller *>(controller_);
|
||||
auto parent = reinterpret_cast<KDDockWidgets::View *>(parent_);
|
||||
return
|
||||
// tag=1016
|
||||
[&] {auto targetPtr = fromPtr(thisObj);auto wrapperPtr = dynamic_cast<KDDockWidgetsBindings_wrappersNS::Platform_flutter_wrapper*>(targetPtr);if (wrapperPtr) { return wrapperPtr->createView_nocallback(controller,parent);} else { return targetPtr->createView(controller,parent);} }();
|
||||
}
|
||||
|
||||
// tag=1050
|
||||
// hasActivePopup() const
|
||||
bool c_KDDockWidgets__Platform_flutter__hasActivePopup(void *thisObj)
|
||||
{
|
||||
return
|
||||
// tag=1016
|
||||
[&] {auto targetPtr = fromPtr(thisObj);auto wrapperPtr = dynamic_cast<KDDockWidgetsBindings_wrappersNS::Platform_flutter_wrapper*>(targetPtr);if (wrapperPtr) { return wrapperPtr->hasActivePopup_nocallback();} else { return targetPtr->hasActivePopup();} }();
|
||||
}
|
||||
|
||||
// tag=1050
|
||||
// inDisallowedDragView(QPoint globalPos) const
|
||||
bool c_KDDockWidgets__Platform_flutter__inDisallowedDragView_QPoint(void *thisObj, void *globalPos_)
|
||||
{
|
||||
auto &globalPos = *reinterpret_cast<QPoint *>(globalPos_);
|
||||
return
|
||||
// tag=1016
|
||||
[&] {auto targetPtr = fromPtr(thisObj);auto wrapperPtr = dynamic_cast<KDDockWidgetsBindings_wrappersNS::Platform_flutter_wrapper*>(targetPtr);if (wrapperPtr) { return wrapperPtr->inDisallowedDragView_nocallback(globalPos);} else { return targetPtr->inDisallowedDragView(globalPos);} }();
|
||||
}
|
||||
|
||||
// tag=1050
|
||||
// init()
|
||||
void c_KDDockWidgets__Platform_flutter__init(void *thisObj)
|
||||
{
|
||||
// tag=1011
|
||||
|
||||
// tag=1073
|
||||
fromWrapperPtr(thisObj)->init();
|
||||
}
|
||||
|
||||
// tag=1050
|
||||
// installMessageHandler()
|
||||
void c_KDDockWidgets__Platform_flutter__installMessageHandler(void *thisObj)
|
||||
{
|
||||
// tag=1016
|
||||
[&] {auto targetPtr = fromPtr(thisObj);auto wrapperPtr = dynamic_cast<KDDockWidgetsBindings_wrappersNS::Platform_flutter_wrapper*>(targetPtr);if (wrapperPtr) { return wrapperPtr->installMessageHandler_nocallback();} else { return targetPtr->installMessageHandler();} }();
|
||||
}
|
||||
|
||||
// tag=1050
|
||||
// isLeftMouseButtonPressed() const
|
||||
bool c_KDDockWidgets__Platform_flutter__isLeftMouseButtonPressed(void *thisObj)
|
||||
{
|
||||
return
|
||||
// tag=1016
|
||||
[&] {auto targetPtr = fromPtr(thisObj);auto wrapperPtr = dynamic_cast<KDDockWidgetsBindings_wrappersNS::Platform_flutter_wrapper*>(targetPtr);if (wrapperPtr) { return wrapperPtr->isLeftMouseButtonPressed_nocallback();} else { return targetPtr->isLeftMouseButtonPressed();} }();
|
||||
}
|
||||
|
||||
// tag=1050
|
||||
// isProcessingAppQuitEvent() const
|
||||
bool c_KDDockWidgets__Platform_flutter__isProcessingAppQuitEvent(void *thisObj)
|
||||
{
|
||||
return
|
||||
// tag=1016
|
||||
[&] {auto targetPtr = fromPtr(thisObj);auto wrapperPtr = dynamic_cast<KDDockWidgetsBindings_wrappersNS::Platform_flutter_wrapper*>(targetPtr);if (wrapperPtr) { return wrapperPtr->isProcessingAppQuitEvent_nocallback();} else { return targetPtr->isProcessingAppQuitEvent();} }();
|
||||
}
|
||||
|
||||
// tag=1050
|
||||
// name() const
|
||||
const char *c_KDDockWidgets__Platform_flutter__name(void *thisObj)
|
||||
{
|
||||
return
|
||||
// tag=1016
|
||||
[&] {auto targetPtr = fromPtr(thisObj);auto wrapperPtr = dynamic_cast<KDDockWidgetsBindings_wrappersNS::Platform_flutter_wrapper*>(targetPtr);if (wrapperPtr) { return wrapperPtr->name_nocallback();} else { return targetPtr->name();} }();
|
||||
}
|
||||
|
||||
// tag=1050
|
||||
// organizationName() const
|
||||
void *c_KDDockWidgets__Platform_flutter__organizationName(void *thisObj)
|
||||
{
|
||||
return
|
||||
// tag=1016
|
||||
|
||||
// tag=1072
|
||||
new Dartagnan::ValueWrapper<QString> { [&] {auto targetPtr = fromPtr(thisObj);auto wrapperPtr = dynamic_cast<KDDockWidgetsBindings_wrappersNS::Platform_flutter_wrapper*>(targetPtr);if (wrapperPtr) { return wrapperPtr->organizationName_nocallback();} else { return targetPtr->organizationName();} }() };
|
||||
}
|
||||
|
||||
// tag=1050
|
||||
// restoreMouseCursor()
|
||||
void c_KDDockWidgets__Platform_flutter__restoreMouseCursor(void *thisObj)
|
||||
{
|
||||
// tag=1016
|
||||
[&] {auto targetPtr = fromPtr(thisObj);auto wrapperPtr = dynamic_cast<KDDockWidgetsBindings_wrappersNS::Platform_flutter_wrapper*>(targetPtr);if (wrapperPtr) { return wrapperPtr->restoreMouseCursor_nocallback();} else { return targetPtr->restoreMouseCursor();} }();
|
||||
}
|
||||
|
||||
// tag=1050
|
||||
// screenNumberFor(KDDockWidgets::View * arg__1) const
|
||||
int c_KDDockWidgets__Platform_flutter__screenNumberFor_View(void *thisObj, void *arg__1_)
|
||||
{
|
||||
auto arg__1 = reinterpret_cast<KDDockWidgets::View *>(arg__1_);
|
||||
return
|
||||
// tag=1016
|
||||
[&] {auto targetPtr = fromPtr(thisObj);auto wrapperPtr = dynamic_cast<KDDockWidgetsBindings_wrappersNS::Platform_flutter_wrapper*>(targetPtr);if (wrapperPtr) { return wrapperPtr->screenNumberFor_nocallback(arg__1);} else { return targetPtr->screenNumberFor(arg__1);} }();
|
||||
}
|
||||
|
||||
// tag=1050
|
||||
// screenSizeFor(KDDockWidgets::View * arg__1) const
|
||||
void *c_KDDockWidgets__Platform_flutter__screenSizeFor_View(void *thisObj, void *arg__1_)
|
||||
{
|
||||
auto arg__1 = reinterpret_cast<KDDockWidgets::View *>(arg__1_);
|
||||
return
|
||||
// tag=1016
|
||||
|
||||
// tag=1072
|
||||
new Dartagnan::ValueWrapper<QSize> { [&] {auto targetPtr = fromPtr(thisObj);auto wrapperPtr = dynamic_cast<KDDockWidgetsBindings_wrappersNS::Platform_flutter_wrapper*>(targetPtr);if (wrapperPtr) { return wrapperPtr->screenSizeFor_nocallback(arg__1);} else { return targetPtr->screenSizeFor(arg__1);} }() };
|
||||
}
|
||||
|
||||
// tag=1050
|
||||
// sendEvent(KDDockWidgets::View * arg__1, QEvent * arg__2) const
|
||||
void c_KDDockWidgets__Platform_flutter__sendEvent_View_QEvent(void *thisObj, void *arg__1_, void *arg__2_)
|
||||
{
|
||||
auto arg__1 = reinterpret_cast<KDDockWidgets::View *>(arg__1_);
|
||||
auto arg__2 = reinterpret_cast<QEvent *>(arg__2_);
|
||||
// tag=1016
|
||||
[&] {auto targetPtr = fromPtr(thisObj);auto wrapperPtr = dynamic_cast<KDDockWidgetsBindings_wrappersNS::Platform_flutter_wrapper*>(targetPtr);if (wrapperPtr) { return wrapperPtr->sendEvent_nocallback(arg__1,arg__2);} else { return targetPtr->sendEvent(arg__1,arg__2);} }();
|
||||
}
|
||||
|
||||
// tag=1050
|
||||
// setMouseCursor(Qt::CursorShape arg__1)
|
||||
void c_KDDockWidgets__Platform_flutter__setMouseCursor_CursorShape(void *thisObj, int arg__1)
|
||||
{
|
||||
// tag=1016
|
||||
[&] {auto targetPtr = fromPtr(thisObj);auto wrapperPtr = dynamic_cast<KDDockWidgetsBindings_wrappersNS::Platform_flutter_wrapper*>(targetPtr);if (wrapperPtr) { return wrapperPtr->setMouseCursor_nocallback(static_cast<Qt::CursorShape>(arg__1));} else { return targetPtr->setMouseCursor(static_cast<Qt::CursorShape>(arg__1));} }();
|
||||
}
|
||||
|
||||
// tag=1050
|
||||
// tests_createNonClosableView(KDDockWidgets::View * parent)
|
||||
void *c_KDDockWidgets__Platform_flutter__tests_createNonClosableView_View(void *thisObj, void *parent_)
|
||||
{
|
||||
auto parent = reinterpret_cast<KDDockWidgets::View *>(parent_);
|
||||
return
|
||||
// tag=1016
|
||||
[&] {auto targetPtr = fromPtr(thisObj);auto wrapperPtr = dynamic_cast<KDDockWidgetsBindings_wrappersNS::Platform_flutter_wrapper*>(targetPtr);if (wrapperPtr) { return wrapperPtr->tests_createNonClosableView_nocallback(parent);} else { return targetPtr->tests_createNonClosableView(parent);} }();
|
||||
}
|
||||
|
||||
// tag=1050
|
||||
// tests_deinitPlatform_impl()
|
||||
void c_KDDockWidgets__Platform_flutter__tests_deinitPlatform_impl(void *thisObj)
|
||||
{
|
||||
// tag=1016
|
||||
[&] {auto targetPtr = fromPtr(thisObj);auto wrapperPtr = dynamic_cast<KDDockWidgetsBindings_wrappersNS::Platform_flutter_wrapper*>(targetPtr);if (wrapperPtr) { return wrapperPtr->tests_deinitPlatform_impl_nocallback();} else { return targetPtr->tests_deinitPlatform_impl();} }();
|
||||
}
|
||||
|
||||
// tag=1050
|
||||
// tests_initPlatform_impl()
|
||||
void c_KDDockWidgets__Platform_flutter__tests_initPlatform_impl(void *thisObj)
|
||||
{
|
||||
// tag=1016
|
||||
[&] {auto targetPtr = fromPtr(thisObj);auto wrapperPtr = dynamic_cast<KDDockWidgetsBindings_wrappersNS::Platform_flutter_wrapper*>(targetPtr);if (wrapperPtr) { return wrapperPtr->tests_initPlatform_impl_nocallback();} else { return targetPtr->tests_initPlatform_impl();} }();
|
||||
}
|
||||
|
||||
// tag=1050
|
||||
// tests_wait(int ms)
|
||||
void c_KDDockWidgets__Platform_flutter__tests_wait_int(void *thisObj, int ms)
|
||||
{
|
||||
// tag=1016
|
||||
[&] {auto targetPtr = fromPtr(thisObj);auto wrapperPtr = dynamic_cast<KDDockWidgetsBindings_wrappersNS::Platform_flutter_wrapper*>(targetPtr);if (wrapperPtr) { return wrapperPtr->tests_wait_nocallback(ms);} else { return targetPtr->tests_wait(ms);} }();
|
||||
}
|
||||
|
||||
// tag=1050
|
||||
// tests_waitForDeleted(KDDockWidgets::View * arg__1, int timeout) const
|
||||
bool c_KDDockWidgets__Platform_flutter__tests_waitForDeleted_View_int(void *thisObj, void *arg__1_, int timeout)
|
||||
{
|
||||
auto arg__1 = reinterpret_cast<KDDockWidgets::View *>(arg__1_);
|
||||
return
|
||||
// tag=1016
|
||||
[&] {auto targetPtr = fromPtr(thisObj);auto wrapperPtr = dynamic_cast<KDDockWidgetsBindings_wrappersNS::Platform_flutter_wrapper*>(targetPtr);if (wrapperPtr) { return wrapperPtr->tests_waitForDeleted_nocallback(arg__1,timeout);} else { return targetPtr->tests_waitForDeleted(arg__1,timeout);} }();
|
||||
}
|
||||
|
||||
// tag=1050
|
||||
// tests_waitForDeleted(QObject * arg__1, int timeout) const
|
||||
bool c_KDDockWidgets__Platform_flutter__tests_waitForDeleted_QObject_int(void *thisObj, void *arg__1_, int timeout)
|
||||
{
|
||||
auto arg__1 = reinterpret_cast<QObject *>(arg__1_);
|
||||
return
|
||||
// tag=1016
|
||||
[&] {auto targetPtr = fromPtr(thisObj);auto wrapperPtr = dynamic_cast<KDDockWidgetsBindings_wrappersNS::Platform_flutter_wrapper*>(targetPtr);if (wrapperPtr) { return wrapperPtr->tests_waitForDeleted_nocallback(arg__1,timeout);} else { return targetPtr->tests_waitForDeleted(arg__1,timeout);} }();
|
||||
}
|
||||
|
||||
// tag=1050
|
||||
// tests_waitForEvent(KDDockWidgets::View * arg__1, QEvent::Type type, int timeout) const
|
||||
bool c_KDDockWidgets__Platform_flutter__tests_waitForEvent_View_Type_int(void *thisObj, void *arg__1_, int type, int timeout)
|
||||
{
|
||||
auto arg__1 = reinterpret_cast<KDDockWidgets::View *>(arg__1_);
|
||||
return
|
||||
// tag=1016
|
||||
[&] {auto targetPtr = fromPtr(thisObj);auto wrapperPtr = dynamic_cast<KDDockWidgetsBindings_wrappersNS::Platform_flutter_wrapper*>(targetPtr);if (wrapperPtr) { return wrapperPtr->tests_waitForEvent_nocallback(arg__1,static_cast<QEvent::Type>(type),timeout);} else { return targetPtr->tests_waitForEvent(arg__1,static_cast<QEvent::Type>(type),timeout);} }();
|
||||
}
|
||||
|
||||
// tag=1050
|
||||
// tests_waitForEvent(QObject * w, QEvent::Type type, int timeout) const
|
||||
bool c_KDDockWidgets__Platform_flutter__tests_waitForEvent_QObject_Type_int(void *thisObj, void *w_, int type, int timeout)
|
||||
{
|
||||
auto w = reinterpret_cast<QObject *>(w_);
|
||||
return
|
||||
// tag=1016
|
||||
[&] {auto targetPtr = fromPtr(thisObj);auto wrapperPtr = dynamic_cast<KDDockWidgetsBindings_wrappersNS::Platform_flutter_wrapper*>(targetPtr);if (wrapperPtr) { return wrapperPtr->tests_waitForEvent_nocallback(w,static_cast<QEvent::Type>(type),timeout);} else { return targetPtr->tests_waitForEvent(w,static_cast<QEvent::Type>(type),timeout);} }();
|
||||
}
|
||||
|
||||
// tag=1050
|
||||
// tests_waitForResize(KDDockWidgets::Controller * arg__1, int timeout) const
|
||||
bool c_KDDockWidgets__Platform_flutter__tests_waitForResize_Controller_int(void *thisObj, void *arg__1_, int timeout)
|
||||
{
|
||||
auto arg__1 = reinterpret_cast<KDDockWidgets::Controller *>(arg__1_);
|
||||
return
|
||||
// tag=1016
|
||||
[&] {auto targetPtr = fromPtr(thisObj);auto wrapperPtr = dynamic_cast<KDDockWidgetsBindings_wrappersNS::Platform_flutter_wrapper*>(targetPtr);if (wrapperPtr) { return wrapperPtr->tests_waitForResize_nocallback(arg__1,timeout);} else { return targetPtr->tests_waitForResize(arg__1,timeout);} }();
|
||||
}
|
||||
|
||||
// tag=1050
|
||||
// tests_waitForResize(KDDockWidgets::View * arg__1, int timeout) const
|
||||
bool c_KDDockWidgets__Platform_flutter__tests_waitForResize_View_int(void *thisObj, void *arg__1_, int timeout)
|
||||
{
|
||||
auto arg__1 = reinterpret_cast<KDDockWidgets::View *>(arg__1_);
|
||||
return
|
||||
// tag=1016
|
||||
[&] {auto targetPtr = fromPtr(thisObj);auto wrapperPtr = dynamic_cast<KDDockWidgetsBindings_wrappersNS::Platform_flutter_wrapper*>(targetPtr);if (wrapperPtr) { return wrapperPtr->tests_waitForResize_nocallback(arg__1,timeout);} else { return targetPtr->tests_waitForResize(arg__1,timeout);} }();
|
||||
}
|
||||
|
||||
// tag=1050
|
||||
// ungrabMouse()
|
||||
void c_KDDockWidgets__Platform_flutter__ungrabMouse(void *thisObj)
|
||||
{
|
||||
// tag=1016
|
||||
[&] {auto targetPtr = fromPtr(thisObj);auto wrapperPtr = dynamic_cast<KDDockWidgetsBindings_wrappersNS::Platform_flutter_wrapper*>(targetPtr);if (wrapperPtr) { return wrapperPtr->ungrabMouse_nocallback();} else { return targetPtr->ungrabMouse();} }();
|
||||
}
|
||||
|
||||
// tag=1050
|
||||
// uninstallMessageHandler()
|
||||
void c_KDDockWidgets__Platform_flutter__uninstallMessageHandler(void *thisObj)
|
||||
{
|
||||
// tag=1016
|
||||
[&] {auto targetPtr = fromPtr(thisObj);auto wrapperPtr = dynamic_cast<KDDockWidgetsBindings_wrappersNS::Platform_flutter_wrapper*>(targetPtr);if (wrapperPtr) { return wrapperPtr->uninstallMessageHandler_nocallback();} else { return targetPtr->uninstallMessageHandler();} }();
|
||||
}
|
||||
|
||||
// tag=1050
|
||||
// usesFallbackMouseGrabber() const
|
||||
bool c_KDDockWidgets__Platform_flutter__usesFallbackMouseGrabber(void *thisObj)
|
||||
{
|
||||
return
|
||||
// tag=1016
|
||||
[&] {auto targetPtr = fromPtr(thisObj);auto wrapperPtr = dynamic_cast<KDDockWidgetsBindings_wrappersNS::Platform_flutter_wrapper*>(targetPtr);if (wrapperPtr) { return wrapperPtr->usesFallbackMouseGrabber_nocallback();} else { return targetPtr->usesFallbackMouseGrabber();} }();
|
||||
}
|
||||
void c_KDDockWidgets__Platform_flutter__destructor(void *thisObj)
|
||||
{
|
||||
|
||||
// tag=1055
|
||||
delete fromPtr(thisObj);
|
||||
}
|
||||
void c_KDDockWidgets__Platform_flutter__registerVirtualMethodCallback(void *ptr, void *callback, int methodId)
|
||||
{
|
||||
// tag=1048
|
||||
auto wrapper = fromWrapperPtr(ptr);
|
||||
switch (methodId) {
|
||||
case 618:
|
||||
wrapper->m_applicationNameCallback = reinterpret_cast<KDDockWidgetsBindings_wrappersNS::Platform_flutter_wrapper::Callback_applicationName>(callback);
|
||||
break;
|
||||
case 619:
|
||||
wrapper->m_createDefaultViewFactoryCallback = reinterpret_cast<KDDockWidgetsBindings_wrappersNS::Platform_flutter_wrapper::Callback_createDefaultViewFactory>(callback);
|
||||
break;
|
||||
case 620:
|
||||
wrapper->m_createViewCallback = reinterpret_cast<KDDockWidgetsBindings_wrappersNS::Platform_flutter_wrapper::Callback_createView>(callback);
|
||||
break;
|
||||
case 621:
|
||||
wrapper->m_hasActivePopupCallback = reinterpret_cast<KDDockWidgetsBindings_wrappersNS::Platform_flutter_wrapper::Callback_hasActivePopup>(callback);
|
||||
break;
|
||||
case 622:
|
||||
wrapper->m_inDisallowedDragViewCallback = reinterpret_cast<KDDockWidgetsBindings_wrappersNS::Platform_flutter_wrapper::Callback_inDisallowedDragView>(callback);
|
||||
break;
|
||||
case 624:
|
||||
wrapper->m_installMessageHandlerCallback = reinterpret_cast<KDDockWidgetsBindings_wrappersNS::Platform_flutter_wrapper::Callback_installMessageHandler>(callback);
|
||||
break;
|
||||
case 625:
|
||||
wrapper->m_isLeftMouseButtonPressedCallback = reinterpret_cast<KDDockWidgetsBindings_wrappersNS::Platform_flutter_wrapper::Callback_isLeftMouseButtonPressed>(callback);
|
||||
break;
|
||||
case 626:
|
||||
wrapper->m_isProcessingAppQuitEventCallback = reinterpret_cast<KDDockWidgetsBindings_wrappersNS::Platform_flutter_wrapper::Callback_isProcessingAppQuitEvent>(callback);
|
||||
break;
|
||||
case 627:
|
||||
wrapper->m_nameCallback = reinterpret_cast<KDDockWidgetsBindings_wrappersNS::Platform_flutter_wrapper::Callback_name>(callback);
|
||||
break;
|
||||
case 628:
|
||||
wrapper->m_organizationNameCallback = reinterpret_cast<KDDockWidgetsBindings_wrappersNS::Platform_flutter_wrapper::Callback_organizationName>(callback);
|
||||
break;
|
||||
case 629:
|
||||
wrapper->m_restoreMouseCursorCallback = reinterpret_cast<KDDockWidgetsBindings_wrappersNS::Platform_flutter_wrapper::Callback_restoreMouseCursor>(callback);
|
||||
break;
|
||||
case 630:
|
||||
wrapper->m_screenNumberForCallback = reinterpret_cast<KDDockWidgetsBindings_wrappersNS::Platform_flutter_wrapper::Callback_screenNumberFor>(callback);
|
||||
break;
|
||||
case 631:
|
||||
wrapper->m_screenSizeForCallback = reinterpret_cast<KDDockWidgetsBindings_wrappersNS::Platform_flutter_wrapper::Callback_screenSizeFor>(callback);
|
||||
break;
|
||||
case 632:
|
||||
wrapper->m_sendEventCallback = reinterpret_cast<KDDockWidgetsBindings_wrappersNS::Platform_flutter_wrapper::Callback_sendEvent>(callback);
|
||||
break;
|
||||
case 633:
|
||||
wrapper->m_setMouseCursorCallback = reinterpret_cast<KDDockWidgetsBindings_wrappersNS::Platform_flutter_wrapper::Callback_setMouseCursor>(callback);
|
||||
break;
|
||||
case 634:
|
||||
wrapper->m_tests_createNonClosableViewCallback = reinterpret_cast<KDDockWidgetsBindings_wrappersNS::Platform_flutter_wrapper::Callback_tests_createNonClosableView>(callback);
|
||||
break;
|
||||
case 635:
|
||||
wrapper->m_tests_deinitPlatform_implCallback = reinterpret_cast<KDDockWidgetsBindings_wrappersNS::Platform_flutter_wrapper::Callback_tests_deinitPlatform_impl>(callback);
|
||||
break;
|
||||
case 636:
|
||||
wrapper->m_tests_initPlatform_implCallback = reinterpret_cast<KDDockWidgetsBindings_wrappersNS::Platform_flutter_wrapper::Callback_tests_initPlatform_impl>(callback);
|
||||
break;
|
||||
case 637:
|
||||
wrapper->m_tests_waitCallback = reinterpret_cast<KDDockWidgetsBindings_wrappersNS::Platform_flutter_wrapper::Callback_tests_wait>(callback);
|
||||
break;
|
||||
case 638:
|
||||
wrapper->m_tests_waitForDeletedCallback = reinterpret_cast<KDDockWidgetsBindings_wrappersNS::Platform_flutter_wrapper::Callback_tests_waitForDeleted>(callback);
|
||||
break;
|
||||
case 639:
|
||||
wrapper->m_tests_waitForDeleted_2Callback = reinterpret_cast<KDDockWidgetsBindings_wrappersNS::Platform_flutter_wrapper::Callback_tests_waitForDeleted_2>(callback);
|
||||
break;
|
||||
case 640:
|
||||
wrapper->m_tests_waitForEventCallback = reinterpret_cast<KDDockWidgetsBindings_wrappersNS::Platform_flutter_wrapper::Callback_tests_waitForEvent>(callback);
|
||||
break;
|
||||
case 641:
|
||||
wrapper->m_tests_waitForEvent_2Callback = reinterpret_cast<KDDockWidgetsBindings_wrappersNS::Platform_flutter_wrapper::Callback_tests_waitForEvent_2>(callback);
|
||||
break;
|
||||
case 642:
|
||||
wrapper->m_tests_waitForResizeCallback = reinterpret_cast<KDDockWidgetsBindings_wrappersNS::Platform_flutter_wrapper::Callback_tests_waitForResize>(callback);
|
||||
break;
|
||||
case 643:
|
||||
wrapper->m_tests_waitForResize_2Callback = reinterpret_cast<KDDockWidgetsBindings_wrappersNS::Platform_flutter_wrapper::Callback_tests_waitForResize_2>(callback);
|
||||
break;
|
||||
case 644:
|
||||
wrapper->m_ungrabMouseCallback = reinterpret_cast<KDDockWidgetsBindings_wrappersNS::Platform_flutter_wrapper::Callback_ungrabMouse>(callback);
|
||||
break;
|
||||
case 645:
|
||||
wrapper->m_uninstallMessageHandlerCallback = reinterpret_cast<KDDockWidgetsBindings_wrappersNS::Platform_flutter_wrapper::Callback_uninstallMessageHandler>(callback);
|
||||
break;
|
||||
case 646:
|
||||
wrapper->m_usesFallbackMouseGrabberCallback = reinterpret_cast<KDDockWidgetsBindings_wrappersNS::Platform_flutter_wrapper::Callback_usesFallbackMouseGrabber>(callback);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,361 @@
|
||||
/*
|
||||
This file is part of KDDockWidgets.
|
||||
|
||||
SPDX-FileCopyrightText: 2019-2022 Klarälvdalens Datakonsult AB, a KDAB Group company <info@kdab.com>
|
||||
Author: Sérgio Martins <sergio.martins@kdab.com>
|
||||
|
||||
SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only
|
||||
|
||||
Contact KDAB at <info@kdab.com> for commercial licensing options.
|
||||
*/
|
||||
|
||||
// tag=1040
|
||||
#include "KDDockWidgetsBindings_exports.h"
|
||||
#include <Platform_flutter.h>
|
||||
#include <ViewFactory.h>
|
||||
#include <View.h>
|
||||
#include <qsize.h>
|
||||
#include <Controller.h>
|
||||
#include <qpoint.h>
|
||||
#include <qcoreevent.h>
|
||||
#include <qobject.h>
|
||||
#include <qstring.h>
|
||||
|
||||
namespace KDDockWidgetsBindings_wrappersNS {
|
||||
// tag=1017
|
||||
class Platform_flutter_wrapper : public ::KDDockWidgets::Platform_flutter
|
||||
{
|
||||
public:
|
||||
~Platform_flutter_wrapper();
|
||||
// tag=1041
|
||||
Platform_flutter_wrapper();
|
||||
// tag=1041
|
||||
virtual QString applicationName() const;
|
||||
// tag=1008
|
||||
virtual QString applicationName_nocallback() const;
|
||||
// tag=1041
|
||||
virtual KDDockWidgets::ViewFactory *createDefaultViewFactory();
|
||||
// tag=1008
|
||||
virtual KDDockWidgets::ViewFactory *createDefaultViewFactory_nocallback();
|
||||
// tag=1041
|
||||
virtual KDDockWidgets::View *createView(KDDockWidgets::Controller *controller, KDDockWidgets::View *parent = nullptr) const;
|
||||
// tag=1008
|
||||
virtual KDDockWidgets::View *createView_nocallback(KDDockWidgets::Controller *controller, KDDockWidgets::View *parent = nullptr) const;
|
||||
// tag=1041
|
||||
virtual bool hasActivePopup() const;
|
||||
// tag=1008
|
||||
virtual bool hasActivePopup_nocallback() const;
|
||||
// tag=1041
|
||||
virtual bool inDisallowedDragView(QPoint globalPos) const;
|
||||
// tag=1008
|
||||
virtual bool inDisallowedDragView_nocallback(QPoint globalPos) const;
|
||||
// tag=1041
|
||||
void init();
|
||||
// tag=1041
|
||||
virtual void installMessageHandler();
|
||||
// tag=1008
|
||||
virtual void installMessageHandler_nocallback();
|
||||
// tag=1041
|
||||
virtual bool isLeftMouseButtonPressed() const;
|
||||
// tag=1008
|
||||
virtual bool isLeftMouseButtonPressed_nocallback() const;
|
||||
// tag=1041
|
||||
virtual bool isProcessingAppQuitEvent() const;
|
||||
// tag=1008
|
||||
virtual bool isProcessingAppQuitEvent_nocallback() const;
|
||||
// tag=1041
|
||||
virtual const char *name() const;
|
||||
// tag=1008
|
||||
virtual const char *name_nocallback() const;
|
||||
// tag=1041
|
||||
virtual QString organizationName() const;
|
||||
// tag=1008
|
||||
virtual QString organizationName_nocallback() const;
|
||||
// tag=1041
|
||||
virtual void restoreMouseCursor();
|
||||
// tag=1008
|
||||
virtual void restoreMouseCursor_nocallback();
|
||||
// tag=1041
|
||||
virtual int screenNumberFor(KDDockWidgets::View *arg__1) const;
|
||||
// tag=1008
|
||||
virtual int screenNumberFor_nocallback(KDDockWidgets::View *arg__1) const;
|
||||
// tag=1041
|
||||
virtual QSize screenSizeFor(KDDockWidgets::View *arg__1) const;
|
||||
// tag=1008
|
||||
virtual QSize screenSizeFor_nocallback(KDDockWidgets::View *arg__1) const;
|
||||
// tag=1041
|
||||
virtual void sendEvent(KDDockWidgets::View *arg__1, QEvent *arg__2) const;
|
||||
// tag=1008
|
||||
virtual void sendEvent_nocallback(KDDockWidgets::View *arg__1, QEvent *arg__2) const;
|
||||
// tag=1041
|
||||
virtual void setMouseCursor(Qt::CursorShape arg__1);
|
||||
// tag=1008
|
||||
virtual void setMouseCursor_nocallback(Qt::CursorShape arg__1);
|
||||
// tag=1041
|
||||
virtual KDDockWidgets::View *tests_createNonClosableView(KDDockWidgets::View *parent = nullptr);
|
||||
// tag=1008
|
||||
virtual KDDockWidgets::View *tests_createNonClosableView_nocallback(KDDockWidgets::View *parent = nullptr);
|
||||
// tag=1041
|
||||
virtual void tests_deinitPlatform_impl();
|
||||
// tag=1008
|
||||
virtual void tests_deinitPlatform_impl_nocallback();
|
||||
// tag=1041
|
||||
virtual void tests_initPlatform_impl();
|
||||
// tag=1008
|
||||
virtual void tests_initPlatform_impl_nocallback();
|
||||
// tag=1041
|
||||
virtual void tests_wait(int ms);
|
||||
// tag=1008
|
||||
virtual void tests_wait_nocallback(int ms);
|
||||
// tag=1041
|
||||
virtual bool tests_waitForDeleted(KDDockWidgets::View *arg__1, int timeout) const;
|
||||
// tag=1008
|
||||
virtual bool tests_waitForDeleted_nocallback(KDDockWidgets::View *arg__1, int timeout) const;
|
||||
// tag=1041
|
||||
virtual bool tests_waitForDeleted(QObject *arg__1, int timeout) const;
|
||||
// tag=1008
|
||||
virtual bool tests_waitForDeleted_nocallback(QObject *arg__1, int timeout) const;
|
||||
// tag=1041
|
||||
virtual bool tests_waitForEvent(KDDockWidgets::View *arg__1, QEvent::Type type, int timeout) const;
|
||||
// tag=1008
|
||||
virtual bool tests_waitForEvent_nocallback(KDDockWidgets::View *arg__1, QEvent::Type type, int timeout) const;
|
||||
// tag=1041
|
||||
virtual bool tests_waitForEvent(QObject *w, QEvent::Type type, int timeout) const;
|
||||
// tag=1008
|
||||
virtual bool tests_waitForEvent_nocallback(QObject *w, QEvent::Type type, int timeout) const;
|
||||
// tag=1041
|
||||
virtual bool tests_waitForResize(KDDockWidgets::Controller *arg__1, int timeout) const;
|
||||
// tag=1008
|
||||
virtual bool tests_waitForResize_nocallback(KDDockWidgets::Controller *arg__1, int timeout) const;
|
||||
// tag=1041
|
||||
virtual bool tests_waitForResize(KDDockWidgets::View *arg__1, int timeout) const;
|
||||
// tag=1008
|
||||
virtual bool tests_waitForResize_nocallback(KDDockWidgets::View *arg__1, int timeout) const;
|
||||
// tag=1041
|
||||
virtual void ungrabMouse();
|
||||
// tag=1008
|
||||
virtual void ungrabMouse_nocallback();
|
||||
// tag=1041
|
||||
virtual void uninstallMessageHandler();
|
||||
// tag=1008
|
||||
virtual void uninstallMessageHandler_nocallback();
|
||||
// tag=1041
|
||||
virtual bool usesFallbackMouseGrabber() const;
|
||||
// tag=1008
|
||||
virtual bool usesFallbackMouseGrabber_nocallback() const;
|
||||
// tag=1042
|
||||
typedef QString *(*Callback_applicationName)(void *);
|
||||
Callback_applicationName m_applicationNameCallback = nullptr;
|
||||
// tag=1042
|
||||
typedef KDDockWidgets::ViewFactory *(*Callback_createDefaultViewFactory)(void *);
|
||||
Callback_createDefaultViewFactory m_createDefaultViewFactoryCallback = nullptr;
|
||||
// tag=1042
|
||||
typedef KDDockWidgets::View *(*Callback_createView)(void *, KDDockWidgets::Controller *controller, KDDockWidgets::View *parent);
|
||||
Callback_createView m_createViewCallback = nullptr;
|
||||
// tag=1042
|
||||
typedef bool (*Callback_hasActivePopup)(void *);
|
||||
Callback_hasActivePopup m_hasActivePopupCallback = nullptr;
|
||||
// tag=1042
|
||||
typedef bool (*Callback_inDisallowedDragView)(void *, QPoint globalPos);
|
||||
Callback_inDisallowedDragView m_inDisallowedDragViewCallback = nullptr;
|
||||
// tag=1042
|
||||
typedef void (*Callback_installMessageHandler)(void *);
|
||||
Callback_installMessageHandler m_installMessageHandlerCallback = nullptr;
|
||||
// tag=1042
|
||||
typedef bool (*Callback_isLeftMouseButtonPressed)(void *);
|
||||
Callback_isLeftMouseButtonPressed m_isLeftMouseButtonPressedCallback = nullptr;
|
||||
// tag=1042
|
||||
typedef bool (*Callback_isProcessingAppQuitEvent)(void *);
|
||||
Callback_isProcessingAppQuitEvent m_isProcessingAppQuitEventCallback = nullptr;
|
||||
// tag=1042
|
||||
typedef const char *(*Callback_name)(void *);
|
||||
Callback_name m_nameCallback = nullptr;
|
||||
// tag=1042
|
||||
typedef QString *(*Callback_organizationName)(void *);
|
||||
Callback_organizationName m_organizationNameCallback = nullptr;
|
||||
// tag=1042
|
||||
typedef void (*Callback_restoreMouseCursor)(void *);
|
||||
Callback_restoreMouseCursor m_restoreMouseCursorCallback = nullptr;
|
||||
// tag=1042
|
||||
typedef int (*Callback_screenNumberFor)(void *, KDDockWidgets::View *arg__1);
|
||||
Callback_screenNumberFor m_screenNumberForCallback = nullptr;
|
||||
// tag=1042
|
||||
typedef QSize *(*Callback_screenSizeFor)(void *, KDDockWidgets::View *arg__1);
|
||||
Callback_screenSizeFor m_screenSizeForCallback = nullptr;
|
||||
// tag=1042
|
||||
typedef void (*Callback_sendEvent)(void *, KDDockWidgets::View *arg__1, QEvent *arg__2);
|
||||
Callback_sendEvent m_sendEventCallback = nullptr;
|
||||
// tag=1042
|
||||
typedef void (*Callback_setMouseCursor)(void *, Qt::CursorShape arg__1);
|
||||
Callback_setMouseCursor m_setMouseCursorCallback = nullptr;
|
||||
// tag=1042
|
||||
typedef KDDockWidgets::View *(*Callback_tests_createNonClosableView)(void *, KDDockWidgets::View *parent);
|
||||
Callback_tests_createNonClosableView m_tests_createNonClosableViewCallback = nullptr;
|
||||
// tag=1042
|
||||
typedef void (*Callback_tests_deinitPlatform_impl)(void *);
|
||||
Callback_tests_deinitPlatform_impl m_tests_deinitPlatform_implCallback = nullptr;
|
||||
// tag=1042
|
||||
typedef void (*Callback_tests_initPlatform_impl)(void *);
|
||||
Callback_tests_initPlatform_impl m_tests_initPlatform_implCallback = nullptr;
|
||||
// tag=1042
|
||||
typedef void (*Callback_tests_wait)(void *, int ms);
|
||||
Callback_tests_wait m_tests_waitCallback = nullptr;
|
||||
// tag=1042
|
||||
typedef bool (*Callback_tests_waitForDeleted)(void *, KDDockWidgets::View *arg__1, int timeout);
|
||||
Callback_tests_waitForDeleted m_tests_waitForDeletedCallback = nullptr;
|
||||
// tag=1042
|
||||
typedef bool (*Callback_tests_waitForDeleted_2)(void *, QObject *arg__1, int timeout);
|
||||
Callback_tests_waitForDeleted_2 m_tests_waitForDeleted_2Callback = nullptr;
|
||||
// tag=1042
|
||||
typedef bool (*Callback_tests_waitForEvent)(void *, KDDockWidgets::View *arg__1, QEvent::Type type, int timeout);
|
||||
Callback_tests_waitForEvent m_tests_waitForEventCallback = nullptr;
|
||||
// tag=1042
|
||||
typedef bool (*Callback_tests_waitForEvent_2)(void *, QObject *w, QEvent::Type type, int timeout);
|
||||
Callback_tests_waitForEvent_2 m_tests_waitForEvent_2Callback = nullptr;
|
||||
// tag=1042
|
||||
typedef bool (*Callback_tests_waitForResize)(void *, KDDockWidgets::Controller *arg__1, int timeout);
|
||||
Callback_tests_waitForResize m_tests_waitForResizeCallback = nullptr;
|
||||
// tag=1042
|
||||
typedef bool (*Callback_tests_waitForResize_2)(void *, KDDockWidgets::View *arg__1, int timeout);
|
||||
Callback_tests_waitForResize_2 m_tests_waitForResize_2Callback = nullptr;
|
||||
// tag=1042
|
||||
typedef void (*Callback_ungrabMouse)(void *);
|
||||
Callback_ungrabMouse m_ungrabMouseCallback = nullptr;
|
||||
// tag=1042
|
||||
typedef void (*Callback_uninstallMessageHandler)(void *);
|
||||
Callback_uninstallMessageHandler m_uninstallMessageHandlerCallback = nullptr;
|
||||
// tag=1042
|
||||
typedef bool (*Callback_usesFallbackMouseGrabber)(void *);
|
||||
Callback_usesFallbackMouseGrabber m_usesFallbackMouseGrabberCallback = nullptr;
|
||||
};
|
||||
}
|
||||
extern "C" {
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::Platform_flutter::Platform_flutter()
|
||||
KDDockWidgetsBindings_EXPORT void *c_KDDockWidgets__Platform_flutter__constructor();
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::Platform_flutter::applicationName() const
|
||||
KDDockWidgetsBindings_EXPORT void *c_KDDockWidgets__Platform_flutter__applicationName(void *thisObj);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::Platform_flutter::createDefaultViewFactory()
|
||||
KDDockWidgetsBindings_EXPORT void *c_KDDockWidgets__Platform_flutter__createDefaultViewFactory(void *thisObj);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::Platform_flutter::createView(KDDockWidgets::Controller * controller, KDDockWidgets::View * parent) const
|
||||
KDDockWidgetsBindings_EXPORT void *c_KDDockWidgets__Platform_flutter__createView_Controller_View(void *thisObj, void *controller_, void *parent_);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::Platform_flutter::hasActivePopup() const
|
||||
KDDockWidgetsBindings_EXPORT bool c_KDDockWidgets__Platform_flutter__hasActivePopup(void *thisObj);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::Platform_flutter::inDisallowedDragView(QPoint globalPos) const
|
||||
KDDockWidgetsBindings_EXPORT bool c_KDDockWidgets__Platform_flutter__inDisallowedDragView_QPoint(void *thisObj, void *globalPos_);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::Platform_flutter::init()
|
||||
KDDockWidgetsBindings_EXPORT void c_KDDockWidgets__Platform_flutter__init(void *thisObj);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::Platform_flutter::installMessageHandler()
|
||||
KDDockWidgetsBindings_EXPORT void c_KDDockWidgets__Platform_flutter__installMessageHandler(void *thisObj);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::Platform_flutter::isLeftMouseButtonPressed() const
|
||||
KDDockWidgetsBindings_EXPORT bool c_KDDockWidgets__Platform_flutter__isLeftMouseButtonPressed(void *thisObj);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::Platform_flutter::isProcessingAppQuitEvent() const
|
||||
KDDockWidgetsBindings_EXPORT bool c_KDDockWidgets__Platform_flutter__isProcessingAppQuitEvent(void *thisObj);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::Platform_flutter::name() const
|
||||
KDDockWidgetsBindings_EXPORT const char *c_KDDockWidgets__Platform_flutter__name(void *thisObj);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::Platform_flutter::organizationName() const
|
||||
KDDockWidgetsBindings_EXPORT void *c_KDDockWidgets__Platform_flutter__organizationName(void *thisObj);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::Platform_flutter::restoreMouseCursor()
|
||||
KDDockWidgetsBindings_EXPORT void c_KDDockWidgets__Platform_flutter__restoreMouseCursor(void *thisObj);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::Platform_flutter::screenNumberFor(KDDockWidgets::View * arg__1) const
|
||||
KDDockWidgetsBindings_EXPORT int c_KDDockWidgets__Platform_flutter__screenNumberFor_View(void *thisObj, void *arg__1_);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::Platform_flutter::screenSizeFor(KDDockWidgets::View * arg__1) const
|
||||
KDDockWidgetsBindings_EXPORT void *c_KDDockWidgets__Platform_flutter__screenSizeFor_View(void *thisObj, void *arg__1_);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::Platform_flutter::sendEvent(KDDockWidgets::View * arg__1, QEvent * arg__2) const
|
||||
KDDockWidgetsBindings_EXPORT void c_KDDockWidgets__Platform_flutter__sendEvent_View_QEvent(void *thisObj, void *arg__1_, void *arg__2_);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::Platform_flutter::setMouseCursor(Qt::CursorShape arg__1)
|
||||
KDDockWidgetsBindings_EXPORT void c_KDDockWidgets__Platform_flutter__setMouseCursor_CursorShape(void *thisObj, int arg__1);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::Platform_flutter::tests_createNonClosableView(KDDockWidgets::View * parent)
|
||||
KDDockWidgetsBindings_EXPORT void *c_KDDockWidgets__Platform_flutter__tests_createNonClosableView_View(void *thisObj, void *parent_);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::Platform_flutter::tests_deinitPlatform_impl()
|
||||
KDDockWidgetsBindings_EXPORT void c_KDDockWidgets__Platform_flutter__tests_deinitPlatform_impl(void *thisObj);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::Platform_flutter::tests_initPlatform_impl()
|
||||
KDDockWidgetsBindings_EXPORT void c_KDDockWidgets__Platform_flutter__tests_initPlatform_impl(void *thisObj);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::Platform_flutter::tests_wait(int ms)
|
||||
KDDockWidgetsBindings_EXPORT void c_KDDockWidgets__Platform_flutter__tests_wait_int(void *thisObj, int ms);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::Platform_flutter::tests_waitForDeleted(KDDockWidgets::View * arg__1, int timeout) const
|
||||
KDDockWidgetsBindings_EXPORT bool c_KDDockWidgets__Platform_flutter__tests_waitForDeleted_View_int(void *thisObj, void *arg__1_, int timeout);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::Platform_flutter::tests_waitForDeleted(QObject * arg__1, int timeout) const
|
||||
KDDockWidgetsBindings_EXPORT bool c_KDDockWidgets__Platform_flutter__tests_waitForDeleted_QObject_int(void *thisObj, void *arg__1_, int timeout);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::Platform_flutter::tests_waitForEvent(KDDockWidgets::View * arg__1, QEvent::Type type, int timeout) const
|
||||
KDDockWidgetsBindings_EXPORT bool c_KDDockWidgets__Platform_flutter__tests_waitForEvent_View_Type_int(void *thisObj, void *arg__1_, int type, int timeout);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::Platform_flutter::tests_waitForEvent(QObject * w, QEvent::Type type, int timeout) const
|
||||
KDDockWidgetsBindings_EXPORT bool c_KDDockWidgets__Platform_flutter__tests_waitForEvent_QObject_Type_int(void *thisObj, void *w_, int type, int timeout);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::Platform_flutter::tests_waitForResize(KDDockWidgets::Controller * arg__1, int timeout) const
|
||||
KDDockWidgetsBindings_EXPORT bool c_KDDockWidgets__Platform_flutter__tests_waitForResize_Controller_int(void *thisObj, void *arg__1_, int timeout);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::Platform_flutter::tests_waitForResize(KDDockWidgets::View * arg__1, int timeout) const
|
||||
KDDockWidgetsBindings_EXPORT bool c_KDDockWidgets__Platform_flutter__tests_waitForResize_View_int(void *thisObj, void *arg__1_, int timeout);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::Platform_flutter::ungrabMouse()
|
||||
KDDockWidgetsBindings_EXPORT void c_KDDockWidgets__Platform_flutter__ungrabMouse(void *thisObj);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::Platform_flutter::uninstallMessageHandler()
|
||||
KDDockWidgetsBindings_EXPORT void c_KDDockWidgets__Platform_flutter__uninstallMessageHandler(void *thisObj);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::Platform_flutter::usesFallbackMouseGrabber() const
|
||||
KDDockWidgetsBindings_EXPORT bool c_KDDockWidgets__Platform_flutter__usesFallbackMouseGrabber(void *thisObj);
|
||||
|
||||
// tag=1066
|
||||
KDDockWidgetsBindings_EXPORT void c_KDDockWidgets__Platform_flutter__destructor(void *thisObj);
|
||||
|
||||
// tag=1046
|
||||
KDDockWidgetsBindings_EXPORT void c_KDDockWidgets__Platform_flutter__registerVirtualMethodCallback(void *ptr, void *callback, int methodId);
|
||||
// tag=1047
|
||||
KDDockWidgetsBindings_EXPORT void c_KDDockWidgets__Platform_flutter_Finalizer(void *, void *cppObj, void *);
|
||||
}
|
||||
@@ -1,948 +0,0 @@
|
||||
/*
|
||||
This file is part of KDDockWidgets.
|
||||
|
||||
SPDX-FileCopyrightText: 2019-2022 Klarälvdalens Datakonsult AB, a KDAB Group company <info@kdab.com>
|
||||
Author: Sérgio Martins <sergio.martins@kdab.com>
|
||||
|
||||
SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only
|
||||
|
||||
Contact KDAB at <info@kdab.com> for commercial licensing options.
|
||||
*/
|
||||
#include "Platform_wrapper.h"
|
||||
|
||||
|
||||
#include <QDebug>
|
||||
|
||||
|
||||
namespace Dartagnan {
|
||||
|
||||
typedef int (*CleanupCallback)(void *thisPtr);
|
||||
static CleanupCallback s_cleanupCallback = nullptr;
|
||||
|
||||
template<typename T>
|
||||
struct ValueWrapper
|
||||
{
|
||||
T value;
|
||||
};
|
||||
|
||||
}
|
||||
namespace KDDockWidgetsBindings_wrappersNS {
|
||||
// tag=1006
|
||||
Platform_wrapper::Platform_wrapper()
|
||||
: ::KDDockWidgets::Platform()
|
||||
{
|
||||
}
|
||||
QString Platform_wrapper::applicationName() const
|
||||
{
|
||||
// tag=1000
|
||||
if (m_applicationNameCallback) {
|
||||
// tag=1001
|
||||
const void *thisPtr = this;
|
||||
return *m_applicationNameCallback(const_cast<void *>(thisPtr));
|
||||
} else {
|
||||
// tag=1015
|
||||
qWarning() << Q_FUNC_INFO << "Warning: Calling pure-virtual";
|
||||
return {};
|
||||
}
|
||||
}
|
||||
// tag=1009
|
||||
QString Platform_wrapper::applicationName_nocallback() const
|
||||
{
|
||||
// tag=1003
|
||||
|
||||
// tag=1007
|
||||
qWarning() << Q_FUNC_INFO << "Warning: Calling pure-virtual";
|
||||
return {};
|
||||
}
|
||||
KDDockWidgets::ViewFactory *Platform_wrapper::createDefaultViewFactory()
|
||||
{
|
||||
// tag=1000
|
||||
if (m_createDefaultViewFactoryCallback) {
|
||||
// tag=1001
|
||||
const void *thisPtr = this;
|
||||
return m_createDefaultViewFactoryCallback(const_cast<void *>(thisPtr));
|
||||
} else {
|
||||
// tag=1015
|
||||
qWarning() << Q_FUNC_INFO << "Warning: Calling pure-virtual";
|
||||
return {};
|
||||
}
|
||||
}
|
||||
// tag=1009
|
||||
KDDockWidgets::ViewFactory *Platform_wrapper::createDefaultViewFactory_nocallback()
|
||||
{
|
||||
// tag=1003
|
||||
|
||||
// tag=1007
|
||||
qWarning() << Q_FUNC_INFO << "Warning: Calling pure-virtual";
|
||||
return {};
|
||||
}
|
||||
bool Platform_wrapper::hasActivePopup() const
|
||||
{
|
||||
// tag=1000
|
||||
if (m_hasActivePopupCallback) {
|
||||
// tag=1001
|
||||
const void *thisPtr = this;
|
||||
return m_hasActivePopupCallback(const_cast<void *>(thisPtr));
|
||||
} else {
|
||||
// tag=1002
|
||||
return ::KDDockWidgets::Platform::hasActivePopup();
|
||||
}
|
||||
}
|
||||
// tag=1009
|
||||
bool Platform_wrapper::hasActivePopup_nocallback() const
|
||||
{
|
||||
// tag=1003
|
||||
return ::KDDockWidgets::Platform::hasActivePopup();
|
||||
}
|
||||
bool Platform_wrapper::inDisallowedDragView(QPoint globalPos) const
|
||||
{
|
||||
// tag=1000
|
||||
if (m_inDisallowedDragViewCallback) {
|
||||
// tag=1001
|
||||
const void *thisPtr = this;
|
||||
return m_inDisallowedDragViewCallback(const_cast<void *>(thisPtr), globalPos);
|
||||
} else {
|
||||
// tag=1015
|
||||
qWarning() << Q_FUNC_INFO << "Warning: Calling pure-virtual";
|
||||
return {};
|
||||
}
|
||||
}
|
||||
// tag=1009
|
||||
bool Platform_wrapper::inDisallowedDragView_nocallback(QPoint globalPos) const
|
||||
{
|
||||
// tag=1003
|
||||
|
||||
// tag=1007
|
||||
qWarning() << Q_FUNC_INFO << "Warning: Calling pure-virtual";
|
||||
return {};
|
||||
}
|
||||
void Platform_wrapper::installMessageHandler()
|
||||
{
|
||||
// tag=1000
|
||||
if (m_installMessageHandlerCallback) {
|
||||
// tag=1001
|
||||
const void *thisPtr = this;
|
||||
m_installMessageHandlerCallback(const_cast<void *>(thisPtr));
|
||||
} else {
|
||||
// tag=1015
|
||||
qWarning() << Q_FUNC_INFO << "Warning: Calling pure-virtual";
|
||||
return;
|
||||
}
|
||||
}
|
||||
// tag=1009
|
||||
void Platform_wrapper::installMessageHandler_nocallback()
|
||||
{
|
||||
// tag=1003
|
||||
|
||||
// tag=1007
|
||||
qWarning() << Q_FUNC_INFO << "Warning: Calling pure-virtual";
|
||||
return;
|
||||
}
|
||||
KDDockWidgets::Platform *Platform_wrapper::instance()
|
||||
{
|
||||
// tag=1000
|
||||
|
||||
// tag=1004
|
||||
return ::KDDockWidgets::Platform::instance();
|
||||
}
|
||||
bool Platform_wrapper::isLeftMouseButtonPressed() const
|
||||
{
|
||||
// tag=1000
|
||||
if (m_isLeftMouseButtonPressedCallback) {
|
||||
// tag=1001
|
||||
const void *thisPtr = this;
|
||||
return m_isLeftMouseButtonPressedCallback(const_cast<void *>(thisPtr));
|
||||
} else {
|
||||
// tag=1015
|
||||
qWarning() << Q_FUNC_INFO << "Warning: Calling pure-virtual";
|
||||
return {};
|
||||
}
|
||||
}
|
||||
// tag=1009
|
||||
bool Platform_wrapper::isLeftMouseButtonPressed_nocallback() const
|
||||
{
|
||||
// tag=1003
|
||||
|
||||
// tag=1007
|
||||
qWarning() << Q_FUNC_INFO << "Warning: Calling pure-virtual";
|
||||
return {};
|
||||
}
|
||||
bool Platform_wrapper::isProcessingAppQuitEvent() const
|
||||
{
|
||||
// tag=1000
|
||||
if (m_isProcessingAppQuitEventCallback) {
|
||||
// tag=1001
|
||||
const void *thisPtr = this;
|
||||
return m_isProcessingAppQuitEventCallback(const_cast<void *>(thisPtr));
|
||||
} else {
|
||||
// tag=1015
|
||||
qWarning() << Q_FUNC_INFO << "Warning: Calling pure-virtual";
|
||||
return {};
|
||||
}
|
||||
}
|
||||
// tag=1009
|
||||
bool Platform_wrapper::isProcessingAppQuitEvent_nocallback() const
|
||||
{
|
||||
// tag=1003
|
||||
|
||||
// tag=1007
|
||||
qWarning() << Q_FUNC_INFO << "Warning: Calling pure-virtual";
|
||||
return {};
|
||||
}
|
||||
bool Platform_wrapper::isQtQuick() const
|
||||
{
|
||||
// tag=1000
|
||||
|
||||
// tag=1004
|
||||
return ::KDDockWidgets::Platform::isQtQuick();
|
||||
}
|
||||
bool Platform_wrapper::isQtWidgets() const
|
||||
{
|
||||
// tag=1000
|
||||
|
||||
// tag=1004
|
||||
return ::KDDockWidgets::Platform::isQtWidgets();
|
||||
}
|
||||
const char *Platform_wrapper::name() const
|
||||
{
|
||||
// tag=1000
|
||||
if (m_nameCallback) {
|
||||
// tag=1001
|
||||
const void *thisPtr = this;
|
||||
return m_nameCallback(const_cast<void *>(thisPtr));
|
||||
} else {
|
||||
// tag=1015
|
||||
qWarning() << Q_FUNC_INFO << "Warning: Calling pure-virtual";
|
||||
return {};
|
||||
}
|
||||
}
|
||||
// tag=1009
|
||||
const char *Platform_wrapper::name_nocallback() const
|
||||
{
|
||||
// tag=1003
|
||||
|
||||
// tag=1007
|
||||
qWarning() << Q_FUNC_INFO << "Warning: Calling pure-virtual";
|
||||
return {};
|
||||
}
|
||||
QString Platform_wrapper::organizationName() const
|
||||
{
|
||||
// tag=1000
|
||||
if (m_organizationNameCallback) {
|
||||
// tag=1001
|
||||
const void *thisPtr = this;
|
||||
return *m_organizationNameCallback(const_cast<void *>(thisPtr));
|
||||
} else {
|
||||
// tag=1015
|
||||
qWarning() << Q_FUNC_INFO << "Warning: Calling pure-virtual";
|
||||
return {};
|
||||
}
|
||||
}
|
||||
// tag=1009
|
||||
QString Platform_wrapper::organizationName_nocallback() const
|
||||
{
|
||||
// tag=1003
|
||||
|
||||
// tag=1007
|
||||
qWarning() << Q_FUNC_INFO << "Warning: Calling pure-virtual";
|
||||
return {};
|
||||
}
|
||||
void Platform_wrapper::restoreMouseCursor()
|
||||
{
|
||||
// tag=1000
|
||||
if (m_restoreMouseCursorCallback) {
|
||||
// tag=1001
|
||||
const void *thisPtr = this;
|
||||
m_restoreMouseCursorCallback(const_cast<void *>(thisPtr));
|
||||
} else {
|
||||
// tag=1015
|
||||
qWarning() << Q_FUNC_INFO << "Warning: Calling pure-virtual";
|
||||
return;
|
||||
}
|
||||
}
|
||||
// tag=1009
|
||||
void Platform_wrapper::restoreMouseCursor_nocallback()
|
||||
{
|
||||
// tag=1003
|
||||
|
||||
// tag=1007
|
||||
qWarning() << Q_FUNC_INFO << "Warning: Calling pure-virtual";
|
||||
return;
|
||||
}
|
||||
int Platform_wrapper::screenNumberFor(KDDockWidgets::View *arg__1) const
|
||||
{
|
||||
// tag=1000
|
||||
if (m_screenNumberForCallback) {
|
||||
// tag=1001
|
||||
const void *thisPtr = this;
|
||||
return m_screenNumberForCallback(const_cast<void *>(thisPtr), arg__1);
|
||||
} else {
|
||||
// tag=1015
|
||||
qWarning() << Q_FUNC_INFO << "Warning: Calling pure-virtual";
|
||||
return {};
|
||||
}
|
||||
}
|
||||
// tag=1009
|
||||
int Platform_wrapper::screenNumberFor_nocallback(KDDockWidgets::View *arg__1) const
|
||||
{
|
||||
// tag=1003
|
||||
|
||||
// tag=1007
|
||||
qWarning() << Q_FUNC_INFO << "Warning: Calling pure-virtual";
|
||||
return {};
|
||||
}
|
||||
QSize Platform_wrapper::screenSizeFor(KDDockWidgets::View *arg__1) const
|
||||
{
|
||||
// tag=1000
|
||||
if (m_screenSizeForCallback) {
|
||||
// tag=1001
|
||||
const void *thisPtr = this;
|
||||
return *m_screenSizeForCallback(const_cast<void *>(thisPtr), arg__1);
|
||||
} else {
|
||||
// tag=1015
|
||||
qWarning() << Q_FUNC_INFO << "Warning: Calling pure-virtual";
|
||||
return {};
|
||||
}
|
||||
}
|
||||
// tag=1009
|
||||
QSize Platform_wrapper::screenSizeFor_nocallback(KDDockWidgets::View *arg__1) const
|
||||
{
|
||||
// tag=1003
|
||||
|
||||
// tag=1007
|
||||
qWarning() << Q_FUNC_INFO << "Warning: Calling pure-virtual";
|
||||
return {};
|
||||
}
|
||||
int Platform_wrapper::startDragDistance() const
|
||||
{
|
||||
// tag=1000
|
||||
|
||||
// tag=1004
|
||||
return ::KDDockWidgets::Platform::startDragDistance();
|
||||
}
|
||||
int Platform_wrapper::startDragDistance_impl() const
|
||||
{
|
||||
// tag=1000
|
||||
if (m_startDragDistance_implCallback) {
|
||||
// tag=1001
|
||||
const void *thisPtr = this;
|
||||
return m_startDragDistance_implCallback(const_cast<void *>(thisPtr));
|
||||
} else {
|
||||
// tag=1002
|
||||
return ::KDDockWidgets::Platform::startDragDistance_impl();
|
||||
}
|
||||
}
|
||||
// tag=1009
|
||||
int Platform_wrapper::startDragDistance_impl_nocallback() const
|
||||
{
|
||||
// tag=1003
|
||||
return ::KDDockWidgets::Platform::startDragDistance_impl();
|
||||
}
|
||||
KDDockWidgets::View *Platform_wrapper::tests_createNonClosableView(KDDockWidgets::View *parent)
|
||||
{
|
||||
// tag=1000
|
||||
if (m_tests_createNonClosableViewCallback) {
|
||||
// tag=1001
|
||||
const void *thisPtr = this;
|
||||
return m_tests_createNonClosableViewCallback(const_cast<void *>(thisPtr), parent);
|
||||
} else {
|
||||
// tag=1015
|
||||
qWarning() << Q_FUNC_INFO << "Warning: Calling pure-virtual";
|
||||
return {};
|
||||
}
|
||||
}
|
||||
// tag=1009
|
||||
KDDockWidgets::View *Platform_wrapper::tests_createNonClosableView_nocallback(KDDockWidgets::View *parent)
|
||||
{
|
||||
// tag=1003
|
||||
|
||||
// tag=1007
|
||||
qWarning() << Q_FUNC_INFO << "Warning: Calling pure-virtual";
|
||||
return {};
|
||||
}
|
||||
void Platform_wrapper::tests_deinitPlatform()
|
||||
{
|
||||
// tag=1000
|
||||
|
||||
// tag=1004
|
||||
::KDDockWidgets::Platform::tests_deinitPlatform();
|
||||
}
|
||||
void Platform_wrapper::tests_deinitPlatform_impl()
|
||||
{
|
||||
// tag=1000
|
||||
if (m_tests_deinitPlatform_implCallback) {
|
||||
// tag=1001
|
||||
const void *thisPtr = this;
|
||||
m_tests_deinitPlatform_implCallback(const_cast<void *>(thisPtr));
|
||||
} else {
|
||||
// tag=1002
|
||||
::KDDockWidgets::Platform::tests_deinitPlatform_impl();
|
||||
}
|
||||
}
|
||||
// tag=1009
|
||||
void Platform_wrapper::tests_deinitPlatform_impl_nocallback()
|
||||
{
|
||||
// tag=1003
|
||||
::KDDockWidgets::Platform::tests_deinitPlatform_impl();
|
||||
}
|
||||
void Platform_wrapper::tests_initPlatform_impl()
|
||||
{
|
||||
// tag=1000
|
||||
if (m_tests_initPlatform_implCallback) {
|
||||
// tag=1001
|
||||
const void *thisPtr = this;
|
||||
m_tests_initPlatform_implCallback(const_cast<void *>(thisPtr));
|
||||
} else {
|
||||
// tag=1002
|
||||
::KDDockWidgets::Platform::tests_initPlatform_impl();
|
||||
}
|
||||
}
|
||||
// tag=1009
|
||||
void Platform_wrapper::tests_initPlatform_impl_nocallback()
|
||||
{
|
||||
// tag=1003
|
||||
::KDDockWidgets::Platform::tests_initPlatform_impl();
|
||||
}
|
||||
void Platform_wrapper::tests_wait(int ms)
|
||||
{
|
||||
// tag=1000
|
||||
if (m_tests_waitCallback) {
|
||||
// tag=1001
|
||||
const void *thisPtr = this;
|
||||
m_tests_waitCallback(const_cast<void *>(thisPtr), ms);
|
||||
} else {
|
||||
// tag=1015
|
||||
qWarning() << Q_FUNC_INFO << "Warning: Calling pure-virtual";
|
||||
return;
|
||||
}
|
||||
}
|
||||
// tag=1009
|
||||
void Platform_wrapper::tests_wait_nocallback(int ms)
|
||||
{
|
||||
// tag=1003
|
||||
|
||||
// tag=1007
|
||||
qWarning() << Q_FUNC_INFO << "Warning: Calling pure-virtual";
|
||||
return;
|
||||
}
|
||||
bool Platform_wrapper::tests_waitForDeleted(KDDockWidgets::View *arg__1, int timeout) const
|
||||
{
|
||||
// tag=1000
|
||||
if (m_tests_waitForDeletedCallback) {
|
||||
// tag=1001
|
||||
const void *thisPtr = this;
|
||||
return m_tests_waitForDeletedCallback(const_cast<void *>(thisPtr), arg__1, timeout);
|
||||
} else {
|
||||
// tag=1015
|
||||
qWarning() << Q_FUNC_INFO << "Warning: Calling pure-virtual";
|
||||
return {};
|
||||
}
|
||||
}
|
||||
// tag=1009
|
||||
bool Platform_wrapper::tests_waitForDeleted_nocallback(KDDockWidgets::View *arg__1, int timeout) const
|
||||
{
|
||||
// tag=1003
|
||||
|
||||
// tag=1007
|
||||
qWarning() << Q_FUNC_INFO << "Warning: Calling pure-virtual";
|
||||
return {};
|
||||
}
|
||||
bool Platform_wrapper::tests_waitForDeleted(QObject *arg__1, int timeout) const
|
||||
{
|
||||
// tag=1000
|
||||
if (m_tests_waitForDeleted_2Callback) {
|
||||
// tag=1001
|
||||
const void *thisPtr = this;
|
||||
return m_tests_waitForDeleted_2Callback(const_cast<void *>(thisPtr), arg__1, timeout);
|
||||
} else {
|
||||
// tag=1015
|
||||
qWarning() << Q_FUNC_INFO << "Warning: Calling pure-virtual";
|
||||
return {};
|
||||
}
|
||||
}
|
||||
// tag=1009
|
||||
bool Platform_wrapper::tests_waitForDeleted_nocallback(QObject *arg__1, int timeout) const
|
||||
{
|
||||
// tag=1003
|
||||
|
||||
// tag=1007
|
||||
qWarning() << Q_FUNC_INFO << "Warning: Calling pure-virtual";
|
||||
return {};
|
||||
}
|
||||
bool Platform_wrapper::tests_waitForResize(KDDockWidgets::View *arg__1, int timeout) const
|
||||
{
|
||||
// tag=1000
|
||||
if (m_tests_waitForResizeCallback) {
|
||||
// tag=1001
|
||||
const void *thisPtr = this;
|
||||
return m_tests_waitForResizeCallback(const_cast<void *>(thisPtr), arg__1, timeout);
|
||||
} else {
|
||||
// tag=1015
|
||||
qWarning() << Q_FUNC_INFO << "Warning: Calling pure-virtual";
|
||||
return {};
|
||||
}
|
||||
}
|
||||
// tag=1009
|
||||
bool Platform_wrapper::tests_waitForResize_nocallback(KDDockWidgets::View *arg__1, int timeout) const
|
||||
{
|
||||
// tag=1003
|
||||
|
||||
// tag=1007
|
||||
qWarning() << Q_FUNC_INFO << "Warning: Calling pure-virtual";
|
||||
return {};
|
||||
}
|
||||
void Platform_wrapper::ungrabMouse()
|
||||
{
|
||||
// tag=1000
|
||||
if (m_ungrabMouseCallback) {
|
||||
// tag=1001
|
||||
const void *thisPtr = this;
|
||||
m_ungrabMouseCallback(const_cast<void *>(thisPtr));
|
||||
} else {
|
||||
// tag=1015
|
||||
qWarning() << Q_FUNC_INFO << "Warning: Calling pure-virtual";
|
||||
return;
|
||||
}
|
||||
}
|
||||
// tag=1009
|
||||
void Platform_wrapper::ungrabMouse_nocallback()
|
||||
{
|
||||
// tag=1003
|
||||
|
||||
// tag=1007
|
||||
qWarning() << Q_FUNC_INFO << "Warning: Calling pure-virtual";
|
||||
return;
|
||||
}
|
||||
void Platform_wrapper::uninstallMessageHandler()
|
||||
{
|
||||
// tag=1000
|
||||
if (m_uninstallMessageHandlerCallback) {
|
||||
// tag=1001
|
||||
const void *thisPtr = this;
|
||||
m_uninstallMessageHandlerCallback(const_cast<void *>(thisPtr));
|
||||
} else {
|
||||
// tag=1015
|
||||
qWarning() << Q_FUNC_INFO << "Warning: Calling pure-virtual";
|
||||
return;
|
||||
}
|
||||
}
|
||||
// tag=1009
|
||||
void Platform_wrapper::uninstallMessageHandler_nocallback()
|
||||
{
|
||||
// tag=1003
|
||||
|
||||
// tag=1007
|
||||
qWarning() << Q_FUNC_INFO << "Warning: Calling pure-virtual";
|
||||
return;
|
||||
}
|
||||
bool Platform_wrapper::usesFallbackMouseGrabber() const
|
||||
{
|
||||
// tag=1000
|
||||
if (m_usesFallbackMouseGrabberCallback) {
|
||||
// tag=1001
|
||||
const void *thisPtr = this;
|
||||
return m_usesFallbackMouseGrabberCallback(const_cast<void *>(thisPtr));
|
||||
} else {
|
||||
// tag=1015
|
||||
qWarning() << Q_FUNC_INFO << "Warning: Calling pure-virtual";
|
||||
return {};
|
||||
}
|
||||
}
|
||||
// tag=1009
|
||||
bool Platform_wrapper::usesFallbackMouseGrabber_nocallback() const
|
||||
{
|
||||
// tag=1003
|
||||
|
||||
// tag=1007
|
||||
qWarning() << Q_FUNC_INFO << "Warning: Calling pure-virtual";
|
||||
return {};
|
||||
}
|
||||
|
||||
// tag=1005
|
||||
Platform_wrapper::~Platform_wrapper()
|
||||
{
|
||||
}
|
||||
|
||||
}
|
||||
// tag=1013
|
||||
static KDDockWidgets::Platform *fromPtr(void *ptr)
|
||||
{
|
||||
return reinterpret_cast<KDDockWidgets::Platform *>(ptr);
|
||||
}
|
||||
// tag=1014
|
||||
static KDDockWidgetsBindings_wrappersNS::Platform_wrapper *fromWrapperPtr(void *ptr)
|
||||
{
|
||||
return reinterpret_cast<KDDockWidgetsBindings_wrappersNS::Platform_wrapper *>(ptr);
|
||||
}
|
||||
extern "C" {
|
||||
|
||||
// tag=1049
|
||||
void c_KDDockWidgets__Platform_Finalizer(void *, void *cppObj, void *)
|
||||
{
|
||||
delete reinterpret_cast<KDDockWidgetsBindings_wrappersNS::Platform_wrapper *>(cppObj);
|
||||
}
|
||||
void *c_KDDockWidgets__Platform__constructor()
|
||||
{
|
||||
|
||||
// tag=1056
|
||||
auto ptr = new KDDockWidgetsBindings_wrappersNS::Platform_wrapper();
|
||||
return reinterpret_cast<void *>(ptr);
|
||||
}
|
||||
|
||||
// tag=1050
|
||||
// applicationName() const
|
||||
void *c_KDDockWidgets__Platform__applicationName(void *thisObj)
|
||||
{
|
||||
return
|
||||
// tag=1016
|
||||
|
||||
// tag=1072
|
||||
new Dartagnan::ValueWrapper<QString> { [&] {auto targetPtr = fromPtr(thisObj);auto wrapperPtr = dynamic_cast<KDDockWidgetsBindings_wrappersNS::Platform_wrapper*>(targetPtr);if (wrapperPtr) { return wrapperPtr->applicationName_nocallback();} else { return targetPtr->applicationName();} }() };
|
||||
}
|
||||
|
||||
// tag=1050
|
||||
// createDefaultViewFactory()
|
||||
void *c_KDDockWidgets__Platform__createDefaultViewFactory(void *thisObj)
|
||||
{
|
||||
return
|
||||
// tag=1016
|
||||
[&] {auto targetPtr = fromPtr(thisObj);auto wrapperPtr = dynamic_cast<KDDockWidgetsBindings_wrappersNS::Platform_wrapper*>(targetPtr);if (wrapperPtr) { return wrapperPtr->createDefaultViewFactory_nocallback();} else { return targetPtr->createDefaultViewFactory();} }();
|
||||
}
|
||||
|
||||
// tag=1050
|
||||
// hasActivePopup() const
|
||||
bool c_KDDockWidgets__Platform__hasActivePopup(void *thisObj)
|
||||
{
|
||||
return
|
||||
// tag=1016
|
||||
[&] {auto targetPtr = fromPtr(thisObj);auto wrapperPtr = dynamic_cast<KDDockWidgetsBindings_wrappersNS::Platform_wrapper*>(targetPtr);if (wrapperPtr) { return wrapperPtr->hasActivePopup_nocallback();} else { return targetPtr->hasActivePopup();} }();
|
||||
}
|
||||
|
||||
// tag=1050
|
||||
// inDisallowedDragView(QPoint globalPos) const
|
||||
bool c_KDDockWidgets__Platform__inDisallowedDragView_QPoint(void *thisObj, void *globalPos_)
|
||||
{
|
||||
auto &globalPos = *reinterpret_cast<QPoint *>(globalPos_);
|
||||
return
|
||||
// tag=1016
|
||||
[&] {auto targetPtr = fromPtr(thisObj);auto wrapperPtr = dynamic_cast<KDDockWidgetsBindings_wrappersNS::Platform_wrapper*>(targetPtr);if (wrapperPtr) { return wrapperPtr->inDisallowedDragView_nocallback(globalPos);} else { return targetPtr->inDisallowedDragView(globalPos);} }();
|
||||
}
|
||||
|
||||
// tag=1050
|
||||
// installMessageHandler()
|
||||
void c_KDDockWidgets__Platform__installMessageHandler(void *thisObj)
|
||||
{
|
||||
// tag=1016
|
||||
[&] {auto targetPtr = fromPtr(thisObj);auto wrapperPtr = dynamic_cast<KDDockWidgetsBindings_wrappersNS::Platform_wrapper*>(targetPtr);if (wrapperPtr) { return wrapperPtr->installMessageHandler_nocallback();} else { return targetPtr->installMessageHandler();} }();
|
||||
}
|
||||
|
||||
// tag=1050
|
||||
// instance()
|
||||
void *c_static_KDDockWidgets__Platform__instance()
|
||||
{
|
||||
return
|
||||
// tag=1068
|
||||
KDDockWidgetsBindings_wrappersNS::Platform_wrapper::instance();
|
||||
}
|
||||
|
||||
// tag=1050
|
||||
// isLeftMouseButtonPressed() const
|
||||
bool c_KDDockWidgets__Platform__isLeftMouseButtonPressed(void *thisObj)
|
||||
{
|
||||
return
|
||||
// tag=1016
|
||||
[&] {auto targetPtr = fromPtr(thisObj);auto wrapperPtr = dynamic_cast<KDDockWidgetsBindings_wrappersNS::Platform_wrapper*>(targetPtr);if (wrapperPtr) { return wrapperPtr->isLeftMouseButtonPressed_nocallback();} else { return targetPtr->isLeftMouseButtonPressed();} }();
|
||||
}
|
||||
|
||||
// tag=1050
|
||||
// isProcessingAppQuitEvent() const
|
||||
bool c_KDDockWidgets__Platform__isProcessingAppQuitEvent(void *thisObj)
|
||||
{
|
||||
return
|
||||
// tag=1016
|
||||
[&] {auto targetPtr = fromPtr(thisObj);auto wrapperPtr = dynamic_cast<KDDockWidgetsBindings_wrappersNS::Platform_wrapper*>(targetPtr);if (wrapperPtr) { return wrapperPtr->isProcessingAppQuitEvent_nocallback();} else { return targetPtr->isProcessingAppQuitEvent();} }();
|
||||
}
|
||||
|
||||
// tag=1050
|
||||
// isQtQuick() const
|
||||
bool c_KDDockWidgets__Platform__isQtQuick(void *thisObj)
|
||||
{
|
||||
return
|
||||
// tag=1010
|
||||
fromPtr(thisObj)->isQtQuick();
|
||||
}
|
||||
|
||||
// tag=1050
|
||||
// isQtWidgets() const
|
||||
bool c_KDDockWidgets__Platform__isQtWidgets(void *thisObj)
|
||||
{
|
||||
return
|
||||
// tag=1010
|
||||
fromPtr(thisObj)->isQtWidgets();
|
||||
}
|
||||
|
||||
// tag=1050
|
||||
// name() const
|
||||
const char *c_KDDockWidgets__Platform__name(void *thisObj)
|
||||
{
|
||||
return
|
||||
// tag=1016
|
||||
[&] {auto targetPtr = fromPtr(thisObj);auto wrapperPtr = dynamic_cast<KDDockWidgetsBindings_wrappersNS::Platform_wrapper*>(targetPtr);if (wrapperPtr) { return wrapperPtr->name_nocallback();} else { return targetPtr->name();} }();
|
||||
}
|
||||
|
||||
// tag=1050
|
||||
// organizationName() const
|
||||
void *c_KDDockWidgets__Platform__organizationName(void *thisObj)
|
||||
{
|
||||
return
|
||||
// tag=1016
|
||||
|
||||
// tag=1072
|
||||
new Dartagnan::ValueWrapper<QString> { [&] {auto targetPtr = fromPtr(thisObj);auto wrapperPtr = dynamic_cast<KDDockWidgetsBindings_wrappersNS::Platform_wrapper*>(targetPtr);if (wrapperPtr) { return wrapperPtr->organizationName_nocallback();} else { return targetPtr->organizationName();} }() };
|
||||
}
|
||||
|
||||
// tag=1050
|
||||
// restoreMouseCursor()
|
||||
void c_KDDockWidgets__Platform__restoreMouseCursor(void *thisObj)
|
||||
{
|
||||
// tag=1016
|
||||
[&] {auto targetPtr = fromPtr(thisObj);auto wrapperPtr = dynamic_cast<KDDockWidgetsBindings_wrappersNS::Platform_wrapper*>(targetPtr);if (wrapperPtr) { return wrapperPtr->restoreMouseCursor_nocallback();} else { return targetPtr->restoreMouseCursor();} }();
|
||||
}
|
||||
|
||||
// tag=1050
|
||||
// screenNumberFor(KDDockWidgets::View * arg__1) const
|
||||
int c_KDDockWidgets__Platform__screenNumberFor_View(void *thisObj, void *arg__1_)
|
||||
{
|
||||
auto arg__1 = reinterpret_cast<KDDockWidgets::View *>(arg__1_);
|
||||
return
|
||||
// tag=1016
|
||||
[&] {auto targetPtr = fromPtr(thisObj);auto wrapperPtr = dynamic_cast<KDDockWidgetsBindings_wrappersNS::Platform_wrapper*>(targetPtr);if (wrapperPtr) { return wrapperPtr->screenNumberFor_nocallback(arg__1);} else { return targetPtr->screenNumberFor(arg__1);} }();
|
||||
}
|
||||
|
||||
// tag=1050
|
||||
// screenSizeFor(KDDockWidgets::View * arg__1) const
|
||||
void *c_KDDockWidgets__Platform__screenSizeFor_View(void *thisObj, void *arg__1_)
|
||||
{
|
||||
auto arg__1 = reinterpret_cast<KDDockWidgets::View *>(arg__1_);
|
||||
return
|
||||
// tag=1016
|
||||
|
||||
// tag=1072
|
||||
new Dartagnan::ValueWrapper<QSize> { [&] {auto targetPtr = fromPtr(thisObj);auto wrapperPtr = dynamic_cast<KDDockWidgetsBindings_wrappersNS::Platform_wrapper*>(targetPtr);if (wrapperPtr) { return wrapperPtr->screenSizeFor_nocallback(arg__1);} else { return targetPtr->screenSizeFor(arg__1);} }() };
|
||||
}
|
||||
|
||||
// tag=1050
|
||||
// startDragDistance() const
|
||||
int c_KDDockWidgets__Platform__startDragDistance(void *thisObj)
|
||||
{
|
||||
return
|
||||
// tag=1010
|
||||
fromPtr(thisObj)->startDragDistance();
|
||||
}
|
||||
|
||||
// tag=1050
|
||||
// startDragDistance_impl() const
|
||||
int c_KDDockWidgets__Platform__startDragDistance_impl(void *thisObj)
|
||||
{
|
||||
return
|
||||
// tag=1011
|
||||
|
||||
// tag=1074
|
||||
fromWrapperPtr(thisObj)->startDragDistance_impl_nocallback();
|
||||
}
|
||||
|
||||
// tag=1050
|
||||
// tests_createNonClosableView(KDDockWidgets::View * parent)
|
||||
void *c_KDDockWidgets__Platform__tests_createNonClosableView_View(void *thisObj, void *parent_)
|
||||
{
|
||||
auto parent = reinterpret_cast<KDDockWidgets::View *>(parent_);
|
||||
return
|
||||
// tag=1016
|
||||
[&] {auto targetPtr = fromPtr(thisObj);auto wrapperPtr = dynamic_cast<KDDockWidgetsBindings_wrappersNS::Platform_wrapper*>(targetPtr);if (wrapperPtr) { return wrapperPtr->tests_createNonClosableView_nocallback(parent);} else { return targetPtr->tests_createNonClosableView(parent);} }();
|
||||
}
|
||||
|
||||
// tag=1050
|
||||
// tests_deinitPlatform()
|
||||
void c_static_KDDockWidgets__Platform__tests_deinitPlatform()
|
||||
{
|
||||
// tag=1068
|
||||
KDDockWidgetsBindings_wrappersNS::Platform_wrapper::tests_deinitPlatform();
|
||||
}
|
||||
|
||||
// tag=1050
|
||||
// tests_deinitPlatform_impl()
|
||||
void c_KDDockWidgets__Platform__tests_deinitPlatform_impl(void *thisObj)
|
||||
{
|
||||
// tag=1011
|
||||
|
||||
// tag=1074
|
||||
fromWrapperPtr(thisObj)->tests_deinitPlatform_impl_nocallback();
|
||||
}
|
||||
|
||||
// tag=1050
|
||||
// tests_initPlatform_impl()
|
||||
void c_KDDockWidgets__Platform__tests_initPlatform_impl(void *thisObj)
|
||||
{
|
||||
// tag=1011
|
||||
|
||||
// tag=1074
|
||||
fromWrapperPtr(thisObj)->tests_initPlatform_impl_nocallback();
|
||||
}
|
||||
|
||||
// tag=1050
|
||||
// tests_wait(int ms)
|
||||
void c_KDDockWidgets__Platform__tests_wait_int(void *thisObj, int ms)
|
||||
{
|
||||
// tag=1016
|
||||
[&] {auto targetPtr = fromPtr(thisObj);auto wrapperPtr = dynamic_cast<KDDockWidgetsBindings_wrappersNS::Platform_wrapper*>(targetPtr);if (wrapperPtr) { return wrapperPtr->tests_wait_nocallback(ms);} else { return targetPtr->tests_wait(ms);} }();
|
||||
}
|
||||
|
||||
// tag=1050
|
||||
// tests_waitForDeleted(KDDockWidgets::View * arg__1, int timeout) const
|
||||
bool c_KDDockWidgets__Platform__tests_waitForDeleted_View_int(void *thisObj, void *arg__1_, int timeout)
|
||||
{
|
||||
auto arg__1 = reinterpret_cast<KDDockWidgets::View *>(arg__1_);
|
||||
return
|
||||
// tag=1016
|
||||
[&] {auto targetPtr = fromPtr(thisObj);auto wrapperPtr = dynamic_cast<KDDockWidgetsBindings_wrappersNS::Platform_wrapper*>(targetPtr);if (wrapperPtr) { return wrapperPtr->tests_waitForDeleted_nocallback(arg__1,timeout);} else { return targetPtr->tests_waitForDeleted(arg__1,timeout);} }();
|
||||
}
|
||||
|
||||
// tag=1050
|
||||
// tests_waitForDeleted(QObject * arg__1, int timeout) const
|
||||
bool c_KDDockWidgets__Platform__tests_waitForDeleted_QObject_int(void *thisObj, void *arg__1_, int timeout)
|
||||
{
|
||||
auto arg__1 = reinterpret_cast<QObject *>(arg__1_);
|
||||
return
|
||||
// tag=1016
|
||||
[&] {auto targetPtr = fromPtr(thisObj);auto wrapperPtr = dynamic_cast<KDDockWidgetsBindings_wrappersNS::Platform_wrapper*>(targetPtr);if (wrapperPtr) { return wrapperPtr->tests_waitForDeleted_nocallback(arg__1,timeout);} else { return targetPtr->tests_waitForDeleted(arg__1,timeout);} }();
|
||||
}
|
||||
|
||||
// tag=1050
|
||||
// tests_waitForResize(KDDockWidgets::View * arg__1, int timeout) const
|
||||
bool c_KDDockWidgets__Platform__tests_waitForResize_View_int(void *thisObj, void *arg__1_, int timeout)
|
||||
{
|
||||
auto arg__1 = reinterpret_cast<KDDockWidgets::View *>(arg__1_);
|
||||
return
|
||||
// tag=1016
|
||||
[&] {auto targetPtr = fromPtr(thisObj);auto wrapperPtr = dynamic_cast<KDDockWidgetsBindings_wrappersNS::Platform_wrapper*>(targetPtr);if (wrapperPtr) { return wrapperPtr->tests_waitForResize_nocallback(arg__1,timeout);} else { return targetPtr->tests_waitForResize(arg__1,timeout);} }();
|
||||
}
|
||||
|
||||
// tag=1050
|
||||
// ungrabMouse()
|
||||
void c_KDDockWidgets__Platform__ungrabMouse(void *thisObj)
|
||||
{
|
||||
// tag=1016
|
||||
[&] {auto targetPtr = fromPtr(thisObj);auto wrapperPtr = dynamic_cast<KDDockWidgetsBindings_wrappersNS::Platform_wrapper*>(targetPtr);if (wrapperPtr) { return wrapperPtr->ungrabMouse_nocallback();} else { return targetPtr->ungrabMouse();} }();
|
||||
}
|
||||
|
||||
// tag=1050
|
||||
// uninstallMessageHandler()
|
||||
void c_KDDockWidgets__Platform__uninstallMessageHandler(void *thisObj)
|
||||
{
|
||||
// tag=1016
|
||||
[&] {auto targetPtr = fromPtr(thisObj);auto wrapperPtr = dynamic_cast<KDDockWidgetsBindings_wrappersNS::Platform_wrapper*>(targetPtr);if (wrapperPtr) { return wrapperPtr->uninstallMessageHandler_nocallback();} else { return targetPtr->uninstallMessageHandler();} }();
|
||||
}
|
||||
|
||||
// tag=1050
|
||||
// usesFallbackMouseGrabber() const
|
||||
bool c_KDDockWidgets__Platform__usesFallbackMouseGrabber(void *thisObj)
|
||||
{
|
||||
return
|
||||
// tag=1016
|
||||
[&] {auto targetPtr = fromPtr(thisObj);auto wrapperPtr = dynamic_cast<KDDockWidgetsBindings_wrappersNS::Platform_wrapper*>(targetPtr);if (wrapperPtr) { return wrapperPtr->usesFallbackMouseGrabber_nocallback();} else { return targetPtr->usesFallbackMouseGrabber();} }();
|
||||
}
|
||||
void c_KDDockWidgets__Platform__destructor(void *thisObj)
|
||||
{
|
||||
|
||||
// tag=1055
|
||||
delete fromPtr(thisObj);
|
||||
}
|
||||
int c_KDDockWidgets__Platform___get_m_numWarningsEmitted(void *thisObj)
|
||||
{
|
||||
|
||||
// tag=1058
|
||||
return fromPtr(thisObj)->m_numWarningsEmitted;
|
||||
}
|
||||
void c_KDDockWidgets__Platform___set_m_numWarningsEmitted_int(void *thisObj, int m_numWarningsEmitted_)
|
||||
{
|
||||
|
||||
// tag=1057
|
||||
fromPtr(thisObj)->m_numWarningsEmitted = m_numWarningsEmitted_;
|
||||
}
|
||||
void c_KDDockWidgets__Platform__registerVirtualMethodCallback(void *ptr, void *callback, int methodId)
|
||||
{
|
||||
// tag=1048
|
||||
auto wrapper = fromWrapperPtr(ptr);
|
||||
switch (methodId) {
|
||||
case 680:
|
||||
wrapper->m_applicationNameCallback = reinterpret_cast<KDDockWidgetsBindings_wrappersNS::Platform_wrapper::Callback_applicationName>(callback);
|
||||
break;
|
||||
case 681:
|
||||
wrapper->m_createDefaultViewFactoryCallback = reinterpret_cast<KDDockWidgetsBindings_wrappersNS::Platform_wrapper::Callback_createDefaultViewFactory>(callback);
|
||||
break;
|
||||
case 682:
|
||||
wrapper->m_hasActivePopupCallback = reinterpret_cast<KDDockWidgetsBindings_wrappersNS::Platform_wrapper::Callback_hasActivePopup>(callback);
|
||||
break;
|
||||
case 683:
|
||||
wrapper->m_inDisallowedDragViewCallback = reinterpret_cast<KDDockWidgetsBindings_wrappersNS::Platform_wrapper::Callback_inDisallowedDragView>(callback);
|
||||
break;
|
||||
case 684:
|
||||
wrapper->m_installMessageHandlerCallback = reinterpret_cast<KDDockWidgetsBindings_wrappersNS::Platform_wrapper::Callback_installMessageHandler>(callback);
|
||||
break;
|
||||
case 686:
|
||||
wrapper->m_isLeftMouseButtonPressedCallback = reinterpret_cast<KDDockWidgetsBindings_wrappersNS::Platform_wrapper::Callback_isLeftMouseButtonPressed>(callback);
|
||||
break;
|
||||
case 687:
|
||||
wrapper->m_isProcessingAppQuitEventCallback = reinterpret_cast<KDDockWidgetsBindings_wrappersNS::Platform_wrapper::Callback_isProcessingAppQuitEvent>(callback);
|
||||
break;
|
||||
case 690:
|
||||
wrapper->m_nameCallback = reinterpret_cast<KDDockWidgetsBindings_wrappersNS::Platform_wrapper::Callback_name>(callback);
|
||||
break;
|
||||
case 691:
|
||||
wrapper->m_organizationNameCallback = reinterpret_cast<KDDockWidgetsBindings_wrappersNS::Platform_wrapper::Callback_organizationName>(callback);
|
||||
break;
|
||||
case 692:
|
||||
wrapper->m_restoreMouseCursorCallback = reinterpret_cast<KDDockWidgetsBindings_wrappersNS::Platform_wrapper::Callback_restoreMouseCursor>(callback);
|
||||
break;
|
||||
case 693:
|
||||
wrapper->m_screenNumberForCallback = reinterpret_cast<KDDockWidgetsBindings_wrappersNS::Platform_wrapper::Callback_screenNumberFor>(callback);
|
||||
break;
|
||||
case 694:
|
||||
wrapper->m_screenSizeForCallback = reinterpret_cast<KDDockWidgetsBindings_wrappersNS::Platform_wrapper::Callback_screenSizeFor>(callback);
|
||||
break;
|
||||
case 696:
|
||||
wrapper->m_startDragDistance_implCallback = reinterpret_cast<KDDockWidgetsBindings_wrappersNS::Platform_wrapper::Callback_startDragDistance_impl>(callback);
|
||||
break;
|
||||
case 697:
|
||||
wrapper->m_tests_createNonClosableViewCallback = reinterpret_cast<KDDockWidgetsBindings_wrappersNS::Platform_wrapper::Callback_tests_createNonClosableView>(callback);
|
||||
break;
|
||||
case 699:
|
||||
wrapper->m_tests_deinitPlatform_implCallback = reinterpret_cast<KDDockWidgetsBindings_wrappersNS::Platform_wrapper::Callback_tests_deinitPlatform_impl>(callback);
|
||||
break;
|
||||
case 700:
|
||||
wrapper->m_tests_initPlatform_implCallback = reinterpret_cast<KDDockWidgetsBindings_wrappersNS::Platform_wrapper::Callback_tests_initPlatform_impl>(callback);
|
||||
break;
|
||||
case 701:
|
||||
wrapper->m_tests_waitCallback = reinterpret_cast<KDDockWidgetsBindings_wrappersNS::Platform_wrapper::Callback_tests_wait>(callback);
|
||||
break;
|
||||
case 702:
|
||||
wrapper->m_tests_waitForDeletedCallback = reinterpret_cast<KDDockWidgetsBindings_wrappersNS::Platform_wrapper::Callback_tests_waitForDeleted>(callback);
|
||||
break;
|
||||
case 703:
|
||||
wrapper->m_tests_waitForDeleted_2Callback = reinterpret_cast<KDDockWidgetsBindings_wrappersNS::Platform_wrapper::Callback_tests_waitForDeleted_2>(callback);
|
||||
break;
|
||||
case 704:
|
||||
wrapper->m_tests_waitForResizeCallback = reinterpret_cast<KDDockWidgetsBindings_wrappersNS::Platform_wrapper::Callback_tests_waitForResize>(callback);
|
||||
break;
|
||||
case 705:
|
||||
wrapper->m_ungrabMouseCallback = reinterpret_cast<KDDockWidgetsBindings_wrappersNS::Platform_wrapper::Callback_ungrabMouse>(callback);
|
||||
break;
|
||||
case 706:
|
||||
wrapper->m_uninstallMessageHandlerCallback = reinterpret_cast<KDDockWidgetsBindings_wrappersNS::Platform_wrapper::Callback_uninstallMessageHandler>(callback);
|
||||
break;
|
||||
case 707:
|
||||
wrapper->m_usesFallbackMouseGrabberCallback = reinterpret_cast<KDDockWidgetsBindings_wrappersNS::Platform_wrapper::Callback_usesFallbackMouseGrabber>(callback);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,334 +0,0 @@
|
||||
/*
|
||||
This file is part of KDDockWidgets.
|
||||
|
||||
SPDX-FileCopyrightText: 2019-2022 Klarälvdalens Datakonsult AB, a KDAB Group company <info@kdab.com>
|
||||
Author: Sérgio Martins <sergio.martins@kdab.com>
|
||||
|
||||
SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only
|
||||
|
||||
Contact KDAB at <info@kdab.com> for commercial licensing options.
|
||||
*/
|
||||
|
||||
// tag=1040
|
||||
#include "KDDockWidgetsBindings_exports.h"
|
||||
#include <Platform.h>
|
||||
#include <ViewFactory.h>
|
||||
#include <View.h>
|
||||
#include <qsize.h>
|
||||
#include <qpoint.h>
|
||||
#include <qstring.h>
|
||||
#include <qobject.h>
|
||||
|
||||
namespace KDDockWidgetsBindings_wrappersNS {
|
||||
// tag=1017
|
||||
class Platform_wrapper : public ::KDDockWidgets::Platform
|
||||
{
|
||||
public:
|
||||
~Platform_wrapper();
|
||||
// tag=1041
|
||||
Platform_wrapper();
|
||||
// tag=1041
|
||||
virtual QString applicationName() const;
|
||||
// tag=1008
|
||||
virtual QString applicationName_nocallback() const;
|
||||
// tag=1041
|
||||
virtual KDDockWidgets::ViewFactory *createDefaultViewFactory();
|
||||
// tag=1008
|
||||
virtual KDDockWidgets::ViewFactory *createDefaultViewFactory_nocallback();
|
||||
// tag=1041
|
||||
virtual bool hasActivePopup() const;
|
||||
// tag=1008
|
||||
virtual bool hasActivePopup_nocallback() const;
|
||||
// tag=1041
|
||||
virtual bool inDisallowedDragView(QPoint globalPos) const;
|
||||
// tag=1008
|
||||
virtual bool inDisallowedDragView_nocallback(QPoint globalPos) const;
|
||||
// tag=1041
|
||||
virtual void installMessageHandler();
|
||||
// tag=1008
|
||||
virtual void installMessageHandler_nocallback();
|
||||
// tag=1041
|
||||
static KDDockWidgets::Platform *instance();
|
||||
// tag=1041
|
||||
virtual bool isLeftMouseButtonPressed() const;
|
||||
// tag=1008
|
||||
virtual bool isLeftMouseButtonPressed_nocallback() const;
|
||||
// tag=1041
|
||||
virtual bool isProcessingAppQuitEvent() const;
|
||||
// tag=1008
|
||||
virtual bool isProcessingAppQuitEvent_nocallback() const;
|
||||
// tag=1041
|
||||
bool isQtQuick() const;
|
||||
// tag=1041
|
||||
bool isQtWidgets() const;
|
||||
// tag=1041
|
||||
virtual const char *name() const;
|
||||
// tag=1008
|
||||
virtual const char *name_nocallback() const;
|
||||
// tag=1041
|
||||
virtual QString organizationName() const;
|
||||
// tag=1008
|
||||
virtual QString organizationName_nocallback() const;
|
||||
// tag=1041
|
||||
virtual void restoreMouseCursor();
|
||||
// tag=1008
|
||||
virtual void restoreMouseCursor_nocallback();
|
||||
// tag=1041
|
||||
virtual int screenNumberFor(KDDockWidgets::View *arg__1) const;
|
||||
// tag=1008
|
||||
virtual int screenNumberFor_nocallback(KDDockWidgets::View *arg__1) const;
|
||||
// tag=1041
|
||||
virtual QSize screenSizeFor(KDDockWidgets::View *arg__1) const;
|
||||
// tag=1008
|
||||
virtual QSize screenSizeFor_nocallback(KDDockWidgets::View *arg__1) const;
|
||||
// tag=1041
|
||||
int startDragDistance() const;
|
||||
// tag=1041
|
||||
virtual int startDragDistance_impl() const;
|
||||
// tag=1008
|
||||
virtual int startDragDistance_impl_nocallback() const;
|
||||
// tag=1041
|
||||
virtual KDDockWidgets::View *tests_createNonClosableView(KDDockWidgets::View *parent = nullptr);
|
||||
// tag=1008
|
||||
virtual KDDockWidgets::View *tests_createNonClosableView_nocallback(KDDockWidgets::View *parent = nullptr);
|
||||
// tag=1041
|
||||
static void tests_deinitPlatform();
|
||||
// tag=1041
|
||||
virtual void tests_deinitPlatform_impl();
|
||||
// tag=1008
|
||||
virtual void tests_deinitPlatform_impl_nocallback();
|
||||
// tag=1041
|
||||
virtual void tests_initPlatform_impl();
|
||||
// tag=1008
|
||||
virtual void tests_initPlatform_impl_nocallback();
|
||||
// tag=1041
|
||||
virtual void tests_wait(int ms);
|
||||
// tag=1008
|
||||
virtual void tests_wait_nocallback(int ms);
|
||||
// tag=1041
|
||||
virtual bool tests_waitForDeleted(KDDockWidgets::View *arg__1, int timeout = 2000) const;
|
||||
// tag=1008
|
||||
virtual bool tests_waitForDeleted_nocallback(KDDockWidgets::View *arg__1, int timeout = 2000) const;
|
||||
// tag=1041
|
||||
virtual bool tests_waitForDeleted(QObject *arg__1, int timeout = 2000) const;
|
||||
// tag=1008
|
||||
virtual bool tests_waitForDeleted_nocallback(QObject *arg__1, int timeout = 2000) const;
|
||||
// tag=1041
|
||||
virtual bool tests_waitForResize(KDDockWidgets::View *arg__1, int timeout = 2000) const;
|
||||
// tag=1008
|
||||
virtual bool tests_waitForResize_nocallback(KDDockWidgets::View *arg__1, int timeout = 2000) const;
|
||||
// tag=1041
|
||||
virtual void ungrabMouse();
|
||||
// tag=1008
|
||||
virtual void ungrabMouse_nocallback();
|
||||
// tag=1041
|
||||
virtual void uninstallMessageHandler();
|
||||
// tag=1008
|
||||
virtual void uninstallMessageHandler_nocallback();
|
||||
// tag=1041
|
||||
virtual bool usesFallbackMouseGrabber() const;
|
||||
// tag=1008
|
||||
virtual bool usesFallbackMouseGrabber_nocallback() const;
|
||||
// tag=1042
|
||||
typedef QString *(*Callback_applicationName)(void *);
|
||||
Callback_applicationName m_applicationNameCallback = nullptr;
|
||||
// tag=1042
|
||||
typedef KDDockWidgets::ViewFactory *(*Callback_createDefaultViewFactory)(void *);
|
||||
Callback_createDefaultViewFactory m_createDefaultViewFactoryCallback = nullptr;
|
||||
// tag=1042
|
||||
typedef bool (*Callback_hasActivePopup)(void *);
|
||||
Callback_hasActivePopup m_hasActivePopupCallback = nullptr;
|
||||
// tag=1042
|
||||
typedef bool (*Callback_inDisallowedDragView)(void *, QPoint globalPos);
|
||||
Callback_inDisallowedDragView m_inDisallowedDragViewCallback = nullptr;
|
||||
// tag=1042
|
||||
typedef void (*Callback_installMessageHandler)(void *);
|
||||
Callback_installMessageHandler m_installMessageHandlerCallback = nullptr;
|
||||
// tag=1042
|
||||
typedef bool (*Callback_isLeftMouseButtonPressed)(void *);
|
||||
Callback_isLeftMouseButtonPressed m_isLeftMouseButtonPressedCallback = nullptr;
|
||||
// tag=1042
|
||||
typedef bool (*Callback_isProcessingAppQuitEvent)(void *);
|
||||
Callback_isProcessingAppQuitEvent m_isProcessingAppQuitEventCallback = nullptr;
|
||||
// tag=1042
|
||||
typedef const char *(*Callback_name)(void *);
|
||||
Callback_name m_nameCallback = nullptr;
|
||||
// tag=1042
|
||||
typedef QString *(*Callback_organizationName)(void *);
|
||||
Callback_organizationName m_organizationNameCallback = nullptr;
|
||||
// tag=1042
|
||||
typedef void (*Callback_restoreMouseCursor)(void *);
|
||||
Callback_restoreMouseCursor m_restoreMouseCursorCallback = nullptr;
|
||||
// tag=1042
|
||||
typedef int (*Callback_screenNumberFor)(void *, KDDockWidgets::View *arg__1);
|
||||
Callback_screenNumberFor m_screenNumberForCallback = nullptr;
|
||||
// tag=1042
|
||||
typedef QSize *(*Callback_screenSizeFor)(void *, KDDockWidgets::View *arg__1);
|
||||
Callback_screenSizeFor m_screenSizeForCallback = nullptr;
|
||||
// tag=1042
|
||||
typedef int (*Callback_startDragDistance_impl)(void *);
|
||||
Callback_startDragDistance_impl m_startDragDistance_implCallback = nullptr;
|
||||
// tag=1042
|
||||
typedef KDDockWidgets::View *(*Callback_tests_createNonClosableView)(void *, KDDockWidgets::View *parent);
|
||||
Callback_tests_createNonClosableView m_tests_createNonClosableViewCallback = nullptr;
|
||||
// tag=1042
|
||||
typedef void (*Callback_tests_deinitPlatform_impl)(void *);
|
||||
Callback_tests_deinitPlatform_impl m_tests_deinitPlatform_implCallback = nullptr;
|
||||
// tag=1042
|
||||
typedef void (*Callback_tests_initPlatform_impl)(void *);
|
||||
Callback_tests_initPlatform_impl m_tests_initPlatform_implCallback = nullptr;
|
||||
// tag=1042
|
||||
typedef void (*Callback_tests_wait)(void *, int ms);
|
||||
Callback_tests_wait m_tests_waitCallback = nullptr;
|
||||
// tag=1042
|
||||
typedef bool (*Callback_tests_waitForDeleted)(void *, KDDockWidgets::View *arg__1, int timeout);
|
||||
Callback_tests_waitForDeleted m_tests_waitForDeletedCallback = nullptr;
|
||||
// tag=1042
|
||||
typedef bool (*Callback_tests_waitForDeleted_2)(void *, QObject *arg__1, int timeout);
|
||||
Callback_tests_waitForDeleted_2 m_tests_waitForDeleted_2Callback = nullptr;
|
||||
// tag=1042
|
||||
typedef bool (*Callback_tests_waitForResize)(void *, KDDockWidgets::View *arg__1, int timeout);
|
||||
Callback_tests_waitForResize m_tests_waitForResizeCallback = nullptr;
|
||||
// tag=1042
|
||||
typedef void (*Callback_ungrabMouse)(void *);
|
||||
Callback_ungrabMouse m_ungrabMouseCallback = nullptr;
|
||||
// tag=1042
|
||||
typedef void (*Callback_uninstallMessageHandler)(void *);
|
||||
Callback_uninstallMessageHandler m_uninstallMessageHandlerCallback = nullptr;
|
||||
// tag=1042
|
||||
typedef bool (*Callback_usesFallbackMouseGrabber)(void *);
|
||||
Callback_usesFallbackMouseGrabber m_usesFallbackMouseGrabberCallback = nullptr;
|
||||
};
|
||||
}
|
||||
extern "C" {
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::Platform::Platform()
|
||||
KDDockWidgetsBindings_EXPORT void *c_KDDockWidgets__Platform__constructor();
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::Platform::applicationName() const
|
||||
KDDockWidgetsBindings_EXPORT void *c_KDDockWidgets__Platform__applicationName(void *thisObj);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::Platform::createDefaultViewFactory()
|
||||
KDDockWidgetsBindings_EXPORT void *c_KDDockWidgets__Platform__createDefaultViewFactory(void *thisObj);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::Platform::hasActivePopup() const
|
||||
KDDockWidgetsBindings_EXPORT bool c_KDDockWidgets__Platform__hasActivePopup(void *thisObj);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::Platform::inDisallowedDragView(QPoint globalPos) const
|
||||
KDDockWidgetsBindings_EXPORT bool c_KDDockWidgets__Platform__inDisallowedDragView_QPoint(void *thisObj, void *globalPos_);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::Platform::installMessageHandler()
|
||||
KDDockWidgetsBindings_EXPORT void c_KDDockWidgets__Platform__installMessageHandler(void *thisObj);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::Platform::instance()
|
||||
KDDockWidgetsBindings_EXPORT void *c_static_KDDockWidgets__Platform__instance();
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::Platform::isLeftMouseButtonPressed() const
|
||||
KDDockWidgetsBindings_EXPORT bool c_KDDockWidgets__Platform__isLeftMouseButtonPressed(void *thisObj);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::Platform::isProcessingAppQuitEvent() const
|
||||
KDDockWidgetsBindings_EXPORT bool c_KDDockWidgets__Platform__isProcessingAppQuitEvent(void *thisObj);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::Platform::isQtQuick() const
|
||||
KDDockWidgetsBindings_EXPORT bool c_KDDockWidgets__Platform__isQtQuick(void *thisObj);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::Platform::isQtWidgets() const
|
||||
KDDockWidgetsBindings_EXPORT bool c_KDDockWidgets__Platform__isQtWidgets(void *thisObj);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::Platform::name() const
|
||||
KDDockWidgetsBindings_EXPORT const char *c_KDDockWidgets__Platform__name(void *thisObj);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::Platform::organizationName() const
|
||||
KDDockWidgetsBindings_EXPORT void *c_KDDockWidgets__Platform__organizationName(void *thisObj);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::Platform::restoreMouseCursor()
|
||||
KDDockWidgetsBindings_EXPORT void c_KDDockWidgets__Platform__restoreMouseCursor(void *thisObj);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::Platform::screenNumberFor(KDDockWidgets::View * arg__1) const
|
||||
KDDockWidgetsBindings_EXPORT int c_KDDockWidgets__Platform__screenNumberFor_View(void *thisObj, void *arg__1_);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::Platform::screenSizeFor(KDDockWidgets::View * arg__1) const
|
||||
KDDockWidgetsBindings_EXPORT void *c_KDDockWidgets__Platform__screenSizeFor_View(void *thisObj, void *arg__1_);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::Platform::startDragDistance() const
|
||||
KDDockWidgetsBindings_EXPORT int c_KDDockWidgets__Platform__startDragDistance(void *thisObj);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::Platform::startDragDistance_impl() const
|
||||
KDDockWidgetsBindings_EXPORT int c_KDDockWidgets__Platform__startDragDistance_impl(void *thisObj);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::Platform::tests_createNonClosableView(KDDockWidgets::View * parent)
|
||||
KDDockWidgetsBindings_EXPORT void *c_KDDockWidgets__Platform__tests_createNonClosableView_View(void *thisObj, void *parent_);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::Platform::tests_deinitPlatform()
|
||||
KDDockWidgetsBindings_EXPORT void c_static_KDDockWidgets__Platform__tests_deinitPlatform();
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::Platform::tests_deinitPlatform_impl()
|
||||
KDDockWidgetsBindings_EXPORT void c_KDDockWidgets__Platform__tests_deinitPlatform_impl(void *thisObj);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::Platform::tests_initPlatform_impl()
|
||||
KDDockWidgetsBindings_EXPORT void c_KDDockWidgets__Platform__tests_initPlatform_impl(void *thisObj);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::Platform::tests_wait(int ms)
|
||||
KDDockWidgetsBindings_EXPORT void c_KDDockWidgets__Platform__tests_wait_int(void *thisObj, int ms);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::Platform::tests_waitForDeleted(KDDockWidgets::View * arg__1, int timeout) const
|
||||
KDDockWidgetsBindings_EXPORT bool c_KDDockWidgets__Platform__tests_waitForDeleted_View_int(void *thisObj, void *arg__1_, int timeout);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::Platform::tests_waitForDeleted(QObject * arg__1, int timeout) const
|
||||
KDDockWidgetsBindings_EXPORT bool c_KDDockWidgets__Platform__tests_waitForDeleted_QObject_int(void *thisObj, void *arg__1_, int timeout);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::Platform::tests_waitForResize(KDDockWidgets::View * arg__1, int timeout) const
|
||||
KDDockWidgetsBindings_EXPORT bool c_KDDockWidgets__Platform__tests_waitForResize_View_int(void *thisObj, void *arg__1_, int timeout);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::Platform::ungrabMouse()
|
||||
KDDockWidgetsBindings_EXPORT void c_KDDockWidgets__Platform__ungrabMouse(void *thisObj);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::Platform::uninstallMessageHandler()
|
||||
KDDockWidgetsBindings_EXPORT void c_KDDockWidgets__Platform__uninstallMessageHandler(void *thisObj);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::Platform::usesFallbackMouseGrabber() const
|
||||
KDDockWidgetsBindings_EXPORT bool c_KDDockWidgets__Platform__usesFallbackMouseGrabber(void *thisObj);
|
||||
|
||||
// tag=1066
|
||||
KDDockWidgetsBindings_EXPORT void c_KDDockWidgets__Platform__destructor(void *thisObj);
|
||||
|
||||
// tag=1044
|
||||
KDDockWidgetsBindings_EXPORT int c_KDDockWidgets__Platform___get_m_numWarningsEmitted(void *thisObj);
|
||||
|
||||
// tag=1045
|
||||
KDDockWidgetsBindings_EXPORT void c_KDDockWidgets__Platform___set_m_numWarningsEmitted_int(void *thisObj, int m_numWarningsEmitted_);
|
||||
|
||||
// tag=1046
|
||||
KDDockWidgetsBindings_EXPORT void c_KDDockWidgets__Platform__registerVirtualMethodCallback(void *ptr, void *callback, int methodId);
|
||||
// tag=1047
|
||||
KDDockWidgetsBindings_EXPORT void c_KDDockWidgets__Platform_Finalizer(void *, void *cppObj, void *);
|
||||
}
|
||||
@@ -0,0 +1,188 @@
|
||||
/*
|
||||
This file is part of KDDockWidgets.
|
||||
|
||||
SPDX-FileCopyrightText: 2019-2022 Klarälvdalens Datakonsult AB, a KDAB Group company <info@kdab.com>
|
||||
Author: Sérgio Martins <sergio.martins@kdab.com>
|
||||
|
||||
SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only
|
||||
|
||||
Contact KDAB at <info@kdab.com> for commercial licensing options.
|
||||
*/
|
||||
#include "QEvent_wrapper.h"
|
||||
|
||||
|
||||
#include <QDebug>
|
||||
|
||||
|
||||
namespace Dartagnan {
|
||||
|
||||
typedef int (*CleanupCallback)(void *thisPtr);
|
||||
static CleanupCallback s_cleanupCallback = nullptr;
|
||||
|
||||
template<typename T>
|
||||
struct ValueWrapper
|
||||
{
|
||||
T value;
|
||||
};
|
||||
|
||||
}
|
||||
namespace KDDockWidgetsBindings_wrappersNS {
|
||||
// tag=1006
|
||||
QEvent_wrapper::QEvent_wrapper(QEvent::Type type)
|
||||
: ::QEvent(type)
|
||||
{
|
||||
}
|
||||
void QEvent_wrapper::accept()
|
||||
{
|
||||
// tag=1000
|
||||
|
||||
// tag=1004
|
||||
::QEvent::accept();
|
||||
}
|
||||
void QEvent_wrapper::ignore()
|
||||
{
|
||||
// tag=1000
|
||||
|
||||
// tag=1004
|
||||
::QEvent::ignore();
|
||||
}
|
||||
bool QEvent_wrapper::isAccepted() const
|
||||
{
|
||||
// tag=1000
|
||||
|
||||
// tag=1004
|
||||
return ::QEvent::isAccepted();
|
||||
}
|
||||
int QEvent_wrapper::registerEventType(int hint)
|
||||
{
|
||||
// tag=1000
|
||||
|
||||
// tag=1004
|
||||
return ::QEvent::registerEventType(hint);
|
||||
}
|
||||
void QEvent_wrapper::setAccepted(bool accepted)
|
||||
{
|
||||
// tag=1000
|
||||
|
||||
// tag=1004
|
||||
::QEvent::setAccepted(accepted);
|
||||
}
|
||||
bool QEvent_wrapper::spontaneous() const
|
||||
{
|
||||
// tag=1000
|
||||
|
||||
// tag=1004
|
||||
return ::QEvent::spontaneous();
|
||||
}
|
||||
QEvent::Type QEvent_wrapper::type() const
|
||||
{
|
||||
// tag=1000
|
||||
|
||||
// tag=1004
|
||||
return ::QEvent::type();
|
||||
}
|
||||
|
||||
// tag=1005
|
||||
QEvent_wrapper::~QEvent_wrapper()
|
||||
{
|
||||
}
|
||||
|
||||
}
|
||||
// tag=1013
|
||||
static QEvent *fromPtr(void *ptr)
|
||||
{
|
||||
return reinterpret_cast<QEvent *>(ptr);
|
||||
}
|
||||
// tag=1014
|
||||
static KDDockWidgetsBindings_wrappersNS::QEvent_wrapper *fromWrapperPtr(void *ptr)
|
||||
{
|
||||
return reinterpret_cast<KDDockWidgetsBindings_wrappersNS::QEvent_wrapper *>(ptr);
|
||||
}
|
||||
extern "C" {
|
||||
|
||||
// tag=1049
|
||||
void c_QEvent_Finalizer(void *, void *cppObj, void *)
|
||||
{
|
||||
delete reinterpret_cast<KDDockWidgetsBindings_wrappersNS::QEvent_wrapper *>(cppObj);
|
||||
}
|
||||
void *c_QEvent__constructor_Type(int type)
|
||||
{
|
||||
|
||||
// tag=1056
|
||||
auto ptr = new KDDockWidgetsBindings_wrappersNS::QEvent_wrapper(static_cast<QEvent::Type>(type));
|
||||
return reinterpret_cast<void *>(ptr);
|
||||
}
|
||||
|
||||
// tag=1050
|
||||
// accept()
|
||||
void c_QEvent__accept(void *thisObj)
|
||||
{
|
||||
// tag=1010
|
||||
fromPtr(thisObj)->accept();
|
||||
}
|
||||
|
||||
// tag=1050
|
||||
// ignore()
|
||||
void c_QEvent__ignore(void *thisObj)
|
||||
{
|
||||
// tag=1010
|
||||
fromPtr(thisObj)->ignore();
|
||||
}
|
||||
|
||||
// tag=1050
|
||||
// isAccepted() const
|
||||
bool c_QEvent__isAccepted(void *thisObj)
|
||||
{
|
||||
return
|
||||
// tag=1010
|
||||
fromPtr(thisObj)->isAccepted();
|
||||
}
|
||||
|
||||
// tag=1050
|
||||
// registerEventType(int hint)
|
||||
int c_static_QEvent__registerEventType_int(int hint)
|
||||
{
|
||||
return
|
||||
// tag=1068
|
||||
KDDockWidgetsBindings_wrappersNS::QEvent_wrapper::registerEventType(hint);
|
||||
}
|
||||
|
||||
// tag=1050
|
||||
// setAccepted(bool accepted)
|
||||
void c_QEvent__setAccepted_bool(void *thisObj, bool accepted)
|
||||
{
|
||||
// tag=1010
|
||||
fromPtr(thisObj)->setAccepted(accepted);
|
||||
}
|
||||
|
||||
// tag=1050
|
||||
// spontaneous() const
|
||||
bool c_QEvent__spontaneous(void *thisObj)
|
||||
{
|
||||
return
|
||||
// tag=1010
|
||||
fromPtr(thisObj)->spontaneous();
|
||||
}
|
||||
|
||||
// tag=1050
|
||||
// type() const
|
||||
int c_QEvent__type(void *thisObj)
|
||||
{
|
||||
return
|
||||
// tag=1010
|
||||
fromPtr(thisObj)->type();
|
||||
}
|
||||
void c_QEvent__destructor(void *thisObj)
|
||||
{
|
||||
|
||||
// tag=1055
|
||||
delete fromPtr(thisObj);
|
||||
}
|
||||
void c_QEvent__registerVirtualMethodCallback(void *ptr, void *callback, int methodId)
|
||||
{
|
||||
// tag=1048
|
||||
auto wrapper = fromWrapperPtr(ptr);
|
||||
switch (methodId) {
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,81 @@
|
||||
/*
|
||||
This file is part of KDDockWidgets.
|
||||
|
||||
SPDX-FileCopyrightText: 2019-2022 Klarälvdalens Datakonsult AB, a KDAB Group company <info@kdab.com>
|
||||
Author: Sérgio Martins <sergio.martins@kdab.com>
|
||||
|
||||
SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only
|
||||
|
||||
Contact KDAB at <info@kdab.com> for commercial licensing options.
|
||||
*/
|
||||
|
||||
// tag=1040
|
||||
#include "KDDockWidgetsBindings_exports.h"
|
||||
#include <qcoreevent.h>
|
||||
|
||||
namespace KDDockWidgetsBindings_wrappersNS {
|
||||
// tag=1017
|
||||
class QEvent_wrapper : public ::QEvent
|
||||
{
|
||||
public:
|
||||
~QEvent_wrapper();
|
||||
// tag=1041
|
||||
QEvent_wrapper(QEvent::Type type);
|
||||
// tag=1041
|
||||
void accept();
|
||||
// tag=1041
|
||||
void ignore();
|
||||
// tag=1041
|
||||
bool isAccepted() const;
|
||||
// tag=1041
|
||||
static int registerEventType(int hint = -1);
|
||||
// tag=1041
|
||||
void setAccepted(bool accepted);
|
||||
// tag=1041
|
||||
bool spontaneous() const;
|
||||
// tag=1041
|
||||
QEvent::Type type() const;
|
||||
};
|
||||
}
|
||||
extern "C" {
|
||||
|
||||
// tag=1067
|
||||
// QEvent::QEvent(QEvent::Type type)
|
||||
KDDockWidgetsBindings_EXPORT void *c_QEvent__constructor_Type(int type);
|
||||
|
||||
// tag=1067
|
||||
// QEvent::accept()
|
||||
KDDockWidgetsBindings_EXPORT void c_QEvent__accept(void *thisObj);
|
||||
|
||||
// tag=1067
|
||||
// QEvent::ignore()
|
||||
KDDockWidgetsBindings_EXPORT void c_QEvent__ignore(void *thisObj);
|
||||
|
||||
// tag=1067
|
||||
// QEvent::isAccepted() const
|
||||
KDDockWidgetsBindings_EXPORT bool c_QEvent__isAccepted(void *thisObj);
|
||||
|
||||
// tag=1067
|
||||
// QEvent::registerEventType(int hint)
|
||||
KDDockWidgetsBindings_EXPORT int c_static_QEvent__registerEventType_int(int hint);
|
||||
|
||||
// tag=1067
|
||||
// QEvent::setAccepted(bool accepted)
|
||||
KDDockWidgetsBindings_EXPORT void c_QEvent__setAccepted_bool(void *thisObj, bool accepted);
|
||||
|
||||
// tag=1067
|
||||
// QEvent::spontaneous() const
|
||||
KDDockWidgetsBindings_EXPORT bool c_QEvent__spontaneous(void *thisObj);
|
||||
|
||||
// tag=1067
|
||||
// QEvent::type() const
|
||||
KDDockWidgetsBindings_EXPORT int c_QEvent__type(void *thisObj);
|
||||
|
||||
// tag=1066
|
||||
KDDockWidgetsBindings_EXPORT void c_QEvent__destructor(void *thisObj);
|
||||
|
||||
// tag=1046
|
||||
KDDockWidgetsBindings_EXPORT void c_QEvent__registerVirtualMethodCallback(void *ptr, void *callback, int methodId);
|
||||
// tag=1047
|
||||
KDDockWidgetsBindings_EXPORT void c_QEvent_Finalizer(void *, void *cppObj, void *);
|
||||
}
|
||||
@@ -14,6 +14,7 @@
|
||||
#include <qlist.h>
|
||||
#include <qobject.h>
|
||||
#include <qstring.h>
|
||||
#include <qcoreevent.h>
|
||||
#include <qbytearray.h>
|
||||
|
||||
namespace KDDockWidgetsBindings_wrappersNS {
|
||||
|
||||
@@ -46,6 +46,24 @@ const QList<QObject *> &QObject_wrapper::children() const
|
||||
// tag=1004
|
||||
return ::QObject::children();
|
||||
}
|
||||
void QObject_wrapper::customEvent(QEvent *event)
|
||||
{
|
||||
// tag=1000
|
||||
if (m_customEventCallback) {
|
||||
// tag=1001
|
||||
const void *thisPtr = this;
|
||||
m_customEventCallback(const_cast<void *>(thisPtr), event);
|
||||
} else {
|
||||
// tag=1002
|
||||
::QObject::customEvent(event);
|
||||
}
|
||||
}
|
||||
// tag=1009
|
||||
void QObject_wrapper::customEvent_nocallback(QEvent *event)
|
||||
{
|
||||
// tag=1003
|
||||
::QObject::customEvent(event);
|
||||
}
|
||||
void QObject_wrapper::deleteLater()
|
||||
{
|
||||
// tag=1000
|
||||
@@ -102,6 +120,42 @@ QList<QByteArray> QObject_wrapper::dynamicPropertyNames() const
|
||||
// tag=1004
|
||||
return ::QObject::dynamicPropertyNames();
|
||||
}
|
||||
bool QObject_wrapper::event(QEvent *event)
|
||||
{
|
||||
// tag=1000
|
||||
if (m_eventCallback) {
|
||||
// tag=1001
|
||||
const void *thisPtr = this;
|
||||
return m_eventCallback(const_cast<void *>(thisPtr), event);
|
||||
} else {
|
||||
// tag=1002
|
||||
return ::QObject::event(event);
|
||||
}
|
||||
}
|
||||
// tag=1009
|
||||
bool QObject_wrapper::event_nocallback(QEvent *event)
|
||||
{
|
||||
// tag=1003
|
||||
return ::QObject::event(event);
|
||||
}
|
||||
bool QObject_wrapper::eventFilter(QObject *watched, QEvent *event)
|
||||
{
|
||||
// tag=1000
|
||||
if (m_eventFilterCallback) {
|
||||
// tag=1001
|
||||
const void *thisPtr = this;
|
||||
return m_eventFilterCallback(const_cast<void *>(thisPtr), watched, event);
|
||||
} else {
|
||||
// tag=1002
|
||||
return ::QObject::eventFilter(watched, event);
|
||||
}
|
||||
}
|
||||
// tag=1009
|
||||
bool QObject_wrapper::eventFilter_nocallback(QObject *watched, QEvent *event)
|
||||
{
|
||||
// tag=1003
|
||||
return ::QObject::eventFilter(watched, event);
|
||||
}
|
||||
bool QObject_wrapper::inherits(const char *classname) const
|
||||
{
|
||||
// tag=1000
|
||||
@@ -266,6 +320,17 @@ void *c_QObject__children(void *thisObj)
|
||||
const_cast<void *>(static_cast<const void *>(&fromPtr(thisObj)->children()));
|
||||
}
|
||||
|
||||
// tag=1050
|
||||
// customEvent(QEvent * event)
|
||||
void c_QObject__customEvent_QEvent(void *thisObj, void *event_)
|
||||
{
|
||||
auto event = reinterpret_cast<QEvent *>(event_);
|
||||
// tag=1011
|
||||
|
||||
// tag=1074
|
||||
fromWrapperPtr(thisObj)->customEvent_nocallback(event);
|
||||
}
|
||||
|
||||
// tag=1050
|
||||
// deleteLater()
|
||||
void c_QObject__deleteLater(void *thisObj)
|
||||
@@ -352,6 +417,27 @@ void *c_QObject__dynamicPropertyNames(void *thisObj)
|
||||
new Dartagnan::ValueWrapper<QList<QByteArray>> { fromPtr(thisObj)->dynamicPropertyNames() };
|
||||
}
|
||||
|
||||
// tag=1050
|
||||
// event(QEvent * event)
|
||||
bool c_QObject__event_QEvent(void *thisObj, void *event_)
|
||||
{
|
||||
auto event = reinterpret_cast<QEvent *>(event_);
|
||||
return
|
||||
// tag=1016
|
||||
[&] {auto targetPtr = fromPtr(thisObj);auto wrapperPtr = dynamic_cast<KDDockWidgetsBindings_wrappersNS::QObject_wrapper*>(targetPtr);if (wrapperPtr) { return wrapperPtr->event_nocallback(event);} else { return targetPtr->event(event);} }();
|
||||
}
|
||||
|
||||
// tag=1050
|
||||
// eventFilter(QObject * watched, QEvent * event)
|
||||
bool c_QObject__eventFilter_QObject_QEvent(void *thisObj, void *watched_, void *event_)
|
||||
{
|
||||
auto watched = reinterpret_cast<QObject *>(watched_);
|
||||
auto event = reinterpret_cast<QEvent *>(event_);
|
||||
return
|
||||
// tag=1016
|
||||
[&] {auto targetPtr = fromPtr(thisObj);auto wrapperPtr = dynamic_cast<KDDockWidgetsBindings_wrappersNS::QObject_wrapper*>(targetPtr);if (wrapperPtr) { return wrapperPtr->eventFilter_nocallback(watched,event);} else { return targetPtr->eventFilter(watched,event);} }();
|
||||
}
|
||||
|
||||
// tag=1050
|
||||
// inherits(const char * classname) const
|
||||
bool c_QObject__inherits_char(void *thisObj, const char *classname)
|
||||
@@ -515,6 +601,15 @@ void c_QObject__registerVirtualMethodCallback(void *ptr, void *callback, int met
|
||||
// tag=1048
|
||||
auto wrapper = fromWrapperPtr(ptr);
|
||||
switch (methodId) {
|
||||
case 294:
|
||||
wrapper->m_customEventCallback = reinterpret_cast<KDDockWidgetsBindings_wrappersNS::QObject_wrapper::Callback_customEvent>(callback);
|
||||
break;
|
||||
case 305:
|
||||
wrapper->m_eventCallback = reinterpret_cast<KDDockWidgetsBindings_wrappersNS::QObject_wrapper::Callback_event>(callback);
|
||||
break;
|
||||
case 306:
|
||||
wrapper->m_eventFilterCallback = reinterpret_cast<KDDockWidgetsBindings_wrappersNS::QObject_wrapper::Callback_eventFilter>(callback);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -13,6 +13,7 @@
|
||||
#include "KDDockWidgetsBindings_exports.h"
|
||||
#include <qobject.h>
|
||||
#include <qstring.h>
|
||||
#include <qcoreevent.h>
|
||||
#include <qlist.h>
|
||||
#include <qbytearray.h>
|
||||
|
||||
@@ -29,6 +30,10 @@ public:
|
||||
// tag=1041
|
||||
const QList<QObject *> &children() const;
|
||||
// tag=1041
|
||||
virtual void customEvent(QEvent *event);
|
||||
// tag=1008
|
||||
virtual void customEvent_nocallback(QEvent *event);
|
||||
// tag=1041
|
||||
void deleteLater();
|
||||
// tag=1041
|
||||
void destroyed(QObject *arg__1 = nullptr);
|
||||
@@ -45,6 +50,14 @@ public:
|
||||
// tag=1041
|
||||
QList<QByteArray> dynamicPropertyNames() const;
|
||||
// tag=1041
|
||||
virtual bool event(QEvent *event);
|
||||
// tag=1008
|
||||
virtual bool event_nocallback(QEvent *event);
|
||||
// tag=1041
|
||||
virtual bool eventFilter(QObject *watched, QEvent *event);
|
||||
// tag=1008
|
||||
virtual bool eventFilter_nocallback(QObject *watched, QEvent *event);
|
||||
// tag=1041
|
||||
bool inherits(const char *classname) const;
|
||||
// tag=1041
|
||||
void installEventFilter(QObject *filterObj);
|
||||
@@ -76,6 +89,15 @@ public:
|
||||
int startTimer(int interval);
|
||||
// tag=1041
|
||||
static QString tr(const char *s, const char *c, int n);
|
||||
// tag=1042
|
||||
typedef void (*Callback_customEvent)(void *, QEvent *event);
|
||||
Callback_customEvent m_customEventCallback = nullptr;
|
||||
// tag=1042
|
||||
typedef bool (*Callback_event)(void *, QEvent *event);
|
||||
Callback_event m_eventCallback = nullptr;
|
||||
// tag=1042
|
||||
typedef bool (*Callback_eventFilter)(void *, QObject *watched, QEvent *event);
|
||||
Callback_eventFilter m_eventFilterCallback = nullptr;
|
||||
};
|
||||
}
|
||||
extern "C" {
|
||||
@@ -92,6 +114,10 @@ KDDockWidgetsBindings_EXPORT bool c_QObject__blockSignals_bool(void *thisObj, bo
|
||||
// QObject::children() const
|
||||
KDDockWidgetsBindings_EXPORT void *c_QObject__children(void *thisObj);
|
||||
|
||||
// tag=1067
|
||||
// QObject::customEvent(QEvent * event)
|
||||
KDDockWidgetsBindings_EXPORT void c_QObject__customEvent_QEvent(void *thisObj, void *event_);
|
||||
|
||||
// tag=1067
|
||||
// QObject::deleteLater()
|
||||
KDDockWidgetsBindings_EXPORT void c_QObject__deleteLater(void *thisObj);
|
||||
@@ -126,6 +152,14 @@ KDDockWidgetsBindings_EXPORT void c_QObject__dumpObjectTree(void *thisObj);
|
||||
// QObject::dynamicPropertyNames() const
|
||||
KDDockWidgetsBindings_EXPORT void *c_QObject__dynamicPropertyNames(void *thisObj);
|
||||
|
||||
// tag=1067
|
||||
// QObject::event(QEvent * event)
|
||||
KDDockWidgetsBindings_EXPORT bool c_QObject__event_QEvent(void *thisObj, void *event_);
|
||||
|
||||
// tag=1067
|
||||
// QObject::eventFilter(QObject * watched, QEvent * event)
|
||||
KDDockWidgetsBindings_EXPORT bool c_QObject__eventFilter_QObject_QEvent(void *thisObj, void *watched_, void *event_);
|
||||
|
||||
// tag=1067
|
||||
// QObject::inherits(const char * classname) const
|
||||
KDDockWidgetsBindings_EXPORT bool c_QObject__inherits_char(void *thisObj, const char *classname);
|
||||
|
||||
@@ -0,0 +1,39 @@
|
||||
/*
|
||||
This file is part of KDDockWidgets.
|
||||
|
||||
SPDX-FileCopyrightText: 2019-2022 Klarälvdalens Datakonsult AB, a KDAB Group company <info@kdab.com>
|
||||
Author: Sérgio Martins <sergio.martins@kdab.com>
|
||||
|
||||
SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only
|
||||
|
||||
Contact KDAB at <info@kdab.com> for commercial licensing options.
|
||||
*/
|
||||
#include "Qt_wrapper.h"
|
||||
|
||||
|
||||
#include <QDebug>
|
||||
|
||||
|
||||
namespace Dartagnan {
|
||||
|
||||
typedef int (*CleanupCallback)(void *thisPtr);
|
||||
static CleanupCallback s_cleanupCallback = nullptr;
|
||||
|
||||
template<typename T>
|
||||
struct ValueWrapper
|
||||
{
|
||||
T value;
|
||||
};
|
||||
|
||||
}
|
||||
extern "C" {
|
||||
|
||||
// tag=1050
|
||||
// qt_getEnumName(Qt::CursorShape arg__1)
|
||||
const char *c_static_Qt__qt_getEnumName_CursorShape(int arg__1)
|
||||
{
|
||||
return
|
||||
// tag=1068
|
||||
Qt::qt_getEnumName(static_cast<Qt::CursorShape>(arg__1));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
/*
|
||||
This file is part of KDDockWidgets.
|
||||
|
||||
SPDX-FileCopyrightText: 2019-2022 Klarälvdalens Datakonsult AB, a KDAB Group company <info@kdab.com>
|
||||
Author: Sérgio Martins <sergio.martins@kdab.com>
|
||||
|
||||
SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only
|
||||
|
||||
Contact KDAB at <info@kdab.com> for commercial licensing options.
|
||||
*/
|
||||
|
||||
// tag=1040
|
||||
#include "KDDockWidgetsBindings_exports.h"
|
||||
#include <qnamespace.h>
|
||||
|
||||
extern "C" {
|
||||
|
||||
// tag=1067
|
||||
// Qt::qt_getEnumName(Qt::CursorShape arg__1)
|
||||
KDDockWidgetsBindings_EXPORT const char *c_static_Qt__qt_getEnumName_CursorShape(int arg__1);
|
||||
|
||||
// tag=1047
|
||||
KDDockWidgetsBindings_EXPORT void c_Qt_Finalizer(void *, void *cppObj, void *);
|
||||
}
|
||||
@@ -0,0 +1,365 @@
|
||||
/*
|
||||
This file is part of KDDockWidgets.
|
||||
|
||||
SPDX-FileCopyrightText: 2019-2022 Klarälvdalens Datakonsult AB, a KDAB Group company <info@kdab.com>
|
||||
Author: Sérgio Martins <sergio.martins@kdab.com>
|
||||
|
||||
SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only
|
||||
|
||||
Contact KDAB at <info@kdab.com> for commercial licensing options.
|
||||
*/
|
||||
#include "Screen_wrapper.h"
|
||||
|
||||
|
||||
#include <QDebug>
|
||||
|
||||
|
||||
namespace Dartagnan {
|
||||
|
||||
typedef int (*CleanupCallback)(void *thisPtr);
|
||||
static CleanupCallback s_cleanupCallback = nullptr;
|
||||
|
||||
template<typename T>
|
||||
struct ValueWrapper
|
||||
{
|
||||
T value;
|
||||
};
|
||||
|
||||
}
|
||||
namespace KDDockWidgetsBindings_wrappersNS {
|
||||
// tag=1006
|
||||
Screen_wrapper::Screen_wrapper()
|
||||
: ::KDDockWidgets::Screen()
|
||||
{
|
||||
}
|
||||
QRect Screen_wrapper::availableGeometry() const
|
||||
{
|
||||
// tag=1000
|
||||
if (m_availableGeometryCallback) {
|
||||
// tag=1001
|
||||
const void *thisPtr = this;
|
||||
return *m_availableGeometryCallback(const_cast<void *>(thisPtr));
|
||||
} else {
|
||||
// tag=1015
|
||||
qWarning() << Q_FUNC_INFO << "Warning: Calling pure-virtual";
|
||||
return {};
|
||||
}
|
||||
}
|
||||
// tag=1009
|
||||
QRect Screen_wrapper::availableGeometry_nocallback() const
|
||||
{
|
||||
// tag=1003
|
||||
|
||||
// tag=1007
|
||||
qWarning() << Q_FUNC_INFO << "Warning: Calling pure-virtual";
|
||||
return {};
|
||||
}
|
||||
QSize Screen_wrapper::availableSize() const
|
||||
{
|
||||
// tag=1000
|
||||
if (m_availableSizeCallback) {
|
||||
// tag=1001
|
||||
const void *thisPtr = this;
|
||||
return *m_availableSizeCallback(const_cast<void *>(thisPtr));
|
||||
} else {
|
||||
// tag=1015
|
||||
qWarning() << Q_FUNC_INFO << "Warning: Calling pure-virtual";
|
||||
return {};
|
||||
}
|
||||
}
|
||||
// tag=1009
|
||||
QSize Screen_wrapper::availableSize_nocallback() const
|
||||
{
|
||||
// tag=1003
|
||||
|
||||
// tag=1007
|
||||
qWarning() << Q_FUNC_INFO << "Warning: Calling pure-virtual";
|
||||
return {};
|
||||
}
|
||||
qreal Screen_wrapper::devicePixelRatio() const
|
||||
{
|
||||
// tag=1000
|
||||
if (m_devicePixelRatioCallback) {
|
||||
// tag=1001
|
||||
const void *thisPtr = this;
|
||||
return m_devicePixelRatioCallback(const_cast<void *>(thisPtr));
|
||||
} else {
|
||||
// tag=1015
|
||||
qWarning() << Q_FUNC_INFO << "Warning: Calling pure-virtual";
|
||||
return {};
|
||||
}
|
||||
}
|
||||
// tag=1009
|
||||
qreal Screen_wrapper::devicePixelRatio_nocallback() const
|
||||
{
|
||||
// tag=1003
|
||||
|
||||
// tag=1007
|
||||
qWarning() << Q_FUNC_INFO << "Warning: Calling pure-virtual";
|
||||
return {};
|
||||
}
|
||||
QRect Screen_wrapper::geometry() const
|
||||
{
|
||||
// tag=1000
|
||||
if (m_geometryCallback) {
|
||||
// tag=1001
|
||||
const void *thisPtr = this;
|
||||
return *m_geometryCallback(const_cast<void *>(thisPtr));
|
||||
} else {
|
||||
// tag=1015
|
||||
qWarning() << Q_FUNC_INFO << "Warning: Calling pure-virtual";
|
||||
return {};
|
||||
}
|
||||
}
|
||||
// tag=1009
|
||||
QRect Screen_wrapper::geometry_nocallback() const
|
||||
{
|
||||
// tag=1003
|
||||
|
||||
// tag=1007
|
||||
qWarning() << Q_FUNC_INFO << "Warning: Calling pure-virtual";
|
||||
return {};
|
||||
}
|
||||
QString Screen_wrapper::name() const
|
||||
{
|
||||
// tag=1000
|
||||
if (m_nameCallback) {
|
||||
// tag=1001
|
||||
const void *thisPtr = this;
|
||||
return *m_nameCallback(const_cast<void *>(thisPtr));
|
||||
} else {
|
||||
// tag=1015
|
||||
qWarning() << Q_FUNC_INFO << "Warning: Calling pure-virtual";
|
||||
return {};
|
||||
}
|
||||
}
|
||||
// tag=1009
|
||||
QString Screen_wrapper::name_nocallback() const
|
||||
{
|
||||
// tag=1003
|
||||
|
||||
// tag=1007
|
||||
qWarning() << Q_FUNC_INFO << "Warning: Calling pure-virtual";
|
||||
return {};
|
||||
}
|
||||
QSize Screen_wrapper::size() const
|
||||
{
|
||||
// tag=1000
|
||||
if (m_sizeCallback) {
|
||||
// tag=1001
|
||||
const void *thisPtr = this;
|
||||
return *m_sizeCallback(const_cast<void *>(thisPtr));
|
||||
} else {
|
||||
// tag=1015
|
||||
qWarning() << Q_FUNC_INFO << "Warning: Calling pure-virtual";
|
||||
return {};
|
||||
}
|
||||
}
|
||||
// tag=1009
|
||||
QSize Screen_wrapper::size_nocallback() const
|
||||
{
|
||||
// tag=1003
|
||||
|
||||
// tag=1007
|
||||
qWarning() << Q_FUNC_INFO << "Warning: Calling pure-virtual";
|
||||
return {};
|
||||
}
|
||||
QRect Screen_wrapper::virtualGeometry() const
|
||||
{
|
||||
// tag=1000
|
||||
if (m_virtualGeometryCallback) {
|
||||
// tag=1001
|
||||
const void *thisPtr = this;
|
||||
return *m_virtualGeometryCallback(const_cast<void *>(thisPtr));
|
||||
} else {
|
||||
// tag=1015
|
||||
qWarning() << Q_FUNC_INFO << "Warning: Calling pure-virtual";
|
||||
return {};
|
||||
}
|
||||
}
|
||||
// tag=1009
|
||||
QRect Screen_wrapper::virtualGeometry_nocallback() const
|
||||
{
|
||||
// tag=1003
|
||||
|
||||
// tag=1007
|
||||
qWarning() << Q_FUNC_INFO << "Warning: Calling pure-virtual";
|
||||
return {};
|
||||
}
|
||||
QSize Screen_wrapper::virtualSize() const
|
||||
{
|
||||
// tag=1000
|
||||
if (m_virtualSizeCallback) {
|
||||
// tag=1001
|
||||
const void *thisPtr = this;
|
||||
return *m_virtualSizeCallback(const_cast<void *>(thisPtr));
|
||||
} else {
|
||||
// tag=1015
|
||||
qWarning() << Q_FUNC_INFO << "Warning: Calling pure-virtual";
|
||||
return {};
|
||||
}
|
||||
}
|
||||
// tag=1009
|
||||
QSize Screen_wrapper::virtualSize_nocallback() const
|
||||
{
|
||||
// tag=1003
|
||||
|
||||
// tag=1007
|
||||
qWarning() << Q_FUNC_INFO << "Warning: Calling pure-virtual";
|
||||
return {};
|
||||
}
|
||||
|
||||
// tag=1005
|
||||
Screen_wrapper::~Screen_wrapper()
|
||||
{
|
||||
}
|
||||
|
||||
}
|
||||
// tag=1013
|
||||
static KDDockWidgets::Screen *fromPtr(void *ptr)
|
||||
{
|
||||
return reinterpret_cast<KDDockWidgets::Screen *>(ptr);
|
||||
}
|
||||
// tag=1014
|
||||
static KDDockWidgetsBindings_wrappersNS::Screen_wrapper *fromWrapperPtr(void *ptr)
|
||||
{
|
||||
return reinterpret_cast<KDDockWidgetsBindings_wrappersNS::Screen_wrapper *>(ptr);
|
||||
}
|
||||
extern "C" {
|
||||
|
||||
// tag=1049
|
||||
void c_KDDockWidgets__Screen_Finalizer(void *, void *cppObj, void *)
|
||||
{
|
||||
delete reinterpret_cast<KDDockWidgetsBindings_wrappersNS::Screen_wrapper *>(cppObj);
|
||||
}
|
||||
void *c_KDDockWidgets__Screen__constructor()
|
||||
{
|
||||
|
||||
// tag=1056
|
||||
auto ptr = new KDDockWidgetsBindings_wrappersNS::Screen_wrapper();
|
||||
return reinterpret_cast<void *>(ptr);
|
||||
}
|
||||
|
||||
// tag=1050
|
||||
// availableGeometry() const
|
||||
void *c_KDDockWidgets__Screen__availableGeometry(void *thisObj)
|
||||
{
|
||||
return
|
||||
// tag=1016
|
||||
|
||||
// tag=1072
|
||||
new Dartagnan::ValueWrapper<QRect> { [&] {auto targetPtr = fromPtr(thisObj);auto wrapperPtr = dynamic_cast<KDDockWidgetsBindings_wrappersNS::Screen_wrapper*>(targetPtr);if (wrapperPtr) { return wrapperPtr->availableGeometry_nocallback();} else { return targetPtr->availableGeometry();} }() };
|
||||
}
|
||||
|
||||
// tag=1050
|
||||
// availableSize() const
|
||||
void *c_KDDockWidgets__Screen__availableSize(void *thisObj)
|
||||
{
|
||||
return
|
||||
// tag=1016
|
||||
|
||||
// tag=1072
|
||||
new Dartagnan::ValueWrapper<QSize> { [&] {auto targetPtr = fromPtr(thisObj);auto wrapperPtr = dynamic_cast<KDDockWidgetsBindings_wrappersNS::Screen_wrapper*>(targetPtr);if (wrapperPtr) { return wrapperPtr->availableSize_nocallback();} else { return targetPtr->availableSize();} }() };
|
||||
}
|
||||
|
||||
// tag=1050
|
||||
// devicePixelRatio() const
|
||||
qreal c_KDDockWidgets__Screen__devicePixelRatio(void *thisObj)
|
||||
{
|
||||
return
|
||||
// tag=1016
|
||||
[&] {auto targetPtr = fromPtr(thisObj);auto wrapperPtr = dynamic_cast<KDDockWidgetsBindings_wrappersNS::Screen_wrapper*>(targetPtr);if (wrapperPtr) { return wrapperPtr->devicePixelRatio_nocallback();} else { return targetPtr->devicePixelRatio();} }();
|
||||
}
|
||||
|
||||
// tag=1050
|
||||
// geometry() const
|
||||
void *c_KDDockWidgets__Screen__geometry(void *thisObj)
|
||||
{
|
||||
return
|
||||
// tag=1016
|
||||
|
||||
// tag=1072
|
||||
new Dartagnan::ValueWrapper<QRect> { [&] {auto targetPtr = fromPtr(thisObj);auto wrapperPtr = dynamic_cast<KDDockWidgetsBindings_wrappersNS::Screen_wrapper*>(targetPtr);if (wrapperPtr) { return wrapperPtr->geometry_nocallback();} else { return targetPtr->geometry();} }() };
|
||||
}
|
||||
|
||||
// tag=1050
|
||||
// name() const
|
||||
void *c_KDDockWidgets__Screen__name(void *thisObj)
|
||||
{
|
||||
return
|
||||
// tag=1016
|
||||
|
||||
// tag=1072
|
||||
new Dartagnan::ValueWrapper<QString> { [&] {auto targetPtr = fromPtr(thisObj);auto wrapperPtr = dynamic_cast<KDDockWidgetsBindings_wrappersNS::Screen_wrapper*>(targetPtr);if (wrapperPtr) { return wrapperPtr->name_nocallback();} else { return targetPtr->name();} }() };
|
||||
}
|
||||
|
||||
// tag=1050
|
||||
// size() const
|
||||
void *c_KDDockWidgets__Screen__size(void *thisObj)
|
||||
{
|
||||
return
|
||||
// tag=1016
|
||||
|
||||
// tag=1072
|
||||
new Dartagnan::ValueWrapper<QSize> { [&] {auto targetPtr = fromPtr(thisObj);auto wrapperPtr = dynamic_cast<KDDockWidgetsBindings_wrappersNS::Screen_wrapper*>(targetPtr);if (wrapperPtr) { return wrapperPtr->size_nocallback();} else { return targetPtr->size();} }() };
|
||||
}
|
||||
|
||||
// tag=1050
|
||||
// virtualGeometry() const
|
||||
void *c_KDDockWidgets__Screen__virtualGeometry(void *thisObj)
|
||||
{
|
||||
return
|
||||
// tag=1016
|
||||
|
||||
// tag=1072
|
||||
new Dartagnan::ValueWrapper<QRect> { [&] {auto targetPtr = fromPtr(thisObj);auto wrapperPtr = dynamic_cast<KDDockWidgetsBindings_wrappersNS::Screen_wrapper*>(targetPtr);if (wrapperPtr) { return wrapperPtr->virtualGeometry_nocallback();} else { return targetPtr->virtualGeometry();} }() };
|
||||
}
|
||||
|
||||
// tag=1050
|
||||
// virtualSize() const
|
||||
void *c_KDDockWidgets__Screen__virtualSize(void *thisObj)
|
||||
{
|
||||
return
|
||||
// tag=1016
|
||||
|
||||
// tag=1072
|
||||
new Dartagnan::ValueWrapper<QSize> { [&] {auto targetPtr = fromPtr(thisObj);auto wrapperPtr = dynamic_cast<KDDockWidgetsBindings_wrappersNS::Screen_wrapper*>(targetPtr);if (wrapperPtr) { return wrapperPtr->virtualSize_nocallback();} else { return targetPtr->virtualSize();} }() };
|
||||
}
|
||||
void c_KDDockWidgets__Screen__destructor(void *thisObj)
|
||||
{
|
||||
|
||||
// tag=1055
|
||||
delete fromPtr(thisObj);
|
||||
}
|
||||
void c_KDDockWidgets__Screen__registerVirtualMethodCallback(void *ptr, void *callback, int methodId)
|
||||
{
|
||||
// tag=1048
|
||||
auto wrapper = fromWrapperPtr(ptr);
|
||||
switch (methodId) {
|
||||
case 617:
|
||||
wrapper->m_availableGeometryCallback = reinterpret_cast<KDDockWidgetsBindings_wrappersNS::Screen_wrapper::Callback_availableGeometry>(callback);
|
||||
break;
|
||||
case 618:
|
||||
wrapper->m_availableSizeCallback = reinterpret_cast<KDDockWidgetsBindings_wrappersNS::Screen_wrapper::Callback_availableSize>(callback);
|
||||
break;
|
||||
case 619:
|
||||
wrapper->m_devicePixelRatioCallback = reinterpret_cast<KDDockWidgetsBindings_wrappersNS::Screen_wrapper::Callback_devicePixelRatio>(callback);
|
||||
break;
|
||||
case 620:
|
||||
wrapper->m_geometryCallback = reinterpret_cast<KDDockWidgetsBindings_wrappersNS::Screen_wrapper::Callback_geometry>(callback);
|
||||
break;
|
||||
case 621:
|
||||
wrapper->m_nameCallback = reinterpret_cast<KDDockWidgetsBindings_wrappersNS::Screen_wrapper::Callback_name>(callback);
|
||||
break;
|
||||
case 622:
|
||||
wrapper->m_sizeCallback = reinterpret_cast<KDDockWidgetsBindings_wrappersNS::Screen_wrapper::Callback_size>(callback);
|
||||
break;
|
||||
case 623:
|
||||
wrapper->m_virtualGeometryCallback = reinterpret_cast<KDDockWidgetsBindings_wrappersNS::Screen_wrapper::Callback_virtualGeometry>(callback);
|
||||
break;
|
||||
case 624:
|
||||
wrapper->m_virtualSizeCallback = reinterpret_cast<KDDockWidgetsBindings_wrappersNS::Screen_wrapper::Callback_virtualSize>(callback);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,130 @@
|
||||
/*
|
||||
This file is part of KDDockWidgets.
|
||||
|
||||
SPDX-FileCopyrightText: 2019-2022 Klarälvdalens Datakonsult AB, a KDAB Group company <info@kdab.com>
|
||||
Author: Sérgio Martins <sergio.martins@kdab.com>
|
||||
|
||||
SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only
|
||||
|
||||
Contact KDAB at <info@kdab.com> for commercial licensing options.
|
||||
*/
|
||||
|
||||
// tag=1040
|
||||
#include "KDDockWidgetsBindings_exports.h"
|
||||
#include <Screen.h>
|
||||
#include <qstring.h>
|
||||
#include <qsize.h>
|
||||
#include <qrect.h>
|
||||
|
||||
namespace KDDockWidgetsBindings_wrappersNS {
|
||||
// tag=1017
|
||||
class Screen_wrapper : public ::KDDockWidgets::Screen
|
||||
{
|
||||
public:
|
||||
~Screen_wrapper();
|
||||
// tag=1041
|
||||
Screen_wrapper();
|
||||
// tag=1041
|
||||
virtual QRect availableGeometry() const;
|
||||
// tag=1008
|
||||
virtual QRect availableGeometry_nocallback() const;
|
||||
// tag=1041
|
||||
virtual QSize availableSize() const;
|
||||
// tag=1008
|
||||
virtual QSize availableSize_nocallback() const;
|
||||
// tag=1041
|
||||
virtual qreal devicePixelRatio() const;
|
||||
// tag=1008
|
||||
virtual qreal devicePixelRatio_nocallback() const;
|
||||
// tag=1041
|
||||
virtual QRect geometry() const;
|
||||
// tag=1008
|
||||
virtual QRect geometry_nocallback() const;
|
||||
// tag=1041
|
||||
virtual QString name() const;
|
||||
// tag=1008
|
||||
virtual QString name_nocallback() const;
|
||||
// tag=1041
|
||||
virtual QSize size() const;
|
||||
// tag=1008
|
||||
virtual QSize size_nocallback() const;
|
||||
// tag=1041
|
||||
virtual QRect virtualGeometry() const;
|
||||
// tag=1008
|
||||
virtual QRect virtualGeometry_nocallback() const;
|
||||
// tag=1041
|
||||
virtual QSize virtualSize() const;
|
||||
// tag=1008
|
||||
virtual QSize virtualSize_nocallback() const;
|
||||
// tag=1042
|
||||
typedef QRect *(*Callback_availableGeometry)(void *);
|
||||
Callback_availableGeometry m_availableGeometryCallback = nullptr;
|
||||
// tag=1042
|
||||
typedef QSize *(*Callback_availableSize)(void *);
|
||||
Callback_availableSize m_availableSizeCallback = nullptr;
|
||||
// tag=1042
|
||||
typedef qreal (*Callback_devicePixelRatio)(void *);
|
||||
Callback_devicePixelRatio m_devicePixelRatioCallback = nullptr;
|
||||
// tag=1042
|
||||
typedef QRect *(*Callback_geometry)(void *);
|
||||
Callback_geometry m_geometryCallback = nullptr;
|
||||
// tag=1042
|
||||
typedef QString *(*Callback_name)(void *);
|
||||
Callback_name m_nameCallback = nullptr;
|
||||
// tag=1042
|
||||
typedef QSize *(*Callback_size)(void *);
|
||||
Callback_size m_sizeCallback = nullptr;
|
||||
// tag=1042
|
||||
typedef QRect *(*Callback_virtualGeometry)(void *);
|
||||
Callback_virtualGeometry m_virtualGeometryCallback = nullptr;
|
||||
// tag=1042
|
||||
typedef QSize *(*Callback_virtualSize)(void *);
|
||||
Callback_virtualSize m_virtualSizeCallback = nullptr;
|
||||
};
|
||||
}
|
||||
extern "C" {
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::Screen::Screen()
|
||||
KDDockWidgetsBindings_EXPORT void *c_KDDockWidgets__Screen__constructor();
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::Screen::availableGeometry() const
|
||||
KDDockWidgetsBindings_EXPORT void *c_KDDockWidgets__Screen__availableGeometry(void *thisObj);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::Screen::availableSize() const
|
||||
KDDockWidgetsBindings_EXPORT void *c_KDDockWidgets__Screen__availableSize(void *thisObj);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::Screen::devicePixelRatio() const
|
||||
KDDockWidgetsBindings_EXPORT qreal c_KDDockWidgets__Screen__devicePixelRatio(void *thisObj);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::Screen::geometry() const
|
||||
KDDockWidgetsBindings_EXPORT void *c_KDDockWidgets__Screen__geometry(void *thisObj);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::Screen::name() const
|
||||
KDDockWidgetsBindings_EXPORT void *c_KDDockWidgets__Screen__name(void *thisObj);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::Screen::size() const
|
||||
KDDockWidgetsBindings_EXPORT void *c_KDDockWidgets__Screen__size(void *thisObj);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::Screen::virtualGeometry() const
|
||||
KDDockWidgetsBindings_EXPORT void *c_KDDockWidgets__Screen__virtualGeometry(void *thisObj);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::Screen::virtualSize() const
|
||||
KDDockWidgetsBindings_EXPORT void *c_KDDockWidgets__Screen__virtualSize(void *thisObj);
|
||||
|
||||
// tag=1066
|
||||
KDDockWidgetsBindings_EXPORT void c_KDDockWidgets__Screen__destructor(void *thisObj);
|
||||
|
||||
// tag=1046
|
||||
KDDockWidgetsBindings_EXPORT void c_KDDockWidgets__Screen__registerVirtualMethodCallback(void *ptr, void *callback, int methodId);
|
||||
// tag=1047
|
||||
KDDockWidgetsBindings_EXPORT void c_KDDockWidgets__Screen_Finalizer(void *, void *cppObj, void *);
|
||||
}
|
||||
@@ -54,6 +54,60 @@ KDDockWidgets::View *ViewFactory_wrapper::createRubberBand_nocallback(KDDockWidg
|
||||
qWarning() << Q_FUNC_INFO << "Warning: Calling pure-virtual";
|
||||
return {};
|
||||
}
|
||||
void ViewFactory_wrapper::customEvent(QEvent *event)
|
||||
{
|
||||
// tag=1000
|
||||
if (m_customEventCallback) {
|
||||
// tag=1001
|
||||
const void *thisPtr = this;
|
||||
m_customEventCallback(const_cast<void *>(thisPtr), event);
|
||||
} else {
|
||||
// tag=1002
|
||||
::KDDockWidgets::ViewFactory::customEvent(event);
|
||||
}
|
||||
}
|
||||
// tag=1009
|
||||
void ViewFactory_wrapper::customEvent_nocallback(QEvent *event)
|
||||
{
|
||||
// tag=1003
|
||||
::KDDockWidgets::ViewFactory::customEvent(event);
|
||||
}
|
||||
bool ViewFactory_wrapper::event(QEvent *event)
|
||||
{
|
||||
// tag=1000
|
||||
if (m_eventCallback) {
|
||||
// tag=1001
|
||||
const void *thisPtr = this;
|
||||
return m_eventCallback(const_cast<void *>(thisPtr), event);
|
||||
} else {
|
||||
// tag=1002
|
||||
return ::KDDockWidgets::ViewFactory::event(event);
|
||||
}
|
||||
}
|
||||
// tag=1009
|
||||
bool ViewFactory_wrapper::event_nocallback(QEvent *event)
|
||||
{
|
||||
// tag=1003
|
||||
return ::KDDockWidgets::ViewFactory::event(event);
|
||||
}
|
||||
bool ViewFactory_wrapper::eventFilter(QObject *watched, QEvent *event)
|
||||
{
|
||||
// tag=1000
|
||||
if (m_eventFilterCallback) {
|
||||
// tag=1001
|
||||
const void *thisPtr = this;
|
||||
return m_eventFilterCallback(const_cast<void *>(thisPtr), watched, event);
|
||||
} else {
|
||||
// tag=1002
|
||||
return ::KDDockWidgets::ViewFactory::eventFilter(watched, event);
|
||||
}
|
||||
}
|
||||
// tag=1009
|
||||
bool ViewFactory_wrapper::eventFilter_nocallback(QObject *watched, QEvent *event)
|
||||
{
|
||||
// tag=1003
|
||||
return ::KDDockWidgets::ViewFactory::eventFilter(watched, event);
|
||||
}
|
||||
QString ViewFactory_wrapper::tr(const char *s, const char *c, int n)
|
||||
{
|
||||
// tag=1000
|
||||
@@ -103,6 +157,17 @@ void *c_KDDockWidgets__ViewFactory__createRubberBand_View(void *thisObj, void *p
|
||||
[&] {auto targetPtr = fromPtr(thisObj);auto wrapperPtr = dynamic_cast<KDDockWidgetsBindings_wrappersNS::ViewFactory_wrapper*>(targetPtr);if (wrapperPtr) { return wrapperPtr->createRubberBand_nocallback(parent);} else { return targetPtr->createRubberBand(parent);} }();
|
||||
}
|
||||
|
||||
// tag=1050
|
||||
// customEvent(QEvent * event)
|
||||
void c_KDDockWidgets__ViewFactory__customEvent_QEvent(void *thisObj, void *event_)
|
||||
{
|
||||
auto event = reinterpret_cast<QEvent *>(event_);
|
||||
// tag=1011
|
||||
|
||||
// tag=1074
|
||||
fromWrapperPtr(thisObj)->customEvent_nocallback(event);
|
||||
}
|
||||
|
||||
// tag=1079
|
||||
void c_KDDockWidgets__ViewFactory__onDestroyed_QObject(void *thisObj, void *contextQObject, void *callback)
|
||||
{
|
||||
@@ -114,6 +179,27 @@ auto dartCallback = reinterpret_cast<SignalHandler_callback>(callback);
|
||||
dartCallback(thisObj); });
|
||||
}
|
||||
|
||||
// tag=1050
|
||||
// event(QEvent * event)
|
||||
bool c_KDDockWidgets__ViewFactory__event_QEvent(void *thisObj, void *event_)
|
||||
{
|
||||
auto event = reinterpret_cast<QEvent *>(event_);
|
||||
return
|
||||
// tag=1016
|
||||
[&] {auto targetPtr = fromPtr(thisObj);auto wrapperPtr = dynamic_cast<KDDockWidgetsBindings_wrappersNS::ViewFactory_wrapper*>(targetPtr);if (wrapperPtr) { return wrapperPtr->event_nocallback(event);} else { return targetPtr->event(event);} }();
|
||||
}
|
||||
|
||||
// tag=1050
|
||||
// eventFilter(QObject * watched, QEvent * event)
|
||||
bool c_KDDockWidgets__ViewFactory__eventFilter_QObject_QEvent(void *thisObj, void *watched_, void *event_)
|
||||
{
|
||||
auto watched = reinterpret_cast<QObject *>(watched_);
|
||||
auto event = reinterpret_cast<QEvent *>(event_);
|
||||
return
|
||||
// tag=1016
|
||||
[&] {auto targetPtr = fromPtr(thisObj);auto wrapperPtr = dynamic_cast<KDDockWidgetsBindings_wrappersNS::ViewFactory_wrapper*>(targetPtr);if (wrapperPtr) { return wrapperPtr->eventFilter_nocallback(watched,event);} else { return targetPtr->eventFilter(watched,event);} }();
|
||||
}
|
||||
|
||||
// tag=1050
|
||||
// tr(const char * s, const char * c, int n)
|
||||
void *c_static_KDDockWidgets__ViewFactory__tr_char_char_int(const char *s, const char *c, int n)
|
||||
@@ -135,9 +221,18 @@ void c_KDDockWidgets__ViewFactory__registerVirtualMethodCallback(void *ptr, void
|
||||
// tag=1048
|
||||
auto wrapper = fromWrapperPtr(ptr);
|
||||
switch (methodId) {
|
||||
case 574:
|
||||
case 589:
|
||||
wrapper->m_createRubberBandCallback = reinterpret_cast<KDDockWidgetsBindings_wrappersNS::ViewFactory_wrapper::Callback_createRubberBand>(callback);
|
||||
break;
|
||||
case 294:
|
||||
wrapper->m_customEventCallback = reinterpret_cast<KDDockWidgetsBindings_wrappersNS::ViewFactory_wrapper::Callback_customEvent>(callback);
|
||||
break;
|
||||
case 305:
|
||||
wrapper->m_eventCallback = reinterpret_cast<KDDockWidgetsBindings_wrappersNS::ViewFactory_wrapper::Callback_event>(callback);
|
||||
break;
|
||||
case 306:
|
||||
wrapper->m_eventFilterCallback = reinterpret_cast<KDDockWidgetsBindings_wrappersNS::ViewFactory_wrapper::Callback_eventFilter>(callback);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -17,6 +17,7 @@
|
||||
#include <qobject.h>
|
||||
#include <qlist.h>
|
||||
#include <qbytearray.h>
|
||||
#include <qcoreevent.h>
|
||||
|
||||
namespace KDDockWidgetsBindings_wrappersNS {
|
||||
// tag=1017
|
||||
@@ -31,10 +32,31 @@ public:
|
||||
// tag=1008
|
||||
virtual KDDockWidgets::View *createRubberBand_nocallback(KDDockWidgets::View *parent) const;
|
||||
// tag=1041
|
||||
virtual void customEvent(QEvent *event);
|
||||
// tag=1008
|
||||
virtual void customEvent_nocallback(QEvent *event);
|
||||
// tag=1041
|
||||
virtual bool event(QEvent *event);
|
||||
// tag=1008
|
||||
virtual bool event_nocallback(QEvent *event);
|
||||
// tag=1041
|
||||
virtual bool eventFilter(QObject *watched, QEvent *event);
|
||||
// tag=1008
|
||||
virtual bool eventFilter_nocallback(QObject *watched, QEvent *event);
|
||||
// tag=1041
|
||||
static QString tr(const char *s, const char *c, int n);
|
||||
// tag=1042
|
||||
typedef KDDockWidgets::View *(*Callback_createRubberBand)(void *, KDDockWidgets::View *parent);
|
||||
Callback_createRubberBand m_createRubberBandCallback = nullptr;
|
||||
// tag=1042
|
||||
typedef void (*Callback_customEvent)(void *, QEvent *event);
|
||||
Callback_customEvent m_customEventCallback = nullptr;
|
||||
// tag=1042
|
||||
typedef bool (*Callback_event)(void *, QEvent *event);
|
||||
Callback_event m_eventCallback = nullptr;
|
||||
// tag=1042
|
||||
typedef bool (*Callback_eventFilter)(void *, QObject *watched, QEvent *event);
|
||||
Callback_eventFilter m_eventFilterCallback = nullptr;
|
||||
};
|
||||
}
|
||||
extern "C" {
|
||||
@@ -47,6 +69,18 @@ KDDockWidgetsBindings_EXPORT void *c_KDDockWidgets__ViewFactory__constructor();
|
||||
// KDDockWidgets::ViewFactory::createRubberBand(KDDockWidgets::View * parent) const
|
||||
KDDockWidgetsBindings_EXPORT void *c_KDDockWidgets__ViewFactory__createRubberBand_View(void *thisObj, void *parent_);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::ViewFactory::customEvent(QEvent * event)
|
||||
KDDockWidgetsBindings_EXPORT void c_KDDockWidgets__ViewFactory__customEvent_QEvent(void *thisObj, void *event_);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::ViewFactory::event(QEvent * event)
|
||||
KDDockWidgetsBindings_EXPORT bool c_KDDockWidgets__ViewFactory__event_QEvent(void *thisObj, void *event_);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::ViewFactory::eventFilter(QObject * watched, QEvent * event)
|
||||
KDDockWidgetsBindings_EXPORT bool c_KDDockWidgets__ViewFactory__eventFilter_QObject_QEvent(void *thisObj, void *watched_, void *event_);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::ViewFactory::tr(const char * s, const char * c, int n)
|
||||
KDDockWidgetsBindings_EXPORT void *c_static_KDDockWidgets__ViewFactory__tr_char_char_int(const char *s, const char *c, int n);
|
||||
|
||||
@@ -92,6 +92,13 @@ void View_wrapper::closeRootView()
|
||||
// tag=1004
|
||||
::KDDockWidgets::View::closeRootView();
|
||||
}
|
||||
KDDockWidgets::Controller *View_wrapper::controller() const
|
||||
{
|
||||
// tag=1000
|
||||
|
||||
// tag=1004
|
||||
return ::KDDockWidgets::View::controller();
|
||||
}
|
||||
void View_wrapper::createPlatformWindow()
|
||||
{
|
||||
// tag=1000
|
||||
@@ -814,6 +821,28 @@ void View_wrapper::setAboutToBeDestroyed()
|
||||
// tag=1004
|
||||
::KDDockWidgets::View::setAboutToBeDestroyed();
|
||||
}
|
||||
void View_wrapper::setCursor(Qt::CursorShape arg__1)
|
||||
{
|
||||
// tag=1000
|
||||
if (m_setCursorCallback) {
|
||||
// tag=1001
|
||||
const void *thisPtr = this;
|
||||
m_setCursorCallback(const_cast<void *>(thisPtr), arg__1);
|
||||
} else {
|
||||
// tag=1015
|
||||
qWarning() << Q_FUNC_INFO << "Warning: Calling pure-virtual";
|
||||
return;
|
||||
}
|
||||
}
|
||||
// tag=1009
|
||||
void View_wrapper::setCursor_nocallback(Qt::CursorShape arg__1)
|
||||
{
|
||||
// tag=1003
|
||||
|
||||
// tag=1007
|
||||
qWarning() << Q_FUNC_INFO << "Warning: Calling pure-virtual";
|
||||
return;
|
||||
}
|
||||
void View_wrapper::setFixedHeight(int arg__1)
|
||||
{
|
||||
// tag=1000
|
||||
@@ -1381,6 +1410,15 @@ void c_KDDockWidgets__View__closeRootView(void *thisObj)
|
||||
fromPtr(thisObj)->closeRootView();
|
||||
}
|
||||
|
||||
// tag=1050
|
||||
// controller() const
|
||||
void *c_KDDockWidgets__View__controller(void *thisObj)
|
||||
{
|
||||
return
|
||||
// tag=1010
|
||||
fromPtr(thisObj)->controller();
|
||||
}
|
||||
|
||||
// tag=1050
|
||||
// createPlatformWindow()
|
||||
void c_KDDockWidgets__View__createPlatformWindow(void *thisObj)
|
||||
@@ -1813,6 +1851,14 @@ void c_KDDockWidgets__View__setAboutToBeDestroyed(void *thisObj)
|
||||
fromPtr(thisObj)->setAboutToBeDestroyed();
|
||||
}
|
||||
|
||||
// tag=1050
|
||||
// setCursor(Qt::CursorShape arg__1)
|
||||
void c_KDDockWidgets__View__setCursor_CursorShape(void *thisObj, int arg__1)
|
||||
{
|
||||
// tag=1016
|
||||
[&] {auto targetPtr = fromPtr(thisObj);auto wrapperPtr = dynamic_cast<KDDockWidgetsBindings_wrappersNS::View_wrapper*>(targetPtr);if (wrapperPtr) { return wrapperPtr->setCursor_nocallback(static_cast<Qt::CursorShape>(arg__1));} else { return targetPtr->setCursor(static_cast<Qt::CursorShape>(arg__1));} }();
|
||||
}
|
||||
|
||||
// tag=1050
|
||||
// setFixedHeight(int arg__1)
|
||||
void c_KDDockWidgets__View__setFixedHeight_int(void *thisObj, int arg__1)
|
||||
@@ -2058,160 +2104,163 @@ void c_KDDockWidgets__View__registerVirtualMethodCallback(void *ptr, void *callb
|
||||
// tag=1048
|
||||
auto wrapper = fromWrapperPtr(ptr);
|
||||
switch (methodId) {
|
||||
case 602:
|
||||
case 694:
|
||||
wrapper->m_activateWindowCallback = reinterpret_cast<KDDockWidgetsBindings_wrappersNS::View_wrapper::Callback_activateWindow>(callback);
|
||||
break;
|
||||
case 604:
|
||||
case 696:
|
||||
wrapper->m_closeCallback = reinterpret_cast<KDDockWidgetsBindings_wrappersNS::View_wrapper::Callback_close>(callback);
|
||||
break;
|
||||
case 606:
|
||||
case 699:
|
||||
wrapper->m_createPlatformWindowCallback = reinterpret_cast<KDDockWidgetsBindings_wrappersNS::View_wrapper::Callback_createPlatformWindow>(callback);
|
||||
break;
|
||||
case 610:
|
||||
case 703:
|
||||
wrapper->m_free_implCallback = reinterpret_cast<KDDockWidgetsBindings_wrappersNS::View_wrapper::Callback_free_impl>(callback);
|
||||
break;
|
||||
case 612:
|
||||
case 705:
|
||||
wrapper->m_geometryCallback = reinterpret_cast<KDDockWidgetsBindings_wrappersNS::View_wrapper::Callback_geometry>(callback);
|
||||
break;
|
||||
case 614:
|
||||
case 707:
|
||||
wrapper->m_grabMouseCallback = reinterpret_cast<KDDockWidgetsBindings_wrappersNS::View_wrapper::Callback_grabMouse>(callback);
|
||||
break;
|
||||
case 617:
|
||||
case 710:
|
||||
wrapper->m_hasFocusCallback = reinterpret_cast<KDDockWidgetsBindings_wrappersNS::View_wrapper::Callback_hasFocus>(callback);
|
||||
break;
|
||||
case 619:
|
||||
case 712:
|
||||
wrapper->m_hideCallback = reinterpret_cast<KDDockWidgetsBindings_wrappersNS::View_wrapper::Callback_hide>(callback);
|
||||
break;
|
||||
case 622:
|
||||
case 715:
|
||||
wrapper->m_initCallback = reinterpret_cast<KDDockWidgetsBindings_wrappersNS::View_wrapper::Callback_init>(callback);
|
||||
break;
|
||||
case 623:
|
||||
case 716:
|
||||
wrapper->m_isActiveWindowCallback = reinterpret_cast<KDDockWidgetsBindings_wrappersNS::View_wrapper::Callback_isActiveWindow>(callback);
|
||||
break;
|
||||
case 624:
|
||||
case 717:
|
||||
wrapper->m_isMaximizedCallback = reinterpret_cast<KDDockWidgetsBindings_wrappersNS::View_wrapper::Callback_isMaximized>(callback);
|
||||
break;
|
||||
case 625:
|
||||
case 718:
|
||||
wrapper->m_isMinimizedCallback = reinterpret_cast<KDDockWidgetsBindings_wrappersNS::View_wrapper::Callback_isMinimized>(callback);
|
||||
break;
|
||||
case 626:
|
||||
case 719:
|
||||
wrapper->m_isNullCallback = reinterpret_cast<KDDockWidgetsBindings_wrappersNS::View_wrapper::Callback_isNull>(callback);
|
||||
break;
|
||||
case 627:
|
||||
case 720:
|
||||
wrapper->m_isRootViewCallback = reinterpret_cast<KDDockWidgetsBindings_wrappersNS::View_wrapper::Callback_isRootView>(callback);
|
||||
break;
|
||||
case 628:
|
||||
case 721:
|
||||
wrapper->m_isVisibleCallback = reinterpret_cast<KDDockWidgetsBindings_wrappersNS::View_wrapper::Callback_isVisible>(callback);
|
||||
break;
|
||||
case 629:
|
||||
case 722:
|
||||
wrapper->m_mapFromGlobalCallback = reinterpret_cast<KDDockWidgetsBindings_wrappersNS::View_wrapper::Callback_mapFromGlobal>(callback);
|
||||
break;
|
||||
case 630:
|
||||
case 723:
|
||||
wrapper->m_mapToCallback = reinterpret_cast<KDDockWidgetsBindings_wrappersNS::View_wrapper::Callback_mapTo>(callback);
|
||||
break;
|
||||
case 631:
|
||||
case 724:
|
||||
wrapper->m_mapToGlobalCallback = reinterpret_cast<KDDockWidgetsBindings_wrappersNS::View_wrapper::Callback_mapToGlobal>(callback);
|
||||
break;
|
||||
case 632:
|
||||
case 725:
|
||||
wrapper->m_maxSizeHintCallback = reinterpret_cast<KDDockWidgetsBindings_wrappersNS::View_wrapper::Callback_maxSizeHint>(callback);
|
||||
break;
|
||||
case 633:
|
||||
case 726:
|
||||
wrapper->m_maximumSizeCallback = reinterpret_cast<KDDockWidgetsBindings_wrappersNS::View_wrapper::Callback_maximumSize>(callback);
|
||||
break;
|
||||
case 634:
|
||||
case 727:
|
||||
wrapper->m_minSizeCallback = reinterpret_cast<KDDockWidgetsBindings_wrappersNS::View_wrapper::Callback_minSize>(callback);
|
||||
break;
|
||||
case 635:
|
||||
case 728:
|
||||
wrapper->m_minimumHeightCallback = reinterpret_cast<KDDockWidgetsBindings_wrappersNS::View_wrapper::Callback_minimumHeight>(callback);
|
||||
break;
|
||||
case 636:
|
||||
case 729:
|
||||
wrapper->m_minimumWidthCallback = reinterpret_cast<KDDockWidgetsBindings_wrappersNS::View_wrapper::Callback_minimumWidth>(callback);
|
||||
break;
|
||||
case 638:
|
||||
case 731:
|
||||
wrapper->m_move_2Callback = reinterpret_cast<KDDockWidgetsBindings_wrappersNS::View_wrapper::Callback_move_2>(callback);
|
||||
break;
|
||||
case 639:
|
||||
case 732:
|
||||
wrapper->m_normalGeometryCallback = reinterpret_cast<KDDockWidgetsBindings_wrappersNS::View_wrapper::Callback_normalGeometry>(callback);
|
||||
break;
|
||||
case 640:
|
||||
case 733:
|
||||
wrapper->m_objectNameCallback = reinterpret_cast<KDDockWidgetsBindings_wrappersNS::View_wrapper::Callback_objectName>(callback);
|
||||
break;
|
||||
case 641:
|
||||
case 734:
|
||||
wrapper->m_onResizeCallback = reinterpret_cast<KDDockWidgetsBindings_wrappersNS::View_wrapper::Callback_onResize>(callback);
|
||||
break;
|
||||
case 644:
|
||||
case 737:
|
||||
wrapper->m_raiseCallback = reinterpret_cast<KDDockWidgetsBindings_wrappersNS::View_wrapper::Callback_raise>(callback);
|
||||
break;
|
||||
case 645:
|
||||
case 738:
|
||||
wrapper->m_raiseAndActivateCallback = reinterpret_cast<KDDockWidgetsBindings_wrappersNS::View_wrapper::Callback_raiseAndActivate>(callback);
|
||||
break;
|
||||
case 647:
|
||||
case 740:
|
||||
wrapper->m_releaseKeyboardCallback = reinterpret_cast<KDDockWidgetsBindings_wrappersNS::View_wrapper::Callback_releaseKeyboard>(callback);
|
||||
break;
|
||||
case 648:
|
||||
case 741:
|
||||
wrapper->m_releaseMouseCallback = reinterpret_cast<KDDockWidgetsBindings_wrappersNS::View_wrapper::Callback_releaseMouse>(callback);
|
||||
break;
|
||||
case 652:
|
||||
case 745:
|
||||
wrapper->m_setCursorCallback = reinterpret_cast<KDDockWidgetsBindings_wrappersNS::View_wrapper::Callback_setCursor>(callback);
|
||||
break;
|
||||
case 746:
|
||||
wrapper->m_setFixedHeightCallback = reinterpret_cast<KDDockWidgetsBindings_wrappersNS::View_wrapper::Callback_setFixedHeight>(callback);
|
||||
break;
|
||||
case 653:
|
||||
case 747:
|
||||
wrapper->m_setFixedWidthCallback = reinterpret_cast<KDDockWidgetsBindings_wrappersNS::View_wrapper::Callback_setFixedWidth>(callback);
|
||||
break;
|
||||
case 654:
|
||||
case 748:
|
||||
wrapper->m_setGeometryCallback = reinterpret_cast<KDDockWidgetsBindings_wrappersNS::View_wrapper::Callback_setGeometry>(callback);
|
||||
break;
|
||||
case 655:
|
||||
case 749:
|
||||
wrapper->m_setHeightCallback = reinterpret_cast<KDDockWidgetsBindings_wrappersNS::View_wrapper::Callback_setHeight>(callback);
|
||||
break;
|
||||
case 656:
|
||||
case 750:
|
||||
wrapper->m_setMaximumSizeCallback = reinterpret_cast<KDDockWidgetsBindings_wrappersNS::View_wrapper::Callback_setMaximumSize>(callback);
|
||||
break;
|
||||
case 657:
|
||||
case 751:
|
||||
wrapper->m_setMinimumSizeCallback = reinterpret_cast<KDDockWidgetsBindings_wrappersNS::View_wrapper::Callback_setMinimumSize>(callback);
|
||||
break;
|
||||
case 658:
|
||||
case 752:
|
||||
wrapper->m_setMouseTrackingCallback = reinterpret_cast<KDDockWidgetsBindings_wrappersNS::View_wrapper::Callback_setMouseTracking>(callback);
|
||||
break;
|
||||
case 659:
|
||||
case 753:
|
||||
wrapper->m_setObjectNameCallback = reinterpret_cast<KDDockWidgetsBindings_wrappersNS::View_wrapper::Callback_setObjectName>(callback);
|
||||
break;
|
||||
case 660:
|
||||
case 754:
|
||||
wrapper->m_setParentCallback = reinterpret_cast<KDDockWidgetsBindings_wrappersNS::View_wrapper::Callback_setParent>(callback);
|
||||
break;
|
||||
case 662:
|
||||
case 756:
|
||||
wrapper->m_setSize_2Callback = reinterpret_cast<KDDockWidgetsBindings_wrappersNS::View_wrapper::Callback_setSize_2>(callback);
|
||||
break;
|
||||
case 663:
|
||||
case 757:
|
||||
wrapper->m_setVisibleCallback = reinterpret_cast<KDDockWidgetsBindings_wrappersNS::View_wrapper::Callback_setVisible>(callback);
|
||||
break;
|
||||
case 664:
|
||||
case 758:
|
||||
wrapper->m_setWidthCallback = reinterpret_cast<KDDockWidgetsBindings_wrappersNS::View_wrapper::Callback_setWidth>(callback);
|
||||
break;
|
||||
case 665:
|
||||
case 759:
|
||||
wrapper->m_setWindowOpacityCallback = reinterpret_cast<KDDockWidgetsBindings_wrappersNS::View_wrapper::Callback_setWindowOpacity>(callback);
|
||||
break;
|
||||
case 666:
|
||||
case 760:
|
||||
wrapper->m_setWindowTitleCallback = reinterpret_cast<KDDockWidgetsBindings_wrappersNS::View_wrapper::Callback_setWindowTitle>(callback);
|
||||
break;
|
||||
case 667:
|
||||
case 761:
|
||||
wrapper->m_setZOrderCallback = reinterpret_cast<KDDockWidgetsBindings_wrappersNS::View_wrapper::Callback_setZOrder>(callback);
|
||||
break;
|
||||
case 668:
|
||||
case 762:
|
||||
wrapper->m_showCallback = reinterpret_cast<KDDockWidgetsBindings_wrappersNS::View_wrapper::Callback_show>(callback);
|
||||
break;
|
||||
case 669:
|
||||
case 763:
|
||||
wrapper->m_showMaximizedCallback = reinterpret_cast<KDDockWidgetsBindings_wrappersNS::View_wrapper::Callback_showMaximized>(callback);
|
||||
break;
|
||||
case 670:
|
||||
case 764:
|
||||
wrapper->m_showMinimizedCallback = reinterpret_cast<KDDockWidgetsBindings_wrappersNS::View_wrapper::Callback_showMinimized>(callback);
|
||||
break;
|
||||
case 671:
|
||||
case 765:
|
||||
wrapper->m_showNormalCallback = reinterpret_cast<KDDockWidgetsBindings_wrappersNS::View_wrapper::Callback_showNormal>(callback);
|
||||
break;
|
||||
case 673:
|
||||
case 767:
|
||||
wrapper->m_sizeHintCallback = reinterpret_cast<KDDockWidgetsBindings_wrappersNS::View_wrapper::Callback_sizeHint>(callback);
|
||||
break;
|
||||
case 674:
|
||||
case 768:
|
||||
wrapper->m_updateCallback = reinterpret_cast<KDDockWidgetsBindings_wrappersNS::View_wrapper::Callback_update>(callback);
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -16,6 +16,7 @@
|
||||
#include <qrect.h>
|
||||
#include <qpoint.h>
|
||||
#include <qstring.h>
|
||||
#include <Controller.h>
|
||||
|
||||
namespace KDDockWidgetsBindings_wrappersNS {
|
||||
// tag=1017
|
||||
@@ -38,6 +39,8 @@ public:
|
||||
// tag=1041
|
||||
void closeRootView();
|
||||
// tag=1041
|
||||
KDDockWidgets::Controller *controller() const;
|
||||
// tag=1041
|
||||
virtual void createPlatformWindow();
|
||||
// tag=1008
|
||||
virtual void createPlatformWindow_nocallback();
|
||||
@@ -186,6 +189,10 @@ public:
|
||||
// tag=1041
|
||||
void setAboutToBeDestroyed();
|
||||
// tag=1041
|
||||
virtual void setCursor(Qt::CursorShape arg__1);
|
||||
// tag=1008
|
||||
virtual void setCursor_nocallback(Qt::CursorShape arg__1);
|
||||
// tag=1041
|
||||
virtual void setFixedHeight(int arg__1);
|
||||
// tag=1008
|
||||
virtual void setFixedHeight_nocallback(int arg__1);
|
||||
@@ -375,6 +382,9 @@ public:
|
||||
typedef void (*Callback_releaseMouse)(void *);
|
||||
Callback_releaseMouse m_releaseMouseCallback = nullptr;
|
||||
// tag=1042
|
||||
typedef void (*Callback_setCursor)(void *, Qt::CursorShape arg__1);
|
||||
Callback_setCursor m_setCursorCallback = nullptr;
|
||||
// tag=1042
|
||||
typedef void (*Callback_setFixedHeight)(void *, int arg__1);
|
||||
Callback_setFixedHeight m_setFixedHeightCallback = nullptr;
|
||||
// tag=1042
|
||||
@@ -461,6 +471,10 @@ KDDockWidgetsBindings_EXPORT bool c_KDDockWidgets__View__close(void *thisObj);
|
||||
// KDDockWidgets::View::closeRootView()
|
||||
KDDockWidgetsBindings_EXPORT void c_KDDockWidgets__View__closeRootView(void *thisObj);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::View::controller() const
|
||||
KDDockWidgetsBindings_EXPORT void *c_KDDockWidgets__View__controller(void *thisObj);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::View::createPlatformWindow()
|
||||
KDDockWidgetsBindings_EXPORT void c_KDDockWidgets__View__createPlatformWindow(void *thisObj);
|
||||
@@ -641,6 +655,10 @@ KDDockWidgetsBindings_EXPORT void c_KDDockWidgets__View__resize_int_int(void *th
|
||||
// KDDockWidgets::View::setAboutToBeDestroyed()
|
||||
KDDockWidgetsBindings_EXPORT void c_KDDockWidgets__View__setAboutToBeDestroyed(void *thisObj);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::View::setCursor(Qt::CursorShape arg__1)
|
||||
KDDockWidgetsBindings_EXPORT void c_KDDockWidgets__View__setCursor_CursorShape(void *thisObj, int arg__1);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::View::setFixedHeight(int arg__1)
|
||||
KDDockWidgetsBindings_EXPORT void c_KDDockWidgets__View__setFixedHeight_int(void *thisObj, int arg__1);
|
||||
|
||||
@@ -12,6 +12,12 @@
|
||||
#include <QtCore/qglobal.h>
|
||||
|
||||
|
||||
// tag=1067
|
||||
// Qt::qt_getEnumName(Qt::CursorShape arg__1)
|
||||
const char *c_static_Qt__qt_getEnumName_CursorShape(int arg__1);
|
||||
|
||||
// tag=1047
|
||||
void c_Qt_Finalizer(void *, void *cppObj, void *);
|
||||
// tag=1067
|
||||
// QString::QString()
|
||||
void *c_QString__constructor();
|
||||
@@ -724,6 +730,10 @@ bool c_QObject__blockSignals_bool(void *thisObj, bool b);
|
||||
// QObject::children() const
|
||||
void *c_QObject__children(void *thisObj);
|
||||
|
||||
// tag=1067
|
||||
// QObject::customEvent(QEvent * event)
|
||||
void c_QObject__customEvent_QEvent(void *thisObj, void *event_);
|
||||
|
||||
// tag=1067
|
||||
// QObject::deleteLater()
|
||||
void c_QObject__deleteLater(void *thisObj);
|
||||
@@ -758,6 +768,14 @@ void c_QObject__dumpObjectTree(void *thisObj);
|
||||
// QObject::dynamicPropertyNames() const
|
||||
void *c_QObject__dynamicPropertyNames(void *thisObj);
|
||||
|
||||
// tag=1067
|
||||
// QObject::event(QEvent * event)
|
||||
bool c_QObject__event_QEvent(void *thisObj, void *event_);
|
||||
|
||||
// tag=1067
|
||||
// QObject::eventFilter(QObject * watched, QEvent * event)
|
||||
bool c_QObject__eventFilter_QObject_QEvent(void *thisObj, void *watched_, void *event_);
|
||||
|
||||
// tag=1067
|
||||
// QObject::inherits(const char * classname) const
|
||||
bool c_QObject__inherits_char(void *thisObj, const char *classname);
|
||||
@@ -1224,6 +1242,45 @@ void c_QList_T_QByteArray_T___destructor(void *thisObj);
|
||||
// tag=1047
|
||||
void c_QList_T_QByteArray_T__Finalizer(void *, void *cppObj, void *);
|
||||
// tag=1067
|
||||
// QEvent::QEvent(QEvent::Type type)
|
||||
void *c_QEvent__constructor_Type(int type);
|
||||
|
||||
// tag=1067
|
||||
// QEvent::accept()
|
||||
void c_QEvent__accept(void *thisObj);
|
||||
|
||||
// tag=1067
|
||||
// QEvent::ignore()
|
||||
void c_QEvent__ignore(void *thisObj);
|
||||
|
||||
// tag=1067
|
||||
// QEvent::isAccepted() const
|
||||
bool c_QEvent__isAccepted(void *thisObj);
|
||||
|
||||
// tag=1067
|
||||
// QEvent::registerEventType(int hint)
|
||||
int c_static_QEvent__registerEventType_int(int hint);
|
||||
|
||||
// tag=1067
|
||||
// QEvent::setAccepted(bool accepted)
|
||||
void c_QEvent__setAccepted_bool(void *thisObj, bool accepted);
|
||||
|
||||
// tag=1067
|
||||
// QEvent::spontaneous() const
|
||||
bool c_QEvent__spontaneous(void *thisObj);
|
||||
|
||||
// tag=1067
|
||||
// QEvent::type() const
|
||||
int c_QEvent__type(void *thisObj);
|
||||
|
||||
// tag=1066
|
||||
void c_QEvent__destructor(void *thisObj);
|
||||
|
||||
// tag=1046
|
||||
void c_QEvent__registerVirtualMethodCallback(void *ptr, void *callback, int methodId);
|
||||
// tag=1047
|
||||
void c_QEvent_Finalizer(void *, void *cppObj, void *);
|
||||
// tag=1067
|
||||
// QByteArray::QByteArray()
|
||||
void *c_QByteArray__constructor();
|
||||
|
||||
@@ -1582,6 +1639,18 @@ void *c_KDDockWidgets__ViewFactory__constructor();
|
||||
// KDDockWidgets::ViewFactory::createRubberBand(KDDockWidgets::View * parent) const
|
||||
void *c_KDDockWidgets__ViewFactory__createRubberBand_View(void *thisObj, void *parent_);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::ViewFactory::customEvent(QEvent * event)
|
||||
void c_KDDockWidgets__ViewFactory__customEvent_QEvent(void *thisObj, void *event_);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::ViewFactory::event(QEvent * event)
|
||||
bool c_KDDockWidgets__ViewFactory__event_QEvent(void *thisObj, void *event_);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::ViewFactory::eventFilter(QObject * watched, QEvent * event)
|
||||
bool c_KDDockWidgets__ViewFactory__eventFilter_QObject_QEvent(void *thisObj, void *watched_, void *event_);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::ViewFactory::tr(const char * s, const char * c, int n)
|
||||
void *c_static_KDDockWidgets__ViewFactory__tr_char_char_int(const char *s, const char *c, int n);
|
||||
@@ -1594,6 +1663,230 @@ void c_KDDockWidgets__ViewFactory__registerVirtualMethodCallback(void *ptr, void
|
||||
// tag=1047
|
||||
void c_KDDockWidgets__ViewFactory_Finalizer(void *, void *cppObj, void *);
|
||||
// tag=1067
|
||||
// KDDockWidgets::Platform_flutter::Platform_flutter()
|
||||
void *c_KDDockWidgets__Platform_flutter__constructor();
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::Platform_flutter::applicationName() const
|
||||
void *c_KDDockWidgets__Platform_flutter__applicationName(void *thisObj);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::Platform_flutter::createDefaultViewFactory()
|
||||
void *c_KDDockWidgets__Platform_flutter__createDefaultViewFactory(void *thisObj);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::Platform_flutter::createView(KDDockWidgets::Controller * controller, KDDockWidgets::View * parent) const
|
||||
void *c_KDDockWidgets__Platform_flutter__createView_Controller_View(void *thisObj, void *controller_, void *parent_);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::Platform_flutter::hasActivePopup() const
|
||||
bool c_KDDockWidgets__Platform_flutter__hasActivePopup(void *thisObj);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::Platform_flutter::inDisallowedDragView(QPoint globalPos) const
|
||||
bool c_KDDockWidgets__Platform_flutter__inDisallowedDragView_QPoint(void *thisObj, void *globalPos_);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::Platform_flutter::init()
|
||||
void c_KDDockWidgets__Platform_flutter__init(void *thisObj);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::Platform_flutter::installMessageHandler()
|
||||
void c_KDDockWidgets__Platform_flutter__installMessageHandler(void *thisObj);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::Platform_flutter::isLeftMouseButtonPressed() const
|
||||
bool c_KDDockWidgets__Platform_flutter__isLeftMouseButtonPressed(void *thisObj);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::Platform_flutter::isProcessingAppQuitEvent() const
|
||||
bool c_KDDockWidgets__Platform_flutter__isProcessingAppQuitEvent(void *thisObj);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::Platform_flutter::name() const
|
||||
const char *c_KDDockWidgets__Platform_flutter__name(void *thisObj);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::Platform_flutter::organizationName() const
|
||||
void *c_KDDockWidgets__Platform_flutter__organizationName(void *thisObj);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::Platform_flutter::restoreMouseCursor()
|
||||
void c_KDDockWidgets__Platform_flutter__restoreMouseCursor(void *thisObj);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::Platform_flutter::screenNumberFor(KDDockWidgets::View * arg__1) const
|
||||
int c_KDDockWidgets__Platform_flutter__screenNumberFor_View(void *thisObj, void *arg__1_);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::Platform_flutter::screenSizeFor(KDDockWidgets::View * arg__1) const
|
||||
void *c_KDDockWidgets__Platform_flutter__screenSizeFor_View(void *thisObj, void *arg__1_);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::Platform_flutter::sendEvent(KDDockWidgets::View * arg__1, QEvent * arg__2) const
|
||||
void c_KDDockWidgets__Platform_flutter__sendEvent_View_QEvent(void *thisObj, void *arg__1_, void *arg__2_);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::Platform_flutter::setMouseCursor(Qt::CursorShape arg__1)
|
||||
void c_KDDockWidgets__Platform_flutter__setMouseCursor_CursorShape(void *thisObj, int arg__1);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::Platform_flutter::tests_createNonClosableView(KDDockWidgets::View * parent)
|
||||
void *c_KDDockWidgets__Platform_flutter__tests_createNonClosableView_View(void *thisObj, void *parent_);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::Platform_flutter::tests_deinitPlatform_impl()
|
||||
void c_KDDockWidgets__Platform_flutter__tests_deinitPlatform_impl(void *thisObj);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::Platform_flutter::tests_initPlatform_impl()
|
||||
void c_KDDockWidgets__Platform_flutter__tests_initPlatform_impl(void *thisObj);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::Platform_flutter::tests_wait(int ms)
|
||||
void c_KDDockWidgets__Platform_flutter__tests_wait_int(void *thisObj, int ms);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::Platform_flutter::tests_waitForDeleted(KDDockWidgets::View * arg__1, int timeout) const
|
||||
bool c_KDDockWidgets__Platform_flutter__tests_waitForDeleted_View_int(void *thisObj, void *arg__1_, int timeout);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::Platform_flutter::tests_waitForDeleted(QObject * arg__1, int timeout) const
|
||||
bool c_KDDockWidgets__Platform_flutter__tests_waitForDeleted_QObject_int(void *thisObj, void *arg__1_, int timeout);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::Platform_flutter::tests_waitForEvent(KDDockWidgets::View * arg__1, QEvent::Type type, int timeout) const
|
||||
bool c_KDDockWidgets__Platform_flutter__tests_waitForEvent_View_Type_int(void *thisObj, void *arg__1_, int type, int timeout);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::Platform_flutter::tests_waitForEvent(QObject * w, QEvent::Type type, int timeout) const
|
||||
bool c_KDDockWidgets__Platform_flutter__tests_waitForEvent_QObject_Type_int(void *thisObj, void *w_, int type, int timeout);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::Platform_flutter::tests_waitForResize(KDDockWidgets::Controller * arg__1, int timeout) const
|
||||
bool c_KDDockWidgets__Platform_flutter__tests_waitForResize_Controller_int(void *thisObj, void *arg__1_, int timeout);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::Platform_flutter::tests_waitForResize(KDDockWidgets::View * arg__1, int timeout) const
|
||||
bool c_KDDockWidgets__Platform_flutter__tests_waitForResize_View_int(void *thisObj, void *arg__1_, int timeout);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::Platform_flutter::ungrabMouse()
|
||||
void c_KDDockWidgets__Platform_flutter__ungrabMouse(void *thisObj);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::Platform_flutter::uninstallMessageHandler()
|
||||
void c_KDDockWidgets__Platform_flutter__uninstallMessageHandler(void *thisObj);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::Platform_flutter::usesFallbackMouseGrabber() const
|
||||
bool c_KDDockWidgets__Platform_flutter__usesFallbackMouseGrabber(void *thisObj);
|
||||
|
||||
// tag=1066
|
||||
void c_KDDockWidgets__Platform_flutter__destructor(void *thisObj);
|
||||
|
||||
// tag=1046
|
||||
void c_KDDockWidgets__Platform_flutter__registerVirtualMethodCallback(void *ptr, void *callback, int methodId);
|
||||
// tag=1047
|
||||
void c_KDDockWidgets__Platform_flutter_Finalizer(void *, void *cppObj, void *);
|
||||
// tag=1067
|
||||
// KDDockWidgets::Controller::close()
|
||||
bool c_KDDockWidgets__Controller__close(void *thisObj);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::Controller::customEvent(QEvent * event)
|
||||
void c_KDDockWidgets__Controller__customEvent_QEvent(void *thisObj, void *event_);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::Controller::event(QEvent * event)
|
||||
bool c_KDDockWidgets__Controller__event_QEvent(void *thisObj, void *event_);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::Controller::eventFilter(QObject * watched, QEvent * event)
|
||||
bool c_KDDockWidgets__Controller__eventFilter_QObject_QEvent(void *thisObj, void *watched_, void *event_);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::Controller::geometry() const
|
||||
void *c_KDDockWidgets__Controller__geometry(void *thisObj);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::Controller::height() const
|
||||
int c_KDDockWidgets__Controller__height(void *thisObj);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::Controller::inDtor() const
|
||||
bool c_KDDockWidgets__Controller__inDtor(void *thisObj);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::Controller::isVisible() const
|
||||
bool c_KDDockWidgets__Controller__isVisible(void *thisObj);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::Controller::mapToGlobal(QPoint arg__1) const
|
||||
void *c_KDDockWidgets__Controller__mapToGlobal_QPoint(void *thisObj, void *arg__1_);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::Controller::parentViewChanged(KDDockWidgets::View * parent)
|
||||
void c_KDDockWidgets__Controller__parentViewChanged_View(void *thisObj, void *parent_);
|
||||
|
||||
// tag=1078
|
||||
void c_KDDockWidgets__Controller__onParentViewChanged_View(void *thisObj, void *contextQObject, void *callback);
|
||||
// tag=1067
|
||||
// KDDockWidgets::Controller::pos() const
|
||||
void *c_KDDockWidgets__Controller__pos(void *thisObj);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::Controller::rect() const
|
||||
void *c_KDDockWidgets__Controller__rect(void *thisObj);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::Controller::setParentView(KDDockWidgets::View * parent)
|
||||
void c_KDDockWidgets__Controller__setParentView_View(void *thisObj, void *parent_);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::Controller::setParentView_impl(KDDockWidgets::View * parent)
|
||||
void c_KDDockWidgets__Controller__setParentView_impl_View(void *thisObj, void *parent_);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::Controller::setVisible(bool arg__1)
|
||||
void c_KDDockWidgets__Controller__setVisible_bool(void *thisObj, bool arg__1);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::Controller::show() const
|
||||
void c_KDDockWidgets__Controller__show(void *thisObj);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::Controller::size() const
|
||||
void *c_KDDockWidgets__Controller__size(void *thisObj);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::Controller::tr(const char * s, const char * c, int n)
|
||||
void *c_static_KDDockWidgets__Controller__tr_char_char_int(const char *s, const char *c, int n);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::Controller::view() const
|
||||
void *c_KDDockWidgets__Controller__view(void *thisObj);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::Controller::width() const
|
||||
int c_KDDockWidgets__Controller__width(void *thisObj);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::Controller::x() const
|
||||
int c_KDDockWidgets__Controller__x(void *thisObj);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::Controller::y() const
|
||||
int c_KDDockWidgets__Controller__y(void *thisObj);
|
||||
|
||||
// tag=1066
|
||||
void c_KDDockWidgets__Controller__destructor(void *thisObj);
|
||||
|
||||
// tag=1046
|
||||
void c_KDDockWidgets__Controller__registerVirtualMethodCallback(void *ptr, void *callback, int methodId);
|
||||
// tag=1047
|
||||
void c_KDDockWidgets__Controller_Finalizer(void *, void *cppObj, void *);
|
||||
// tag=1067
|
||||
// KDDockWidgets::View::aboutToBeDestroyed() const
|
||||
bool c_KDDockWidgets__View__aboutToBeDestroyed(void *thisObj);
|
||||
|
||||
@@ -1613,6 +1906,10 @@ bool c_KDDockWidgets__View__close(void *thisObj);
|
||||
// KDDockWidgets::View::closeRootView()
|
||||
void c_KDDockWidgets__View__closeRootView(void *thisObj);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::View::controller() const
|
||||
void *c_KDDockWidgets__View__controller(void *thisObj);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::View::createPlatformWindow()
|
||||
void c_KDDockWidgets__View__createPlatformWindow(void *thisObj);
|
||||
@@ -1793,6 +2090,10 @@ void c_KDDockWidgets__View__resize_int_int(void *thisObj, int w, int h);
|
||||
// KDDockWidgets::View::setAboutToBeDestroyed()
|
||||
void c_KDDockWidgets__View__setAboutToBeDestroyed(void *thisObj);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::View::setCursor(Qt::CursorShape arg__1)
|
||||
void c_KDDockWidgets__View__setCursor_CursorShape(void *thisObj, int arg__1);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::View::setFixedHeight(int arg__1)
|
||||
void c_KDDockWidgets__View__setFixedHeight_int(void *thisObj, int arg__1);
|
||||
@@ -1908,132 +2209,3 @@ void c_KDDockWidgets__View__destructor(void *thisObj);
|
||||
void c_KDDockWidgets__View__registerVirtualMethodCallback(void *ptr, void *callback, int methodId);
|
||||
// tag=1047
|
||||
void c_KDDockWidgets__View_Finalizer(void *, void *cppObj, void *);
|
||||
// tag=1067
|
||||
// KDDockWidgets::Platform::Platform()
|
||||
void *c_KDDockWidgets__Platform__constructor();
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::Platform::applicationName() const
|
||||
void *c_KDDockWidgets__Platform__applicationName(void *thisObj);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::Platform::createDefaultViewFactory()
|
||||
void *c_KDDockWidgets__Platform__createDefaultViewFactory(void *thisObj);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::Platform::hasActivePopup() const
|
||||
bool c_KDDockWidgets__Platform__hasActivePopup(void *thisObj);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::Platform::inDisallowedDragView(QPoint globalPos) const
|
||||
bool c_KDDockWidgets__Platform__inDisallowedDragView_QPoint(void *thisObj, void *globalPos_);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::Platform::installMessageHandler()
|
||||
void c_KDDockWidgets__Platform__installMessageHandler(void *thisObj);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::Platform::instance()
|
||||
void *c_static_KDDockWidgets__Platform__instance();
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::Platform::isLeftMouseButtonPressed() const
|
||||
bool c_KDDockWidgets__Platform__isLeftMouseButtonPressed(void *thisObj);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::Platform::isProcessingAppQuitEvent() const
|
||||
bool c_KDDockWidgets__Platform__isProcessingAppQuitEvent(void *thisObj);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::Platform::isQtQuick() const
|
||||
bool c_KDDockWidgets__Platform__isQtQuick(void *thisObj);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::Platform::isQtWidgets() const
|
||||
bool c_KDDockWidgets__Platform__isQtWidgets(void *thisObj);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::Platform::name() const
|
||||
const char *c_KDDockWidgets__Platform__name(void *thisObj);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::Platform::organizationName() const
|
||||
void *c_KDDockWidgets__Platform__organizationName(void *thisObj);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::Platform::restoreMouseCursor()
|
||||
void c_KDDockWidgets__Platform__restoreMouseCursor(void *thisObj);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::Platform::screenNumberFor(KDDockWidgets::View * arg__1) const
|
||||
int c_KDDockWidgets__Platform__screenNumberFor_View(void *thisObj, void *arg__1_);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::Platform::screenSizeFor(KDDockWidgets::View * arg__1) const
|
||||
void *c_KDDockWidgets__Platform__screenSizeFor_View(void *thisObj, void *arg__1_);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::Platform::startDragDistance() const
|
||||
int c_KDDockWidgets__Platform__startDragDistance(void *thisObj);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::Platform::startDragDistance_impl() const
|
||||
int c_KDDockWidgets__Platform__startDragDistance_impl(void *thisObj);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::Platform::tests_createNonClosableView(KDDockWidgets::View * parent)
|
||||
void *c_KDDockWidgets__Platform__tests_createNonClosableView_View(void *thisObj, void *parent_);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::Platform::tests_deinitPlatform()
|
||||
void c_static_KDDockWidgets__Platform__tests_deinitPlatform();
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::Platform::tests_deinitPlatform_impl()
|
||||
void c_KDDockWidgets__Platform__tests_deinitPlatform_impl(void *thisObj);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::Platform::tests_initPlatform_impl()
|
||||
void c_KDDockWidgets__Platform__tests_initPlatform_impl(void *thisObj);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::Platform::tests_wait(int ms)
|
||||
void c_KDDockWidgets__Platform__tests_wait_int(void *thisObj, int ms);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::Platform::tests_waitForDeleted(KDDockWidgets::View * arg__1, int timeout) const
|
||||
bool c_KDDockWidgets__Platform__tests_waitForDeleted_View_int(void *thisObj, void *arg__1_, int timeout);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::Platform::tests_waitForDeleted(QObject * arg__1, int timeout) const
|
||||
bool c_KDDockWidgets__Platform__tests_waitForDeleted_QObject_int(void *thisObj, void *arg__1_, int timeout);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::Platform::tests_waitForResize(KDDockWidgets::View * arg__1, int timeout) const
|
||||
bool c_KDDockWidgets__Platform__tests_waitForResize_View_int(void *thisObj, void *arg__1_, int timeout);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::Platform::ungrabMouse()
|
||||
void c_KDDockWidgets__Platform__ungrabMouse(void *thisObj);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::Platform::uninstallMessageHandler()
|
||||
void c_KDDockWidgets__Platform__uninstallMessageHandler(void *thisObj);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::Platform::usesFallbackMouseGrabber() const
|
||||
bool c_KDDockWidgets__Platform__usesFallbackMouseGrabber(void *thisObj);
|
||||
|
||||
// tag=1066
|
||||
void c_KDDockWidgets__Platform__destructor(void *thisObj);
|
||||
|
||||
// tag=1044
|
||||
int c_KDDockWidgets__Platform___get_m_numWarningsEmitted(void *thisObj);
|
||||
|
||||
// tag=1045
|
||||
void c_KDDockWidgets__Platform___set_m_numWarningsEmitted_int(void *thisObj, int m_numWarningsEmitted_);
|
||||
|
||||
// tag=1046
|
||||
void c_KDDockWidgets__Platform__registerVirtualMethodCallback(void *ptr, void *callback, int methodId);
|
||||
// tag=1047
|
||||
void c_KDDockWidgets__Platform_Finalizer(void *, void *cppObj, void *);
|
||||
@@ -8,16 +8,19 @@
|
||||
|
||||
Contact KDAB at <info@kdab.com> for commercial licensing options.
|
||||
*/
|
||||
export 'src/Platform.dart' show Platform;
|
||||
export 'src/View.dart' show View;
|
||||
export 'src/Controller.dart' show Controller;
|
||||
export 'src/Platform_flutter.dart' show Platform_flutter;
|
||||
export 'src/ViewFactory.dart' show ViewFactory;
|
||||
export 'src/QByteArray.dart' show QByteArray;
|
||||
export 'src/QEvent.dart' show QEvent, QEvent_Type;
|
||||
export 'src/QList.dart' show QList;
|
||||
export 'src/QObject.dart' show QObject;
|
||||
export 'src/QPoint.dart' show QPoint;
|
||||
export 'src/QRect.dart' show QRect;
|
||||
export 'src/QSize.dart' show QSize;
|
||||
export 'src/QString.dart' show QString;
|
||||
export 'src/Qt.dart' show qt_getEnumName, Qt_CursorShape;
|
||||
import 'dart:ffi' as ffi;
|
||||
import 'dart:io' show Platform;
|
||||
|
||||
|
||||
@@ -0,0 +1,453 @@
|
||||
/*
|
||||
This file is part of KDDockWidgets.
|
||||
|
||||
SPDX-FileCopyrightText: 2019-2022 Klarälvdalens Datakonsult AB, a KDAB Group company <info@kdab.com>
|
||||
Author: Sérgio Martins <sergio.martins@kdab.com>
|
||||
|
||||
SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only
|
||||
|
||||
Contact KDAB at <info@kdab.com> for commercial licensing options.
|
||||
*/
|
||||
|
||||
//tag=1052
|
||||
import 'dart:ffi' as ffi;
|
||||
import 'package:ffi/ffi.dart';
|
||||
import 'TypeHelpers.dart';
|
||||
import '../Bindings.dart';
|
||||
import '../FinalizerHelpers.dart';
|
||||
|
||||
//tag=1051
|
||||
var _dylib = Library.instance().dylib;
|
||||
|
||||
class Controller extends QObject {
|
||||
//tag=1064
|
||||
Controller.fromCppPointer(var cppPointer, [var needsAutoDelete = false])
|
||||
: super.fromCppPointer(cppPointer, needsAutoDelete) {}
|
||||
Controller.init() : super.init() {}
|
||||
//tag=1062
|
||||
factory Controller.fromCache(var cppPointer, [needsAutoDelete = false]) {
|
||||
if (QObject.isCached(cppPointer)) {
|
||||
var instance = QObject.s_dartInstanceByCppPtr[cppPointer.address];
|
||||
if (instance != null) return instance as Controller;
|
||||
}
|
||||
return Controller.fromCppPointer(cppPointer, needsAutoDelete);
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// close()
|
||||
bool close() {
|
||||
//tag=1028
|
||||
final bool_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<bool_Func_voidstar_FFI>>(
|
||||
'c_KDDockWidgets__Controller__close')
|
||||
.asFunction();
|
||||
//tag=1029
|
||||
return func(thisCpp) != 0;
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1035
|
||||
static void customEvent_calledFromC(
|
||||
ffi.Pointer<void> thisCpp, ffi.Pointer<void>? event) {
|
||||
var dartInstance =
|
||||
QObject.s_dartInstanceByCppPtr[thisCpp.address] as Controller;
|
||||
if (dartInstance == null) {
|
||||
print(
|
||||
"Dart instance not found for Controller::customEvent(QEvent * event)! (${thisCpp.address})");
|
||||
throw Error();
|
||||
}
|
||||
//tag=1036
|
||||
dartInstance.customEvent(QEvent.fromCppPointer(event));
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1035
|
||||
static int event_calledFromC(
|
||||
ffi.Pointer<void> thisCpp, ffi.Pointer<void>? event) {
|
||||
var dartInstance =
|
||||
QObject.s_dartInstanceByCppPtr[thisCpp.address] as Controller;
|
||||
if (dartInstance == null) {
|
||||
print(
|
||||
"Dart instance not found for Controller::event(QEvent * event)! (${thisCpp.address})");
|
||||
throw Error();
|
||||
}
|
||||
//tag=1037
|
||||
final result = dartInstance.event(QEvent.fromCppPointer(event));
|
||||
return result ? 1 : 0;
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1035
|
||||
static int eventFilter_calledFromC(ffi.Pointer<void> thisCpp,
|
||||
ffi.Pointer<void>? watched, ffi.Pointer<void>? event) {
|
||||
var dartInstance =
|
||||
QObject.s_dartInstanceByCppPtr[thisCpp.address] as Controller;
|
||||
if (dartInstance == null) {
|
||||
print(
|
||||
"Dart instance not found for Controller::eventFilter(QObject * watched, QEvent * event)! (${thisCpp.address})");
|
||||
throw Error();
|
||||
}
|
||||
//tag=1037
|
||||
final result = dartInstance.eventFilter(
|
||||
QObject.fromCppPointer(watched), QEvent.fromCppPointer(event));
|
||||
return result ? 1 : 0;
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// geometry() const
|
||||
QRect geometry() {
|
||||
//tag=1028
|
||||
final voidstar_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<voidstar_Func_voidstar_FFI>>(
|
||||
'c_KDDockWidgets__Controller__geometry')
|
||||
.asFunction();
|
||||
//tag=1033
|
||||
ffi.Pointer<void> result = func(thisCpp);
|
||||
return QRect.fromCppPointer(result, true);
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// height() const
|
||||
int height() {
|
||||
//tag=1028
|
||||
final int_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<int_Func_voidstar_FFI>>(
|
||||
'c_KDDockWidgets__Controller__height')
|
||||
.asFunction();
|
||||
//tag=1031
|
||||
return func(thisCpp);
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// inDtor() const
|
||||
bool inDtor() {
|
||||
//tag=1028
|
||||
final bool_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<bool_Func_voidstar_FFI>>(
|
||||
'c_KDDockWidgets__Controller__inDtor')
|
||||
.asFunction();
|
||||
//tag=1029
|
||||
return func(thisCpp) != 0;
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// isVisible() const
|
||||
bool isVisible() {
|
||||
//tag=1028
|
||||
final bool_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<bool_Func_voidstar_FFI>>(
|
||||
'c_KDDockWidgets__Controller__isVisible')
|
||||
.asFunction();
|
||||
//tag=1029
|
||||
return func(thisCpp) != 0;
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// mapToGlobal(QPoint arg__1) const
|
||||
QPoint mapToGlobal(QPoint arg__1) {
|
||||
//tag=1028
|
||||
final voidstar_Func_voidstar_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<voidstar_Func_voidstar_voidstar_FFI>>(
|
||||
'c_KDDockWidgets__Controller__mapToGlobal_QPoint')
|
||||
.asFunction();
|
||||
//tag=1033
|
||||
ffi.Pointer<void> result =
|
||||
func(thisCpp, arg__1 == null ? ffi.nullptr : arg__1.thisCpp);
|
||||
return QPoint.fromCppPointer(result, true);
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// parentViewChanged(KDDockWidgets::View * parent)
|
||||
parentViewChanged(View? parent) {
|
||||
//tag=1028
|
||||
final void_Func_voidstar_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<void_Func_voidstar_voidstar_FFI>>(
|
||||
'c_KDDockWidgets__Controller__parentViewChanged_View')
|
||||
.asFunction();
|
||||
//tag=1030
|
||||
func(thisCpp, parent == null ? ffi.nullptr : parent.thisCpp);
|
||||
}
|
||||
|
||||
//tag=1077
|
||||
void onParentViewChanged(Function callback, {QObject? context}) {
|
||||
final SignalHandler func = _dylib
|
||||
.lookup<ffi.NativeFunction<SignalHandler_FFI>>(
|
||||
'c_KDDockWidgets__Controller__onParentViewChanged_View')
|
||||
.asFunction();
|
||||
final dartCallback =
|
||||
ffi.Pointer.fromFunction<ffi.Void Function(ffi.Pointer<void>)>(
|
||||
onParentViewChanged_callback);
|
||||
final callbackMethod = onParentViewChanged_callback;
|
||||
var handlers = signalHandlerersBySignal[callbackMethod] ?? [];
|
||||
handlers.add(callback);
|
||||
signalHandlerersBySignal[callbackMethod] = handlers;
|
||||
ffi.Pointer<void> contextPtr =
|
||||
context == null ? ffi.nullptr : context.thisCpp;
|
||||
func(thisCpp, contextPtr, dartCallback);
|
||||
}
|
||||
|
||||
static void onParentViewChanged_callback(ffi.Pointer<void> thisCpp) {
|
||||
var dartInstance =
|
||||
QObject.s_dartInstanceByCppPtr[thisCpp.address] as Controller;
|
||||
final signalHandlers =
|
||||
dartInstance.signalHandlerersBySignal[onParentViewChanged_callback] ??
|
||||
[];
|
||||
for (var signalHandler in signalHandlers) {
|
||||
signalHandler();
|
||||
}
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// pos() const
|
||||
QPoint pos() {
|
||||
//tag=1028
|
||||
final voidstar_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<voidstar_Func_voidstar_FFI>>(
|
||||
'c_KDDockWidgets__Controller__pos')
|
||||
.asFunction();
|
||||
//tag=1033
|
||||
ffi.Pointer<void> result = func(thisCpp);
|
||||
return QPoint.fromCppPointer(result, true);
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// rect() const
|
||||
QRect rect() {
|
||||
//tag=1028
|
||||
final voidstar_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<voidstar_Func_voidstar_FFI>>(
|
||||
'c_KDDockWidgets__Controller__rect')
|
||||
.asFunction();
|
||||
//tag=1033
|
||||
ffi.Pointer<void> result = func(thisCpp);
|
||||
return QRect.fromCppPointer(result, true);
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// setParentView(KDDockWidgets::View * parent)
|
||||
setParentView(View? parent) {
|
||||
//tag=1028
|
||||
final void_Func_voidstar_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<void_Func_voidstar_voidstar_FFI>>(
|
||||
'c_KDDockWidgets__Controller__setParentView_View')
|
||||
.asFunction();
|
||||
//tag=1030
|
||||
func(thisCpp, parent == null ? ffi.nullptr : parent.thisCpp);
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// setParentView_impl(KDDockWidgets::View * parent)
|
||||
setParentView_impl(View? parent) {
|
||||
//tag=1028
|
||||
final void_Func_voidstar_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<void_Func_voidstar_voidstar_FFI>>(
|
||||
cFunctionSymbolName(682))
|
||||
.asFunction();
|
||||
//tag=1030
|
||||
func(thisCpp, parent == null ? ffi.nullptr : parent.thisCpp);
|
||||
}
|
||||
|
||||
//tag=1035
|
||||
static void setParentView_impl_calledFromC(
|
||||
ffi.Pointer<void> thisCpp, ffi.Pointer<void>? parent) {
|
||||
var dartInstance =
|
||||
QObject.s_dartInstanceByCppPtr[thisCpp.address] as Controller;
|
||||
if (dartInstance == null) {
|
||||
print(
|
||||
"Dart instance not found for Controller::setParentView_impl(KDDockWidgets::View * parent)! (${thisCpp.address})");
|
||||
throw Error();
|
||||
}
|
||||
//tag=1036
|
||||
dartInstance.setParentView_impl(View.fromCppPointer(parent));
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// setVisible(bool arg__1)
|
||||
setVisible(bool arg__1) {
|
||||
//tag=1028
|
||||
final void_Func_voidstar_bool func = _dylib
|
||||
.lookup<ffi.NativeFunction<void_Func_voidstar_ffi_Int8_FFI>>(
|
||||
'c_KDDockWidgets__Controller__setVisible_bool')
|
||||
.asFunction();
|
||||
//tag=1030
|
||||
func(thisCpp, arg__1 ? 1 : 0);
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// show() const
|
||||
show() {
|
||||
//tag=1028
|
||||
final void_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<void_Func_voidstar_FFI>>(
|
||||
'c_KDDockWidgets__Controller__show')
|
||||
.asFunction();
|
||||
//tag=1030
|
||||
func(thisCpp);
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// size() const
|
||||
QSize size() {
|
||||
//tag=1028
|
||||
final voidstar_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<voidstar_Func_voidstar_FFI>>(
|
||||
'c_KDDockWidgets__Controller__size')
|
||||
.asFunction();
|
||||
//tag=1033
|
||||
ffi.Pointer<void> result = func(thisCpp);
|
||||
return QSize.fromCppPointer(result, true);
|
||||
}
|
||||
|
||||
//tag=1024
|
||||
static
|
||||
//tag=1027
|
||||
// tr(const char * s, const char * c, int n)
|
||||
QString tr(String? s, String? c, int n) {
|
||||
//tag=1028
|
||||
final voidstar_Func_string_string_int func = _dylib
|
||||
.lookup<ffi.NativeFunction<voidstar_Func_string_string_ffi_Int32_FFI>>(
|
||||
'c_static_KDDockWidgets__Controller__tr_char_char_int')
|
||||
.asFunction();
|
||||
//tag=1033
|
||||
ffi.Pointer<void> result = func(
|
||||
s?.toNativeUtf8() ?? ffi.nullptr, c?.toNativeUtf8() ?? ffi.nullptr, n);
|
||||
return QString.fromCppPointer(result, true);
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// view() const
|
||||
View view() {
|
||||
//tag=1028
|
||||
final voidstar_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<voidstar_Func_voidstar_FFI>>(
|
||||
'c_KDDockWidgets__Controller__view')
|
||||
.asFunction();
|
||||
//tag=1033
|
||||
ffi.Pointer<void> result = func(thisCpp);
|
||||
return View.fromCppPointer(result, false);
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// width() const
|
||||
int width() {
|
||||
//tag=1028
|
||||
final int_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<int_Func_voidstar_FFI>>(
|
||||
'c_KDDockWidgets__Controller__width')
|
||||
.asFunction();
|
||||
//tag=1031
|
||||
return func(thisCpp);
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// x() const
|
||||
int x() {
|
||||
//tag=1028
|
||||
final int_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<int_Func_voidstar_FFI>>(
|
||||
'c_KDDockWidgets__Controller__x')
|
||||
.asFunction();
|
||||
//tag=1031
|
||||
return func(thisCpp);
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// y() const
|
||||
int y() {
|
||||
//tag=1028
|
||||
final int_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<int_Func_voidstar_FFI>>(
|
||||
'c_KDDockWidgets__Controller__y')
|
||||
.asFunction();
|
||||
//tag=1031
|
||||
return func(thisCpp);
|
||||
}
|
||||
|
||||
//tag=1022
|
||||
void release() {
|
||||
final void_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<void_Func_voidstar_FFI>>(
|
||||
'c_KDDockWidgets__Controller__destructor')
|
||||
.asFunction();
|
||||
func(thisCpp);
|
||||
}
|
||||
|
||||
//tag=1019
|
||||
String cFunctionSymbolName(int methodId) {
|
||||
switch (methodId) {
|
||||
case 294:
|
||||
return "c_KDDockWidgets__Controller__customEvent_QEvent";
|
||||
case 305:
|
||||
return "c_KDDockWidgets__Controller__event_QEvent";
|
||||
case 306:
|
||||
return "c_KDDockWidgets__Controller__eventFilter_QObject_QEvent";
|
||||
case 682:
|
||||
return "c_KDDockWidgets__Controller__setParentView_impl_View";
|
||||
}
|
||||
return super.cFunctionSymbolName(methodId);
|
||||
}
|
||||
|
||||
static String methodNameFromId(int methodId) {
|
||||
switch (methodId) {
|
||||
case 294:
|
||||
return "customEvent";
|
||||
case 305:
|
||||
return "event";
|
||||
case 306:
|
||||
return "eventFilter";
|
||||
case 682:
|
||||
return "setParentView_impl";
|
||||
}
|
||||
throw Error();
|
||||
}
|
||||
|
||||
//tag=1020
|
||||
void registerCallbacks() {
|
||||
assert(thisCpp != null);
|
||||
final RegisterMethodIsReimplementedCallback registerCallback = _dylib
|
||||
.lookup<ffi.NativeFunction<RegisterMethodIsReimplementedCallback_FFI>>(
|
||||
'c_KDDockWidgets__Controller__registerVirtualMethodCallback')
|
||||
.asFunction();
|
||||
|
||||
//tag=1021
|
||||
final callback294 =
|
||||
ffi.Pointer.fromFunction<void_Func_voidstar_voidstar_FFI>(
|
||||
QObject.customEvent_calledFromC);
|
||||
registerCallback(thisCpp, callback294, 294);
|
||||
const callbackExcept305 = 0;
|
||||
//tag=1021
|
||||
final callback305 =
|
||||
ffi.Pointer.fromFunction<bool_Func_voidstar_voidstar_FFI>(
|
||||
QObject.event_calledFromC, callbackExcept305);
|
||||
registerCallback(thisCpp, callback305, 305);
|
||||
const callbackExcept306 = 0;
|
||||
//tag=1021
|
||||
final callback306 =
|
||||
ffi.Pointer.fromFunction<bool_Func_voidstar_voidstar_voidstar_FFI>(
|
||||
QObject.eventFilter_calledFromC, callbackExcept306);
|
||||
registerCallback(thisCpp, callback306, 306);
|
||||
//tag=1021
|
||||
final callback682 =
|
||||
ffi.Pointer.fromFunction<void_Func_voidstar_voidstar_FFI>(
|
||||
Controller.setParentView_impl_calledFromC);
|
||||
registerCallback(thisCpp, callback682, 682);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
/*
|
||||
This file is part of KDDockWidgets.
|
||||
|
||||
SPDX-FileCopyrightText: 2019-2022 Klarälvdalens Datakonsult AB, a KDAB Group company <info@kdab.com>
|
||||
Author: Sérgio Martins <sergio.martins@kdab.com>
|
||||
|
||||
SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only
|
||||
|
||||
Contact KDAB at <info@kdab.com> for commercial licensing options.
|
||||
*/
|
||||
|
||||
//tag=1052
|
||||
import 'dart:ffi' as ffi;
|
||||
import 'package:ffi/ffi.dart';
|
||||
import 'TypeHelpers.dart';
|
||||
import '../Bindings.dart';
|
||||
import '../FinalizerHelpers.dart';
|
||||
|
||||
//tag=1051
|
||||
var _dylib = Library.instance().dylib;
|
||||
@@ -22,6 +22,16 @@ final _finalizer =
|
||||
_dylib.lookup<ffi.NativeFunction<Dart_WeakPersistentHandleFinalizer_Type>>(
|
||||
'c_KDDockWidgets__Platform_Finalizer');
|
||||
|
||||
//tag=1038
|
||||
class Platform_DisplayType {
|
||||
static const Other = 0;
|
||||
static const X11 = 1;
|
||||
static const Wayland = 2;
|
||||
static const QtOffscreen = 3;
|
||||
static const QtEGLFS = 4;
|
||||
static const Windows = 5;
|
||||
}
|
||||
|
||||
class Platform {
|
||||
//tag=1060
|
||||
static var s_dartInstanceByCppPtr = Map<int, Platform>();
|
||||
@@ -96,7 +106,7 @@ class Platform {
|
||||
//tag=1028
|
||||
final voidstar_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<voidstar_Func_voidstar_FFI>>(
|
||||
cFunctionSymbolName(680))
|
||||
cFunctionSymbolName(626))
|
||||
.asFunction();
|
||||
//tag=1033
|
||||
ffi.Pointer<void> result = func(thisCpp);
|
||||
@@ -124,7 +134,7 @@ class Platform {
|
||||
//tag=1028
|
||||
final voidstar_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<voidstar_Func_voidstar_FFI>>(
|
||||
cFunctionSymbolName(681))
|
||||
cFunctionSymbolName(627))
|
||||
.asFunction();
|
||||
//tag=1033
|
||||
ffi.Pointer<void> result = func(thisCpp);
|
||||
@@ -146,13 +156,73 @@ class Platform {
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// createView(KDDockWidgets::Controller * arg__1, KDDockWidgets::View * parent) const
|
||||
View createView(Controller? arg__1, {required View? parent}) {
|
||||
//tag=1028
|
||||
final voidstar_Func_voidstar_voidstar_voidstar func = _dylib
|
||||
.lookup<
|
||||
ffi.NativeFunction<
|
||||
voidstar_Func_voidstar_voidstar_voidstar_FFI>>(
|
||||
cFunctionSymbolName(628))
|
||||
.asFunction();
|
||||
//tag=1033
|
||||
ffi.Pointer<void> result = func(
|
||||
thisCpp,
|
||||
arg__1 == null ? ffi.nullptr : arg__1.thisCpp,
|
||||
parent == null ? ffi.nullptr : parent.thisCpp);
|
||||
return View.fromCppPointer(result, false);
|
||||
}
|
||||
|
||||
//tag=1035
|
||||
static ffi.Pointer<void> createView_calledFromC(ffi.Pointer<void> thisCpp,
|
||||
ffi.Pointer<void>? arg__1, ffi.Pointer<void>? parent) {
|
||||
var dartInstance = Platform.s_dartInstanceByCppPtr[thisCpp.address];
|
||||
if (dartInstance == null) {
|
||||
print(
|
||||
"Dart instance not found for Platform::createView(KDDockWidgets::Controller * arg__1, KDDockWidgets::View * parent) const! (${thisCpp.address})");
|
||||
throw Error();
|
||||
}
|
||||
//tag=1037
|
||||
final result = dartInstance.createView(Controller.fromCppPointer(arg__1),
|
||||
parent: View.fromCppPointer(parent));
|
||||
return result.thisCpp;
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// displayType() const
|
||||
int displayType() {
|
||||
//tag=1028
|
||||
final int_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<int_Func_voidstar_FFI>>(
|
||||
cFunctionSymbolName(629))
|
||||
.asFunction();
|
||||
//tag=1031
|
||||
return func(thisCpp);
|
||||
}
|
||||
|
||||
//tag=1035
|
||||
static int displayType_calledFromC(ffi.Pointer<void> thisCpp) {
|
||||
var dartInstance = Platform.s_dartInstanceByCppPtr[thisCpp.address];
|
||||
if (dartInstance == null) {
|
||||
print(
|
||||
"Dart instance not found for Platform::displayType() const! (${thisCpp.address})");
|
||||
throw Error();
|
||||
}
|
||||
//tag=1037
|
||||
final result = dartInstance.displayType();
|
||||
return result;
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// hasActivePopup() const
|
||||
bool hasActivePopup() {
|
||||
//tag=1028
|
||||
final bool_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<bool_Func_voidstar_FFI>>(
|
||||
cFunctionSymbolName(682))
|
||||
cFunctionSymbolName(630))
|
||||
.asFunction();
|
||||
//tag=1029
|
||||
return func(thisCpp) != 0;
|
||||
@@ -178,7 +248,7 @@ class Platform {
|
||||
//tag=1028
|
||||
final bool_Func_voidstar_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<bool_Func_voidstar_voidstar_FFI>>(
|
||||
cFunctionSymbolName(683))
|
||||
cFunctionSymbolName(631))
|
||||
.asFunction();
|
||||
//tag=1029
|
||||
return func(thisCpp, globalPos == null ? ffi.nullptr : globalPos.thisCpp) !=
|
||||
@@ -207,7 +277,7 @@ class Platform {
|
||||
//tag=1028
|
||||
final void_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<void_Func_voidstar_FFI>>(
|
||||
cFunctionSymbolName(684))
|
||||
cFunctionSymbolName(632))
|
||||
.asFunction();
|
||||
//tag=1030
|
||||
func(thisCpp);
|
||||
@@ -247,7 +317,7 @@ class Platform {
|
||||
//tag=1028
|
||||
final bool_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<bool_Func_voidstar_FFI>>(
|
||||
cFunctionSymbolName(686))
|
||||
cFunctionSymbolName(634))
|
||||
.asFunction();
|
||||
//tag=1029
|
||||
return func(thisCpp) != 0;
|
||||
@@ -273,7 +343,7 @@ class Platform {
|
||||
//tag=1028
|
||||
final bool_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<bool_Func_voidstar_FFI>>(
|
||||
cFunctionSymbolName(687))
|
||||
cFunctionSymbolName(635))
|
||||
.asFunction();
|
||||
//tag=1029
|
||||
return func(thisCpp) != 0;
|
||||
@@ -325,7 +395,7 @@ class Platform {
|
||||
//tag=1028
|
||||
final string_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<string_Func_voidstar_FFI>>(
|
||||
cFunctionSymbolName(690))
|
||||
cFunctionSymbolName(638))
|
||||
.asFunction();
|
||||
//tag=1032
|
||||
ffi.Pointer<Utf8> result = func(thisCpp);
|
||||
@@ -352,7 +422,7 @@ class Platform {
|
||||
//tag=1028
|
||||
final voidstar_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<voidstar_Func_voidstar_FFI>>(
|
||||
cFunctionSymbolName(691))
|
||||
cFunctionSymbolName(639))
|
||||
.asFunction();
|
||||
//tag=1033
|
||||
ffi.Pointer<void> result = func(thisCpp);
|
||||
@@ -380,7 +450,7 @@ class Platform {
|
||||
//tag=1028
|
||||
final void_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<void_Func_voidstar_FFI>>(
|
||||
cFunctionSymbolName(692))
|
||||
cFunctionSymbolName(640))
|
||||
.asFunction();
|
||||
//tag=1030
|
||||
func(thisCpp);
|
||||
@@ -405,7 +475,7 @@ class Platform {
|
||||
//tag=1028
|
||||
final int_Func_voidstar_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<int_Func_voidstar_voidstar_FFI>>(
|
||||
cFunctionSymbolName(693))
|
||||
cFunctionSymbolName(641))
|
||||
.asFunction();
|
||||
//tag=1031
|
||||
return func(thisCpp, arg__1 == null ? ffi.nullptr : arg__1.thisCpp);
|
||||
@@ -432,7 +502,7 @@ class Platform {
|
||||
//tag=1028
|
||||
final voidstar_Func_voidstar_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<voidstar_Func_voidstar_voidstar_FFI>>(
|
||||
cFunctionSymbolName(694))
|
||||
cFunctionSymbolName(642))
|
||||
.asFunction();
|
||||
//tag=1033
|
||||
ffi.Pointer<void> result =
|
||||
@@ -455,6 +525,60 @@ class Platform {
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// sendEvent(KDDockWidgets::View * arg__1, QEvent * arg__2) const
|
||||
sendEvent(View? arg__1, QEvent? arg__2) {
|
||||
//tag=1028
|
||||
final void_Func_voidstar_voidstar_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<void_Func_voidstar_voidstar_voidstar_FFI>>(
|
||||
cFunctionSymbolName(643))
|
||||
.asFunction();
|
||||
//tag=1030
|
||||
func(thisCpp, arg__1 == null ? ffi.nullptr : arg__1.thisCpp,
|
||||
arg__2 == null ? ffi.nullptr : arg__2.thisCpp);
|
||||
}
|
||||
|
||||
//tag=1035
|
||||
static void sendEvent_calledFromC(ffi.Pointer<void> thisCpp,
|
||||
ffi.Pointer<void>? arg__1, ffi.Pointer<void>? arg__2) {
|
||||
var dartInstance = Platform.s_dartInstanceByCppPtr[thisCpp.address];
|
||||
if (dartInstance == null) {
|
||||
print(
|
||||
"Dart instance not found for Platform::sendEvent(KDDockWidgets::View * arg__1, QEvent * arg__2) const! (${thisCpp.address})");
|
||||
throw Error();
|
||||
}
|
||||
//tag=1036
|
||||
dartInstance.sendEvent(
|
||||
View.fromCppPointer(arg__1), QEvent.fromCppPointer(arg__2));
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// setMouseCursor(Qt::CursorShape arg__1)
|
||||
setMouseCursor(int arg__1) {
|
||||
//tag=1028
|
||||
final void_Func_voidstar_int func = _dylib
|
||||
.lookup<ffi.NativeFunction<void_Func_voidstar_ffi_Int32_FFI>>(
|
||||
cFunctionSymbolName(644))
|
||||
.asFunction();
|
||||
//tag=1030
|
||||
func(thisCpp, arg__1);
|
||||
}
|
||||
|
||||
//tag=1035
|
||||
static void setMouseCursor_calledFromC(
|
||||
ffi.Pointer<void> thisCpp, int arg__1) {
|
||||
var dartInstance = Platform.s_dartInstanceByCppPtr[thisCpp.address];
|
||||
if (dartInstance == null) {
|
||||
print(
|
||||
"Dart instance not found for Platform::setMouseCursor(Qt::CursorShape arg__1)! (${thisCpp.address})");
|
||||
throw Error();
|
||||
}
|
||||
//tag=1036
|
||||
dartInstance.setMouseCursor(arg__1);
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// startDragDistance() const
|
||||
int startDragDistance() {
|
||||
@@ -474,7 +598,7 @@ class Platform {
|
||||
//tag=1028
|
||||
final int_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<int_Func_voidstar_FFI>>(
|
||||
cFunctionSymbolName(696))
|
||||
cFunctionSymbolName(646))
|
||||
.asFunction();
|
||||
//tag=1031
|
||||
return func(thisCpp);
|
||||
@@ -500,7 +624,7 @@ class Platform {
|
||||
//tag=1028
|
||||
final voidstar_Func_voidstar_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<voidstar_Func_voidstar_voidstar_FFI>>(
|
||||
cFunctionSymbolName(697))
|
||||
cFunctionSymbolName(647))
|
||||
.asFunction();
|
||||
//tag=1033
|
||||
ffi.Pointer<void> result =
|
||||
@@ -544,7 +668,7 @@ class Platform {
|
||||
//tag=1028
|
||||
final void_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<void_Func_voidstar_FFI>>(
|
||||
cFunctionSymbolName(699))
|
||||
cFunctionSymbolName(649))
|
||||
.asFunction();
|
||||
//tag=1030
|
||||
func(thisCpp);
|
||||
@@ -569,7 +693,7 @@ class Platform {
|
||||
//tag=1028
|
||||
final void_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<void_Func_voidstar_FFI>>(
|
||||
cFunctionSymbolName(700))
|
||||
cFunctionSymbolName(650))
|
||||
.asFunction();
|
||||
//tag=1030
|
||||
func(thisCpp);
|
||||
@@ -594,7 +718,7 @@ class Platform {
|
||||
//tag=1028
|
||||
final void_Func_voidstar_int func = _dylib
|
||||
.lookup<ffi.NativeFunction<void_Func_voidstar_ffi_Int32_FFI>>(
|
||||
cFunctionSymbolName(701))
|
||||
cFunctionSymbolName(651))
|
||||
.asFunction();
|
||||
//tag=1030
|
||||
func(thisCpp, ms);
|
||||
@@ -619,7 +743,7 @@ class Platform {
|
||||
//tag=1028
|
||||
final bool_Func_voidstar_voidstar_int func = _dylib
|
||||
.lookup<ffi.NativeFunction<bool_Func_voidstar_voidstar_ffi_Int32_FFI>>(
|
||||
cFunctionSymbolName(702))
|
||||
cFunctionSymbolName(652))
|
||||
.asFunction();
|
||||
//tag=1029
|
||||
return func(
|
||||
@@ -649,7 +773,7 @@ class Platform {
|
||||
//tag=1028
|
||||
final bool_Func_voidstar_voidstar_int func = _dylib
|
||||
.lookup<ffi.NativeFunction<bool_Func_voidstar_voidstar_ffi_Int32_FFI>>(
|
||||
cFunctionSymbolName(703))
|
||||
cFunctionSymbolName(653))
|
||||
.asFunction();
|
||||
//tag=1029
|
||||
return func(
|
||||
@@ -675,12 +799,77 @@ class Platform {
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// tests_waitForResize(KDDockWidgets::View * arg__1, int timeout) const
|
||||
bool tests_waitForResize(View? arg__1, {int timeout = 2000}) {
|
||||
// tests_waitForEvent(KDDockWidgets::View * arg__1, QEvent::Type type, int timeout) const
|
||||
bool tests_waitForEvent(View? arg__1, int type, {int timeout = 5000}) {
|
||||
//tag=1028
|
||||
final bool_Func_voidstar_voidstar_int_int func = _dylib
|
||||
.lookup<
|
||||
ffi.NativeFunction<
|
||||
bool_Func_voidstar_voidstar_ffi_Int32_ffi_Int32_FFI>>(
|
||||
cFunctionSymbolName(654))
|
||||
.asFunction();
|
||||
//tag=1029
|
||||
return func(thisCpp, arg__1 == null ? ffi.nullptr : arg__1.thisCpp, type,
|
||||
timeout) !=
|
||||
0;
|
||||
}
|
||||
|
||||
//tag=1035
|
||||
static int tests_waitForEvent_calledFromC(ffi.Pointer<void> thisCpp,
|
||||
ffi.Pointer<void>? arg__1, int type, int timeout) {
|
||||
var dartInstance = Platform.s_dartInstanceByCppPtr[thisCpp.address];
|
||||
if (dartInstance == null) {
|
||||
print(
|
||||
"Dart instance not found for Platform::tests_waitForEvent(KDDockWidgets::View * arg__1, QEvent::Type type, int timeout) const! (${thisCpp.address})");
|
||||
throw Error();
|
||||
}
|
||||
//tag=1037
|
||||
final result = dartInstance.tests_waitForEvent(
|
||||
View.fromCppPointer(arg__1), type,
|
||||
timeout: timeout);
|
||||
return result ? 1 : 0;
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// tests_waitForEvent(QObject * w, QEvent::Type type, int timeout) const
|
||||
bool tests_waitForEvent_2(QObject? w, int type, {int timeout = 5000}) {
|
||||
//tag=1028
|
||||
final bool_Func_voidstar_voidstar_int_int func = _dylib
|
||||
.lookup<
|
||||
ffi.NativeFunction<
|
||||
bool_Func_voidstar_voidstar_ffi_Int32_ffi_Int32_FFI>>(
|
||||
cFunctionSymbolName(655))
|
||||
.asFunction();
|
||||
//tag=1029
|
||||
return func(thisCpp, w == null ? ffi.nullptr : w.thisCpp, type, timeout) !=
|
||||
0;
|
||||
}
|
||||
|
||||
//tag=1035
|
||||
static int tests_waitForEvent_2_calledFromC(
|
||||
ffi.Pointer<void> thisCpp, ffi.Pointer<void>? w, int type, int timeout) {
|
||||
var dartInstance = Platform.s_dartInstanceByCppPtr[thisCpp.address];
|
||||
if (dartInstance == null) {
|
||||
print(
|
||||
"Dart instance not found for Platform::tests_waitForEvent(QObject * w, QEvent::Type type, int timeout) const! (${thisCpp.address})");
|
||||
throw Error();
|
||||
}
|
||||
//tag=1037
|
||||
final result = dartInstance.tests_waitForEvent_2(
|
||||
QObject.fromCppPointer(w), type,
|
||||
timeout: timeout);
|
||||
return result ? 1 : 0;
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// tests_waitForResize(KDDockWidgets::Controller * arg__1, int timeout) const
|
||||
bool tests_waitForResize(Controller? arg__1, {int timeout = 2000}) {
|
||||
//tag=1028
|
||||
final bool_Func_voidstar_voidstar_int func = _dylib
|
||||
.lookup<ffi.NativeFunction<bool_Func_voidstar_voidstar_ffi_Int32_FFI>>(
|
||||
cFunctionSymbolName(704))
|
||||
cFunctionSymbolName(656))
|
||||
.asFunction();
|
||||
//tag=1029
|
||||
return func(
|
||||
@@ -692,14 +881,45 @@ class Platform {
|
||||
static int tests_waitForResize_calledFromC(
|
||||
ffi.Pointer<void> thisCpp, ffi.Pointer<void>? arg__1, int timeout) {
|
||||
var dartInstance = Platform.s_dartInstanceByCppPtr[thisCpp.address];
|
||||
if (dartInstance == null) {
|
||||
print(
|
||||
"Dart instance not found for Platform::tests_waitForResize(KDDockWidgets::Controller * arg__1, int timeout) const! (${thisCpp.address})");
|
||||
throw Error();
|
||||
}
|
||||
//tag=1037
|
||||
final result = dartInstance.tests_waitForResize(
|
||||
Controller.fromCppPointer(arg__1),
|
||||
timeout: timeout);
|
||||
return result ? 1 : 0;
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// tests_waitForResize(KDDockWidgets::View * arg__1, int timeout) const
|
||||
bool tests_waitForResize_2(View? arg__1, {int timeout = 2000}) {
|
||||
//tag=1028
|
||||
final bool_Func_voidstar_voidstar_int func = _dylib
|
||||
.lookup<ffi.NativeFunction<bool_Func_voidstar_voidstar_ffi_Int32_FFI>>(
|
||||
cFunctionSymbolName(657))
|
||||
.asFunction();
|
||||
//tag=1029
|
||||
return func(
|
||||
thisCpp, arg__1 == null ? ffi.nullptr : arg__1.thisCpp, timeout) !=
|
||||
0;
|
||||
}
|
||||
|
||||
//tag=1035
|
||||
static int tests_waitForResize_2_calledFromC(
|
||||
ffi.Pointer<void> thisCpp, ffi.Pointer<void>? arg__1, int timeout) {
|
||||
var dartInstance = Platform.s_dartInstanceByCppPtr[thisCpp.address];
|
||||
if (dartInstance == null) {
|
||||
print(
|
||||
"Dart instance not found for Platform::tests_waitForResize(KDDockWidgets::View * arg__1, int timeout) const! (${thisCpp.address})");
|
||||
throw Error();
|
||||
}
|
||||
//tag=1037
|
||||
final result = dartInstance.tests_waitForResize(View.fromCppPointer(arg__1),
|
||||
timeout: timeout);
|
||||
final result = dartInstance
|
||||
.tests_waitForResize_2(View.fromCppPointer(arg__1), timeout: timeout);
|
||||
return result ? 1 : 0;
|
||||
}
|
||||
//tag=1024
|
||||
@@ -710,7 +930,7 @@ class Platform {
|
||||
//tag=1028
|
||||
final void_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<void_Func_voidstar_FFI>>(
|
||||
cFunctionSymbolName(705))
|
||||
cFunctionSymbolName(658))
|
||||
.asFunction();
|
||||
//tag=1030
|
||||
func(thisCpp);
|
||||
@@ -735,7 +955,7 @@ class Platform {
|
||||
//tag=1028
|
||||
final void_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<void_Func_voidstar_FFI>>(
|
||||
cFunctionSymbolName(706))
|
||||
cFunctionSymbolName(659))
|
||||
.asFunction();
|
||||
//tag=1030
|
||||
func(thisCpp);
|
||||
@@ -760,7 +980,7 @@ class Platform {
|
||||
//tag=1028
|
||||
final bool_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<bool_Func_voidstar_FFI>>(
|
||||
cFunctionSymbolName(707))
|
||||
cFunctionSymbolName(660))
|
||||
.asFunction();
|
||||
//tag=1029
|
||||
return func(thisCpp) != 0;
|
||||
@@ -791,51 +1011,65 @@ class Platform {
|
||||
//tag=1019
|
||||
String cFunctionSymbolName(int methodId) {
|
||||
switch (methodId) {
|
||||
case 680:
|
||||
case 626:
|
||||
return "c_KDDockWidgets__Platform__applicationName";
|
||||
case 681:
|
||||
case 627:
|
||||
return "c_KDDockWidgets__Platform__createDefaultViewFactory";
|
||||
case 682:
|
||||
case 628:
|
||||
return "c_KDDockWidgets__Platform__createView_Controller_View";
|
||||
case 629:
|
||||
return "c_KDDockWidgets__Platform__displayType";
|
||||
case 630:
|
||||
return "c_KDDockWidgets__Platform__hasActivePopup";
|
||||
case 683:
|
||||
case 631:
|
||||
return "c_KDDockWidgets__Platform__inDisallowedDragView_QPoint";
|
||||
case 684:
|
||||
case 632:
|
||||
return "c_KDDockWidgets__Platform__installMessageHandler";
|
||||
case 686:
|
||||
case 634:
|
||||
return "c_KDDockWidgets__Platform__isLeftMouseButtonPressed";
|
||||
case 687:
|
||||
case 635:
|
||||
return "c_KDDockWidgets__Platform__isProcessingAppQuitEvent";
|
||||
case 690:
|
||||
case 638:
|
||||
return "c_KDDockWidgets__Platform__name";
|
||||
case 691:
|
||||
case 639:
|
||||
return "c_KDDockWidgets__Platform__organizationName";
|
||||
case 692:
|
||||
case 640:
|
||||
return "c_KDDockWidgets__Platform__restoreMouseCursor";
|
||||
case 693:
|
||||
case 641:
|
||||
return "c_KDDockWidgets__Platform__screenNumberFor_View";
|
||||
case 694:
|
||||
case 642:
|
||||
return "c_KDDockWidgets__Platform__screenSizeFor_View";
|
||||
case 696:
|
||||
case 643:
|
||||
return "c_KDDockWidgets__Platform__sendEvent_View_QEvent";
|
||||
case 644:
|
||||
return "c_KDDockWidgets__Platform__setMouseCursor_CursorShape";
|
||||
case 646:
|
||||
return "c_KDDockWidgets__Platform__startDragDistance_impl";
|
||||
case 697:
|
||||
case 647:
|
||||
return "c_KDDockWidgets__Platform__tests_createNonClosableView_View";
|
||||
case 699:
|
||||
case 649:
|
||||
return "c_KDDockWidgets__Platform__tests_deinitPlatform_impl";
|
||||
case 700:
|
||||
case 650:
|
||||
return "c_KDDockWidgets__Platform__tests_initPlatform_impl";
|
||||
case 701:
|
||||
case 651:
|
||||
return "c_KDDockWidgets__Platform__tests_wait_int";
|
||||
case 702:
|
||||
case 652:
|
||||
return "c_KDDockWidgets__Platform__tests_waitForDeleted_View_int";
|
||||
case 703:
|
||||
case 653:
|
||||
return "c_KDDockWidgets__Platform__tests_waitForDeleted_QObject_int";
|
||||
case 704:
|
||||
case 654:
|
||||
return "c_KDDockWidgets__Platform__tests_waitForEvent_View_Type_int";
|
||||
case 655:
|
||||
return "c_KDDockWidgets__Platform__tests_waitForEvent_QObject_Type_int";
|
||||
case 656:
|
||||
return "c_KDDockWidgets__Platform__tests_waitForResize_Controller_int";
|
||||
case 657:
|
||||
return "c_KDDockWidgets__Platform__tests_waitForResize_View_int";
|
||||
case 705:
|
||||
case 658:
|
||||
return "c_KDDockWidgets__Platform__ungrabMouse";
|
||||
case 706:
|
||||
case 659:
|
||||
return "c_KDDockWidgets__Platform__uninstallMessageHandler";
|
||||
case 707:
|
||||
case 660:
|
||||
return "c_KDDockWidgets__Platform__usesFallbackMouseGrabber";
|
||||
}
|
||||
return "";
|
||||
@@ -843,51 +1077,65 @@ class Platform {
|
||||
|
||||
static String methodNameFromId(int methodId) {
|
||||
switch (methodId) {
|
||||
case 680:
|
||||
case 626:
|
||||
return "applicationName";
|
||||
case 681:
|
||||
case 627:
|
||||
return "createDefaultViewFactory";
|
||||
case 682:
|
||||
case 628:
|
||||
return "createView";
|
||||
case 629:
|
||||
return "displayType";
|
||||
case 630:
|
||||
return "hasActivePopup";
|
||||
case 683:
|
||||
case 631:
|
||||
return "inDisallowedDragView";
|
||||
case 684:
|
||||
case 632:
|
||||
return "installMessageHandler";
|
||||
case 686:
|
||||
case 634:
|
||||
return "isLeftMouseButtonPressed";
|
||||
case 687:
|
||||
case 635:
|
||||
return "isProcessingAppQuitEvent";
|
||||
case 690:
|
||||
case 638:
|
||||
return "name";
|
||||
case 691:
|
||||
case 639:
|
||||
return "organizationName";
|
||||
case 692:
|
||||
case 640:
|
||||
return "restoreMouseCursor";
|
||||
case 693:
|
||||
case 641:
|
||||
return "screenNumberFor";
|
||||
case 694:
|
||||
case 642:
|
||||
return "screenSizeFor";
|
||||
case 696:
|
||||
case 643:
|
||||
return "sendEvent";
|
||||
case 644:
|
||||
return "setMouseCursor";
|
||||
case 646:
|
||||
return "startDragDistance_impl";
|
||||
case 697:
|
||||
case 647:
|
||||
return "tests_createNonClosableView";
|
||||
case 699:
|
||||
case 649:
|
||||
return "tests_deinitPlatform_impl";
|
||||
case 700:
|
||||
case 650:
|
||||
return "tests_initPlatform_impl";
|
||||
case 701:
|
||||
case 651:
|
||||
return "tests_wait";
|
||||
case 702:
|
||||
case 652:
|
||||
return "tests_waitForDeleted";
|
||||
case 703:
|
||||
case 653:
|
||||
return "tests_waitForDeleted_2";
|
||||
case 704:
|
||||
case 654:
|
||||
return "tests_waitForEvent";
|
||||
case 655:
|
||||
return "tests_waitForEvent_2";
|
||||
case 656:
|
||||
return "tests_waitForResize";
|
||||
case 705:
|
||||
case 657:
|
||||
return "tests_waitForResize_2";
|
||||
case 658:
|
||||
return "ungrabMouse";
|
||||
case 706:
|
||||
case 659:
|
||||
return "uninstallMessageHandler";
|
||||
case 707:
|
||||
case 660:
|
||||
return "usesFallbackMouseGrabber";
|
||||
}
|
||||
throw Error();
|
||||
@@ -902,114 +1150,152 @@ class Platform {
|
||||
.asFunction();
|
||||
|
||||
//tag=1021
|
||||
final callback680 = ffi.Pointer.fromFunction<voidstar_Func_voidstar_FFI>(
|
||||
final callback626 = ffi.Pointer.fromFunction<voidstar_Func_voidstar_FFI>(
|
||||
Platform.applicationName_calledFromC);
|
||||
registerCallback(thisCpp, callback680, 680);
|
||||
registerCallback(thisCpp, callback626, 626);
|
||||
//tag=1021
|
||||
final callback681 = ffi.Pointer.fromFunction<voidstar_Func_voidstar_FFI>(
|
||||
final callback627 = ffi.Pointer.fromFunction<voidstar_Func_voidstar_FFI>(
|
||||
Platform.createDefaultViewFactory_calledFromC);
|
||||
registerCallback(thisCpp, callback681, 681);
|
||||
const callbackExcept682 = 0;
|
||||
registerCallback(thisCpp, callback627, 627);
|
||||
//tag=1021
|
||||
final callback682 = ffi.Pointer.fromFunction<bool_Func_voidstar_FFI>(
|
||||
Platform.hasActivePopup_calledFromC, callbackExcept682);
|
||||
registerCallback(thisCpp, callback682, 682);
|
||||
const callbackExcept683 = 0;
|
||||
final callback628 =
|
||||
ffi.Pointer.fromFunction<voidstar_Func_voidstar_voidstar_voidstar_FFI>(
|
||||
Platform.createView_calledFromC);
|
||||
registerCallback(thisCpp, callback628, 628);
|
||||
const callbackExcept629 = 0;
|
||||
//tag=1021
|
||||
final callback683 =
|
||||
final callback629 = ffi.Pointer.fromFunction<int_Func_voidstar_FFI>(
|
||||
Platform.displayType_calledFromC, callbackExcept629);
|
||||
registerCallback(thisCpp, callback629, 629);
|
||||
const callbackExcept630 = 0;
|
||||
//tag=1021
|
||||
final callback630 = ffi.Pointer.fromFunction<bool_Func_voidstar_FFI>(
|
||||
Platform.hasActivePopup_calledFromC, callbackExcept630);
|
||||
registerCallback(thisCpp, callback630, 630);
|
||||
const callbackExcept631 = 0;
|
||||
//tag=1021
|
||||
final callback631 =
|
||||
ffi.Pointer.fromFunction<bool_Func_voidstar_voidstar_FFI>(
|
||||
Platform.inDisallowedDragView_calledFromC, callbackExcept683);
|
||||
registerCallback(thisCpp, callback683, 683);
|
||||
Platform.inDisallowedDragView_calledFromC, callbackExcept631);
|
||||
registerCallback(thisCpp, callback631, 631);
|
||||
//tag=1021
|
||||
final callback684 = ffi.Pointer.fromFunction<void_Func_voidstar_FFI>(
|
||||
final callback632 = ffi.Pointer.fromFunction<void_Func_voidstar_FFI>(
|
||||
Platform.installMessageHandler_calledFromC);
|
||||
registerCallback(thisCpp, callback684, 684);
|
||||
const callbackExcept686 = 0;
|
||||
registerCallback(thisCpp, callback632, 632);
|
||||
const callbackExcept634 = 0;
|
||||
//tag=1021
|
||||
final callback686 = ffi.Pointer.fromFunction<bool_Func_voidstar_FFI>(
|
||||
Platform.isLeftMouseButtonPressed_calledFromC, callbackExcept686);
|
||||
registerCallback(thisCpp, callback686, 686);
|
||||
const callbackExcept687 = 0;
|
||||
final callback634 = ffi.Pointer.fromFunction<bool_Func_voidstar_FFI>(
|
||||
Platform.isLeftMouseButtonPressed_calledFromC, callbackExcept634);
|
||||
registerCallback(thisCpp, callback634, 634);
|
||||
const callbackExcept635 = 0;
|
||||
//tag=1021
|
||||
final callback687 = ffi.Pointer.fromFunction<bool_Func_voidstar_FFI>(
|
||||
Platform.isProcessingAppQuitEvent_calledFromC, callbackExcept687);
|
||||
registerCallback(thisCpp, callback687, 687);
|
||||
final callback635 = ffi.Pointer.fromFunction<bool_Func_voidstar_FFI>(
|
||||
Platform.isProcessingAppQuitEvent_calledFromC, callbackExcept635);
|
||||
registerCallback(thisCpp, callback635, 635);
|
||||
//tag=1021
|
||||
final callback690 = ffi.Pointer.fromFunction<string_Func_voidstar_FFI>(
|
||||
final callback638 = ffi.Pointer.fromFunction<string_Func_voidstar_FFI>(
|
||||
Platform.name_calledFromC);
|
||||
registerCallback(thisCpp, callback690, 690);
|
||||
registerCallback(thisCpp, callback638, 638);
|
||||
//tag=1021
|
||||
final callback691 = ffi.Pointer.fromFunction<voidstar_Func_voidstar_FFI>(
|
||||
final callback639 = ffi.Pointer.fromFunction<voidstar_Func_voidstar_FFI>(
|
||||
Platform.organizationName_calledFromC);
|
||||
registerCallback(thisCpp, callback691, 691);
|
||||
registerCallback(thisCpp, callback639, 639);
|
||||
//tag=1021
|
||||
final callback692 = ffi.Pointer.fromFunction<void_Func_voidstar_FFI>(
|
||||
final callback640 = ffi.Pointer.fromFunction<void_Func_voidstar_FFI>(
|
||||
Platform.restoreMouseCursor_calledFromC);
|
||||
registerCallback(thisCpp, callback692, 692);
|
||||
const callbackExcept693 = 0;
|
||||
registerCallback(thisCpp, callback640, 640);
|
||||
const callbackExcept641 = 0;
|
||||
//tag=1021
|
||||
final callback693 =
|
||||
final callback641 =
|
||||
ffi.Pointer.fromFunction<int_Func_voidstar_voidstar_FFI>(
|
||||
Platform.screenNumberFor_calledFromC, callbackExcept693);
|
||||
registerCallback(thisCpp, callback693, 693);
|
||||
Platform.screenNumberFor_calledFromC, callbackExcept641);
|
||||
registerCallback(thisCpp, callback641, 641);
|
||||
//tag=1021
|
||||
final callback694 =
|
||||
final callback642 =
|
||||
ffi.Pointer.fromFunction<voidstar_Func_voidstar_voidstar_FFI>(
|
||||
Platform.screenSizeFor_calledFromC);
|
||||
registerCallback(thisCpp, callback694, 694);
|
||||
const callbackExcept696 = 0;
|
||||
registerCallback(thisCpp, callback642, 642);
|
||||
//tag=1021
|
||||
final callback696 = ffi.Pointer.fromFunction<int_Func_voidstar_FFI>(
|
||||
Platform.startDragDistance_impl_calledFromC, callbackExcept696);
|
||||
registerCallback(thisCpp, callback696, 696);
|
||||
final callback643 =
|
||||
ffi.Pointer.fromFunction<void_Func_voidstar_voidstar_voidstar_FFI>(
|
||||
Platform.sendEvent_calledFromC);
|
||||
registerCallback(thisCpp, callback643, 643);
|
||||
//tag=1021
|
||||
final callback697 =
|
||||
final callback644 =
|
||||
ffi.Pointer.fromFunction<void_Func_voidstar_ffi_Int32_FFI>(
|
||||
Platform.setMouseCursor_calledFromC);
|
||||
registerCallback(thisCpp, callback644, 644);
|
||||
const callbackExcept646 = 0;
|
||||
//tag=1021
|
||||
final callback646 = ffi.Pointer.fromFunction<int_Func_voidstar_FFI>(
|
||||
Platform.startDragDistance_impl_calledFromC, callbackExcept646);
|
||||
registerCallback(thisCpp, callback646, 646);
|
||||
//tag=1021
|
||||
final callback647 =
|
||||
ffi.Pointer.fromFunction<voidstar_Func_voidstar_voidstar_FFI>(
|
||||
Platform.tests_createNonClosableView_calledFromC);
|
||||
registerCallback(thisCpp, callback697, 697);
|
||||
registerCallback(thisCpp, callback647, 647);
|
||||
//tag=1021
|
||||
final callback699 = ffi.Pointer.fromFunction<void_Func_voidstar_FFI>(
|
||||
final callback649 = ffi.Pointer.fromFunction<void_Func_voidstar_FFI>(
|
||||
Platform.tests_deinitPlatform_impl_calledFromC);
|
||||
registerCallback(thisCpp, callback699, 699);
|
||||
registerCallback(thisCpp, callback649, 649);
|
||||
//tag=1021
|
||||
final callback700 = ffi.Pointer.fromFunction<void_Func_voidstar_FFI>(
|
||||
final callback650 = ffi.Pointer.fromFunction<void_Func_voidstar_FFI>(
|
||||
Platform.tests_initPlatform_impl_calledFromC);
|
||||
registerCallback(thisCpp, callback700, 700);
|
||||
registerCallback(thisCpp, callback650, 650);
|
||||
//tag=1021
|
||||
final callback701 =
|
||||
final callback651 =
|
||||
ffi.Pointer.fromFunction<void_Func_voidstar_ffi_Int32_FFI>(
|
||||
Platform.tests_wait_calledFromC);
|
||||
registerCallback(thisCpp, callback701, 701);
|
||||
const callbackExcept702 = 0;
|
||||
registerCallback(thisCpp, callback651, 651);
|
||||
const callbackExcept652 = 0;
|
||||
//tag=1021
|
||||
final callback702 =
|
||||
final callback652 =
|
||||
ffi.Pointer.fromFunction<bool_Func_voidstar_voidstar_ffi_Int32_FFI>(
|
||||
Platform.tests_waitForDeleted_calledFromC, callbackExcept702);
|
||||
registerCallback(thisCpp, callback702, 702);
|
||||
const callbackExcept703 = 0;
|
||||
Platform.tests_waitForDeleted_calledFromC, callbackExcept652);
|
||||
registerCallback(thisCpp, callback652, 652);
|
||||
const callbackExcept653 = 0;
|
||||
//tag=1021
|
||||
final callback703 =
|
||||
final callback653 =
|
||||
ffi.Pointer.fromFunction<bool_Func_voidstar_voidstar_ffi_Int32_FFI>(
|
||||
Platform.tests_waitForDeleted_2_calledFromC, callbackExcept703);
|
||||
registerCallback(thisCpp, callback703, 703);
|
||||
const callbackExcept704 = 0;
|
||||
Platform.tests_waitForDeleted_2_calledFromC, callbackExcept653);
|
||||
registerCallback(thisCpp, callback653, 653);
|
||||
const callbackExcept654 = 0;
|
||||
//tag=1021
|
||||
final callback704 =
|
||||
final callback654 = ffi.Pointer.fromFunction<
|
||||
bool_Func_voidstar_voidstar_ffi_Int32_ffi_Int32_FFI>(
|
||||
Platform.tests_waitForEvent_calledFromC, callbackExcept654);
|
||||
registerCallback(thisCpp, callback654, 654);
|
||||
const callbackExcept655 = 0;
|
||||
//tag=1021
|
||||
final callback655 = ffi.Pointer.fromFunction<
|
||||
bool_Func_voidstar_voidstar_ffi_Int32_ffi_Int32_FFI>(
|
||||
Platform.tests_waitForEvent_2_calledFromC, callbackExcept655);
|
||||
registerCallback(thisCpp, callback655, 655);
|
||||
const callbackExcept656 = 0;
|
||||
//tag=1021
|
||||
final callback656 =
|
||||
ffi.Pointer.fromFunction<bool_Func_voidstar_voidstar_ffi_Int32_FFI>(
|
||||
Platform.tests_waitForResize_calledFromC, callbackExcept704);
|
||||
registerCallback(thisCpp, callback704, 704);
|
||||
Platform.tests_waitForResize_calledFromC, callbackExcept656);
|
||||
registerCallback(thisCpp, callback656, 656);
|
||||
const callbackExcept657 = 0;
|
||||
//tag=1021
|
||||
final callback705 = ffi.Pointer.fromFunction<void_Func_voidstar_FFI>(
|
||||
final callback657 =
|
||||
ffi.Pointer.fromFunction<bool_Func_voidstar_voidstar_ffi_Int32_FFI>(
|
||||
Platform.tests_waitForResize_2_calledFromC, callbackExcept657);
|
||||
registerCallback(thisCpp, callback657, 657);
|
||||
//tag=1021
|
||||
final callback658 = ffi.Pointer.fromFunction<void_Func_voidstar_FFI>(
|
||||
Platform.ungrabMouse_calledFromC);
|
||||
registerCallback(thisCpp, callback705, 705);
|
||||
registerCallback(thisCpp, callback658, 658);
|
||||
//tag=1021
|
||||
final callback706 = ffi.Pointer.fromFunction<void_Func_voidstar_FFI>(
|
||||
final callback659 = ffi.Pointer.fromFunction<void_Func_voidstar_FFI>(
|
||||
Platform.uninstallMessageHandler_calledFromC);
|
||||
registerCallback(thisCpp, callback706, 706);
|
||||
const callbackExcept707 = 0;
|
||||
registerCallback(thisCpp, callback659, 659);
|
||||
const callbackExcept660 = 0;
|
||||
//tag=1021
|
||||
final callback707 = ffi.Pointer.fromFunction<bool_Func_voidstar_FFI>(
|
||||
Platform.usesFallbackMouseGrabber_calledFromC, callbackExcept707);
|
||||
registerCallback(thisCpp, callback707, 707);
|
||||
final callback660 = ffi.Pointer.fromFunction<bool_Func_voidstar_FFI>(
|
||||
Platform.usesFallbackMouseGrabber_calledFromC, callbackExcept660);
|
||||
registerCallback(thisCpp, callback660, 660);
|
||||
}
|
||||
}
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -77,7 +77,7 @@ class QByteArray {
|
||||
|
||||
//tag=1027
|
||||
// append(const QByteArray & a)
|
||||
QByteArray append_1(QByteArray? a) {
|
||||
QByteArray append(QByteArray? a) {
|
||||
//tag=1028
|
||||
final voidstar_Func_voidstar_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<voidstar_Func_voidstar_voidstar_FFI>>(
|
||||
@@ -298,7 +298,7 @@ class QByteArray {
|
||||
|
||||
//tag=1027
|
||||
// contains(const QByteArray & a) const
|
||||
bool contains_1(QByteArray? a) {
|
||||
bool contains(QByteArray? a) {
|
||||
//tag=1028
|
||||
final bool_Func_voidstar_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<bool_Func_voidstar_voidstar_FFI>>(
|
||||
@@ -376,7 +376,7 @@ class QByteArray {
|
||||
|
||||
//tag=1027
|
||||
// endsWith(const QByteArray & a) const
|
||||
bool endsWith_1(QByteArray? a) {
|
||||
bool endsWith(QByteArray? a) {
|
||||
//tag=1028
|
||||
final bool_Func_voidstar_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<bool_Func_voidstar_voidstar_FFI>>(
|
||||
@@ -476,7 +476,7 @@ class QByteArray {
|
||||
|
||||
//tag=1027
|
||||
// indexOf(const QByteArray & a, int from) const
|
||||
int indexOf_1(QByteArray? a, {int from = 0}) {
|
||||
int indexOf(QByteArray? a, {int from = 0}) {
|
||||
//tag=1028
|
||||
final int_Func_voidstar_voidstar_int func = _dylib
|
||||
.lookup<ffi.NativeFunction<int_Func_voidstar_voidstar_ffi_Int32_FFI>>(
|
||||
@@ -502,7 +502,7 @@ class QByteArray {
|
||||
|
||||
//tag=1027
|
||||
// insert(int i, const QByteArray & a)
|
||||
QByteArray insert_1(int i, QByteArray? a) {
|
||||
QByteArray insert(int i, QByteArray? a) {
|
||||
//tag=1028
|
||||
final voidstar_Func_voidstar_int_voidstar func = _dylib
|
||||
.lookup<
|
||||
@@ -631,7 +631,7 @@ class QByteArray {
|
||||
|
||||
//tag=1027
|
||||
// lastIndexOf(const QByteArray & a, int from) const
|
||||
int lastIndexOf_1(QByteArray? a, {int from = -1}) {
|
||||
int lastIndexOf(QByteArray? a, {int from = -1}) {
|
||||
//tag=1028
|
||||
final int_Func_voidstar_voidstar_int func = _dylib
|
||||
.lookup<ffi.NativeFunction<int_Func_voidstar_voidstar_ffi_Int32_FFI>>(
|
||||
@@ -715,7 +715,7 @@ class QByteArray {
|
||||
static
|
||||
//tag=1027
|
||||
// number(int arg__1, int base)
|
||||
QByteArray number_1(int arg__1, {int base = 10}) {
|
||||
QByteArray number(int arg__1, {int base = 10}) {
|
||||
//tag=1028
|
||||
final voidstar_Func_int_int func = _dylib
|
||||
.lookup<ffi.NativeFunction<voidstar_Func_ffi_Int32_ffi_Int32_FFI>>(
|
||||
@@ -729,7 +729,7 @@ class QByteArray {
|
||||
|
||||
//tag=1027
|
||||
// prepend(const QByteArray & a)
|
||||
QByteArray prepend_1(QByteArray? a) {
|
||||
QByteArray prepend(QByteArray? a) {
|
||||
//tag=1028
|
||||
final voidstar_Func_voidstar_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<voidstar_Func_voidstar_voidstar_FFI>>(
|
||||
@@ -775,7 +775,7 @@ class QByteArray {
|
||||
|
||||
//tag=1027
|
||||
// push_back(const QByteArray & a)
|
||||
push_back_1(QByteArray? a) {
|
||||
push_back(QByteArray? a) {
|
||||
//tag=1028
|
||||
final void_Func_voidstar_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<void_Func_voidstar_voidstar_FFI>>(
|
||||
@@ -801,7 +801,7 @@ class QByteArray {
|
||||
|
||||
//tag=1027
|
||||
// push_front(const QByteArray & a)
|
||||
push_front_1(QByteArray? a) {
|
||||
push_front(QByteArray? a) {
|
||||
//tag=1028
|
||||
final void_Func_voidstar_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<void_Func_voidstar_voidstar_FFI>>(
|
||||
@@ -855,6 +855,25 @@ class QByteArray {
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// replace(const QByteArray & before, const QByteArray & after)
|
||||
QByteArray replace(QByteArray? before, QByteArray? after) {
|
||||
//tag=1028
|
||||
final voidstar_Func_voidstar_voidstar_voidstar func = _dylib
|
||||
.lookup<
|
||||
ffi.NativeFunction<
|
||||
voidstar_Func_voidstar_voidstar_voidstar_FFI>>(
|
||||
'c_QByteArray__replace_QByteArray_QByteArray')
|
||||
.asFunction();
|
||||
//tag=1033
|
||||
ffi.Pointer<void> result = func(
|
||||
thisCpp,
|
||||
before == null ? ffi.nullptr : before.thisCpp,
|
||||
after == null ? ffi.nullptr : after.thisCpp);
|
||||
return QByteArray.fromCppPointer(result, false);
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// replace(const QByteArray & before, const char * after)
|
||||
QByteArray replace_2(QByteArray? before, String? after) {
|
||||
@@ -1020,7 +1039,7 @@ class QByteArray {
|
||||
|
||||
//tag=1027
|
||||
// setNum(int arg__1, int base)
|
||||
QByteArray setNum_2(int arg__1, {int base = 10}) {
|
||||
QByteArray setNum(int arg__1, {int base = 10}) {
|
||||
//tag=1028
|
||||
final voidstar_Func_voidstar_int_int func = _dylib
|
||||
.lookup<
|
||||
@@ -1118,7 +1137,7 @@ class QByteArray {
|
||||
|
||||
//tag=1027
|
||||
// startsWith(const QByteArray & a) const
|
||||
bool startsWith_1(QByteArray? a) {
|
||||
bool startsWith(QByteArray? a) {
|
||||
//tag=1028
|
||||
final bool_Func_voidstar_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<bool_Func_voidstar_voidstar_FFI>>(
|
||||
|
||||
@@ -0,0 +1,375 @@
|
||||
/*
|
||||
This file is part of KDDockWidgets.
|
||||
|
||||
SPDX-FileCopyrightText: 2019-2022 Klarälvdalens Datakonsult AB, a KDAB Group company <info@kdab.com>
|
||||
Author: Sérgio Martins <sergio.martins@kdab.com>
|
||||
|
||||
SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only
|
||||
|
||||
Contact KDAB at <info@kdab.com> for commercial licensing options.
|
||||
*/
|
||||
|
||||
//tag=1052
|
||||
import 'dart:ffi' as ffi;
|
||||
import 'package:ffi/ffi.dart';
|
||||
import 'TypeHelpers.dart';
|
||||
import '../Bindings.dart';
|
||||
import '../FinalizerHelpers.dart';
|
||||
|
||||
//tag=1051
|
||||
var _dylib = Library.instance().dylib;
|
||||
final _finalizer =
|
||||
_dylib.lookup<ffi.NativeFunction<Dart_WeakPersistentHandleFinalizer_Type>>(
|
||||
'c_QEvent_Finalizer');
|
||||
|
||||
//tag=1038
|
||||
class QEvent_Type {
|
||||
static const None = 0;
|
||||
static const Timer = 1;
|
||||
static const MouseButtonPress = 2;
|
||||
static const MouseButtonRelease = 3;
|
||||
static const MouseButtonDblClick = 4;
|
||||
static const MouseMove = 5;
|
||||
static const KeyPress = 6;
|
||||
static const KeyRelease = 7;
|
||||
static const FocusIn = 8;
|
||||
static const FocusOut = 9;
|
||||
static const FocusAboutToChange = 23;
|
||||
static const Enter = 10;
|
||||
static const Leave = 11;
|
||||
static const Paint = 12;
|
||||
static const Move = 13;
|
||||
static const Resize = 14;
|
||||
static const Create = 15;
|
||||
static const Destroy = 16;
|
||||
static const Show = 17;
|
||||
static const Hide = 18;
|
||||
static const Close = 19;
|
||||
static const Quit = 20;
|
||||
static const ParentChange = 21;
|
||||
static const ParentAboutToChange = 131;
|
||||
static const ThreadChange = 22;
|
||||
static const WindowActivate = 24;
|
||||
static const WindowDeactivate = 25;
|
||||
static const ShowToParent = 26;
|
||||
static const HideToParent = 27;
|
||||
static const Wheel = 31;
|
||||
static const WindowTitleChange = 33;
|
||||
static const WindowIconChange = 34;
|
||||
static const ApplicationWindowIconChange = 35;
|
||||
static const ApplicationFontChange = 36;
|
||||
static const ApplicationLayoutDirectionChange = 37;
|
||||
static const ApplicationPaletteChange = 38;
|
||||
static const PaletteChange = 39;
|
||||
static const Clipboard = 40;
|
||||
static const Speech = 42;
|
||||
static const MetaCall = 43;
|
||||
static const SockAct = 50;
|
||||
static const WinEventAct = 132;
|
||||
static const DeferredDelete = 52;
|
||||
static const DragEnter = 60;
|
||||
static const DragMove = 61;
|
||||
static const DragLeave = 62;
|
||||
static const Drop = 63;
|
||||
static const DragResponse = 64;
|
||||
static const ChildAdded = 68;
|
||||
static const ChildPolished = 69;
|
||||
static const ChildRemoved = 71;
|
||||
static const ShowWindowRequest = 73;
|
||||
static const PolishRequest = 74;
|
||||
static const Polish = 75;
|
||||
static const LayoutRequest = 76;
|
||||
static const UpdateRequest = 77;
|
||||
static const UpdateLater = 78;
|
||||
static const EmbeddingControl = 79;
|
||||
static const ActivateControl = 80;
|
||||
static const DeactivateControl = 81;
|
||||
static const ContextMenu = 82;
|
||||
static const InputMethod = 83;
|
||||
static const TabletMove = 87;
|
||||
static const LocaleChange = 88;
|
||||
static const LanguageChange = 89;
|
||||
static const LayoutDirectionChange = 90;
|
||||
static const Style = 91;
|
||||
static const TabletPress = 92;
|
||||
static const TabletRelease = 93;
|
||||
static const OkRequest = 94;
|
||||
static const HelpRequest = 95;
|
||||
static const IconDrag = 96;
|
||||
static const FontChange = 97;
|
||||
static const EnabledChange = 98;
|
||||
static const ActivationChange = 99;
|
||||
static const StyleChange = 100;
|
||||
static const IconTextChange = 101;
|
||||
static const ModifiedChange = 102;
|
||||
static const MouseTrackingChange = 109;
|
||||
static const WindowBlocked = 103;
|
||||
static const WindowUnblocked = 104;
|
||||
static const WindowStateChange = 105;
|
||||
static const ReadOnlyChange = 106;
|
||||
static const ToolTip = 110;
|
||||
static const WhatsThis = 111;
|
||||
static const StatusTip = 112;
|
||||
static const ActionChanged = 113;
|
||||
static const ActionAdded = 114;
|
||||
static const ActionRemoved = 115;
|
||||
static const FileOpen = 116;
|
||||
static const Shortcut = 117;
|
||||
static const ShortcutOverride = 51;
|
||||
static const WhatsThisClicked = 118;
|
||||
static const ToolBarChange = 120;
|
||||
static const ApplicationActivate = 121;
|
||||
static const ApplicationActivated = 121;
|
||||
static const ApplicationDeactivate = 122;
|
||||
static const ApplicationDeactivated = 122;
|
||||
static const QueryWhatsThis = 123;
|
||||
static const EnterWhatsThisMode = 124;
|
||||
static const LeaveWhatsThisMode = 125;
|
||||
static const ZOrderChange = 126;
|
||||
static const HoverEnter = 127;
|
||||
static const HoverLeave = 128;
|
||||
static const HoverMove = 129;
|
||||
static const AcceptDropsChange = 152;
|
||||
static const ZeroTimerEvent = 154;
|
||||
static const GraphicsSceneMouseMove = 155;
|
||||
static const GraphicsSceneMousePress = 156;
|
||||
static const GraphicsSceneMouseRelease = 157;
|
||||
static const GraphicsSceneMouseDoubleClick = 158;
|
||||
static const GraphicsSceneContextMenu = 159;
|
||||
static const GraphicsSceneHoverEnter = 160;
|
||||
static const GraphicsSceneHoverMove = 161;
|
||||
static const GraphicsSceneHoverLeave = 162;
|
||||
static const GraphicsSceneHelp = 163;
|
||||
static const GraphicsSceneDragEnter = 164;
|
||||
static const GraphicsSceneDragMove = 165;
|
||||
static const GraphicsSceneDragLeave = 166;
|
||||
static const GraphicsSceneDrop = 167;
|
||||
static const GraphicsSceneWheel = 168;
|
||||
static const KeyboardLayoutChange = 169;
|
||||
static const DynamicPropertyChange = 170;
|
||||
static const TabletEnterProximity = 171;
|
||||
static const TabletLeaveProximity = 172;
|
||||
static const NonClientAreaMouseMove = 173;
|
||||
static const NonClientAreaMouseButtonPress = 174;
|
||||
static const NonClientAreaMouseButtonRelease = 175;
|
||||
static const NonClientAreaMouseButtonDblClick = 176;
|
||||
static const MacSizeChange = 177;
|
||||
static const ContentsRectChange = 178;
|
||||
static const MacGLWindowChange = 179;
|
||||
static const FutureCallOut = 180;
|
||||
static const GraphicsSceneResize = 181;
|
||||
static const GraphicsSceneMove = 182;
|
||||
static const CursorChange = 183;
|
||||
static const ToolTipChange = 184;
|
||||
static const NetworkReplyUpdated = 185;
|
||||
static const GrabMouse = 186;
|
||||
static const UngrabMouse = 187;
|
||||
static const GrabKeyboard = 188;
|
||||
static const UngrabKeyboard = 189;
|
||||
static const MacGLClearDrawable = 191;
|
||||
static const StateMachineSignal = 192;
|
||||
static const StateMachineWrapped = 193;
|
||||
static const TouchBegin = 194;
|
||||
static const TouchUpdate = 195;
|
||||
static const TouchEnd = 196;
|
||||
static const NativeGesture = 197;
|
||||
static const RequestSoftwareInputPanel = 199;
|
||||
static const CloseSoftwareInputPanel = 200;
|
||||
static const WinIdChange = 203;
|
||||
static const Gesture = 198;
|
||||
static const GestureOverride = 202;
|
||||
static const ScrollPrepare = 204;
|
||||
static const Scroll = 205;
|
||||
static const Expose = 206;
|
||||
static const InputMethodQuery = 207;
|
||||
static const OrientationChange = 208;
|
||||
static const TouchCancel = 209;
|
||||
static const ThemeChange = 210;
|
||||
static const SockClose = 211;
|
||||
static const PlatformPanel = 212;
|
||||
static const StyleAnimationUpdate = 213;
|
||||
static const ApplicationStateChange = 214;
|
||||
static const WindowChangeInternal = 215;
|
||||
static const ScreenChangeInternal = 216;
|
||||
static const PlatformSurface = 217;
|
||||
static const Pointer = 218;
|
||||
static const TabletTrackingChange = 219;
|
||||
static const User = 1000;
|
||||
static const MaxUser = 65535;
|
||||
}
|
||||
|
||||
class QEvent {
|
||||
//tag=1060
|
||||
static var s_dartInstanceByCppPtr = Map<int, QEvent>();
|
||||
var _thisCpp = null;
|
||||
bool _needsAutoDelete = false;
|
||||
get thisCpp => _thisCpp;
|
||||
set thisCpp(var ptr) {
|
||||
_thisCpp = ptr;
|
||||
ffi.Pointer<ffi.Void> ptrvoid = ptr.cast<ffi.Void>();
|
||||
if (_needsAutoDelete)
|
||||
newWeakPersistentHandle?.call(this, ptrvoid, 0, _finalizer);
|
||||
}
|
||||
|
||||
static bool isCached(var cppPointer) {
|
||||
//tag=1024
|
||||
return s_dartInstanceByCppPtr.containsKey(cppPointer.address);
|
||||
}
|
||||
|
||||
//tag=1061
|
||||
factory QEvent.fromCache(var cppPointer, [needsAutoDelete = false]) {
|
||||
return (s_dartInstanceByCppPtr[cppPointer.address] ??
|
||||
QEvent.fromCppPointer(cppPointer, needsAutoDelete)) as QEvent;
|
||||
}
|
||||
QEvent.fromCppPointer(var cppPointer, [this._needsAutoDelete = false]) {
|
||||
//tag=1024
|
||||
thisCpp = cppPointer;
|
||||
}
|
||||
//tag=1025
|
||||
QEvent.init() {}
|
||||
//tag=1023
|
||||
//QEvent(QEvent::Type type)
|
||||
QEvent(int type) {
|
||||
//tag=1075
|
||||
final voidstar_Func_int func = _dylib
|
||||
.lookup<ffi.NativeFunction<voidstar_Func_ffi_Int32_FFI>>(
|
||||
'c_QEvent__constructor_Type')
|
||||
.asFunction();
|
||||
thisCpp = func(type);
|
||||
QEvent.s_dartInstanceByCppPtr[thisCpp.address] = this;
|
||||
registerCallbacks();
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// accept()
|
||||
accept() {
|
||||
//tag=1028
|
||||
final void_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<void_Func_voidstar_FFI>>('c_QEvent__accept')
|
||||
.asFunction();
|
||||
//tag=1030
|
||||
func(thisCpp);
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// ignore()
|
||||
ignore() {
|
||||
//tag=1028
|
||||
final void_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<void_Func_voidstar_FFI>>('c_QEvent__ignore')
|
||||
.asFunction();
|
||||
//tag=1030
|
||||
func(thisCpp);
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// isAccepted() const
|
||||
bool isAccepted() {
|
||||
//tag=1028
|
||||
final bool_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<bool_Func_voidstar_FFI>>(
|
||||
'c_QEvent__isAccepted')
|
||||
.asFunction();
|
||||
//tag=1029
|
||||
return func(thisCpp) != 0;
|
||||
}
|
||||
|
||||
//tag=1024
|
||||
static
|
||||
//tag=1027
|
||||
// registerEventType(int hint)
|
||||
int registerEventType({int hint = -1}) {
|
||||
//tag=1028
|
||||
final int_Func_int func = _dylib
|
||||
.lookup<ffi.NativeFunction<int_Func_ffi_Int32_FFI>>(
|
||||
'c_static_QEvent__registerEventType_int')
|
||||
.asFunction();
|
||||
//tag=1031
|
||||
return func(hint);
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// setAccepted(bool accepted)
|
||||
setAccepted(bool accepted) {
|
||||
//tag=1028
|
||||
final void_Func_voidstar_bool func = _dylib
|
||||
.lookup<ffi.NativeFunction<void_Func_voidstar_ffi_Int8_FFI>>(
|
||||
'c_QEvent__setAccepted_bool')
|
||||
.asFunction();
|
||||
//tag=1030
|
||||
func(thisCpp, accepted ? 1 : 0);
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// setSpontaneous()
|
||||
setSpontaneous() {
|
||||
//tag=1028
|
||||
final void_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<void_Func_voidstar_FFI>>(
|
||||
'c_QEvent__setSpontaneous')
|
||||
.asFunction();
|
||||
//tag=1030
|
||||
func(thisCpp);
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// spontaneous() const
|
||||
bool spontaneous() {
|
||||
//tag=1028
|
||||
final bool_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<bool_Func_voidstar_FFI>>(
|
||||
'c_QEvent__spontaneous')
|
||||
.asFunction();
|
||||
//tag=1029
|
||||
return func(thisCpp) != 0;
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// type() const
|
||||
int type() {
|
||||
//tag=1028
|
||||
final int_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<int_Func_voidstar_FFI>>('c_QEvent__type')
|
||||
.asFunction();
|
||||
//tag=1031
|
||||
return func(thisCpp);
|
||||
}
|
||||
|
||||
//tag=1022
|
||||
void release() {
|
||||
final void_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<void_Func_voidstar_FFI>>(
|
||||
'c_QEvent__destructor')
|
||||
.asFunction();
|
||||
func(thisCpp);
|
||||
}
|
||||
|
||||
//tag=1019
|
||||
String cFunctionSymbolName(int methodId) {
|
||||
switch (methodId) {
|
||||
}
|
||||
return "";
|
||||
}
|
||||
|
||||
static String methodNameFromId(int methodId) {
|
||||
switch (methodId) {
|
||||
}
|
||||
throw Error();
|
||||
}
|
||||
|
||||
//tag=1020
|
||||
void registerCallbacks() {
|
||||
assert(thisCpp != null);
|
||||
final RegisterMethodIsReimplementedCallback registerCallback = _dylib
|
||||
.lookup<ffi.NativeFunction<RegisterMethodIsReimplementedCallback_FFI>>(
|
||||
'c_QEvent__registerVirtualMethodCallback')
|
||||
.asFunction();
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@@ -94,6 +94,32 @@ class QObject {
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// customEvent(QEvent * event)
|
||||
customEvent(QEvent? event) {
|
||||
//tag=1028
|
||||
final void_Func_voidstar_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<void_Func_voidstar_voidstar_FFI>>(
|
||||
cFunctionSymbolName(294))
|
||||
.asFunction();
|
||||
//tag=1030
|
||||
func(thisCpp, event == null ? ffi.nullptr : event.thisCpp);
|
||||
}
|
||||
|
||||
//tag=1035
|
||||
static void customEvent_calledFromC(
|
||||
ffi.Pointer<void> thisCpp, ffi.Pointer<void>? event) {
|
||||
var dartInstance = QObject.s_dartInstanceByCppPtr[thisCpp.address];
|
||||
if (dartInstance == null) {
|
||||
print(
|
||||
"Dart instance not found for QObject::customEvent(QEvent * event)! (${thisCpp.address})");
|
||||
throw Error();
|
||||
}
|
||||
//tag=1036
|
||||
dartInstance.customEvent(QEvent.fromCppPointer(event));
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// deleteLater()
|
||||
deleteLater() {
|
||||
@@ -246,6 +272,63 @@ class QObject {
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// event(QEvent * event)
|
||||
bool event(QEvent? event) {
|
||||
//tag=1028
|
||||
final bool_Func_voidstar_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<bool_Func_voidstar_voidstar_FFI>>(
|
||||
cFunctionSymbolName(305))
|
||||
.asFunction();
|
||||
//tag=1029
|
||||
return func(thisCpp, event == null ? ffi.nullptr : event.thisCpp) != 0;
|
||||
}
|
||||
|
||||
//tag=1035
|
||||
static int event_calledFromC(
|
||||
ffi.Pointer<void> thisCpp, ffi.Pointer<void>? event) {
|
||||
var dartInstance = QObject.s_dartInstanceByCppPtr[thisCpp.address];
|
||||
if (dartInstance == null) {
|
||||
print(
|
||||
"Dart instance not found for QObject::event(QEvent * event)! (${thisCpp.address})");
|
||||
throw Error();
|
||||
}
|
||||
//tag=1037
|
||||
final result = dartInstance.event(QEvent.fromCppPointer(event));
|
||||
return result ? 1 : 0;
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// eventFilter(QObject * watched, QEvent * event)
|
||||
bool eventFilter(QObject? watched, QEvent? event) {
|
||||
//tag=1028
|
||||
final bool_Func_voidstar_voidstar_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<bool_Func_voidstar_voidstar_voidstar_FFI>>(
|
||||
cFunctionSymbolName(306))
|
||||
.asFunction();
|
||||
//tag=1029
|
||||
return func(thisCpp, watched == null ? ffi.nullptr : watched.thisCpp,
|
||||
event == null ? ffi.nullptr : event.thisCpp) !=
|
||||
0;
|
||||
}
|
||||
|
||||
//tag=1035
|
||||
static int eventFilter_calledFromC(ffi.Pointer<void> thisCpp,
|
||||
ffi.Pointer<void>? watched, ffi.Pointer<void>? event) {
|
||||
var dartInstance = QObject.s_dartInstanceByCppPtr[thisCpp.address];
|
||||
if (dartInstance == null) {
|
||||
print(
|
||||
"Dart instance not found for QObject::eventFilter(QObject * watched, QEvent * event)! (${thisCpp.address})");
|
||||
throw Error();
|
||||
}
|
||||
//tag=1037
|
||||
final result = dartInstance.eventFilter(
|
||||
QObject.fromCppPointer(watched), QEvent.fromCppPointer(event));
|
||||
return result ? 1 : 0;
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// inherits(const char * classname) const
|
||||
bool inherits(String? classname) {
|
||||
@@ -471,12 +554,24 @@ class QObject {
|
||||
//tag=1019
|
||||
String cFunctionSymbolName(int methodId) {
|
||||
switch (methodId) {
|
||||
case 294:
|
||||
return "c_QObject__customEvent_QEvent";
|
||||
case 305:
|
||||
return "c_QObject__event_QEvent";
|
||||
case 306:
|
||||
return "c_QObject__eventFilter_QObject_QEvent";
|
||||
}
|
||||
return "";
|
||||
}
|
||||
|
||||
static String methodNameFromId(int methodId) {
|
||||
switch (methodId) {
|
||||
case 294:
|
||||
return "customEvent";
|
||||
case 305:
|
||||
return "event";
|
||||
case 306:
|
||||
return "eventFilter";
|
||||
}
|
||||
throw Error();
|
||||
}
|
||||
@@ -488,5 +583,23 @@ class QObject {
|
||||
.lookup<ffi.NativeFunction<RegisterMethodIsReimplementedCallback_FFI>>(
|
||||
'c_QObject__registerVirtualMethodCallback')
|
||||
.asFunction();
|
||||
|
||||
//tag=1021
|
||||
final callback294 =
|
||||
ffi.Pointer.fromFunction<void_Func_voidstar_voidstar_FFI>(
|
||||
QObject.customEvent_calledFromC);
|
||||
registerCallback(thisCpp, callback294, 294);
|
||||
const callbackExcept305 = 0;
|
||||
//tag=1021
|
||||
final callback305 =
|
||||
ffi.Pointer.fromFunction<bool_Func_voidstar_voidstar_FFI>(
|
||||
QObject.event_calledFromC, callbackExcept305);
|
||||
registerCallback(thisCpp, callback305, 305);
|
||||
const callbackExcept306 = 0;
|
||||
//tag=1021
|
||||
final callback306 =
|
||||
ffi.Pointer.fromFunction<bool_Func_voidstar_voidstar_voidstar_FFI>(
|
||||
QObject.eventFilter_calledFromC, callbackExcept306);
|
||||
registerCallback(thisCpp, callback306, 306);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -80,7 +80,7 @@ class QString {
|
||||
|
||||
//tag=1027
|
||||
// arg(const QString & a, int fieldWidth) const
|
||||
QString arg_1(String? a, {int fieldWidth = 0}) {
|
||||
QString arg(String? a, {int fieldWidth = 0}) {
|
||||
//tag=1028
|
||||
final voidstar_Func_voidstar_voidstar_int func = _dylib
|
||||
.lookup<
|
||||
@@ -833,7 +833,7 @@ class QString {
|
||||
static
|
||||
//tag=1027
|
||||
// number(int arg__1, int base)
|
||||
QString number_1(int arg__1, {int base = 10}) {
|
||||
QString number(int arg__1, {int base = 10}) {
|
||||
//tag=1028
|
||||
final voidstar_Func_int_int func = _dylib
|
||||
.lookup<ffi.NativeFunction<voidstar_Func_ffi_Int32_ffi_Int32_FFI>>(
|
||||
@@ -1038,7 +1038,7 @@ class QString {
|
||||
|
||||
//tag=1027
|
||||
// setNum(int arg__1, int base)
|
||||
QString setNum_2(int arg__1, {int base = 10}) {
|
||||
QString setNum(int arg__1, {int base = 10}) {
|
||||
//tag=1028
|
||||
final voidstar_Func_voidstar_int_int func = _dylib
|
||||
.lookup<
|
||||
|
||||
@@ -0,0 +1,63 @@
|
||||
/*
|
||||
This file is part of KDDockWidgets.
|
||||
|
||||
SPDX-FileCopyrightText: 2019-2022 Klarälvdalens Datakonsult AB, a KDAB Group company <info@kdab.com>
|
||||
Author: Sérgio Martins <sergio.martins@kdab.com>
|
||||
|
||||
SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only
|
||||
|
||||
Contact KDAB at <info@kdab.com> for commercial licensing options.
|
||||
*/
|
||||
|
||||
//tag=1052
|
||||
import 'dart:ffi' as ffi;
|
||||
import 'package:ffi/ffi.dart';
|
||||
import 'TypeHelpers.dart';
|
||||
import '../Bindings.dart';
|
||||
import '../FinalizerHelpers.dart';
|
||||
|
||||
//tag=1051
|
||||
var _dylib = Library.instance().dylib;
|
||||
|
||||
//tag=1038
|
||||
class Qt_CursorShape {
|
||||
static const ArrowCursor = 0;
|
||||
static const UpArrowCursor = 1;
|
||||
static const CrossCursor = 2;
|
||||
static const WaitCursor = 3;
|
||||
static const IBeamCursor = 4;
|
||||
static const SizeVerCursor = 5;
|
||||
static const SizeHorCursor = 6;
|
||||
static const SizeBDiagCursor = 7;
|
||||
static const SizeFDiagCursor = 8;
|
||||
static const SizeAllCursor = 9;
|
||||
static const BlankCursor = 10;
|
||||
static const SplitVCursor = 11;
|
||||
static const SplitHCursor = 12;
|
||||
static const PointingHandCursor = 13;
|
||||
static const ForbiddenCursor = 14;
|
||||
static const WhatsThisCursor = 15;
|
||||
static const BusyCursor = 16;
|
||||
static const OpenHandCursor = 17;
|
||||
static const ClosedHandCursor = 18;
|
||||
static const DragCopyCursor = 19;
|
||||
static const DragMoveCursor = 20;
|
||||
static const DragLinkCursor = 21;
|
||||
static const LastCursor = 21;
|
||||
static const BitmapCursor = 24;
|
||||
static const CustomCursor = 25;
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// qt_getEnumName(Qt::CursorShape arg__1)
|
||||
String qt_getEnumName(int arg__1) {
|
||||
//tag=1028
|
||||
final string_Func_int func = _dylib
|
||||
.lookup<ffi.NativeFunction<string_Func_ffi_Int32_FFI>>(
|
||||
'c_static_Qt__qt_getEnumName_CursorShape')
|
||||
.asFunction();
|
||||
//tag=1032
|
||||
ffi.Pointer<Utf8> result = func(arg__1);
|
||||
return result.toDartString();
|
||||
}
|
||||
@@ -0,0 +1,380 @@
|
||||
/*
|
||||
This file is part of KDDockWidgets.
|
||||
|
||||
SPDX-FileCopyrightText: 2019-2022 Klarälvdalens Datakonsult AB, a KDAB Group company <info@kdab.com>
|
||||
Author: Sérgio Martins <sergio.martins@kdab.com>
|
||||
|
||||
SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only
|
||||
|
||||
Contact KDAB at <info@kdab.com> for commercial licensing options.
|
||||
*/
|
||||
|
||||
//tag=1052
|
||||
import 'dart:ffi' as ffi;
|
||||
import 'package:ffi/ffi.dart';
|
||||
import 'TypeHelpers.dart';
|
||||
import '../Bindings.dart';
|
||||
import '../FinalizerHelpers.dart';
|
||||
|
||||
//tag=1051
|
||||
var _dylib = Library.instance().dylib;
|
||||
final _finalizer =
|
||||
_dylib.lookup<ffi.NativeFunction<Dart_WeakPersistentHandleFinalizer_Type>>(
|
||||
'c_KDDockWidgets__Screen_Finalizer');
|
||||
|
||||
class Screen {
|
||||
//tag=1060
|
||||
static var s_dartInstanceByCppPtr = Map<int, Screen>();
|
||||
var _thisCpp = null;
|
||||
bool _needsAutoDelete = false;
|
||||
get thisCpp => _thisCpp;
|
||||
set thisCpp(var ptr) {
|
||||
_thisCpp = ptr;
|
||||
ffi.Pointer<ffi.Void> ptrvoid = ptr.cast<ffi.Void>();
|
||||
if (_needsAutoDelete)
|
||||
newWeakPersistentHandle?.call(this, ptrvoid, 0, _finalizer);
|
||||
}
|
||||
|
||||
static bool isCached(var cppPointer) {
|
||||
//tag=1024
|
||||
return s_dartInstanceByCppPtr.containsKey(cppPointer.address);
|
||||
}
|
||||
|
||||
//tag=1061
|
||||
factory Screen.fromCache(var cppPointer, [needsAutoDelete = false]) {
|
||||
return (s_dartInstanceByCppPtr[cppPointer.address] ??
|
||||
Screen.fromCppPointer(cppPointer, needsAutoDelete)) as Screen;
|
||||
}
|
||||
Screen.fromCppPointer(var cppPointer, [this._needsAutoDelete = false]) {
|
||||
//tag=1024
|
||||
thisCpp = cppPointer;
|
||||
}
|
||||
//tag=1025
|
||||
Screen.init() {}
|
||||
//tag=1023
|
||||
//Screen()
|
||||
Screen() {
|
||||
//tag=1075
|
||||
final voidstar_Func_void func = _dylib
|
||||
.lookup<ffi.NativeFunction<voidstar_Func_void_FFI>>(
|
||||
'c_KDDockWidgets__Screen__constructor')
|
||||
.asFunction();
|
||||
thisCpp = func();
|
||||
Screen.s_dartInstanceByCppPtr[thisCpp.address] = this;
|
||||
registerCallbacks();
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// availableGeometry() const
|
||||
QRect availableGeometry() {
|
||||
//tag=1028
|
||||
final voidstar_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<voidstar_Func_voidstar_FFI>>(
|
||||
cFunctionSymbolName(617))
|
||||
.asFunction();
|
||||
//tag=1033
|
||||
ffi.Pointer<void> result = func(thisCpp);
|
||||
return QRect.fromCppPointer(result, true);
|
||||
}
|
||||
|
||||
//tag=1035
|
||||
static ffi.Pointer<void> availableGeometry_calledFromC(
|
||||
ffi.Pointer<void> thisCpp) {
|
||||
var dartInstance = Screen.s_dartInstanceByCppPtr[thisCpp.address];
|
||||
if (dartInstance == null) {
|
||||
print(
|
||||
"Dart instance not found for Screen::availableGeometry() const! (${thisCpp.address})");
|
||||
throw Error();
|
||||
}
|
||||
//tag=1037
|
||||
final result = dartInstance.availableGeometry();
|
||||
return result.thisCpp;
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// availableSize() const
|
||||
QSize availableSize() {
|
||||
//tag=1028
|
||||
final voidstar_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<voidstar_Func_voidstar_FFI>>(
|
||||
cFunctionSymbolName(618))
|
||||
.asFunction();
|
||||
//tag=1033
|
||||
ffi.Pointer<void> result = func(thisCpp);
|
||||
return QSize.fromCppPointer(result, true);
|
||||
}
|
||||
|
||||
//tag=1035
|
||||
static ffi.Pointer<void> availableSize_calledFromC(
|
||||
ffi.Pointer<void> thisCpp) {
|
||||
var dartInstance = Screen.s_dartInstanceByCppPtr[thisCpp.address];
|
||||
if (dartInstance == null) {
|
||||
print(
|
||||
"Dart instance not found for Screen::availableSize() const! (${thisCpp.address})");
|
||||
throw Error();
|
||||
}
|
||||
//tag=1037
|
||||
final result = dartInstance.availableSize();
|
||||
return result.thisCpp;
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// devicePixelRatio() const
|
||||
double devicePixelRatio() {
|
||||
//tag=1028
|
||||
final double_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<double_Func_voidstar_FFI>>(
|
||||
cFunctionSymbolName(619))
|
||||
.asFunction();
|
||||
//tag=1031
|
||||
return func(thisCpp);
|
||||
}
|
||||
|
||||
//tag=1035
|
||||
static double devicePixelRatio_calledFromC(ffi.Pointer<void> thisCpp) {
|
||||
var dartInstance = Screen.s_dartInstanceByCppPtr[thisCpp.address];
|
||||
if (dartInstance == null) {
|
||||
print(
|
||||
"Dart instance not found for Screen::devicePixelRatio() const! (${thisCpp.address})");
|
||||
throw Error();
|
||||
}
|
||||
//tag=1037
|
||||
final result = dartInstance.devicePixelRatio();
|
||||
return result;
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// geometry() const
|
||||
QRect geometry() {
|
||||
//tag=1028
|
||||
final voidstar_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<voidstar_Func_voidstar_FFI>>(
|
||||
cFunctionSymbolName(620))
|
||||
.asFunction();
|
||||
//tag=1033
|
||||
ffi.Pointer<void> result = func(thisCpp);
|
||||
return QRect.fromCppPointer(result, true);
|
||||
}
|
||||
|
||||
//tag=1035
|
||||
static ffi.Pointer<void> geometry_calledFromC(ffi.Pointer<void> thisCpp) {
|
||||
var dartInstance = Screen.s_dartInstanceByCppPtr[thisCpp.address];
|
||||
if (dartInstance == null) {
|
||||
print(
|
||||
"Dart instance not found for Screen::geometry() const! (${thisCpp.address})");
|
||||
throw Error();
|
||||
}
|
||||
//tag=1037
|
||||
final result = dartInstance.geometry();
|
||||
return result.thisCpp;
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// name() const
|
||||
QString name() {
|
||||
//tag=1028
|
||||
final voidstar_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<voidstar_Func_voidstar_FFI>>(
|
||||
cFunctionSymbolName(621))
|
||||
.asFunction();
|
||||
//tag=1033
|
||||
ffi.Pointer<void> result = func(thisCpp);
|
||||
return QString.fromCppPointer(result, true);
|
||||
}
|
||||
|
||||
//tag=1035
|
||||
static ffi.Pointer<void> name_calledFromC(ffi.Pointer<void> thisCpp) {
|
||||
var dartInstance = Screen.s_dartInstanceByCppPtr[thisCpp.address];
|
||||
if (dartInstance == null) {
|
||||
print(
|
||||
"Dart instance not found for Screen::name() const! (${thisCpp.address})");
|
||||
throw Error();
|
||||
}
|
||||
//tag=1037
|
||||
final result = dartInstance.name();
|
||||
return result.thisCpp;
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// size() const
|
||||
QSize size() {
|
||||
//tag=1028
|
||||
final voidstar_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<voidstar_Func_voidstar_FFI>>(
|
||||
cFunctionSymbolName(622))
|
||||
.asFunction();
|
||||
//tag=1033
|
||||
ffi.Pointer<void> result = func(thisCpp);
|
||||
return QSize.fromCppPointer(result, true);
|
||||
}
|
||||
|
||||
//tag=1035
|
||||
static ffi.Pointer<void> size_calledFromC(ffi.Pointer<void> thisCpp) {
|
||||
var dartInstance = Screen.s_dartInstanceByCppPtr[thisCpp.address];
|
||||
if (dartInstance == null) {
|
||||
print(
|
||||
"Dart instance not found for Screen::size() const! (${thisCpp.address})");
|
||||
throw Error();
|
||||
}
|
||||
//tag=1037
|
||||
final result = dartInstance.size();
|
||||
return result.thisCpp;
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// virtualGeometry() const
|
||||
QRect virtualGeometry() {
|
||||
//tag=1028
|
||||
final voidstar_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<voidstar_Func_voidstar_FFI>>(
|
||||
cFunctionSymbolName(623))
|
||||
.asFunction();
|
||||
//tag=1033
|
||||
ffi.Pointer<void> result = func(thisCpp);
|
||||
return QRect.fromCppPointer(result, true);
|
||||
}
|
||||
|
||||
//tag=1035
|
||||
static ffi.Pointer<void> virtualGeometry_calledFromC(
|
||||
ffi.Pointer<void> thisCpp) {
|
||||
var dartInstance = Screen.s_dartInstanceByCppPtr[thisCpp.address];
|
||||
if (dartInstance == null) {
|
||||
print(
|
||||
"Dart instance not found for Screen::virtualGeometry() const! (${thisCpp.address})");
|
||||
throw Error();
|
||||
}
|
||||
//tag=1037
|
||||
final result = dartInstance.virtualGeometry();
|
||||
return result.thisCpp;
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// virtualSize() const
|
||||
QSize virtualSize() {
|
||||
//tag=1028
|
||||
final voidstar_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<voidstar_Func_voidstar_FFI>>(
|
||||
cFunctionSymbolName(624))
|
||||
.asFunction();
|
||||
//tag=1033
|
||||
ffi.Pointer<void> result = func(thisCpp);
|
||||
return QSize.fromCppPointer(result, true);
|
||||
}
|
||||
|
||||
//tag=1035
|
||||
static ffi.Pointer<void> virtualSize_calledFromC(ffi.Pointer<void> thisCpp) {
|
||||
var dartInstance = Screen.s_dartInstanceByCppPtr[thisCpp.address];
|
||||
if (dartInstance == null) {
|
||||
print(
|
||||
"Dart instance not found for Screen::virtualSize() const! (${thisCpp.address})");
|
||||
throw Error();
|
||||
}
|
||||
//tag=1037
|
||||
final result = dartInstance.virtualSize();
|
||||
return result.thisCpp;
|
||||
}
|
||||
|
||||
//tag=1022
|
||||
void release() {
|
||||
final void_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<void_Func_voidstar_FFI>>(
|
||||
'c_KDDockWidgets__Screen__destructor')
|
||||
.asFunction();
|
||||
func(thisCpp);
|
||||
}
|
||||
|
||||
//tag=1019
|
||||
String cFunctionSymbolName(int methodId) {
|
||||
switch (methodId) {
|
||||
case 617:
|
||||
return "c_KDDockWidgets__Screen__availableGeometry";
|
||||
case 618:
|
||||
return "c_KDDockWidgets__Screen__availableSize";
|
||||
case 619:
|
||||
return "c_KDDockWidgets__Screen__devicePixelRatio";
|
||||
case 620:
|
||||
return "c_KDDockWidgets__Screen__geometry";
|
||||
case 621:
|
||||
return "c_KDDockWidgets__Screen__name";
|
||||
case 622:
|
||||
return "c_KDDockWidgets__Screen__size";
|
||||
case 623:
|
||||
return "c_KDDockWidgets__Screen__virtualGeometry";
|
||||
case 624:
|
||||
return "c_KDDockWidgets__Screen__virtualSize";
|
||||
}
|
||||
return "";
|
||||
}
|
||||
|
||||
static String methodNameFromId(int methodId) {
|
||||
switch (methodId) {
|
||||
case 617:
|
||||
return "availableGeometry";
|
||||
case 618:
|
||||
return "availableSize";
|
||||
case 619:
|
||||
return "devicePixelRatio";
|
||||
case 620:
|
||||
return "geometry";
|
||||
case 621:
|
||||
return "name";
|
||||
case 622:
|
||||
return "size";
|
||||
case 623:
|
||||
return "virtualGeometry";
|
||||
case 624:
|
||||
return "virtualSize";
|
||||
}
|
||||
throw Error();
|
||||
}
|
||||
|
||||
//tag=1020
|
||||
void registerCallbacks() {
|
||||
assert(thisCpp != null);
|
||||
final RegisterMethodIsReimplementedCallback registerCallback = _dylib
|
||||
.lookup<ffi.NativeFunction<RegisterMethodIsReimplementedCallback_FFI>>(
|
||||
'c_KDDockWidgets__Screen__registerVirtualMethodCallback')
|
||||
.asFunction();
|
||||
|
||||
//tag=1021
|
||||
final callback617 = ffi.Pointer.fromFunction<voidstar_Func_voidstar_FFI>(
|
||||
Screen.availableGeometry_calledFromC);
|
||||
registerCallback(thisCpp, callback617, 617);
|
||||
//tag=1021
|
||||
final callback618 = ffi.Pointer.fromFunction<voidstar_Func_voidstar_FFI>(
|
||||
Screen.availableSize_calledFromC);
|
||||
registerCallback(thisCpp, callback618, 618);
|
||||
//tag=1021
|
||||
final callback619 = ffi.Pointer.fromFunction<double_Func_voidstar_FFI>(
|
||||
Screen.devicePixelRatio_calledFromC);
|
||||
registerCallback(thisCpp, callback619, 619);
|
||||
//tag=1021
|
||||
final callback620 = ffi.Pointer.fromFunction<voidstar_Func_voidstar_FFI>(
|
||||
Screen.geometry_calledFromC);
|
||||
registerCallback(thisCpp, callback620, 620);
|
||||
//tag=1021
|
||||
final callback621 = ffi.Pointer.fromFunction<voidstar_Func_voidstar_FFI>(
|
||||
Screen.name_calledFromC);
|
||||
registerCallback(thisCpp, callback621, 621);
|
||||
//tag=1021
|
||||
final callback622 = ffi.Pointer.fromFunction<voidstar_Func_voidstar_FFI>(
|
||||
Screen.size_calledFromC);
|
||||
registerCallback(thisCpp, callback622, 622);
|
||||
//tag=1021
|
||||
final callback623 = ffi.Pointer.fromFunction<voidstar_Func_voidstar_FFI>(
|
||||
Screen.virtualGeometry_calledFromC);
|
||||
registerCallback(thisCpp, callback623, 623);
|
||||
//tag=1021
|
||||
final callback624 = ffi.Pointer.fromFunction<voidstar_Func_voidstar_FFI>(
|
||||
Screen.virtualSize_calledFromC);
|
||||
registerCallback(thisCpp, callback624, 624);
|
||||
}
|
||||
}
|
||||
@@ -22,6 +22,8 @@ typedef SignalHandler = void Function(
|
||||
ffi.Pointer<void>, ffi.Pointer<void>, ffi.Pointer<void>);
|
||||
typedef SignalHandler_FFI = ffi.Void Function(
|
||||
ffi.Pointer<void>, ffi.Pointer<void>, ffi.Pointer<void>);
|
||||
typedef string_Func_int = ffi.Pointer<Utf8> Function(int);
|
||||
typedef string_Func_ffi_Int32_FFI = ffi.Pointer<Utf8> Function(ffi.Int32);
|
||||
typedef voidstar_Func_void = ffi.Pointer<void> Function();
|
||||
typedef voidstar_Func_void_FFI = ffi.Pointer<void> Function();
|
||||
typedef voidstar_Func_voidstar_voidstar = ffi.Pointer<void> Function(
|
||||
@@ -250,6 +252,10 @@ typedef bool_Func_voidstar_string_voidstar_string = int Function(
|
||||
ffi.Pointer<void>, ffi.Pointer<Utf8>, ffi.Pointer<void>, ffi.Pointer<Utf8>);
|
||||
typedef bool_Func_voidstar_string_voidstar_string_FFI = ffi.Int8 Function(
|
||||
ffi.Pointer<void>, ffi.Pointer<Utf8>, ffi.Pointer<void>, ffi.Pointer<Utf8>);
|
||||
typedef bool_Func_voidstar_voidstar_voidstar = int Function(
|
||||
ffi.Pointer<void>, ffi.Pointer<void>, ffi.Pointer<void>);
|
||||
typedef bool_Func_voidstar_voidstar_voidstar_FFI = ffi.Int8 Function(
|
||||
ffi.Pointer<void>, ffi.Pointer<void>, ffi.Pointer<void>);
|
||||
typedef bool_Func_voidstar_string = int Function(
|
||||
ffi.Pointer<void>, ffi.Pointer<Utf8>);
|
||||
typedef bool_Func_voidstar_string_FFI = ffi.Int8 Function(
|
||||
@@ -272,6 +278,10 @@ typedef void_Func_voidstar_ffi_Int32_voidstar_FFI = ffi.Void Function(
|
||||
typedef void_Func_voidstar_bool = void Function(ffi.Pointer<void>, int);
|
||||
typedef void_Func_voidstar_ffi_Int8_FFI = ffi.Void Function(
|
||||
ffi.Pointer<void>, ffi.Int8);
|
||||
typedef voidstar_Func_int = ffi.Pointer<void> Function(int);
|
||||
typedef voidstar_Func_ffi_Int32_FFI = ffi.Pointer<void> Function(ffi.Int32);
|
||||
typedef int_Func_int = int Function(int);
|
||||
typedef int_Func_ffi_Int32_FFI = ffi.Int32 Function(ffi.Int32);
|
||||
typedef voidstar_Func_voidstar_string = ffi.Pointer<void> Function(
|
||||
ffi.Pointer<void>, ffi.Pointer<Utf8>);
|
||||
typedef voidstar_Func_voidstar_string_FFI = ffi.Pointer<void> Function(
|
||||
@@ -332,12 +342,18 @@ typedef voidstar_Func_voidstar_int_int_string_int = ffi.Pointer<void> Function(
|
||||
typedef voidstar_Func_voidstar_ffi_Int32_ffi_Int32_string_ffi_Int32_FFI
|
||||
= ffi.Pointer<void> Function(
|
||||
ffi.Pointer<void>, ffi.Int32, ffi.Int32, ffi.Pointer<Utf8>, ffi.Int32);
|
||||
typedef void_Func_voidstar_double = void Function(ffi.Pointer<void>, double);
|
||||
typedef void_Func_voidstar_ffi_Double_FFI = ffi.Void Function(
|
||||
ffi.Pointer<void>, ffi.Double);
|
||||
typedef void_Func_void = void Function();
|
||||
typedef void_Func_void_FFI = ffi.Void Function();
|
||||
typedef void_Func_voidstar_voidstar_voidstar = void Function(
|
||||
ffi.Pointer<void>, ffi.Pointer<void>, ffi.Pointer<void>);
|
||||
typedef void_Func_voidstar_voidstar_voidstar_FFI = ffi.Void Function(
|
||||
ffi.Pointer<void>, ffi.Pointer<void>, ffi.Pointer<void>);
|
||||
typedef bool_Func_voidstar_voidstar_int = int Function(
|
||||
ffi.Pointer<void>, ffi.Pointer<void>, int);
|
||||
typedef bool_Func_voidstar_voidstar_ffi_Int32_FFI = ffi.Int8 Function(
|
||||
ffi.Pointer<void>, ffi.Pointer<void>, ffi.Int32);
|
||||
typedef bool_Func_voidstar_voidstar_int_int = int Function(
|
||||
ffi.Pointer<void>, ffi.Pointer<void>, int, int);
|
||||
typedef bool_Func_voidstar_voidstar_ffi_Int32_ffi_Int32_FFI = ffi.Int8 Function(
|
||||
ffi.Pointer<void>, ffi.Pointer<void>, ffi.Int32, ffi.Int32);
|
||||
typedef void_Func_voidstar_double = void Function(ffi.Pointer<void>, double);
|
||||
typedef void_Func_voidstar_ffi_Double_FFI = ffi.Void Function(
|
||||
ffi.Pointer<void>, ffi.Double);
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -52,7 +52,7 @@ class ViewFactory extends QObject {
|
||||
//tag=1028
|
||||
final voidstar_Func_voidstar_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<voidstar_Func_voidstar_voidstar_FFI>>(
|
||||
cFunctionSymbolName(574))
|
||||
cFunctionSymbolName(589))
|
||||
.asFunction();
|
||||
//tag=1033
|
||||
ffi.Pointer<void> result =
|
||||
@@ -74,6 +74,54 @@ class ViewFactory extends QObject {
|
||||
final result = dartInstance.createRubberBand(View.fromCppPointer(parent));
|
||||
return result.thisCpp;
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1035
|
||||
static void customEvent_calledFromC(
|
||||
ffi.Pointer<void> thisCpp, ffi.Pointer<void>? event) {
|
||||
var dartInstance =
|
||||
QObject.s_dartInstanceByCppPtr[thisCpp.address] as ViewFactory;
|
||||
if (dartInstance == null) {
|
||||
print(
|
||||
"Dart instance not found for ViewFactory::customEvent(QEvent * event)! (${thisCpp.address})");
|
||||
throw Error();
|
||||
}
|
||||
//tag=1036
|
||||
dartInstance.customEvent(QEvent.fromCppPointer(event));
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1035
|
||||
static int event_calledFromC(
|
||||
ffi.Pointer<void> thisCpp, ffi.Pointer<void>? event) {
|
||||
var dartInstance =
|
||||
QObject.s_dartInstanceByCppPtr[thisCpp.address] as ViewFactory;
|
||||
if (dartInstance == null) {
|
||||
print(
|
||||
"Dart instance not found for ViewFactory::event(QEvent * event)! (${thisCpp.address})");
|
||||
throw Error();
|
||||
}
|
||||
//tag=1037
|
||||
final result = dartInstance.event(QEvent.fromCppPointer(event));
|
||||
return result ? 1 : 0;
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1035
|
||||
static int eventFilter_calledFromC(ffi.Pointer<void> thisCpp,
|
||||
ffi.Pointer<void>? watched, ffi.Pointer<void>? event) {
|
||||
var dartInstance =
|
||||
QObject.s_dartInstanceByCppPtr[thisCpp.address] as ViewFactory;
|
||||
if (dartInstance == null) {
|
||||
print(
|
||||
"Dart instance not found for ViewFactory::eventFilter(QObject * watched, QEvent * event)! (${thisCpp.address})");
|
||||
throw Error();
|
||||
}
|
||||
//tag=1037
|
||||
final result = dartInstance.eventFilter(
|
||||
QObject.fromCppPointer(watched), QEvent.fromCppPointer(event));
|
||||
return result ? 1 : 0;
|
||||
}
|
||||
|
||||
//tag=1024
|
||||
static
|
||||
@@ -103,16 +151,28 @@ class ViewFactory extends QObject {
|
||||
//tag=1019
|
||||
String cFunctionSymbolName(int methodId) {
|
||||
switch (methodId) {
|
||||
case 574:
|
||||
case 589:
|
||||
return "c_KDDockWidgets__ViewFactory__createRubberBand_View";
|
||||
case 294:
|
||||
return "c_KDDockWidgets__ViewFactory__customEvent_QEvent";
|
||||
case 305:
|
||||
return "c_KDDockWidgets__ViewFactory__event_QEvent";
|
||||
case 306:
|
||||
return "c_KDDockWidgets__ViewFactory__eventFilter_QObject_QEvent";
|
||||
}
|
||||
return super.cFunctionSymbolName(methodId);
|
||||
}
|
||||
|
||||
static String methodNameFromId(int methodId) {
|
||||
switch (methodId) {
|
||||
case 574:
|
||||
case 589:
|
||||
return "createRubberBand";
|
||||
case 294:
|
||||
return "customEvent";
|
||||
case 305:
|
||||
return "event";
|
||||
case 306:
|
||||
return "eventFilter";
|
||||
}
|
||||
throw Error();
|
||||
}
|
||||
@@ -126,9 +186,26 @@ class ViewFactory extends QObject {
|
||||
.asFunction();
|
||||
|
||||
//tag=1021
|
||||
final callback574 =
|
||||
final callback589 =
|
||||
ffi.Pointer.fromFunction<voidstar_Func_voidstar_voidstar_FFI>(
|
||||
ViewFactory.createRubberBand_calledFromC);
|
||||
registerCallback(thisCpp, callback574, 574);
|
||||
registerCallback(thisCpp, callback589, 589);
|
||||
//tag=1021
|
||||
final callback294 =
|
||||
ffi.Pointer.fromFunction<void_Func_voidstar_voidstar_FFI>(
|
||||
QObject.customEvent_calledFromC);
|
||||
registerCallback(thisCpp, callback294, 294);
|
||||
const callbackExcept305 = 0;
|
||||
//tag=1021
|
||||
final callback305 =
|
||||
ffi.Pointer.fromFunction<bool_Func_voidstar_voidstar_FFI>(
|
||||
QObject.event_calledFromC, callbackExcept305);
|
||||
registerCallback(thisCpp, callback305, 305);
|
||||
const callbackExcept306 = 0;
|
||||
//tag=1021
|
||||
final callback306 =
|
||||
ffi.Pointer.fromFunction<bool_Func_voidstar_voidstar_voidstar_FFI>(
|
||||
QObject.eventFilter_calledFromC, callbackExcept306);
|
||||
registerCallback(thisCpp, callback306, 306);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user