flutter: Add bindings to View, ViewFactory and Platform
This commit is contained in:
@@ -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 "KDDockWidgets_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 "KDDockWidgets_exports.h"
|
||||
#include <Qt5Qt6Compat_p.h>
|
||||
|
||||
extern "C" {
|
||||
|
||||
// tag=1047
|
||||
KDDockWidgets_EXPORT void c_KDDockWidgets_Finalizer(void *, void *cppObj, void *);
|
||||
}
|
||||
@@ -0,0 +1,620 @@
|
||||
/*
|
||||
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 KDDockWidgets_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 {};
|
||||
}
|
||||
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();
|
||||
}
|
||||
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;
|
||||
}
|
||||
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 KDDockWidgets_wrappersNS::Platform_wrapper *fromWrapperPtr(void *ptr)
|
||||
{
|
||||
return reinterpret_cast<KDDockWidgets_wrappersNS::Platform_wrapper *>(ptr);
|
||||
}
|
||||
extern "C" {
|
||||
|
||||
// tag=1049
|
||||
void c_KDDockWidgets__Platform_Finalizer(void *, void *cppObj, void *)
|
||||
{
|
||||
delete reinterpret_cast<KDDockWidgets_wrappersNS::Platform_wrapper *>(cppObj);
|
||||
}
|
||||
void *c_KDDockWidgets__Platform__constructor()
|
||||
{
|
||||
|
||||
// tag=1056
|
||||
auto ptr = new KDDockWidgets_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<KDDockWidgets_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<KDDockWidgets_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<KDDockWidgets_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<KDDockWidgets_wrappersNS::Platform_wrapper*>(targetPtr);if (wrapperPtr) { return wrapperPtr->inDisallowedDragView_nocallback(globalPos);} else { return targetPtr->inDisallowedDragView(globalPos);} }();
|
||||
}
|
||||
|
||||
// tag=1050
|
||||
// instance()
|
||||
void *c_static_KDDockWidgets__Platform__instance()
|
||||
{
|
||||
return
|
||||
// tag=1068
|
||||
KDDockWidgets_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<KDDockWidgets_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<KDDockWidgets_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<KDDockWidgets_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<KDDockWidgets_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<KDDockWidgets_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<KDDockWidgets_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<KDDockWidgets_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
|
||||
// ungrabMouse()
|
||||
void c_KDDockWidgets__Platform__ungrabMouse(void *thisObj)
|
||||
{
|
||||
// tag=1016
|
||||
[&] {auto targetPtr = fromPtr(thisObj);auto wrapperPtr = dynamic_cast<KDDockWidgets_wrappersNS::Platform_wrapper*>(targetPtr);if (wrapperPtr) { return wrapperPtr->ungrabMouse_nocallback();} else { return targetPtr->ungrabMouse();} }();
|
||||
}
|
||||
|
||||
// tag=1050
|
||||
// usesFallbackMouseGrabber() const
|
||||
bool c_KDDockWidgets__Platform__usesFallbackMouseGrabber(void *thisObj)
|
||||
{
|
||||
return
|
||||
// tag=1016
|
||||
[&] {auto targetPtr = fromPtr(thisObj);auto wrapperPtr = dynamic_cast<KDDockWidgets_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);
|
||||
}
|
||||
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<KDDockWidgets_wrappersNS::Platform_wrapper::Callback_applicationName>(callback);
|
||||
break;
|
||||
case 681:
|
||||
wrapper->m_createDefaultViewFactoryCallback = reinterpret_cast<KDDockWidgets_wrappersNS::Platform_wrapper::Callback_createDefaultViewFactory>(callback);
|
||||
break;
|
||||
case 682:
|
||||
wrapper->m_hasActivePopupCallback = reinterpret_cast<KDDockWidgets_wrappersNS::Platform_wrapper::Callback_hasActivePopup>(callback);
|
||||
break;
|
||||
case 683:
|
||||
wrapper->m_inDisallowedDragViewCallback = reinterpret_cast<KDDockWidgets_wrappersNS::Platform_wrapper::Callback_inDisallowedDragView>(callback);
|
||||
break;
|
||||
case 685:
|
||||
wrapper->m_isLeftMouseButtonPressedCallback = reinterpret_cast<KDDockWidgets_wrappersNS::Platform_wrapper::Callback_isLeftMouseButtonPressed>(callback);
|
||||
break;
|
||||
case 686:
|
||||
wrapper->m_isProcessingAppQuitEventCallback = reinterpret_cast<KDDockWidgets_wrappersNS::Platform_wrapper::Callback_isProcessingAppQuitEvent>(callback);
|
||||
break;
|
||||
case 689:
|
||||
wrapper->m_nameCallback = reinterpret_cast<KDDockWidgets_wrappersNS::Platform_wrapper::Callback_name>(callback);
|
||||
break;
|
||||
case 690:
|
||||
wrapper->m_organizationNameCallback = reinterpret_cast<KDDockWidgets_wrappersNS::Platform_wrapper::Callback_organizationName>(callback);
|
||||
break;
|
||||
case 691:
|
||||
wrapper->m_restoreMouseCursorCallback = reinterpret_cast<KDDockWidgets_wrappersNS::Platform_wrapper::Callback_restoreMouseCursor>(callback);
|
||||
break;
|
||||
case 692:
|
||||
wrapper->m_screenNumberForCallback = reinterpret_cast<KDDockWidgets_wrappersNS::Platform_wrapper::Callback_screenNumberFor>(callback);
|
||||
break;
|
||||
case 693:
|
||||
wrapper->m_screenSizeForCallback = reinterpret_cast<KDDockWidgets_wrappersNS::Platform_wrapper::Callback_screenSizeFor>(callback);
|
||||
break;
|
||||
case 695:
|
||||
wrapper->m_startDragDistance_implCallback = reinterpret_cast<KDDockWidgets_wrappersNS::Platform_wrapper::Callback_startDragDistance_impl>(callback);
|
||||
break;
|
||||
case 696:
|
||||
wrapper->m_ungrabMouseCallback = reinterpret_cast<KDDockWidgets_wrappersNS::Platform_wrapper::Callback_ungrabMouse>(callback);
|
||||
break;
|
||||
case 697:
|
||||
wrapper->m_usesFallbackMouseGrabberCallback = reinterpret_cast<KDDockWidgets_wrappersNS::Platform_wrapper::Callback_usesFallbackMouseGrabber>(callback);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
222
src/flutter/generated/KDDockWidgets/dart/ffi/Platform_wrapper.h
Normal file
222
src/flutter/generated/KDDockWidgets/dart/ffi/Platform_wrapper.h
Normal file
@@ -0,0 +1,222 @@
|
||||
/*
|
||||
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 "KDDockWidgets_exports.h"
|
||||
#include <Platform.h>
|
||||
#include <ViewFactory.h>
|
||||
#include <View.h>
|
||||
#include <qsize.h>
|
||||
#include <qpoint.h>
|
||||
#include <qstring.h>
|
||||
|
||||
namespace KDDockWidgets_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
|
||||
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 void ungrabMouse();
|
||||
// tag=1008
|
||||
virtual void ungrabMouse_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 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 void (*Callback_ungrabMouse)(void *);
|
||||
Callback_ungrabMouse m_ungrabMouseCallback = nullptr;
|
||||
// tag=1042
|
||||
typedef bool (*Callback_usesFallbackMouseGrabber)(void *);
|
||||
Callback_usesFallbackMouseGrabber m_usesFallbackMouseGrabberCallback = nullptr;
|
||||
};
|
||||
}
|
||||
extern "C" {
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::Platform::Platform()
|
||||
KDDockWidgets_EXPORT void *c_KDDockWidgets__Platform__constructor();
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::Platform::applicationName() const
|
||||
KDDockWidgets_EXPORT void *c_KDDockWidgets__Platform__applicationName(void *thisObj);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::Platform::createDefaultViewFactory()
|
||||
KDDockWidgets_EXPORT void *c_KDDockWidgets__Platform__createDefaultViewFactory(void *thisObj);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::Platform::hasActivePopup() const
|
||||
KDDockWidgets_EXPORT bool c_KDDockWidgets__Platform__hasActivePopup(void *thisObj);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::Platform::inDisallowedDragView(QPoint globalPos) const
|
||||
KDDockWidgets_EXPORT bool c_KDDockWidgets__Platform__inDisallowedDragView_QPoint(void *thisObj, void *globalPos_);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::Platform::instance()
|
||||
KDDockWidgets_EXPORT void *c_static_KDDockWidgets__Platform__instance();
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::Platform::isLeftMouseButtonPressed() const
|
||||
KDDockWidgets_EXPORT bool c_KDDockWidgets__Platform__isLeftMouseButtonPressed(void *thisObj);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::Platform::isProcessingAppQuitEvent() const
|
||||
KDDockWidgets_EXPORT bool c_KDDockWidgets__Platform__isProcessingAppQuitEvent(void *thisObj);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::Platform::isQtQuick() const
|
||||
KDDockWidgets_EXPORT bool c_KDDockWidgets__Platform__isQtQuick(void *thisObj);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::Platform::isQtWidgets() const
|
||||
KDDockWidgets_EXPORT bool c_KDDockWidgets__Platform__isQtWidgets(void *thisObj);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::Platform::name() const
|
||||
KDDockWidgets_EXPORT const char *c_KDDockWidgets__Platform__name(void *thisObj);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::Platform::organizationName() const
|
||||
KDDockWidgets_EXPORT void *c_KDDockWidgets__Platform__organizationName(void *thisObj);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::Platform::restoreMouseCursor()
|
||||
KDDockWidgets_EXPORT void c_KDDockWidgets__Platform__restoreMouseCursor(void *thisObj);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::Platform::screenNumberFor(KDDockWidgets::View * arg__1) const
|
||||
KDDockWidgets_EXPORT int c_KDDockWidgets__Platform__screenNumberFor_View(void *thisObj, void *arg__1_);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::Platform::screenSizeFor(KDDockWidgets::View * arg__1) const
|
||||
KDDockWidgets_EXPORT void *c_KDDockWidgets__Platform__screenSizeFor_View(void *thisObj, void *arg__1_);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::Platform::startDragDistance() const
|
||||
KDDockWidgets_EXPORT int c_KDDockWidgets__Platform__startDragDistance(void *thisObj);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::Platform::startDragDistance_impl() const
|
||||
KDDockWidgets_EXPORT int c_KDDockWidgets__Platform__startDragDistance_impl(void *thisObj);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::Platform::ungrabMouse()
|
||||
KDDockWidgets_EXPORT void c_KDDockWidgets__Platform__ungrabMouse(void *thisObj);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::Platform::usesFallbackMouseGrabber() const
|
||||
KDDockWidgets_EXPORT bool c_KDDockWidgets__Platform__usesFallbackMouseGrabber(void *thisObj);
|
||||
|
||||
// tag=1066
|
||||
KDDockWidgets_EXPORT void c_KDDockWidgets__Platform__destructor(void *thisObj);
|
||||
|
||||
// tag=1046
|
||||
KDDockWidgets_EXPORT void c_KDDockWidgets__Platform__registerVirtualMethodCallback(void *ptr, void *callback, int methodId);
|
||||
// tag=1047
|
||||
KDDockWidgets_EXPORT void c_KDDockWidgets__Platform_Finalizer(void *, void *cppObj, void *);
|
||||
}
|
||||
@@ -1,9 +1,3 @@
|
||||
|
||||
// tag=1040
|
||||
#include "KDDockWidgets_exports.h"
|
||||
#include <qbytearray.h>
|
||||
#include <qlist.h>
|
||||
|
||||
/*
|
||||
This file is part of KDDockWidgets.
|
||||
|
||||
@@ -14,6 +8,12 @@
|
||||
|
||||
Contact KDAB at <info@kdab.com> for commercial licensing options.
|
||||
*/
|
||||
|
||||
// tag=1040
|
||||
#include "KDDockWidgets_exports.h"
|
||||
#include <qbytearray.h>
|
||||
#include <qlist.h>
|
||||
|
||||
namespace KDDockWidgets_wrappersNS {
|
||||
// tag=1043
|
||||
class QByteArray_wrapper : public ::QByteArray
|
||||
|
||||
@@ -1,11 +1,3 @@
|
||||
|
||||
// tag=1040
|
||||
#include "KDDockWidgets_exports.h"
|
||||
#include <qlist.h>
|
||||
#include <qobject.h>
|
||||
#include <qstring.h>
|
||||
#include <qbytearray.h>
|
||||
|
||||
/*
|
||||
This file is part of KDDockWidgets.
|
||||
|
||||
@@ -16,6 +8,14 @@
|
||||
|
||||
Contact KDAB at <info@kdab.com> for commercial licensing options.
|
||||
*/
|
||||
|
||||
// tag=1040
|
||||
#include "KDDockWidgets_exports.h"
|
||||
#include <qlist.h>
|
||||
#include <qobject.h>
|
||||
#include <qstring.h>
|
||||
#include <qbytearray.h>
|
||||
|
||||
namespace KDDockWidgets_wrappersNS {
|
||||
// tag=1043
|
||||
template<typename T>
|
||||
|
||||
@@ -1,11 +1,3 @@
|
||||
|
||||
// tag=1040
|
||||
#include "KDDockWidgets_exports.h"
|
||||
#include <qobject.h>
|
||||
#include <qstring.h>
|
||||
#include <qlist.h>
|
||||
#include <qbytearray.h>
|
||||
|
||||
/*
|
||||
This file is part of KDDockWidgets.
|
||||
|
||||
@@ -16,6 +8,14 @@
|
||||
|
||||
Contact KDAB at <info@kdab.com> for commercial licensing options.
|
||||
*/
|
||||
|
||||
// tag=1040
|
||||
#include "KDDockWidgets_exports.h"
|
||||
#include <qobject.h>
|
||||
#include <qstring.h>
|
||||
#include <qlist.h>
|
||||
#include <qbytearray.h>
|
||||
|
||||
namespace KDDockWidgets_wrappersNS {
|
||||
// tag=1017
|
||||
class QObject_wrapper : public ::QObject
|
||||
|
||||
@@ -1,8 +1,3 @@
|
||||
|
||||
// tag=1040
|
||||
#include "KDDockWidgets_exports.h"
|
||||
#include <qpoint.h>
|
||||
|
||||
/*
|
||||
This file is part of KDDockWidgets.
|
||||
|
||||
@@ -13,6 +8,11 @@
|
||||
|
||||
Contact KDAB at <info@kdab.com> for commercial licensing options.
|
||||
*/
|
||||
|
||||
// tag=1040
|
||||
#include "KDDockWidgets_exports.h"
|
||||
#include <qpoint.h>
|
||||
|
||||
namespace KDDockWidgets_wrappersNS {
|
||||
// tag=1043
|
||||
class QPoint_wrapper : public ::QPoint
|
||||
|
||||
@@ -1,10 +1,3 @@
|
||||
|
||||
// tag=1040
|
||||
#include "KDDockWidgets_exports.h"
|
||||
#include <qrect.h>
|
||||
#include <qpoint.h>
|
||||
#include <qsize.h>
|
||||
|
||||
/*
|
||||
This file is part of KDDockWidgets.
|
||||
|
||||
@@ -15,6 +8,13 @@
|
||||
|
||||
Contact KDAB at <info@kdab.com> for commercial licensing options.
|
||||
*/
|
||||
|
||||
// tag=1040
|
||||
#include "KDDockWidgets_exports.h"
|
||||
#include <qrect.h>
|
||||
#include <qpoint.h>
|
||||
#include <qsize.h>
|
||||
|
||||
namespace KDDockWidgets_wrappersNS {
|
||||
// tag=1043
|
||||
class QRect_wrapper : public ::QRect
|
||||
|
||||
@@ -1,8 +1,3 @@
|
||||
|
||||
// tag=1040
|
||||
#include "KDDockWidgets_exports.h"
|
||||
#include <qsize.h>
|
||||
|
||||
/*
|
||||
This file is part of KDDockWidgets.
|
||||
|
||||
@@ -13,6 +8,11 @@
|
||||
|
||||
Contact KDAB at <info@kdab.com> for commercial licensing options.
|
||||
*/
|
||||
|
||||
// tag=1040
|
||||
#include "KDDockWidgets_exports.h"
|
||||
#include <qsize.h>
|
||||
|
||||
namespace KDDockWidgets_wrappersNS {
|
||||
// tag=1043
|
||||
class QSize_wrapper : public ::QSize
|
||||
|
||||
@@ -1,9 +1,3 @@
|
||||
|
||||
// tag=1040
|
||||
#include "KDDockWidgets_exports.h"
|
||||
#include <qstring.h>
|
||||
#include <qbytearray.h>
|
||||
|
||||
/*
|
||||
This file is part of KDDockWidgets.
|
||||
|
||||
@@ -14,6 +8,12 @@
|
||||
|
||||
Contact KDAB at <info@kdab.com> for commercial licensing options.
|
||||
*/
|
||||
|
||||
// tag=1040
|
||||
#include "KDDockWidgets_exports.h"
|
||||
#include <qstring.h>
|
||||
#include <qbytearray.h>
|
||||
|
||||
namespace KDDockWidgets_wrappersNS {
|
||||
// tag=1043
|
||||
class QString_wrapper : public ::QString
|
||||
|
||||
@@ -0,0 +1,143 @@
|
||||
/*
|
||||
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 "ViewFactory_wrapper.h"
|
||||
|
||||
|
||||
#include <QDebug>
|
||||
|
||||
|
||||
namespace Dartagnan {
|
||||
|
||||
typedef int (*CleanupCallback)(void *thisPtr);
|
||||
static CleanupCallback s_cleanupCallback = nullptr;
|
||||
|
||||
template<typename T>
|
||||
struct ValueWrapper
|
||||
{
|
||||
T value;
|
||||
};
|
||||
|
||||
}
|
||||
namespace KDDockWidgets_wrappersNS {
|
||||
// tag=1006
|
||||
ViewFactory_wrapper::ViewFactory_wrapper()
|
||||
: ::KDDockWidgets::ViewFactory()
|
||||
{
|
||||
}
|
||||
KDDockWidgets::View *ViewFactory_wrapper::createRubberBand(KDDockWidgets::View *parent) const
|
||||
{
|
||||
// tag=1000
|
||||
if (m_createRubberBandCallback) {
|
||||
// tag=1001
|
||||
const void *thisPtr = this;
|
||||
return m_createRubberBandCallback(const_cast<void *>(thisPtr), parent);
|
||||
} else {
|
||||
// tag=1015
|
||||
qWarning() << Q_FUNC_INFO << "Warning: Calling pure-virtual";
|
||||
return {};
|
||||
}
|
||||
}
|
||||
// tag=1009
|
||||
KDDockWidgets::View *ViewFactory_wrapper::createRubberBand_nocallback(KDDockWidgets::View *parent) const
|
||||
{
|
||||
// tag=1003
|
||||
|
||||
// tag=1007
|
||||
qWarning() << Q_FUNC_INFO << "Warning: Calling pure-virtual";
|
||||
return {};
|
||||
}
|
||||
QString ViewFactory_wrapper::tr(const char *s, const char *c, int n)
|
||||
{
|
||||
// tag=1000
|
||||
|
||||
// tag=1004
|
||||
return ::KDDockWidgets::ViewFactory::tr(s, c, n);
|
||||
}
|
||||
|
||||
// tag=1005
|
||||
ViewFactory_wrapper::~ViewFactory_wrapper()
|
||||
{
|
||||
}
|
||||
|
||||
}
|
||||
// tag=1013
|
||||
static KDDockWidgets::ViewFactory *fromPtr(void *ptr)
|
||||
{
|
||||
return reinterpret_cast<KDDockWidgets::ViewFactory *>(ptr);
|
||||
}
|
||||
// tag=1014
|
||||
static KDDockWidgets_wrappersNS::ViewFactory_wrapper *fromWrapperPtr(void *ptr)
|
||||
{
|
||||
return reinterpret_cast<KDDockWidgets_wrappersNS::ViewFactory_wrapper *>(ptr);
|
||||
}
|
||||
extern "C" {
|
||||
|
||||
// tag=1049
|
||||
void c_KDDockWidgets__ViewFactory_Finalizer(void *, void *cppObj, void *)
|
||||
{
|
||||
delete reinterpret_cast<KDDockWidgets_wrappersNS::ViewFactory_wrapper *>(cppObj);
|
||||
}
|
||||
void *c_KDDockWidgets__ViewFactory__constructor()
|
||||
{
|
||||
|
||||
// tag=1056
|
||||
auto ptr = new KDDockWidgets_wrappersNS::ViewFactory_wrapper();
|
||||
return reinterpret_cast<void *>(ptr);
|
||||
}
|
||||
|
||||
// tag=1050
|
||||
// createRubberBand(KDDockWidgets::View * parent) const
|
||||
void *c_KDDockWidgets__ViewFactory__createRubberBand_View(void *thisObj, void *parent_)
|
||||
{
|
||||
auto parent = reinterpret_cast<KDDockWidgets::View *>(parent_);
|
||||
return
|
||||
// tag=1016
|
||||
[&] {auto targetPtr = fromPtr(thisObj);auto wrapperPtr = dynamic_cast<KDDockWidgets_wrappersNS::ViewFactory_wrapper*>(targetPtr);if (wrapperPtr) { return wrapperPtr->createRubberBand_nocallback(parent);} else { return targetPtr->createRubberBand(parent);} }();
|
||||
}
|
||||
|
||||
// tag=1079
|
||||
void c_KDDockWidgets__ViewFactory__onDestroyed_QObject(void *thisObj, void *contextQObject, void *callback)
|
||||
{
|
||||
auto instance = reinterpret_cast<ViewFactory *>(thisObj);
|
||||
auto context = reinterpret_cast<QObject *>(contextQObject);
|
||||
QObject::connect(instance, &ViewFactory::destroyed, context ? context : instance, [thisObj, callback] {
|
||||
typedef void (*SignalHandler_callback)(void *);
|
||||
auto dartCallback = reinterpret_cast<SignalHandler_callback>(callback);
|
||||
dartCallback(thisObj); });
|
||||
}
|
||||
|
||||
// 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)
|
||||
{
|
||||
return
|
||||
// tag=1068
|
||||
|
||||
// tag=1072
|
||||
new Dartagnan::ValueWrapper<QString> { KDDockWidgets_wrappersNS::ViewFactory_wrapper::tr(s, c, n) };
|
||||
}
|
||||
void c_KDDockWidgets__ViewFactory__destructor(void *thisObj)
|
||||
{
|
||||
|
||||
// tag=1055
|
||||
delete fromPtr(thisObj);
|
||||
}
|
||||
void c_KDDockWidgets__ViewFactory__registerVirtualMethodCallback(void *ptr, void *callback, int methodId)
|
||||
{
|
||||
// tag=1048
|
||||
auto wrapper = fromWrapperPtr(ptr);
|
||||
switch (methodId) {
|
||||
case 574:
|
||||
wrapper->m_createRubberBandCallback = reinterpret_cast<KDDockWidgets_wrappersNS::ViewFactory_wrapper::Callback_createRubberBand>(callback);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,61 @@
|
||||
/*
|
||||
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 "KDDockWidgets_exports.h"
|
||||
#include <ViewFactory.h>
|
||||
#include <qstring.h>
|
||||
#include <View.h>
|
||||
#include <qlist.h>
|
||||
#include <qbytearray.h>
|
||||
#include <qobject.h>
|
||||
|
||||
namespace KDDockWidgets_wrappersNS {
|
||||
// tag=1017
|
||||
class ViewFactory_wrapper : public ::KDDockWidgets::ViewFactory
|
||||
{
|
||||
public:
|
||||
~ViewFactory_wrapper();
|
||||
// tag=1041
|
||||
ViewFactory_wrapper();
|
||||
// tag=1041
|
||||
virtual KDDockWidgets::View *createRubberBand(KDDockWidgets::View *parent) const;
|
||||
// tag=1008
|
||||
virtual KDDockWidgets::View *createRubberBand_nocallback(KDDockWidgets::View *parent) const;
|
||||
// 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;
|
||||
};
|
||||
}
|
||||
extern "C" {
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::ViewFactory::ViewFactory()
|
||||
KDDockWidgets_EXPORT void *c_KDDockWidgets__ViewFactory__constructor();
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::ViewFactory::createRubberBand(KDDockWidgets::View * parent) const
|
||||
KDDockWidgets_EXPORT void *c_KDDockWidgets__ViewFactory__createRubberBand_View(void *thisObj, void *parent_);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::ViewFactory::tr(const char * s, const char * c, int n)
|
||||
KDDockWidgets_EXPORT void *c_static_KDDockWidgets__ViewFactory__tr_char_char_int(const char *s, const char *c, int n);
|
||||
|
||||
// tag=1066
|
||||
KDDockWidgets_EXPORT void c_KDDockWidgets__ViewFactory__destructor(void *thisObj);
|
||||
|
||||
// tag=1046
|
||||
KDDockWidgets_EXPORT void c_KDDockWidgets__ViewFactory__registerVirtualMethodCallback(void *ptr, void *callback, int methodId);
|
||||
// tag=1047
|
||||
KDDockWidgets_EXPORT void c_KDDockWidgets__ViewFactory_Finalizer(void *, void *cppObj, void *);
|
||||
}
|
||||
2219
src/flutter/generated/KDDockWidgets/dart/ffi/View_wrapper.cpp
Normal file
2219
src/flutter/generated/KDDockWidgets/dart/ffi/View_wrapper.cpp
Normal file
File diff suppressed because it is too large
Load Diff
759
src/flutter/generated/KDDockWidgets/dart/ffi/View_wrapper.h
Normal file
759
src/flutter/generated/KDDockWidgets/dart/ffi/View_wrapper.h
Normal file
@@ -0,0 +1,759 @@
|
||||
/*
|
||||
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 "KDDockWidgets_exports.h"
|
||||
#include <View.h>
|
||||
#include <qsize.h>
|
||||
#include <qrect.h>
|
||||
#include <qpoint.h>
|
||||
#include <qstring.h>
|
||||
|
||||
namespace KDDockWidgets_wrappersNS {
|
||||
// tag=1017
|
||||
class View_wrapper : public ::KDDockWidgets::View
|
||||
{
|
||||
public:
|
||||
~View_wrapper();
|
||||
// tag=1041
|
||||
bool aboutToBeDestroyed() const;
|
||||
// tag=1041
|
||||
virtual void activateWindow();
|
||||
// tag=1008
|
||||
virtual void activateWindow_nocallback();
|
||||
// tag=1041
|
||||
static QSize boundedMaxSize(QSize min, QSize max);
|
||||
// tag=1041
|
||||
virtual bool close();
|
||||
// tag=1008
|
||||
virtual bool close_nocallback();
|
||||
// tag=1041
|
||||
void closeRootView();
|
||||
// tag=1041
|
||||
virtual void createPlatformWindow();
|
||||
// tag=1008
|
||||
virtual void createPlatformWindow_nocallback();
|
||||
// tag=1041
|
||||
static bool equals(const KDDockWidgets::View *one, const KDDockWidgets::View *two);
|
||||
// tag=1041
|
||||
bool equals(const KDDockWidgets::View *other) const;
|
||||
// tag=1041
|
||||
void free();
|
||||
// tag=1041
|
||||
virtual void free_impl();
|
||||
// tag=1008
|
||||
virtual void free_impl_nocallback();
|
||||
// tag=1041
|
||||
bool freed() const;
|
||||
// tag=1041
|
||||
virtual QRect geometry() const;
|
||||
// tag=1008
|
||||
virtual QRect geometry_nocallback() const;
|
||||
// tag=1041
|
||||
QRect globalGeometry() const;
|
||||
// tag=1041
|
||||
virtual void grabMouse();
|
||||
// tag=1008
|
||||
virtual void grabMouse_nocallback();
|
||||
// tag=1041
|
||||
static QSize hardcodedMinimumSize();
|
||||
// tag=1041
|
||||
virtual bool hasFocus() const;
|
||||
// tag=1008
|
||||
virtual bool hasFocus_nocallback() const;
|
||||
// tag=1041
|
||||
int height() const;
|
||||
// tag=1041
|
||||
virtual void hide();
|
||||
// tag=1008
|
||||
virtual void hide_nocallback();
|
||||
// tag=1041
|
||||
QString id() const;
|
||||
// tag=1041
|
||||
bool inDtor() const;
|
||||
// tag=1041
|
||||
virtual void init();
|
||||
// tag=1008
|
||||
virtual void init_nocallback();
|
||||
// tag=1041
|
||||
virtual bool isActiveWindow() const;
|
||||
// tag=1008
|
||||
virtual bool isActiveWindow_nocallback() const;
|
||||
// tag=1041
|
||||
virtual bool isMaximized() const;
|
||||
// tag=1008
|
||||
virtual bool isMaximized_nocallback() const;
|
||||
// tag=1041
|
||||
virtual bool isMinimized() const;
|
||||
// tag=1008
|
||||
virtual bool isMinimized_nocallback() const;
|
||||
// tag=1041
|
||||
virtual bool isNull() const;
|
||||
// tag=1008
|
||||
virtual bool isNull_nocallback() const;
|
||||
// tag=1041
|
||||
virtual bool isRootView() const;
|
||||
// tag=1008
|
||||
virtual bool isRootView_nocallback() const;
|
||||
// tag=1041
|
||||
virtual bool isVisible() const;
|
||||
// tag=1008
|
||||
virtual bool isVisible_nocallback() const;
|
||||
// tag=1041
|
||||
virtual QPoint mapFromGlobal(QPoint arg__1) const;
|
||||
// tag=1008
|
||||
virtual QPoint mapFromGlobal_nocallback(QPoint arg__1) const;
|
||||
// tag=1041
|
||||
virtual QPoint mapTo(KDDockWidgets::View *arg__1, QPoint arg__2) const;
|
||||
// tag=1008
|
||||
virtual QPoint mapTo_nocallback(KDDockWidgets::View *arg__1, QPoint arg__2) const;
|
||||
// tag=1041
|
||||
virtual QPoint mapToGlobal(QPoint arg__1) const;
|
||||
// tag=1008
|
||||
virtual QPoint mapToGlobal_nocallback(QPoint arg__1) const;
|
||||
// tag=1041
|
||||
virtual QSize maxSizeHint() const;
|
||||
// tag=1008
|
||||
virtual QSize maxSizeHint_nocallback() const;
|
||||
// tag=1041
|
||||
virtual QSize maximumSize() const;
|
||||
// tag=1008
|
||||
virtual QSize maximumSize_nocallback() const;
|
||||
// tag=1041
|
||||
virtual QSize minSize() const;
|
||||
// tag=1008
|
||||
virtual QSize minSize_nocallback() const;
|
||||
// tag=1041
|
||||
virtual int minimumHeight() const;
|
||||
// tag=1008
|
||||
virtual int minimumHeight_nocallback() const;
|
||||
// tag=1041
|
||||
virtual int minimumWidth() const;
|
||||
// tag=1008
|
||||
virtual int minimumWidth_nocallback() const;
|
||||
// tag=1041
|
||||
void move(QPoint arg__1);
|
||||
// tag=1041
|
||||
virtual void move(int x, int y);
|
||||
// tag=1008
|
||||
virtual void move_nocallback(int x, int y);
|
||||
// tag=1041
|
||||
virtual QRect normalGeometry() const;
|
||||
// tag=1008
|
||||
virtual QRect normalGeometry_nocallback() const;
|
||||
// tag=1041
|
||||
virtual QString objectName() const;
|
||||
// tag=1008
|
||||
virtual QString objectName_nocallback() const;
|
||||
// tag=1041
|
||||
virtual bool onResize(QSize newSize);
|
||||
// tag=1008
|
||||
virtual bool onResize_nocallback(QSize newSize);
|
||||
// tag=1041
|
||||
QSize parentSize() const;
|
||||
// tag=1041
|
||||
QPoint pos() const;
|
||||
// tag=1041
|
||||
virtual void raise();
|
||||
// tag=1008
|
||||
virtual void raise_nocallback();
|
||||
// tag=1041
|
||||
virtual void raiseAndActivate();
|
||||
// tag=1008
|
||||
virtual void raiseAndActivate_nocallback();
|
||||
// tag=1041
|
||||
QRect rect() const;
|
||||
// tag=1041
|
||||
virtual void releaseKeyboard();
|
||||
// tag=1008
|
||||
virtual void releaseKeyboard_nocallback();
|
||||
// tag=1041
|
||||
virtual void releaseMouse();
|
||||
// tag=1008
|
||||
virtual void releaseMouse_nocallback();
|
||||
// tag=1041
|
||||
void resize(QSize arg__1);
|
||||
// tag=1041
|
||||
void resize(int w, int h);
|
||||
// tag=1041
|
||||
void setAboutToBeDestroyed();
|
||||
// tag=1041
|
||||
virtual void setFixedHeight(int arg__1);
|
||||
// tag=1008
|
||||
virtual void setFixedHeight_nocallback(int arg__1);
|
||||
// tag=1041
|
||||
virtual void setFixedWidth(int arg__1);
|
||||
// tag=1008
|
||||
virtual void setFixedWidth_nocallback(int arg__1);
|
||||
// tag=1041
|
||||
virtual void setGeometry(QRect arg__1);
|
||||
// tag=1008
|
||||
virtual void setGeometry_nocallback(QRect arg__1);
|
||||
// tag=1041
|
||||
virtual void setHeight(int height);
|
||||
// tag=1008
|
||||
virtual void setHeight_nocallback(int height);
|
||||
// tag=1041
|
||||
virtual void setMaximumSize(QSize sz);
|
||||
// tag=1008
|
||||
virtual void setMaximumSize_nocallback(QSize sz);
|
||||
// tag=1041
|
||||
virtual void setMinimumSize(QSize arg__1);
|
||||
// tag=1008
|
||||
virtual void setMinimumSize_nocallback(QSize arg__1);
|
||||
// tag=1041
|
||||
virtual void setMouseTracking(bool arg__1);
|
||||
// tag=1008
|
||||
virtual void setMouseTracking_nocallback(bool arg__1);
|
||||
// tag=1041
|
||||
virtual void setObjectName(const QString &arg__1);
|
||||
// tag=1008
|
||||
virtual void setObjectName_nocallback(const QString &arg__1);
|
||||
// tag=1041
|
||||
virtual void setParent(KDDockWidgets::View *arg__1);
|
||||
// tag=1008
|
||||
virtual void setParent_nocallback(KDDockWidgets::View *arg__1);
|
||||
// tag=1041
|
||||
void setSize(QSize arg__1);
|
||||
// tag=1041
|
||||
virtual void setSize(int width, int height);
|
||||
// tag=1008
|
||||
virtual void setSize_nocallback(int width, int height);
|
||||
// tag=1041
|
||||
virtual void setVisible(bool arg__1);
|
||||
// tag=1008
|
||||
virtual void setVisible_nocallback(bool arg__1);
|
||||
// tag=1041
|
||||
virtual void setWidth(int width);
|
||||
// tag=1008
|
||||
virtual void setWidth_nocallback(int width);
|
||||
// tag=1041
|
||||
virtual void setWindowOpacity(double arg__1);
|
||||
// tag=1008
|
||||
virtual void setWindowOpacity_nocallback(double arg__1);
|
||||
// tag=1041
|
||||
virtual void setWindowTitle(const QString &title);
|
||||
// tag=1008
|
||||
virtual void setWindowTitle_nocallback(const QString &title);
|
||||
// tag=1041
|
||||
virtual void setZOrder(int arg__1);
|
||||
// tag=1008
|
||||
virtual void setZOrder_nocallback(int arg__1);
|
||||
// tag=1041
|
||||
virtual void show();
|
||||
// tag=1008
|
||||
virtual void show_nocallback();
|
||||
// tag=1041
|
||||
virtual void showMaximized();
|
||||
// tag=1008
|
||||
virtual void showMaximized_nocallback();
|
||||
// tag=1041
|
||||
virtual void showMinimized();
|
||||
// tag=1008
|
||||
virtual void showMinimized_nocallback();
|
||||
// tag=1041
|
||||
virtual void showNormal();
|
||||
// tag=1008
|
||||
virtual void showNormal_nocallback();
|
||||
// tag=1041
|
||||
QSize size() const;
|
||||
// tag=1041
|
||||
virtual QSize sizeHint() const;
|
||||
// tag=1008
|
||||
virtual QSize sizeHint_nocallback() const;
|
||||
// tag=1041
|
||||
virtual void update();
|
||||
// tag=1008
|
||||
virtual void update_nocallback();
|
||||
// tag=1041
|
||||
int width() const;
|
||||
// tag=1041
|
||||
QRect windowGeometry() const;
|
||||
// tag=1041
|
||||
int x() const;
|
||||
// tag=1041
|
||||
int y() const;
|
||||
// tag=1042
|
||||
typedef void (*Callback_activateWindow)(void *);
|
||||
Callback_activateWindow m_activateWindowCallback = nullptr;
|
||||
// tag=1042
|
||||
typedef bool (*Callback_close)(void *);
|
||||
Callback_close m_closeCallback = nullptr;
|
||||
// tag=1042
|
||||
typedef void (*Callback_createPlatformWindow)(void *);
|
||||
Callback_createPlatformWindow m_createPlatformWindowCallback = nullptr;
|
||||
// tag=1042
|
||||
typedef void (*Callback_free_impl)(void *);
|
||||
Callback_free_impl m_free_implCallback = nullptr;
|
||||
// tag=1042
|
||||
typedef QRect *(*Callback_geometry)(void *);
|
||||
Callback_geometry m_geometryCallback = nullptr;
|
||||
// tag=1042
|
||||
typedef void (*Callback_grabMouse)(void *);
|
||||
Callback_grabMouse m_grabMouseCallback = nullptr;
|
||||
// tag=1042
|
||||
typedef bool (*Callback_hasFocus)(void *);
|
||||
Callback_hasFocus m_hasFocusCallback = nullptr;
|
||||
// tag=1042
|
||||
typedef void (*Callback_hide)(void *);
|
||||
Callback_hide m_hideCallback = nullptr;
|
||||
// tag=1042
|
||||
typedef void (*Callback_init)(void *);
|
||||
Callback_init m_initCallback = nullptr;
|
||||
// tag=1042
|
||||
typedef bool (*Callback_isActiveWindow)(void *);
|
||||
Callback_isActiveWindow m_isActiveWindowCallback = nullptr;
|
||||
// tag=1042
|
||||
typedef bool (*Callback_isMaximized)(void *);
|
||||
Callback_isMaximized m_isMaximizedCallback = nullptr;
|
||||
// tag=1042
|
||||
typedef bool (*Callback_isMinimized)(void *);
|
||||
Callback_isMinimized m_isMinimizedCallback = nullptr;
|
||||
// tag=1042
|
||||
typedef bool (*Callback_isNull)(void *);
|
||||
Callback_isNull m_isNullCallback = nullptr;
|
||||
// tag=1042
|
||||
typedef bool (*Callback_isRootView)(void *);
|
||||
Callback_isRootView m_isRootViewCallback = nullptr;
|
||||
// tag=1042
|
||||
typedef bool (*Callback_isVisible)(void *);
|
||||
Callback_isVisible m_isVisibleCallback = nullptr;
|
||||
// tag=1042
|
||||
typedef QPoint *(*Callback_mapFromGlobal)(void *, QPoint arg__1);
|
||||
Callback_mapFromGlobal m_mapFromGlobalCallback = nullptr;
|
||||
// tag=1042
|
||||
typedef QPoint *(*Callback_mapTo)(void *, KDDockWidgets::View *arg__1, QPoint arg__2);
|
||||
Callback_mapTo m_mapToCallback = nullptr;
|
||||
// tag=1042
|
||||
typedef QPoint *(*Callback_mapToGlobal)(void *, QPoint arg__1);
|
||||
Callback_mapToGlobal m_mapToGlobalCallback = nullptr;
|
||||
// tag=1042
|
||||
typedef QSize *(*Callback_maxSizeHint)(void *);
|
||||
Callback_maxSizeHint m_maxSizeHintCallback = nullptr;
|
||||
// tag=1042
|
||||
typedef QSize *(*Callback_maximumSize)(void *);
|
||||
Callback_maximumSize m_maximumSizeCallback = nullptr;
|
||||
// tag=1042
|
||||
typedef QSize *(*Callback_minSize)(void *);
|
||||
Callback_minSize m_minSizeCallback = nullptr;
|
||||
// tag=1042
|
||||
typedef int (*Callback_minimumHeight)(void *);
|
||||
Callback_minimumHeight m_minimumHeightCallback = nullptr;
|
||||
// tag=1042
|
||||
typedef int (*Callback_minimumWidth)(void *);
|
||||
Callback_minimumWidth m_minimumWidthCallback = nullptr;
|
||||
// tag=1042
|
||||
typedef void (*Callback_move_2)(void *, int x, int y);
|
||||
Callback_move_2 m_move_2Callback = nullptr;
|
||||
// tag=1042
|
||||
typedef QRect *(*Callback_normalGeometry)(void *);
|
||||
Callback_normalGeometry m_normalGeometryCallback = nullptr;
|
||||
// tag=1042
|
||||
typedef QString *(*Callback_objectName)(void *);
|
||||
Callback_objectName m_objectNameCallback = nullptr;
|
||||
// tag=1042
|
||||
typedef bool (*Callback_onResize)(void *, QSize newSize);
|
||||
Callback_onResize m_onResizeCallback = nullptr;
|
||||
// tag=1042
|
||||
typedef void (*Callback_raise)(void *);
|
||||
Callback_raise m_raiseCallback = nullptr;
|
||||
// tag=1042
|
||||
typedef void (*Callback_raiseAndActivate)(void *);
|
||||
Callback_raiseAndActivate m_raiseAndActivateCallback = nullptr;
|
||||
// tag=1042
|
||||
typedef void (*Callback_releaseKeyboard)(void *);
|
||||
Callback_releaseKeyboard m_releaseKeyboardCallback = nullptr;
|
||||
// tag=1042
|
||||
typedef void (*Callback_releaseMouse)(void *);
|
||||
Callback_releaseMouse m_releaseMouseCallback = nullptr;
|
||||
// tag=1042
|
||||
typedef void (*Callback_setFixedHeight)(void *, int arg__1);
|
||||
Callback_setFixedHeight m_setFixedHeightCallback = nullptr;
|
||||
// tag=1042
|
||||
typedef void (*Callback_setFixedWidth)(void *, int arg__1);
|
||||
Callback_setFixedWidth m_setFixedWidthCallback = nullptr;
|
||||
// tag=1042
|
||||
typedef void (*Callback_setGeometry)(void *, QRect arg__1);
|
||||
Callback_setGeometry m_setGeometryCallback = nullptr;
|
||||
// tag=1042
|
||||
typedef void (*Callback_setHeight)(void *, int height);
|
||||
Callback_setHeight m_setHeightCallback = nullptr;
|
||||
// tag=1042
|
||||
typedef void (*Callback_setMaximumSize)(void *, QSize sz);
|
||||
Callback_setMaximumSize m_setMaximumSizeCallback = nullptr;
|
||||
// tag=1042
|
||||
typedef void (*Callback_setMinimumSize)(void *, QSize arg__1);
|
||||
Callback_setMinimumSize m_setMinimumSizeCallback = nullptr;
|
||||
// tag=1042
|
||||
typedef void (*Callback_setMouseTracking)(void *, bool arg__1);
|
||||
Callback_setMouseTracking m_setMouseTrackingCallback = nullptr;
|
||||
// tag=1042
|
||||
typedef void (*Callback_setObjectName)(void *, const QString &arg__1);
|
||||
Callback_setObjectName m_setObjectNameCallback = nullptr;
|
||||
// tag=1042
|
||||
typedef void (*Callback_setParent)(void *, KDDockWidgets::View *arg__1);
|
||||
Callback_setParent m_setParentCallback = nullptr;
|
||||
// tag=1042
|
||||
typedef void (*Callback_setSize_2)(void *, int width, int height);
|
||||
Callback_setSize_2 m_setSize_2Callback = nullptr;
|
||||
// tag=1042
|
||||
typedef void (*Callback_setVisible)(void *, bool arg__1);
|
||||
Callback_setVisible m_setVisibleCallback = nullptr;
|
||||
// tag=1042
|
||||
typedef void (*Callback_setWidth)(void *, int width);
|
||||
Callback_setWidth m_setWidthCallback = nullptr;
|
||||
// tag=1042
|
||||
typedef void (*Callback_setWindowOpacity)(void *, double arg__1);
|
||||
Callback_setWindowOpacity m_setWindowOpacityCallback = nullptr;
|
||||
// tag=1042
|
||||
typedef void (*Callback_setWindowTitle)(void *, const QString &title);
|
||||
Callback_setWindowTitle m_setWindowTitleCallback = nullptr;
|
||||
// tag=1042
|
||||
typedef void (*Callback_setZOrder)(void *, int arg__1);
|
||||
Callback_setZOrder m_setZOrderCallback = nullptr;
|
||||
// tag=1042
|
||||
typedef void (*Callback_show)(void *);
|
||||
Callback_show m_showCallback = nullptr;
|
||||
// tag=1042
|
||||
typedef void (*Callback_showMaximized)(void *);
|
||||
Callback_showMaximized m_showMaximizedCallback = nullptr;
|
||||
// tag=1042
|
||||
typedef void (*Callback_showMinimized)(void *);
|
||||
Callback_showMinimized m_showMinimizedCallback = nullptr;
|
||||
// tag=1042
|
||||
typedef void (*Callback_showNormal)(void *);
|
||||
Callback_showNormal m_showNormalCallback = nullptr;
|
||||
// tag=1042
|
||||
typedef QSize *(*Callback_sizeHint)(void *);
|
||||
Callback_sizeHint m_sizeHintCallback = nullptr;
|
||||
// tag=1042
|
||||
typedef void (*Callback_update)(void *);
|
||||
Callback_update m_updateCallback = nullptr;
|
||||
};
|
||||
}
|
||||
extern "C" {
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::View::aboutToBeDestroyed() const
|
||||
KDDockWidgets_EXPORT bool c_KDDockWidgets__View__aboutToBeDestroyed(void *thisObj);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::View::activateWindow()
|
||||
KDDockWidgets_EXPORT void c_KDDockWidgets__View__activateWindow(void *thisObj);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::View::boundedMaxSize(QSize min, QSize max)
|
||||
KDDockWidgets_EXPORT void *c_static_KDDockWidgets__View__boundedMaxSize_QSize_QSize(void *min_, void *max_);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::View::close()
|
||||
KDDockWidgets_EXPORT bool c_KDDockWidgets__View__close(void *thisObj);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::View::closeRootView()
|
||||
KDDockWidgets_EXPORT void c_KDDockWidgets__View__closeRootView(void *thisObj);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::View::createPlatformWindow()
|
||||
KDDockWidgets_EXPORT void c_KDDockWidgets__View__createPlatformWindow(void *thisObj);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::View::equals(const KDDockWidgets::View * one, const KDDockWidgets::View * two)
|
||||
KDDockWidgets_EXPORT bool c_static_KDDockWidgets__View__equals_View_View(void *one_, void *two_);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::View::equals(const KDDockWidgets::View * other) const
|
||||
KDDockWidgets_EXPORT bool c_KDDockWidgets__View__equals_View(void *thisObj, void *other_);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::View::free()
|
||||
KDDockWidgets_EXPORT void c_KDDockWidgets__View__free(void *thisObj);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::View::free_impl()
|
||||
KDDockWidgets_EXPORT void c_KDDockWidgets__View__free_impl(void *thisObj);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::View::freed() const
|
||||
KDDockWidgets_EXPORT bool c_KDDockWidgets__View__freed(void *thisObj);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::View::geometry() const
|
||||
KDDockWidgets_EXPORT void *c_KDDockWidgets__View__geometry(void *thisObj);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::View::globalGeometry() const
|
||||
KDDockWidgets_EXPORT void *c_KDDockWidgets__View__globalGeometry(void *thisObj);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::View::grabMouse()
|
||||
KDDockWidgets_EXPORT void c_KDDockWidgets__View__grabMouse(void *thisObj);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::View::hardcodedMinimumSize()
|
||||
KDDockWidgets_EXPORT void *c_static_KDDockWidgets__View__hardcodedMinimumSize();
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::View::hasFocus() const
|
||||
KDDockWidgets_EXPORT bool c_KDDockWidgets__View__hasFocus(void *thisObj);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::View::height() const
|
||||
KDDockWidgets_EXPORT int c_KDDockWidgets__View__height(void *thisObj);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::View::hide()
|
||||
KDDockWidgets_EXPORT void c_KDDockWidgets__View__hide(void *thisObj);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::View::id() const
|
||||
KDDockWidgets_EXPORT void *c_KDDockWidgets__View__id(void *thisObj);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::View::inDtor() const
|
||||
KDDockWidgets_EXPORT bool c_KDDockWidgets__View__inDtor(void *thisObj);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::View::init()
|
||||
KDDockWidgets_EXPORT void c_KDDockWidgets__View__init(void *thisObj);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::View::isActiveWindow() const
|
||||
KDDockWidgets_EXPORT bool c_KDDockWidgets__View__isActiveWindow(void *thisObj);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::View::isMaximized() const
|
||||
KDDockWidgets_EXPORT bool c_KDDockWidgets__View__isMaximized(void *thisObj);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::View::isMinimized() const
|
||||
KDDockWidgets_EXPORT bool c_KDDockWidgets__View__isMinimized(void *thisObj);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::View::isNull() const
|
||||
KDDockWidgets_EXPORT bool c_KDDockWidgets__View__isNull(void *thisObj);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::View::isRootView() const
|
||||
KDDockWidgets_EXPORT bool c_KDDockWidgets__View__isRootView(void *thisObj);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::View::isVisible() const
|
||||
KDDockWidgets_EXPORT bool c_KDDockWidgets__View__isVisible(void *thisObj);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::View::mapFromGlobal(QPoint arg__1) const
|
||||
KDDockWidgets_EXPORT void *c_KDDockWidgets__View__mapFromGlobal_QPoint(void *thisObj, void *arg__1_);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::View::mapTo(KDDockWidgets::View * arg__1, QPoint arg__2) const
|
||||
KDDockWidgets_EXPORT void *c_KDDockWidgets__View__mapTo_View_QPoint(void *thisObj, void *arg__1_, void *arg__2_);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::View::mapToGlobal(QPoint arg__1) const
|
||||
KDDockWidgets_EXPORT void *c_KDDockWidgets__View__mapToGlobal_QPoint(void *thisObj, void *arg__1_);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::View::maxSizeHint() const
|
||||
KDDockWidgets_EXPORT void *c_KDDockWidgets__View__maxSizeHint(void *thisObj);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::View::maximumSize() const
|
||||
KDDockWidgets_EXPORT void *c_KDDockWidgets__View__maximumSize(void *thisObj);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::View::minSize() const
|
||||
KDDockWidgets_EXPORT void *c_KDDockWidgets__View__minSize(void *thisObj);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::View::minimumHeight() const
|
||||
KDDockWidgets_EXPORT int c_KDDockWidgets__View__minimumHeight(void *thisObj);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::View::minimumWidth() const
|
||||
KDDockWidgets_EXPORT int c_KDDockWidgets__View__minimumWidth(void *thisObj);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::View::move(QPoint arg__1)
|
||||
KDDockWidgets_EXPORT void c_KDDockWidgets__View__move_QPoint(void *thisObj, void *arg__1_);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::View::move(int x, int y)
|
||||
KDDockWidgets_EXPORT void c_KDDockWidgets__View__move_int_int(void *thisObj, int x, int y);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::View::normalGeometry() const
|
||||
KDDockWidgets_EXPORT void *c_KDDockWidgets__View__normalGeometry(void *thisObj);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::View::objectName() const
|
||||
KDDockWidgets_EXPORT void *c_KDDockWidgets__View__objectName(void *thisObj);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::View::onResize(QSize newSize)
|
||||
KDDockWidgets_EXPORT bool c_KDDockWidgets__View__onResize_QSize(void *thisObj, void *newSize_);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::View::parentSize() const
|
||||
KDDockWidgets_EXPORT void *c_KDDockWidgets__View__parentSize(void *thisObj);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::View::pos() const
|
||||
KDDockWidgets_EXPORT void *c_KDDockWidgets__View__pos(void *thisObj);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::View::raise()
|
||||
KDDockWidgets_EXPORT void c_KDDockWidgets__View__raise(void *thisObj);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::View::raiseAndActivate()
|
||||
KDDockWidgets_EXPORT void c_KDDockWidgets__View__raiseAndActivate(void *thisObj);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::View::rect() const
|
||||
KDDockWidgets_EXPORT void *c_KDDockWidgets__View__rect(void *thisObj);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::View::releaseKeyboard()
|
||||
KDDockWidgets_EXPORT void c_KDDockWidgets__View__releaseKeyboard(void *thisObj);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::View::releaseMouse()
|
||||
KDDockWidgets_EXPORT void c_KDDockWidgets__View__releaseMouse(void *thisObj);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::View::resize(QSize arg__1)
|
||||
KDDockWidgets_EXPORT void c_KDDockWidgets__View__resize_QSize(void *thisObj, void *arg__1_);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::View::resize(int w, int h)
|
||||
KDDockWidgets_EXPORT void c_KDDockWidgets__View__resize_int_int(void *thisObj, int w, int h);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::View::setAboutToBeDestroyed()
|
||||
KDDockWidgets_EXPORT void c_KDDockWidgets__View__setAboutToBeDestroyed(void *thisObj);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::View::setFixedHeight(int arg__1)
|
||||
KDDockWidgets_EXPORT void c_KDDockWidgets__View__setFixedHeight_int(void *thisObj, int arg__1);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::View::setFixedWidth(int arg__1)
|
||||
KDDockWidgets_EXPORT void c_KDDockWidgets__View__setFixedWidth_int(void *thisObj, int arg__1);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::View::setGeometry(QRect arg__1)
|
||||
KDDockWidgets_EXPORT void c_KDDockWidgets__View__setGeometry_QRect(void *thisObj, void *arg__1_);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::View::setHeight(int height)
|
||||
KDDockWidgets_EXPORT void c_KDDockWidgets__View__setHeight_int(void *thisObj, int height);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::View::setMaximumSize(QSize sz)
|
||||
KDDockWidgets_EXPORT void c_KDDockWidgets__View__setMaximumSize_QSize(void *thisObj, void *sz_);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::View::setMinimumSize(QSize arg__1)
|
||||
KDDockWidgets_EXPORT void c_KDDockWidgets__View__setMinimumSize_QSize(void *thisObj, void *arg__1_);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::View::setMouseTracking(bool arg__1)
|
||||
KDDockWidgets_EXPORT void c_KDDockWidgets__View__setMouseTracking_bool(void *thisObj, bool arg__1);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::View::setObjectName(const QString & arg__1)
|
||||
KDDockWidgets_EXPORT void c_KDDockWidgets__View__setObjectName_QString(void *thisObj, const char *arg__1_);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::View::setParent(KDDockWidgets::View * arg__1)
|
||||
KDDockWidgets_EXPORT void c_KDDockWidgets__View__setParent_View(void *thisObj, void *arg__1_);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::View::setSize(QSize arg__1)
|
||||
KDDockWidgets_EXPORT void c_KDDockWidgets__View__setSize_QSize(void *thisObj, void *arg__1_);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::View::setSize(int width, int height)
|
||||
KDDockWidgets_EXPORT void c_KDDockWidgets__View__setSize_int_int(void *thisObj, int width, int height);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::View::setVisible(bool arg__1)
|
||||
KDDockWidgets_EXPORT void c_KDDockWidgets__View__setVisible_bool(void *thisObj, bool arg__1);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::View::setWidth(int width)
|
||||
KDDockWidgets_EXPORT void c_KDDockWidgets__View__setWidth_int(void *thisObj, int width);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::View::setWindowOpacity(double arg__1)
|
||||
KDDockWidgets_EXPORT void c_KDDockWidgets__View__setWindowOpacity_double(void *thisObj, double arg__1);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::View::setWindowTitle(const QString & title)
|
||||
KDDockWidgets_EXPORT void c_KDDockWidgets__View__setWindowTitle_QString(void *thisObj, const char *title_);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::View::setZOrder(int arg__1)
|
||||
KDDockWidgets_EXPORT void c_KDDockWidgets__View__setZOrder_int(void *thisObj, int arg__1);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::View::show()
|
||||
KDDockWidgets_EXPORT void c_KDDockWidgets__View__show(void *thisObj);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::View::showMaximized()
|
||||
KDDockWidgets_EXPORT void c_KDDockWidgets__View__showMaximized(void *thisObj);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::View::showMinimized()
|
||||
KDDockWidgets_EXPORT void c_KDDockWidgets__View__showMinimized(void *thisObj);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::View::showNormal()
|
||||
KDDockWidgets_EXPORT void c_KDDockWidgets__View__showNormal(void *thisObj);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::View::size() const
|
||||
KDDockWidgets_EXPORT void *c_KDDockWidgets__View__size(void *thisObj);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::View::sizeHint() const
|
||||
KDDockWidgets_EXPORT void *c_KDDockWidgets__View__sizeHint(void *thisObj);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::View::update()
|
||||
KDDockWidgets_EXPORT void c_KDDockWidgets__View__update(void *thisObj);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::View::width() const
|
||||
KDDockWidgets_EXPORT int c_KDDockWidgets__View__width(void *thisObj);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::View::windowGeometry() const
|
||||
KDDockWidgets_EXPORT void *c_KDDockWidgets__View__windowGeometry(void *thisObj);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::View::x() const
|
||||
KDDockWidgets_EXPORT int c_KDDockWidgets__View__x(void *thisObj);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::View::y() const
|
||||
KDDockWidgets_EXPORT int c_KDDockWidgets__View__y(void *thisObj);
|
||||
|
||||
// tag=1066
|
||||
KDDockWidgets_EXPORT void c_KDDockWidgets__View__destructor(void *thisObj);
|
||||
|
||||
// tag=1046
|
||||
KDDockWidgets_EXPORT void c_KDDockWidgets__View__registerVirtualMethodCallback(void *ptr, void *callback, int methodId);
|
||||
// tag=1047
|
||||
KDDockWidgets_EXPORT void c_KDDockWidgets__View_Finalizer(void *, void *cppObj, void *);
|
||||
}
|
||||
@@ -1572,3 +1572,422 @@ void c_QByteArray__destructor(void *thisObj);
|
||||
|
||||
// tag=1047
|
||||
void c_QByteArray_Finalizer(void *, void *cppObj, void *);
|
||||
// tag=1047
|
||||
void c_KDDockWidgets_Finalizer(void *, void *cppObj, void *);
|
||||
// tag=1067
|
||||
// KDDockWidgets::ViewFactory::ViewFactory()
|
||||
void *c_KDDockWidgets__ViewFactory__constructor();
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::ViewFactory::createRubberBand(KDDockWidgets::View * parent) const
|
||||
void *c_KDDockWidgets__ViewFactory__createRubberBand_View(void *thisObj, void *parent_);
|
||||
|
||||
// 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);
|
||||
|
||||
// tag=1066
|
||||
void c_KDDockWidgets__ViewFactory__destructor(void *thisObj);
|
||||
|
||||
// tag=1046
|
||||
void c_KDDockWidgets__ViewFactory__registerVirtualMethodCallback(void *ptr, void *callback, int methodId);
|
||||
// tag=1047
|
||||
void c_KDDockWidgets__ViewFactory_Finalizer(void *, void *cppObj, void *);
|
||||
// tag=1067
|
||||
// KDDockWidgets::View::aboutToBeDestroyed() const
|
||||
bool c_KDDockWidgets__View__aboutToBeDestroyed(void *thisObj);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::View::activateWindow()
|
||||
void c_KDDockWidgets__View__activateWindow(void *thisObj);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::View::boundedMaxSize(QSize min, QSize max)
|
||||
void *c_static_KDDockWidgets__View__boundedMaxSize_QSize_QSize(void *min_, void *max_);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::View::close()
|
||||
bool c_KDDockWidgets__View__close(void *thisObj);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::View::closeRootView()
|
||||
void c_KDDockWidgets__View__closeRootView(void *thisObj);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::View::createPlatformWindow()
|
||||
void c_KDDockWidgets__View__createPlatformWindow(void *thisObj);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::View::equals(const KDDockWidgets::View * one, const KDDockWidgets::View * two)
|
||||
bool c_static_KDDockWidgets__View__equals_View_View(void *one_, void *two_);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::View::equals(const KDDockWidgets::View * other) const
|
||||
bool c_KDDockWidgets__View__equals_View(void *thisObj, void *other_);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::View::free()
|
||||
void c_KDDockWidgets__View__free(void *thisObj);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::View::free_impl()
|
||||
void c_KDDockWidgets__View__free_impl(void *thisObj);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::View::freed() const
|
||||
bool c_KDDockWidgets__View__freed(void *thisObj);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::View::geometry() const
|
||||
void *c_KDDockWidgets__View__geometry(void *thisObj);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::View::globalGeometry() const
|
||||
void *c_KDDockWidgets__View__globalGeometry(void *thisObj);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::View::grabMouse()
|
||||
void c_KDDockWidgets__View__grabMouse(void *thisObj);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::View::hardcodedMinimumSize()
|
||||
void *c_static_KDDockWidgets__View__hardcodedMinimumSize();
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::View::hasFocus() const
|
||||
bool c_KDDockWidgets__View__hasFocus(void *thisObj);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::View::height() const
|
||||
int c_KDDockWidgets__View__height(void *thisObj);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::View::hide()
|
||||
void c_KDDockWidgets__View__hide(void *thisObj);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::View::id() const
|
||||
void *c_KDDockWidgets__View__id(void *thisObj);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::View::inDtor() const
|
||||
bool c_KDDockWidgets__View__inDtor(void *thisObj);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::View::init()
|
||||
void c_KDDockWidgets__View__init(void *thisObj);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::View::isActiveWindow() const
|
||||
bool c_KDDockWidgets__View__isActiveWindow(void *thisObj);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::View::isMaximized() const
|
||||
bool c_KDDockWidgets__View__isMaximized(void *thisObj);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::View::isMinimized() const
|
||||
bool c_KDDockWidgets__View__isMinimized(void *thisObj);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::View::isNull() const
|
||||
bool c_KDDockWidgets__View__isNull(void *thisObj);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::View::isRootView() const
|
||||
bool c_KDDockWidgets__View__isRootView(void *thisObj);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::View::isVisible() const
|
||||
bool c_KDDockWidgets__View__isVisible(void *thisObj);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::View::mapFromGlobal(QPoint arg__1) const
|
||||
void *c_KDDockWidgets__View__mapFromGlobal_QPoint(void *thisObj, void *arg__1_);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::View::mapTo(KDDockWidgets::View * arg__1, QPoint arg__2) const
|
||||
void *c_KDDockWidgets__View__mapTo_View_QPoint(void *thisObj, void *arg__1_, void *arg__2_);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::View::mapToGlobal(QPoint arg__1) const
|
||||
void *c_KDDockWidgets__View__mapToGlobal_QPoint(void *thisObj, void *arg__1_);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::View::maxSizeHint() const
|
||||
void *c_KDDockWidgets__View__maxSizeHint(void *thisObj);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::View::maximumSize() const
|
||||
void *c_KDDockWidgets__View__maximumSize(void *thisObj);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::View::minSize() const
|
||||
void *c_KDDockWidgets__View__minSize(void *thisObj);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::View::minimumHeight() const
|
||||
int c_KDDockWidgets__View__minimumHeight(void *thisObj);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::View::minimumWidth() const
|
||||
int c_KDDockWidgets__View__minimumWidth(void *thisObj);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::View::move(QPoint arg__1)
|
||||
void c_KDDockWidgets__View__move_QPoint(void *thisObj, void *arg__1_);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::View::move(int x, int y)
|
||||
void c_KDDockWidgets__View__move_int_int(void *thisObj, int x, int y);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::View::normalGeometry() const
|
||||
void *c_KDDockWidgets__View__normalGeometry(void *thisObj);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::View::objectName() const
|
||||
void *c_KDDockWidgets__View__objectName(void *thisObj);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::View::onResize(QSize newSize)
|
||||
bool c_KDDockWidgets__View__onResize_QSize(void *thisObj, void *newSize_);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::View::parentSize() const
|
||||
void *c_KDDockWidgets__View__parentSize(void *thisObj);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::View::pos() const
|
||||
void *c_KDDockWidgets__View__pos(void *thisObj);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::View::raise()
|
||||
void c_KDDockWidgets__View__raise(void *thisObj);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::View::raiseAndActivate()
|
||||
void c_KDDockWidgets__View__raiseAndActivate(void *thisObj);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::View::rect() const
|
||||
void *c_KDDockWidgets__View__rect(void *thisObj);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::View::releaseKeyboard()
|
||||
void c_KDDockWidgets__View__releaseKeyboard(void *thisObj);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::View::releaseMouse()
|
||||
void c_KDDockWidgets__View__releaseMouse(void *thisObj);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::View::resize(QSize arg__1)
|
||||
void c_KDDockWidgets__View__resize_QSize(void *thisObj, void *arg__1_);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::View::resize(int w, int h)
|
||||
void c_KDDockWidgets__View__resize_int_int(void *thisObj, int w, int h);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::View::setAboutToBeDestroyed()
|
||||
void c_KDDockWidgets__View__setAboutToBeDestroyed(void *thisObj);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::View::setFixedHeight(int arg__1)
|
||||
void c_KDDockWidgets__View__setFixedHeight_int(void *thisObj, int arg__1);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::View::setFixedWidth(int arg__1)
|
||||
void c_KDDockWidgets__View__setFixedWidth_int(void *thisObj, int arg__1);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::View::setGeometry(QRect arg__1)
|
||||
void c_KDDockWidgets__View__setGeometry_QRect(void *thisObj, void *arg__1_);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::View::setHeight(int height)
|
||||
void c_KDDockWidgets__View__setHeight_int(void *thisObj, int height);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::View::setMaximumSize(QSize sz)
|
||||
void c_KDDockWidgets__View__setMaximumSize_QSize(void *thisObj, void *sz_);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::View::setMinimumSize(QSize arg__1)
|
||||
void c_KDDockWidgets__View__setMinimumSize_QSize(void *thisObj, void *arg__1_);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::View::setMouseTracking(bool arg__1)
|
||||
void c_KDDockWidgets__View__setMouseTracking_bool(void *thisObj, bool arg__1);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::View::setObjectName(const QString & arg__1)
|
||||
void c_KDDockWidgets__View__setObjectName_QString(void *thisObj, const char *arg__1_);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::View::setParent(KDDockWidgets::View * arg__1)
|
||||
void c_KDDockWidgets__View__setParent_View(void *thisObj, void *arg__1_);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::View::setSize(QSize arg__1)
|
||||
void c_KDDockWidgets__View__setSize_QSize(void *thisObj, void *arg__1_);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::View::setSize(int width, int height)
|
||||
void c_KDDockWidgets__View__setSize_int_int(void *thisObj, int width, int height);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::View::setVisible(bool arg__1)
|
||||
void c_KDDockWidgets__View__setVisible_bool(void *thisObj, bool arg__1);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::View::setWidth(int width)
|
||||
void c_KDDockWidgets__View__setWidth_int(void *thisObj, int width);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::View::setWindowOpacity(double arg__1)
|
||||
void c_KDDockWidgets__View__setWindowOpacity_double(void *thisObj, double arg__1);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::View::setWindowTitle(const QString & title)
|
||||
void c_KDDockWidgets__View__setWindowTitle_QString(void *thisObj, const char *title_);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::View::setZOrder(int arg__1)
|
||||
void c_KDDockWidgets__View__setZOrder_int(void *thisObj, int arg__1);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::View::show()
|
||||
void c_KDDockWidgets__View__show(void *thisObj);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::View::showMaximized()
|
||||
void c_KDDockWidgets__View__showMaximized(void *thisObj);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::View::showMinimized()
|
||||
void c_KDDockWidgets__View__showMinimized(void *thisObj);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::View::showNormal()
|
||||
void c_KDDockWidgets__View__showNormal(void *thisObj);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::View::size() const
|
||||
void *c_KDDockWidgets__View__size(void *thisObj);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::View::sizeHint() const
|
||||
void *c_KDDockWidgets__View__sizeHint(void *thisObj);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::View::update()
|
||||
void c_KDDockWidgets__View__update(void *thisObj);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::View::width() const
|
||||
int c_KDDockWidgets__View__width(void *thisObj);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::View::windowGeometry() const
|
||||
void *c_KDDockWidgets__View__windowGeometry(void *thisObj);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::View::x() const
|
||||
int c_KDDockWidgets__View__x(void *thisObj);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::View::y() const
|
||||
int c_KDDockWidgets__View__y(void *thisObj);
|
||||
|
||||
// tag=1066
|
||||
void c_KDDockWidgets__View__destructor(void *thisObj);
|
||||
|
||||
// tag=1046
|
||||
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::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::ungrabMouse()
|
||||
void c_KDDockWidgets__Platform__ungrabMouse(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=1046
|
||||
void c_KDDockWidgets__Platform__registerVirtualMethodCallback(void *ptr, void *callback, int methodId);
|
||||
// tag=1047
|
||||
void c_KDDockWidgets__Platform_Finalizer(void *, void *cppObj, void *);
|
||||
|
||||
57
src/flutter/generated/KDDockWidgets/dart/lib/Bindings.dart
Normal file
57
src/flutter/generated/KDDockWidgets/dart/lib/Bindings.dart
Normal file
@@ -0,0 +1,57 @@
|
||||
/*
|
||||
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.
|
||||
*/
|
||||
export 'src/Platform.dart' show Platform;
|
||||
export 'src/View.dart' show View;
|
||||
export 'src/ViewFactory.dart' show ViewFactory;
|
||||
export 'src/QByteArray.dart' show QByteArray;
|
||||
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;
|
||||
import 'dart:ffi' as ffi;
|
||||
import 'dart:io' show Platform;
|
||||
|
||||
String bindingsLibraryName(String name) {
|
||||
if (Platform.isWindows) return "${name}.dll";
|
||||
if (Platform.isMacOS) return "lib${name}.dylib";
|
||||
return "lib${name}.so";
|
||||
}
|
||||
|
||||
class Library {
|
||||
var _dylib;
|
||||
|
||||
ffi.DynamicLibrary get dylib {
|
||||
return _dylib;
|
||||
}
|
||||
|
||||
static var _library = null;
|
||||
|
||||
factory Library.instance() {
|
||||
// Singleton impl.
|
||||
if (_library == null) _library = Library._();
|
||||
return _library;
|
||||
}
|
||||
|
||||
Library._() {
|
||||
// DYLD_LIBRARY_PATH doesn't work by default on newer macOS. Instead
|
||||
// introduce our own env variable for the same use case
|
||||
var bindingsPath = Platform.environment["DARTAGNAN_BINDINGSLIB_PATH"] ?? "";
|
||||
|
||||
var libraryPath = bindingsLibraryName("KDDockWidgets");
|
||||
if (!bindingsPath.isEmpty) {
|
||||
libraryPath = bindingsPath + "/" + libraryPath;
|
||||
}
|
||||
|
||||
_dylib = ffi.DynamicLibrary.open(libraryPath);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,88 @@
|
||||
/*
|
||||
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.
|
||||
*/
|
||||
/*
|
||||
Copyright 2020, the Dart project authors.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without
|
||||
modification, are permitted provided that the following conditions are
|
||||
met:
|
||||
* Redistributions of source code must retain the above copyright
|
||||
notice, this list of conditions and the following disclaimer.
|
||||
* Redistributions in binary form must reproduce the above
|
||||
copyright notice, this list of conditions and the following
|
||||
disclaimer in the documentation and/or other materials provided
|
||||
with the distribution.
|
||||
* Neither the name of Google Inc. nor the names of its
|
||||
contributors may be used to endorse or promote products derived
|
||||
from this software without specific prior written permission.
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
// File copied from https://github.com/mraleph/dartvm_api_vs_ffi.git
|
||||
// commit d634ca401ced4a
|
||||
|
||||
// Adjusted for null safety
|
||||
|
||||
import 'dart:ffi' as ffi;
|
||||
import 'package:ffi/ffi.dart';
|
||||
|
||||
typedef Dart_WeakPersistentHandleFinalizer_Type = ffi.Void Function(
|
||||
ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>);
|
||||
typedef Dart_NewWeakPersistentHandle_Type = ffi.Pointer<ffi.Void> Function(
|
||||
ffi.Handle,
|
||||
ffi.Pointer<ffi.Void>,
|
||||
ffi.IntPtr,
|
||||
ffi.Pointer<ffi.NativeFunction<Dart_WeakPersistentHandleFinalizer_Type>>);
|
||||
typedef Dart_NewWeakPersistentHandle_DartType = ffi.Pointer<ffi.Void> Function(
|
||||
Object,
|
||||
ffi.Pointer<ffi.Void>,
|
||||
int,
|
||||
ffi.Pointer<ffi.NativeFunction<Dart_WeakPersistentHandleFinalizer_Type>>);
|
||||
|
||||
class _DartEntry extends ffi.Struct {
|
||||
ffi.Pointer<ffi.Int8>? name;
|
||||
ffi.Pointer<ffi.Void>? function;
|
||||
}
|
||||
|
||||
class _DartApi extends ffi.Struct {
|
||||
@ffi.Int32()
|
||||
int? major;
|
||||
@ffi.Int32()
|
||||
int? minor;
|
||||
ffi.Pointer<_DartEntry>? functions;
|
||||
}
|
||||
|
||||
final newWeakPersistentHandle = () {
|
||||
final ffi.Pointer<_DartApi> dlapi = ffi.NativeApi.initializeApiDLData.cast();
|
||||
for (int i = 0;
|
||||
dlapi.ref.functions?.elementAt(i).ref.name != ffi.nullptr;
|
||||
i++) {
|
||||
final name = dlapi.ref.functions?.elementAt(i).ref.name?.cast<Utf8>();
|
||||
|
||||
if (name?.toDartString() == 'Dart_NewWeakPersistentHandle') {
|
||||
var func = dlapi.ref.functions?.elementAt(i).ref.function;
|
||||
if (func != null)
|
||||
return func
|
||||
.cast<ffi.NativeFunction<Dart_NewWeakPersistentHandle_Type>>()
|
||||
.asFunction<Dart_NewWeakPersistentHandle_DartType>();
|
||||
}
|
||||
}
|
||||
}();
|
||||
@@ -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;
|
||||
650
src/flutter/generated/KDDockWidgets/dart/lib/src/Platform.dart
Normal file
650
src/flutter/generated/KDDockWidgets/dart/lib/src/Platform.dart
Normal file
@@ -0,0 +1,650 @@
|
||||
/*
|
||||
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__Platform_Finalizer');
|
||||
|
||||
class Platform {
|
||||
//tag=1060
|
||||
static var s_dartInstanceByCppPtr = Map<int, Platform>();
|
||||
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 Platform.fromCache(var cppPointer, [needsAutoDelete = false]) {
|
||||
return (s_dartInstanceByCppPtr[cppPointer.address] ??
|
||||
Platform.fromCppPointer(cppPointer, needsAutoDelete)) as Platform;
|
||||
}
|
||||
Platform.fromCppPointer(var cppPointer, [this._needsAutoDelete = false]) {
|
||||
//tag=1024
|
||||
thisCpp = cppPointer;
|
||||
}
|
||||
//tag=1025
|
||||
Platform.init() {}
|
||||
//tag=1023
|
||||
//Platform()
|
||||
Platform() {
|
||||
//tag=1075
|
||||
final voidstar_Func_void func = _dylib
|
||||
.lookup<ffi.NativeFunction<voidstar_Func_void_FFI>>(
|
||||
'c_KDDockWidgets__Platform__constructor')
|
||||
.asFunction();
|
||||
thisCpp = func();
|
||||
Platform.s_dartInstanceByCppPtr[thisCpp.address] = this;
|
||||
registerCallbacks();
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// applicationName() const
|
||||
QString applicationName() {
|
||||
//tag=1028
|
||||
final voidstar_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<voidstar_Func_voidstar_FFI>>(
|
||||
cFunctionSymbolName(680))
|
||||
.asFunction();
|
||||
//tag=1033
|
||||
ffi.Pointer<void> result = func(thisCpp);
|
||||
return QString.fromCppPointer(result, true);
|
||||
}
|
||||
|
||||
//tag=1035
|
||||
static ffi.Pointer<void> applicationName_calledFromC(
|
||||
ffi.Pointer<void> thisCpp) {
|
||||
var dartInstance = Platform.s_dartInstanceByCppPtr[thisCpp.address];
|
||||
if (dartInstance == null) {
|
||||
print(
|
||||
"Dart instance not found for Platform::applicationName() const! (${thisCpp.address})");
|
||||
throw Error();
|
||||
}
|
||||
//tag=1037
|
||||
final result = dartInstance.applicationName();
|
||||
return result.thisCpp;
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// createDefaultViewFactory()
|
||||
ViewFactory createDefaultViewFactory() {
|
||||
//tag=1028
|
||||
final voidstar_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<voidstar_Func_voidstar_FFI>>(
|
||||
cFunctionSymbolName(681))
|
||||
.asFunction();
|
||||
//tag=1033
|
||||
ffi.Pointer<void> result = func(thisCpp);
|
||||
return ViewFactory.fromCppPointer(result, false);
|
||||
}
|
||||
|
||||
//tag=1035
|
||||
static ffi.Pointer<void> createDefaultViewFactory_calledFromC(
|
||||
ffi.Pointer<void> thisCpp) {
|
||||
var dartInstance = Platform.s_dartInstanceByCppPtr[thisCpp.address];
|
||||
if (dartInstance == null) {
|
||||
print(
|
||||
"Dart instance not found for Platform::createDefaultViewFactory()! (${thisCpp.address})");
|
||||
throw Error();
|
||||
}
|
||||
//tag=1037
|
||||
final result = dartInstance.createDefaultViewFactory();
|
||||
return result.thisCpp;
|
||||
}
|
||||
//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))
|
||||
.asFunction();
|
||||
//tag=1029
|
||||
return func(thisCpp) != 0;
|
||||
}
|
||||
|
||||
//tag=1035
|
||||
static int hasActivePopup_calledFromC(ffi.Pointer<void> thisCpp) {
|
||||
var dartInstance = Platform.s_dartInstanceByCppPtr[thisCpp.address];
|
||||
if (dartInstance == null) {
|
||||
print(
|
||||
"Dart instance not found for Platform::hasActivePopup() const! (${thisCpp.address})");
|
||||
throw Error();
|
||||
}
|
||||
//tag=1037
|
||||
final result = dartInstance.hasActivePopup();
|
||||
return result ? 1 : 0;
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// inDisallowedDragView(QPoint globalPos) const
|
||||
bool inDisallowedDragView(QPoint globalPos) {
|
||||
//tag=1028
|
||||
final bool_Func_voidstar_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<bool_Func_voidstar_voidstar_FFI>>(
|
||||
cFunctionSymbolName(683))
|
||||
.asFunction();
|
||||
//tag=1029
|
||||
return func(thisCpp, globalPos == null ? ffi.nullptr : globalPos.thisCpp) !=
|
||||
0;
|
||||
}
|
||||
|
||||
//tag=1035
|
||||
static int inDisallowedDragView_calledFromC(
|
||||
ffi.Pointer<void> thisCpp, ffi.Pointer<void> globalPos) {
|
||||
var dartInstance = Platform.s_dartInstanceByCppPtr[thisCpp.address];
|
||||
if (dartInstance == null) {
|
||||
print(
|
||||
"Dart instance not found for Platform::inDisallowedDragView(QPoint globalPos) const! (${thisCpp.address})");
|
||||
throw Error();
|
||||
}
|
||||
//tag=1037
|
||||
final result =
|
||||
dartInstance.inDisallowedDragView(QPoint.fromCppPointer(globalPos));
|
||||
return result ? 1 : 0;
|
||||
}
|
||||
|
||||
//tag=1024
|
||||
static
|
||||
//tag=1027
|
||||
// instance()
|
||||
Platform instance() {
|
||||
//tag=1028
|
||||
final voidstar_Func_void func = _dylib
|
||||
.lookup<ffi.NativeFunction<voidstar_Func_void_FFI>>(
|
||||
'c_static_KDDockWidgets__Platform__instance')
|
||||
.asFunction();
|
||||
//tag=1033
|
||||
ffi.Pointer<void> result = func();
|
||||
return Platform.fromCppPointer(result, false);
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// isLeftMouseButtonPressed() const
|
||||
bool isLeftMouseButtonPressed() {
|
||||
//tag=1028
|
||||
final bool_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<bool_Func_voidstar_FFI>>(
|
||||
cFunctionSymbolName(685))
|
||||
.asFunction();
|
||||
//tag=1029
|
||||
return func(thisCpp) != 0;
|
||||
}
|
||||
|
||||
//tag=1035
|
||||
static int isLeftMouseButtonPressed_calledFromC(ffi.Pointer<void> thisCpp) {
|
||||
var dartInstance = Platform.s_dartInstanceByCppPtr[thisCpp.address];
|
||||
if (dartInstance == null) {
|
||||
print(
|
||||
"Dart instance not found for Platform::isLeftMouseButtonPressed() const! (${thisCpp.address})");
|
||||
throw Error();
|
||||
}
|
||||
//tag=1037
|
||||
final result = dartInstance.isLeftMouseButtonPressed();
|
||||
return result ? 1 : 0;
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// isProcessingAppQuitEvent() const
|
||||
bool isProcessingAppQuitEvent() {
|
||||
//tag=1028
|
||||
final bool_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<bool_Func_voidstar_FFI>>(
|
||||
cFunctionSymbolName(686))
|
||||
.asFunction();
|
||||
//tag=1029
|
||||
return func(thisCpp) != 0;
|
||||
}
|
||||
|
||||
//tag=1035
|
||||
static int isProcessingAppQuitEvent_calledFromC(ffi.Pointer<void> thisCpp) {
|
||||
var dartInstance = Platform.s_dartInstanceByCppPtr[thisCpp.address];
|
||||
if (dartInstance == null) {
|
||||
print(
|
||||
"Dart instance not found for Platform::isProcessingAppQuitEvent() const! (${thisCpp.address})");
|
||||
throw Error();
|
||||
}
|
||||
//tag=1037
|
||||
final result = dartInstance.isProcessingAppQuitEvent();
|
||||
return result ? 1 : 0;
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// isQtQuick() const
|
||||
bool isQtQuick() {
|
||||
//tag=1028
|
||||
final bool_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<bool_Func_voidstar_FFI>>(
|
||||
'c_KDDockWidgets__Platform__isQtQuick')
|
||||
.asFunction();
|
||||
//tag=1029
|
||||
return func(thisCpp) != 0;
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// isQtWidgets() const
|
||||
bool isQtWidgets() {
|
||||
//tag=1028
|
||||
final bool_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<bool_Func_voidstar_FFI>>(
|
||||
'c_KDDockWidgets__Platform__isQtWidgets')
|
||||
.asFunction();
|
||||
//tag=1029
|
||||
return func(thisCpp) != 0;
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// name() const
|
||||
String name() {
|
||||
//tag=1028
|
||||
final string_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<string_Func_voidstar_FFI>>(
|
||||
cFunctionSymbolName(689))
|
||||
.asFunction();
|
||||
//tag=1032
|
||||
ffi.Pointer<Utf8> result = func(thisCpp);
|
||||
return result.toDartString();
|
||||
}
|
||||
|
||||
//tag=1035
|
||||
static ffi.Pointer<Utf8> name_calledFromC(ffi.Pointer<void> thisCpp) {
|
||||
var dartInstance = Platform.s_dartInstanceByCppPtr[thisCpp.address];
|
||||
if (dartInstance == null) {
|
||||
print(
|
||||
"Dart instance not found for Platform::name() const! (${thisCpp.address})");
|
||||
throw Error();
|
||||
}
|
||||
//tag=1037
|
||||
final result = dartInstance.name();
|
||||
return result;
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// organizationName() const
|
||||
QString organizationName() {
|
||||
//tag=1028
|
||||
final voidstar_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<voidstar_Func_voidstar_FFI>>(
|
||||
cFunctionSymbolName(690))
|
||||
.asFunction();
|
||||
//tag=1033
|
||||
ffi.Pointer<void> result = func(thisCpp);
|
||||
return QString.fromCppPointer(result, true);
|
||||
}
|
||||
|
||||
//tag=1035
|
||||
static ffi.Pointer<void> organizationName_calledFromC(
|
||||
ffi.Pointer<void> thisCpp) {
|
||||
var dartInstance = Platform.s_dartInstanceByCppPtr[thisCpp.address];
|
||||
if (dartInstance == null) {
|
||||
print(
|
||||
"Dart instance not found for Platform::organizationName() const! (${thisCpp.address})");
|
||||
throw Error();
|
||||
}
|
||||
//tag=1037
|
||||
final result = dartInstance.organizationName();
|
||||
return result.thisCpp;
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// restoreMouseCursor()
|
||||
restoreMouseCursor() {
|
||||
//tag=1028
|
||||
final void_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<void_Func_voidstar_FFI>>(
|
||||
cFunctionSymbolName(691))
|
||||
.asFunction();
|
||||
//tag=1030
|
||||
func(thisCpp);
|
||||
}
|
||||
|
||||
//tag=1035
|
||||
static void restoreMouseCursor_calledFromC(ffi.Pointer<void> thisCpp) {
|
||||
var dartInstance = Platform.s_dartInstanceByCppPtr[thisCpp.address];
|
||||
if (dartInstance == null) {
|
||||
print(
|
||||
"Dart instance not found for Platform::restoreMouseCursor()! (${thisCpp.address})");
|
||||
throw Error();
|
||||
}
|
||||
//tag=1036
|
||||
dartInstance.restoreMouseCursor();
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// screenNumberFor(KDDockWidgets::View * arg__1) const
|
||||
int screenNumberFor(View? arg__1) {
|
||||
//tag=1028
|
||||
final int_Func_voidstar_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<int_Func_voidstar_voidstar_FFI>>(
|
||||
cFunctionSymbolName(692))
|
||||
.asFunction();
|
||||
//tag=1031
|
||||
return func(thisCpp, arg__1 == null ? ffi.nullptr : arg__1.thisCpp);
|
||||
}
|
||||
|
||||
//tag=1035
|
||||
static int screenNumberFor_calledFromC(
|
||||
ffi.Pointer<void> thisCpp, ffi.Pointer<void>? arg__1) {
|
||||
var dartInstance = Platform.s_dartInstanceByCppPtr[thisCpp.address];
|
||||
if (dartInstance == null) {
|
||||
print(
|
||||
"Dart instance not found for Platform::screenNumberFor(KDDockWidgets::View * arg__1) const! (${thisCpp.address})");
|
||||
throw Error();
|
||||
}
|
||||
//tag=1037
|
||||
final result = dartInstance.screenNumberFor(View.fromCppPointer(arg__1));
|
||||
return result;
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// screenSizeFor(KDDockWidgets::View * arg__1) const
|
||||
QSize screenSizeFor(View? arg__1) {
|
||||
//tag=1028
|
||||
final voidstar_Func_voidstar_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<voidstar_Func_voidstar_voidstar_FFI>>(
|
||||
cFunctionSymbolName(693))
|
||||
.asFunction();
|
||||
//tag=1033
|
||||
ffi.Pointer<void> result =
|
||||
func(thisCpp, arg__1 == null ? ffi.nullptr : arg__1.thisCpp);
|
||||
return QSize.fromCppPointer(result, true);
|
||||
}
|
||||
|
||||
//tag=1035
|
||||
static ffi.Pointer<void> screenSizeFor_calledFromC(
|
||||
ffi.Pointer<void> thisCpp, ffi.Pointer<void>? arg__1) {
|
||||
var dartInstance = Platform.s_dartInstanceByCppPtr[thisCpp.address];
|
||||
if (dartInstance == null) {
|
||||
print(
|
||||
"Dart instance not found for Platform::screenSizeFor(KDDockWidgets::View * arg__1) const! (${thisCpp.address})");
|
||||
throw Error();
|
||||
}
|
||||
//tag=1037
|
||||
final result = dartInstance.screenSizeFor(View.fromCppPointer(arg__1));
|
||||
return result.thisCpp;
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// startDragDistance() const
|
||||
int startDragDistance() {
|
||||
//tag=1028
|
||||
final int_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<int_Func_voidstar_FFI>>(
|
||||
'c_KDDockWidgets__Platform__startDragDistance')
|
||||
.asFunction();
|
||||
//tag=1031
|
||||
return func(thisCpp);
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// startDragDistance_impl() const
|
||||
int startDragDistance_impl() {
|
||||
//tag=1028
|
||||
final int_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<int_Func_voidstar_FFI>>(
|
||||
cFunctionSymbolName(695))
|
||||
.asFunction();
|
||||
//tag=1031
|
||||
return func(thisCpp);
|
||||
}
|
||||
|
||||
//tag=1035
|
||||
static int startDragDistance_impl_calledFromC(ffi.Pointer<void> thisCpp) {
|
||||
var dartInstance = Platform.s_dartInstanceByCppPtr[thisCpp.address];
|
||||
if (dartInstance == null) {
|
||||
print(
|
||||
"Dart instance not found for Platform::startDragDistance_impl() const! (${thisCpp.address})");
|
||||
throw Error();
|
||||
}
|
||||
//tag=1037
|
||||
final result = dartInstance.startDragDistance_impl();
|
||||
return result;
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// ungrabMouse()
|
||||
ungrabMouse() {
|
||||
//tag=1028
|
||||
final void_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<void_Func_voidstar_FFI>>(
|
||||
cFunctionSymbolName(696))
|
||||
.asFunction();
|
||||
//tag=1030
|
||||
func(thisCpp);
|
||||
}
|
||||
|
||||
//tag=1035
|
||||
static void ungrabMouse_calledFromC(ffi.Pointer<void> thisCpp) {
|
||||
var dartInstance = Platform.s_dartInstanceByCppPtr[thisCpp.address];
|
||||
if (dartInstance == null) {
|
||||
print(
|
||||
"Dart instance not found for Platform::ungrabMouse()! (${thisCpp.address})");
|
||||
throw Error();
|
||||
}
|
||||
//tag=1036
|
||||
dartInstance.ungrabMouse();
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// usesFallbackMouseGrabber() const
|
||||
bool usesFallbackMouseGrabber() {
|
||||
//tag=1028
|
||||
final bool_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<bool_Func_voidstar_FFI>>(
|
||||
cFunctionSymbolName(697))
|
||||
.asFunction();
|
||||
//tag=1029
|
||||
return func(thisCpp) != 0;
|
||||
}
|
||||
|
||||
//tag=1035
|
||||
static int usesFallbackMouseGrabber_calledFromC(ffi.Pointer<void> thisCpp) {
|
||||
var dartInstance = Platform.s_dartInstanceByCppPtr[thisCpp.address];
|
||||
if (dartInstance == null) {
|
||||
print(
|
||||
"Dart instance not found for Platform::usesFallbackMouseGrabber() const! (${thisCpp.address})");
|
||||
throw Error();
|
||||
}
|
||||
//tag=1037
|
||||
final result = dartInstance.usesFallbackMouseGrabber();
|
||||
return result ? 1 : 0;
|
||||
}
|
||||
|
||||
//tag=1022
|
||||
void release() {
|
||||
final void_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<void_Func_voidstar_FFI>>(
|
||||
'c_KDDockWidgets__Platform__destructor')
|
||||
.asFunction();
|
||||
func(thisCpp);
|
||||
}
|
||||
|
||||
//tag=1019
|
||||
String cFunctionSymbolName(int methodId) {
|
||||
switch (methodId) {
|
||||
case 680:
|
||||
return "c_KDDockWidgets__Platform__applicationName";
|
||||
case 681:
|
||||
return "c_KDDockWidgets__Platform__createDefaultViewFactory";
|
||||
case 682:
|
||||
return "c_KDDockWidgets__Platform__hasActivePopup";
|
||||
case 683:
|
||||
return "c_KDDockWidgets__Platform__inDisallowedDragView_QPoint";
|
||||
case 685:
|
||||
return "c_KDDockWidgets__Platform__isLeftMouseButtonPressed";
|
||||
case 686:
|
||||
return "c_KDDockWidgets__Platform__isProcessingAppQuitEvent";
|
||||
case 689:
|
||||
return "c_KDDockWidgets__Platform__name";
|
||||
case 690:
|
||||
return "c_KDDockWidgets__Platform__organizationName";
|
||||
case 691:
|
||||
return "c_KDDockWidgets__Platform__restoreMouseCursor";
|
||||
case 692:
|
||||
return "c_KDDockWidgets__Platform__screenNumberFor_View";
|
||||
case 693:
|
||||
return "c_KDDockWidgets__Platform__screenSizeFor_View";
|
||||
case 695:
|
||||
return "c_KDDockWidgets__Platform__startDragDistance_impl";
|
||||
case 696:
|
||||
return "c_KDDockWidgets__Platform__ungrabMouse";
|
||||
case 697:
|
||||
return "c_KDDockWidgets__Platform__usesFallbackMouseGrabber";
|
||||
}
|
||||
return "";
|
||||
}
|
||||
|
||||
static String methodNameFromId(int methodId) {
|
||||
switch (methodId) {
|
||||
case 680:
|
||||
return "applicationName";
|
||||
case 681:
|
||||
return "createDefaultViewFactory";
|
||||
case 682:
|
||||
return "hasActivePopup";
|
||||
case 683:
|
||||
return "inDisallowedDragView";
|
||||
case 685:
|
||||
return "isLeftMouseButtonPressed";
|
||||
case 686:
|
||||
return "isProcessingAppQuitEvent";
|
||||
case 689:
|
||||
return "name";
|
||||
case 690:
|
||||
return "organizationName";
|
||||
case 691:
|
||||
return "restoreMouseCursor";
|
||||
case 692:
|
||||
return "screenNumberFor";
|
||||
case 693:
|
||||
return "screenSizeFor";
|
||||
case 695:
|
||||
return "startDragDistance_impl";
|
||||
case 696:
|
||||
return "ungrabMouse";
|
||||
case 697:
|
||||
return "usesFallbackMouseGrabber";
|
||||
}
|
||||
throw Error();
|
||||
}
|
||||
|
||||
//tag=1020
|
||||
void registerCallbacks() {
|
||||
assert(thisCpp != null);
|
||||
final RegisterMethodIsReimplementedCallback registerCallback = _dylib
|
||||
.lookup<ffi.NativeFunction<RegisterMethodIsReimplementedCallback_FFI>>(
|
||||
'c_KDDockWidgets__Platform__registerVirtualMethodCallback')
|
||||
.asFunction();
|
||||
|
||||
//tag=1021
|
||||
final callback680 = ffi.Pointer.fromFunction<voidstar_Func_voidstar_FFI>(
|
||||
Platform.applicationName_calledFromC);
|
||||
registerCallback(thisCpp, callback680, 680);
|
||||
//tag=1021
|
||||
final callback681 = ffi.Pointer.fromFunction<voidstar_Func_voidstar_FFI>(
|
||||
Platform.createDefaultViewFactory_calledFromC);
|
||||
registerCallback(thisCpp, callback681, 681);
|
||||
const callbackExcept682 = 0;
|
||||
//tag=1021
|
||||
final callback682 = ffi.Pointer.fromFunction<bool_Func_voidstar_FFI>(
|
||||
Platform.hasActivePopup_calledFromC, callbackExcept682);
|
||||
registerCallback(thisCpp, callback682, 682);
|
||||
const callbackExcept683 = 0;
|
||||
//tag=1021
|
||||
final callback683 =
|
||||
ffi.Pointer.fromFunction<bool_Func_voidstar_voidstar_FFI>(
|
||||
Platform.inDisallowedDragView_calledFromC, callbackExcept683);
|
||||
registerCallback(thisCpp, callback683, 683);
|
||||
const callbackExcept685 = 0;
|
||||
//tag=1021
|
||||
final callback685 = ffi.Pointer.fromFunction<bool_Func_voidstar_FFI>(
|
||||
Platform.isLeftMouseButtonPressed_calledFromC, callbackExcept685);
|
||||
registerCallback(thisCpp, callback685, 685);
|
||||
const callbackExcept686 = 0;
|
||||
//tag=1021
|
||||
final callback686 = ffi.Pointer.fromFunction<bool_Func_voidstar_FFI>(
|
||||
Platform.isProcessingAppQuitEvent_calledFromC, callbackExcept686);
|
||||
registerCallback(thisCpp, callback686, 686);
|
||||
//tag=1021
|
||||
final callback689 = ffi.Pointer.fromFunction<string_Func_voidstar_FFI>(
|
||||
Platform.name_calledFromC);
|
||||
registerCallback(thisCpp, callback689, 689);
|
||||
//tag=1021
|
||||
final callback690 = ffi.Pointer.fromFunction<voidstar_Func_voidstar_FFI>(
|
||||
Platform.organizationName_calledFromC);
|
||||
registerCallback(thisCpp, callback690, 690);
|
||||
//tag=1021
|
||||
final callback691 = ffi.Pointer.fromFunction<void_Func_voidstar_FFI>(
|
||||
Platform.restoreMouseCursor_calledFromC);
|
||||
registerCallback(thisCpp, callback691, 691);
|
||||
const callbackExcept692 = 0;
|
||||
//tag=1021
|
||||
final callback692 =
|
||||
ffi.Pointer.fromFunction<int_Func_voidstar_voidstar_FFI>(
|
||||
Platform.screenNumberFor_calledFromC, callbackExcept692);
|
||||
registerCallback(thisCpp, callback692, 692);
|
||||
//tag=1021
|
||||
final callback693 =
|
||||
ffi.Pointer.fromFunction<voidstar_Func_voidstar_voidstar_FFI>(
|
||||
Platform.screenSizeFor_calledFromC);
|
||||
registerCallback(thisCpp, callback693, 693);
|
||||
const callbackExcept695 = 0;
|
||||
//tag=1021
|
||||
final callback695 = ffi.Pointer.fromFunction<int_Func_voidstar_FFI>(
|
||||
Platform.startDragDistance_impl_calledFromC, callbackExcept695);
|
||||
registerCallback(thisCpp, callback695, 695);
|
||||
//tag=1021
|
||||
final callback696 = ffi.Pointer.fromFunction<void_Func_voidstar_FFI>(
|
||||
Platform.ungrabMouse_calledFromC);
|
||||
registerCallback(thisCpp, callback696, 696);
|
||||
const callbackExcept697 = 0;
|
||||
//tag=1021
|
||||
final callback697 = ffi.Pointer.fromFunction<bool_Func_voidstar_FFI>(
|
||||
Platform.usesFallbackMouseGrabber_calledFromC, callbackExcept697);
|
||||
registerCallback(thisCpp, callback697, 697);
|
||||
}
|
||||
}
|
||||
1344
src/flutter/generated/KDDockWidgets/dart/lib/src/QByteArray.dart
Normal file
1344
src/flutter/generated/KDDockWidgets/dart/lib/src/QByteArray.dart
Normal file
File diff suppressed because it is too large
Load Diff
1481
src/flutter/generated/KDDockWidgets/dart/lib/src/QList.dart
Normal file
1481
src/flutter/generated/KDDockWidgets/dart/lib/src/QList.dart
Normal file
File diff suppressed because it is too large
Load Diff
492
src/flutter/generated/KDDockWidgets/dart/lib/src/QObject.dart
Normal file
492
src/flutter/generated/KDDockWidgets/dart/lib/src/QObject.dart
Normal file
@@ -0,0 +1,492 @@
|
||||
/*
|
||||
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_QObject_Finalizer');
|
||||
|
||||
class QObject {
|
||||
Map<Function, List<Function>> signalHandlerersBySignal = {};
|
||||
|
||||
//tag=1060
|
||||
static var s_dartInstanceByCppPtr = Map<int, QObject>();
|
||||
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 QObject.fromCache(var cppPointer, [needsAutoDelete = false]) {
|
||||
return (s_dartInstanceByCppPtr[cppPointer.address] ??
|
||||
QObject.fromCppPointer(cppPointer, needsAutoDelete)) as QObject;
|
||||
}
|
||||
QObject.fromCppPointer(var cppPointer, [this._needsAutoDelete = false]) {
|
||||
//tag=1024
|
||||
thisCpp = cppPointer;
|
||||
}
|
||||
//tag=1025
|
||||
QObject.init() {}
|
||||
//tag=1023
|
||||
//QObject(QObject * parent)
|
||||
QObject({required QObject? parent}) {
|
||||
//tag=1075
|
||||
final voidstar_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<voidstar_Func_voidstar_FFI>>(
|
||||
'c_QObject__constructor_QObject')
|
||||
.asFunction();
|
||||
thisCpp = func(parent == null ? ffi.nullptr : parent.thisCpp);
|
||||
QObject.s_dartInstanceByCppPtr[thisCpp.address] = this;
|
||||
registerCallbacks();
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// blockSignals(bool b)
|
||||
bool blockSignals(bool b) {
|
||||
//tag=1028
|
||||
final bool_Func_voidstar_bool func = _dylib
|
||||
.lookup<ffi.NativeFunction<bool_Func_voidstar_ffi_Int8_FFI>>(
|
||||
'c_QObject__blockSignals_bool')
|
||||
.asFunction();
|
||||
//tag=1029
|
||||
return func(thisCpp, b ? 1 : 0) != 0;
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// children() const
|
||||
QList children() {
|
||||
//tag=1028
|
||||
final voidstar_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<voidstar_Func_voidstar_FFI>>(
|
||||
'c_QObject__children')
|
||||
.asFunction();
|
||||
//tag=1033
|
||||
ffi.Pointer<void> result = func(thisCpp);
|
||||
return QList<QObject>.fromCppPointer(result, false);
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// deleteLater()
|
||||
deleteLater() {
|
||||
//tag=1028
|
||||
final void_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<void_Func_voidstar_FFI>>(
|
||||
'c_QObject__deleteLater')
|
||||
.asFunction();
|
||||
//tag=1030
|
||||
func(thisCpp);
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// destroyed(QObject * arg__1)
|
||||
destroyed({required QObject? arg__1}) {
|
||||
//tag=1028
|
||||
final void_Func_voidstar_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<void_Func_voidstar_voidstar_FFI>>(
|
||||
'c_QObject__destroyed_QObject')
|
||||
.asFunction();
|
||||
//tag=1030
|
||||
func(thisCpp, arg__1 == null ? ffi.nullptr : arg__1.thisCpp);
|
||||
}
|
||||
|
||||
//tag=1077
|
||||
void onDestroyed(Function callback, {QObject? context}) {
|
||||
final SignalHandler func = _dylib
|
||||
.lookup<ffi.NativeFunction<SignalHandler_FFI>>(
|
||||
'c_QObject__onDestroyed_QObject')
|
||||
.asFunction();
|
||||
final dartCallback =
|
||||
ffi.Pointer.fromFunction<ffi.Void Function(ffi.Pointer<void>)>(
|
||||
onDestroyed_callback);
|
||||
final callbackMethod = onDestroyed_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 onDestroyed_callback(ffi.Pointer<void> thisCpp) {
|
||||
var dartInstance =
|
||||
QObject.s_dartInstanceByCppPtr[thisCpp.address] as QObject;
|
||||
final signalHandlers =
|
||||
dartInstance.signalHandlerersBySignal[onDestroyed_callback] ?? [];
|
||||
for (var signalHandler in signalHandlers) {
|
||||
signalHandler();
|
||||
}
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// disconnect(const QObject * receiver, const char * member) const
|
||||
bool disconnect(QObject? receiver, {String? member}) {
|
||||
//tag=1028
|
||||
final bool_Func_voidstar_voidstar_string func = _dylib
|
||||
.lookup<ffi.NativeFunction<bool_Func_voidstar_voidstar_string_FFI>>(
|
||||
'c_QObject__disconnect_QObject_char')
|
||||
.asFunction();
|
||||
//tag=1029
|
||||
return func(thisCpp, receiver == null ? ffi.nullptr : receiver.thisCpp,
|
||||
member?.toNativeUtf8() ?? ffi.nullptr) !=
|
||||
0;
|
||||
}
|
||||
|
||||
//tag=1024
|
||||
static
|
||||
//tag=1027
|
||||
// disconnect(const QObject * sender, const char * signal, const QObject * receiver, const char * member)
|
||||
bool disconnect_2(
|
||||
QObject? sender, String? signal, QObject? receiver, String? member) {
|
||||
//tag=1028
|
||||
final bool_Func_voidstar_string_voidstar_string func = _dylib
|
||||
.lookup<
|
||||
ffi.NativeFunction<
|
||||
bool_Func_voidstar_string_voidstar_string_FFI>>(
|
||||
'c_static_QObject__disconnect_QObject_char_QObject_char')
|
||||
.asFunction();
|
||||
//tag=1029
|
||||
return func(
|
||||
sender == null ? ffi.nullptr : sender.thisCpp,
|
||||
signal?.toNativeUtf8() ?? ffi.nullptr,
|
||||
receiver == null ? ffi.nullptr : receiver.thisCpp,
|
||||
member?.toNativeUtf8() ?? ffi.nullptr) !=
|
||||
0;
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// disconnect(const char * signal, const QObject * receiver, const char * member) const
|
||||
bool disconnect_3(
|
||||
{String? signal, required QObject? receiver, String? member}) {
|
||||
//tag=1028
|
||||
final bool_Func_voidstar_string_voidstar_string func = _dylib
|
||||
.lookup<
|
||||
ffi.NativeFunction<
|
||||
bool_Func_voidstar_string_voidstar_string_FFI>>(
|
||||
'c_QObject__disconnect_char_QObject_char')
|
||||
.asFunction();
|
||||
//tag=1029
|
||||
return func(
|
||||
thisCpp,
|
||||
signal?.toNativeUtf8() ?? ffi.nullptr,
|
||||
receiver == null ? ffi.nullptr : receiver.thisCpp,
|
||||
member?.toNativeUtf8() ?? ffi.nullptr) !=
|
||||
0;
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// dumpObjectInfo()
|
||||
dumpObjectInfo() {
|
||||
//tag=1028
|
||||
final void_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<void_Func_voidstar_FFI>>(
|
||||
'c_QObject__dumpObjectInfo')
|
||||
.asFunction();
|
||||
//tag=1030
|
||||
func(thisCpp);
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// dumpObjectTree()
|
||||
dumpObjectTree() {
|
||||
//tag=1028
|
||||
final void_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<void_Func_voidstar_FFI>>(
|
||||
'c_QObject__dumpObjectTree')
|
||||
.asFunction();
|
||||
//tag=1030
|
||||
func(thisCpp);
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// dynamicPropertyNames() const
|
||||
QList dynamicPropertyNames() {
|
||||
//tag=1028
|
||||
final voidstar_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<voidstar_Func_voidstar_FFI>>(
|
||||
'c_QObject__dynamicPropertyNames')
|
||||
.asFunction();
|
||||
//tag=1033
|
||||
ffi.Pointer<void> result = func(thisCpp);
|
||||
return QList<QByteArray>.fromCppPointer(result, true);
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// inherits(const char * classname) const
|
||||
bool inherits(String? classname) {
|
||||
//tag=1028
|
||||
final bool_Func_voidstar_string func = _dylib
|
||||
.lookup<ffi.NativeFunction<bool_Func_voidstar_string_FFI>>(
|
||||
'c_QObject__inherits_char')
|
||||
.asFunction();
|
||||
//tag=1029
|
||||
return func(thisCpp, classname?.toNativeUtf8() ?? ffi.nullptr) != 0;
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// installEventFilter(QObject * filterObj)
|
||||
installEventFilter(QObject? filterObj) {
|
||||
//tag=1028
|
||||
final void_Func_voidstar_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<void_Func_voidstar_voidstar_FFI>>(
|
||||
'c_QObject__installEventFilter_QObject')
|
||||
.asFunction();
|
||||
//tag=1030
|
||||
func(thisCpp, filterObj == null ? ffi.nullptr : filterObj.thisCpp);
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// isWidgetType() const
|
||||
bool isWidgetType() {
|
||||
//tag=1028
|
||||
final bool_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<bool_Func_voidstar_FFI>>(
|
||||
'c_QObject__isWidgetType')
|
||||
.asFunction();
|
||||
//tag=1029
|
||||
return func(thisCpp) != 0;
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// isWindowType() const
|
||||
bool isWindowType() {
|
||||
//tag=1028
|
||||
final bool_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<bool_Func_voidstar_FFI>>(
|
||||
'c_QObject__isWindowType')
|
||||
.asFunction();
|
||||
//tag=1029
|
||||
return func(thisCpp) != 0;
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// killTimer(int id)
|
||||
killTimer(int id) {
|
||||
//tag=1028
|
||||
final void_Func_voidstar_int func = _dylib
|
||||
.lookup<ffi.NativeFunction<void_Func_voidstar_ffi_Int32_FFI>>(
|
||||
'c_QObject__killTimer_int')
|
||||
.asFunction();
|
||||
//tag=1030
|
||||
func(thisCpp, id);
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// objectName() const
|
||||
QString objectName() {
|
||||
//tag=1028
|
||||
final voidstar_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<voidstar_Func_voidstar_FFI>>(
|
||||
'c_QObject__objectName')
|
||||
.asFunction();
|
||||
//tag=1033
|
||||
ffi.Pointer<void> result = func(thisCpp);
|
||||
return QString.fromCppPointer(result, true);
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// parent() const
|
||||
QObject parent() {
|
||||
//tag=1028
|
||||
final voidstar_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<voidstar_Func_voidstar_FFI>>(
|
||||
'c_QObject__parent')
|
||||
.asFunction();
|
||||
//tag=1033
|
||||
ffi.Pointer<void> result = func(thisCpp);
|
||||
return QObject.fromCppPointer(result, false);
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// receivers(const char * signal) const
|
||||
int receivers(String? signal) {
|
||||
//tag=1028
|
||||
final int_Func_voidstar_string func = _dylib
|
||||
.lookup<ffi.NativeFunction<int_Func_voidstar_string_FFI>>(
|
||||
'c_QObject__receivers_char')
|
||||
.asFunction();
|
||||
//tag=1031
|
||||
return func(thisCpp, signal?.toNativeUtf8() ?? ffi.nullptr);
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// removeEventFilter(QObject * obj)
|
||||
removeEventFilter(QObject? obj) {
|
||||
//tag=1028
|
||||
final void_Func_voidstar_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<void_Func_voidstar_voidstar_FFI>>(
|
||||
'c_QObject__removeEventFilter_QObject')
|
||||
.asFunction();
|
||||
//tag=1030
|
||||
func(thisCpp, obj == null ? ffi.nullptr : obj.thisCpp);
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// sender() const
|
||||
QObject sender() {
|
||||
//tag=1028
|
||||
final voidstar_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<voidstar_Func_voidstar_FFI>>(
|
||||
'c_QObject__sender')
|
||||
.asFunction();
|
||||
//tag=1033
|
||||
ffi.Pointer<void> result = func(thisCpp);
|
||||
return QObject.fromCppPointer(result, false);
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// senderSignalIndex() const
|
||||
int senderSignalIndex() {
|
||||
//tag=1028
|
||||
final int_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<int_Func_voidstar_FFI>>(
|
||||
'c_QObject__senderSignalIndex')
|
||||
.asFunction();
|
||||
//tag=1031
|
||||
return func(thisCpp);
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// setObjectName(const QString & name)
|
||||
setObjectName(String? name) {
|
||||
//tag=1028
|
||||
final void_Func_voidstar_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<void_Func_voidstar_voidstar_FFI>>(
|
||||
'c_QObject__setObjectName_QString')
|
||||
.asFunction();
|
||||
//tag=1030
|
||||
func(thisCpp, name?.toNativeUtf8() ?? ffi.nullptr);
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// setParent(QObject * parent)
|
||||
setParent(QObject? parent) {
|
||||
//tag=1028
|
||||
final void_Func_voidstar_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<void_Func_voidstar_voidstar_FFI>>(
|
||||
'c_QObject__setParent_QObject')
|
||||
.asFunction();
|
||||
//tag=1030
|
||||
func(thisCpp, parent == null ? ffi.nullptr : parent.thisCpp);
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// signalsBlocked() const
|
||||
bool signalsBlocked() {
|
||||
//tag=1028
|
||||
final bool_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<bool_Func_voidstar_FFI>>(
|
||||
'c_QObject__signalsBlocked')
|
||||
.asFunction();
|
||||
//tag=1029
|
||||
return func(thisCpp) != 0;
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// startTimer(int interval)
|
||||
int startTimer(int interval) {
|
||||
//tag=1028
|
||||
final int_Func_voidstar_int func = _dylib
|
||||
.lookup<ffi.NativeFunction<int_Func_voidstar_ffi_Int32_FFI>>(
|
||||
'c_QObject__startTimer_int')
|
||||
.asFunction();
|
||||
//tag=1031
|
||||
return func(thisCpp, interval);
|
||||
}
|
||||
|
||||
//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_QObject__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=1022
|
||||
void release() {
|
||||
final void_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<void_Func_voidstar_FFI>>(
|
||||
'c_QObject__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_QObject__registerVirtualMethodCallback')
|
||||
.asFunction();
|
||||
}
|
||||
}
|
||||
188
src/flutter/generated/KDDockWidgets/dart/lib/src/QPoint.dart
Normal file
188
src/flutter/generated/KDDockWidgets/dart/lib/src/QPoint.dart
Normal file
@@ -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.
|
||||
*/
|
||||
|
||||
//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_QPoint_Finalizer');
|
||||
|
||||
class QPoint {
|
||||
//tag=1060
|
||||
static var s_dartInstanceByCppPtr = Map<int, QPoint>();
|
||||
var _thisCpp = null;
|
||||
bool _needsAutoDelete = true;
|
||||
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 QPoint.fromCache(var cppPointer, [needsAutoDelete = false]) {
|
||||
return (s_dartInstanceByCppPtr[cppPointer.address] ??
|
||||
QPoint.fromCppPointer(cppPointer, needsAutoDelete)) as QPoint;
|
||||
}
|
||||
QPoint.fromCppPointer(var cppPointer, [this._needsAutoDelete = false]) {
|
||||
//tag=1024
|
||||
thisCpp = cppPointer;
|
||||
}
|
||||
//tag=1025
|
||||
QPoint.init() {}
|
||||
//tag=1023
|
||||
//QPoint()
|
||||
QPoint() {
|
||||
//tag=1075
|
||||
final voidstar_Func_void func = _dylib
|
||||
.lookup<ffi.NativeFunction<voidstar_Func_void_FFI>>(
|
||||
'c_QPoint__constructor')
|
||||
.asFunction();
|
||||
thisCpp = func();
|
||||
QPoint.s_dartInstanceByCppPtr[thisCpp.address] = this;
|
||||
}
|
||||
//tag=1023
|
||||
//QPoint(int xpos, int ypos)
|
||||
QPoint.ctor2(int xpos, int ypos) {
|
||||
//tag=1075
|
||||
final voidstar_Func_int_int func = _dylib
|
||||
.lookup<ffi.NativeFunction<voidstar_Func_ffi_Int32_ffi_Int32_FFI>>(
|
||||
'c_QPoint__constructor_int_int')
|
||||
.asFunction();
|
||||
thisCpp = func(xpos, ypos);
|
||||
QPoint.s_dartInstanceByCppPtr[thisCpp.address] = this;
|
||||
}
|
||||
//tag=1024
|
||||
static
|
||||
//tag=1027
|
||||
// dotProduct(const QPoint & p1, const QPoint & p2)
|
||||
int dotProduct(QPoint? p1, QPoint? p2) {
|
||||
//tag=1028
|
||||
final int_Func_voidstar_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<int_Func_voidstar_voidstar_FFI>>(
|
||||
'c_static_QPoint__dotProduct_QPoint_QPoint')
|
||||
.asFunction();
|
||||
//tag=1031
|
||||
return func(p1 == null ? ffi.nullptr : p1.thisCpp,
|
||||
p2 == null ? ffi.nullptr : p2.thisCpp);
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// isNull() const
|
||||
bool isNull() {
|
||||
//tag=1028
|
||||
final bool_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<bool_Func_voidstar_FFI>>('c_QPoint__isNull')
|
||||
.asFunction();
|
||||
//tag=1029
|
||||
return func(thisCpp) != 0;
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// manhattanLength() const
|
||||
int manhattanLength() {
|
||||
//tag=1028
|
||||
final int_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<int_Func_voidstar_FFI>>(
|
||||
'c_QPoint__manhattanLength')
|
||||
.asFunction();
|
||||
//tag=1031
|
||||
return func(thisCpp);
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// setX(int x)
|
||||
setX(int x) {
|
||||
//tag=1028
|
||||
final void_Func_voidstar_int func = _dylib
|
||||
.lookup<ffi.NativeFunction<void_Func_voidstar_ffi_Int32_FFI>>(
|
||||
'c_QPoint__setX_int')
|
||||
.asFunction();
|
||||
//tag=1030
|
||||
func(thisCpp, x);
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// setY(int y)
|
||||
setY(int y) {
|
||||
//tag=1028
|
||||
final void_Func_voidstar_int func = _dylib
|
||||
.lookup<ffi.NativeFunction<void_Func_voidstar_ffi_Int32_FFI>>(
|
||||
'c_QPoint__setY_int')
|
||||
.asFunction();
|
||||
//tag=1030
|
||||
func(thisCpp, y);
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// transposed() const
|
||||
QPoint transposed() {
|
||||
//tag=1028
|
||||
final voidstar_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<voidstar_Func_voidstar_FFI>>(
|
||||
'c_QPoint__transposed')
|
||||
.asFunction();
|
||||
//tag=1033
|
||||
ffi.Pointer<void> result = func(thisCpp);
|
||||
return QPoint.fromCppPointer(result, true);
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// x() const
|
||||
int x() {
|
||||
//tag=1028
|
||||
final int_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<int_Func_voidstar_FFI>>('c_QPoint__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_QPoint__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_QPoint__destructor')
|
||||
.asFunction();
|
||||
func(thisCpp);
|
||||
}
|
||||
}
|
||||
883
src/flutter/generated/KDDockWidgets/dart/lib/src/QRect.dart
Normal file
883
src/flutter/generated/KDDockWidgets/dart/lib/src/QRect.dart
Normal file
@@ -0,0 +1,883 @@
|
||||
/*
|
||||
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_QRect_Finalizer');
|
||||
|
||||
class QRect {
|
||||
//tag=1060
|
||||
static var s_dartInstanceByCppPtr = Map<int, QRect>();
|
||||
var _thisCpp = null;
|
||||
bool _needsAutoDelete = true;
|
||||
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 QRect.fromCache(var cppPointer, [needsAutoDelete = false]) {
|
||||
return (s_dartInstanceByCppPtr[cppPointer.address] ??
|
||||
QRect.fromCppPointer(cppPointer, needsAutoDelete)) as QRect;
|
||||
}
|
||||
QRect.fromCppPointer(var cppPointer, [this._needsAutoDelete = false]) {
|
||||
//tag=1024
|
||||
thisCpp = cppPointer;
|
||||
}
|
||||
//tag=1025
|
||||
QRect.init() {}
|
||||
//tag=1023
|
||||
//QRect()
|
||||
QRect() {
|
||||
//tag=1075
|
||||
final voidstar_Func_void func = _dylib
|
||||
.lookup<ffi.NativeFunction<voidstar_Func_void_FFI>>(
|
||||
'c_QRect__constructor')
|
||||
.asFunction();
|
||||
thisCpp = func();
|
||||
QRect.s_dartInstanceByCppPtr[thisCpp.address] = this;
|
||||
}
|
||||
//tag=1023
|
||||
//QRect(const QPoint & topleft, const QPoint & bottomright)
|
||||
QRect.ctor2(QPoint? topleft, QPoint? bottomright) {
|
||||
//tag=1075
|
||||
final voidstar_Func_voidstar_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<voidstar_Func_voidstar_voidstar_FFI>>(
|
||||
'c_QRect__constructor_QPoint_QPoint')
|
||||
.asFunction();
|
||||
thisCpp = func(topleft == null ? ffi.nullptr : topleft.thisCpp,
|
||||
bottomright == null ? ffi.nullptr : bottomright.thisCpp);
|
||||
QRect.s_dartInstanceByCppPtr[thisCpp.address] = this;
|
||||
}
|
||||
//tag=1023
|
||||
//QRect(const QPoint & topleft, const QSize & size)
|
||||
QRect.ctor3(QPoint? topleft, QSize? size) {
|
||||
//tag=1075
|
||||
final voidstar_Func_voidstar_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<voidstar_Func_voidstar_voidstar_FFI>>(
|
||||
'c_QRect__constructor_QPoint_QSize')
|
||||
.asFunction();
|
||||
thisCpp = func(topleft == null ? ffi.nullptr : topleft.thisCpp,
|
||||
size == null ? ffi.nullptr : size.thisCpp);
|
||||
QRect.s_dartInstanceByCppPtr[thisCpp.address] = this;
|
||||
}
|
||||
//tag=1023
|
||||
//QRect(int left, int top, int width, int height)
|
||||
QRect.ctor4(int left, int top, int width, int height) {
|
||||
//tag=1075
|
||||
final voidstar_Func_int_int_int_int func = _dylib
|
||||
.lookup<
|
||||
ffi.NativeFunction<
|
||||
voidstar_Func_ffi_Int32_ffi_Int32_ffi_Int32_ffi_Int32_FFI>>(
|
||||
'c_QRect__constructor_int_int_int_int')
|
||||
.asFunction();
|
||||
thisCpp = func(left, top, width, height);
|
||||
QRect.s_dartInstanceByCppPtr[thisCpp.address] = this;
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// adjust(int x1, int y1, int x2, int y2)
|
||||
adjust(int x1, int y1, int x2, int y2) {
|
||||
//tag=1028
|
||||
final void_Func_voidstar_int_int_int_int func = _dylib
|
||||
.lookup<
|
||||
ffi.NativeFunction<
|
||||
void_Func_voidstar_ffi_Int32_ffi_Int32_ffi_Int32_ffi_Int32_FFI>>(
|
||||
'c_QRect__adjust_int_int_int_int')
|
||||
.asFunction();
|
||||
//tag=1030
|
||||
func(thisCpp, x1, y1, x2, y2);
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// adjusted(int x1, int y1, int x2, int y2) const
|
||||
QRect adjusted(int x1, int y1, int x2, int y2) {
|
||||
//tag=1028
|
||||
final voidstar_Func_voidstar_int_int_int_int func = _dylib
|
||||
.lookup<
|
||||
ffi.NativeFunction<
|
||||
voidstar_Func_voidstar_ffi_Int32_ffi_Int32_ffi_Int32_ffi_Int32_FFI>>(
|
||||
'c_QRect__adjusted_int_int_int_int')
|
||||
.asFunction();
|
||||
//tag=1033
|
||||
ffi.Pointer<void> result = func(thisCpp, x1, y1, x2, y2);
|
||||
return QRect.fromCppPointer(result, true);
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// bottom() const
|
||||
int bottom() {
|
||||
//tag=1028
|
||||
final int_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<int_Func_voidstar_FFI>>('c_QRect__bottom')
|
||||
.asFunction();
|
||||
//tag=1031
|
||||
return func(thisCpp);
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// bottomLeft() const
|
||||
QPoint bottomLeft() {
|
||||
//tag=1028
|
||||
final voidstar_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<voidstar_Func_voidstar_FFI>>(
|
||||
'c_QRect__bottomLeft')
|
||||
.asFunction();
|
||||
//tag=1033
|
||||
ffi.Pointer<void> result = func(thisCpp);
|
||||
return QPoint.fromCppPointer(result, true);
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// bottomRight() const
|
||||
QPoint bottomRight() {
|
||||
//tag=1028
|
||||
final voidstar_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<voidstar_Func_voidstar_FFI>>(
|
||||
'c_QRect__bottomRight')
|
||||
.asFunction();
|
||||
//tag=1033
|
||||
ffi.Pointer<void> result = func(thisCpp);
|
||||
return QPoint.fromCppPointer(result, true);
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// center() const
|
||||
QPoint center() {
|
||||
//tag=1028
|
||||
final voidstar_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<voidstar_Func_voidstar_FFI>>(
|
||||
'c_QRect__center')
|
||||
.asFunction();
|
||||
//tag=1033
|
||||
ffi.Pointer<void> result = func(thisCpp);
|
||||
return QPoint.fromCppPointer(result, true);
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// contains(const QPoint & p, bool proper) const
|
||||
bool contains(QPoint? p, {bool proper = false}) {
|
||||
//tag=1028
|
||||
final bool_Func_voidstar_voidstar_bool func = _dylib
|
||||
.lookup<ffi.NativeFunction<bool_Func_voidstar_voidstar_ffi_Int8_FFI>>(
|
||||
'c_QRect__contains_QPoint_bool')
|
||||
.asFunction();
|
||||
//tag=1029
|
||||
return func(thisCpp, p == null ? ffi.nullptr : p.thisCpp, proper ? 1 : 0) !=
|
||||
0;
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// contains(const QRect & r, bool proper) const
|
||||
bool contains_2(QRect? r, {bool proper = false}) {
|
||||
//tag=1028
|
||||
final bool_Func_voidstar_voidstar_bool func = _dylib
|
||||
.lookup<ffi.NativeFunction<bool_Func_voidstar_voidstar_ffi_Int8_FFI>>(
|
||||
'c_QRect__contains_QRect_bool')
|
||||
.asFunction();
|
||||
//tag=1029
|
||||
return func(thisCpp, r == null ? ffi.nullptr : r.thisCpp, proper ? 1 : 0) !=
|
||||
0;
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// contains(int x, int y) const
|
||||
bool contains_3(int x, int y) {
|
||||
//tag=1028
|
||||
final bool_Func_voidstar_int_int func = _dylib
|
||||
.lookup<ffi.NativeFunction<bool_Func_voidstar_ffi_Int32_ffi_Int32_FFI>>(
|
||||
'c_QRect__contains_int_int')
|
||||
.asFunction();
|
||||
//tag=1029
|
||||
return func(thisCpp, x, y) != 0;
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// contains(int x, int y, bool proper) const
|
||||
bool contains_4(int x, int y, bool proper) {
|
||||
//tag=1028
|
||||
final bool_Func_voidstar_int_int_bool func = _dylib
|
||||
.lookup<
|
||||
ffi.NativeFunction<
|
||||
bool_Func_voidstar_ffi_Int32_ffi_Int32_ffi_Int8_FFI>>(
|
||||
'c_QRect__contains_int_int_bool')
|
||||
.asFunction();
|
||||
//tag=1029
|
||||
return func(thisCpp, x, y, proper ? 1 : 0) != 0;
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// height() const
|
||||
int height() {
|
||||
//tag=1028
|
||||
final int_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<int_Func_voidstar_FFI>>('c_QRect__height')
|
||||
.asFunction();
|
||||
//tag=1031
|
||||
return func(thisCpp);
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// intersected(const QRect & other) const
|
||||
QRect intersected(QRect? other) {
|
||||
//tag=1028
|
||||
final voidstar_Func_voidstar_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<voidstar_Func_voidstar_voidstar_FFI>>(
|
||||
'c_QRect__intersected_QRect')
|
||||
.asFunction();
|
||||
//tag=1033
|
||||
ffi.Pointer<void> result =
|
||||
func(thisCpp, other == null ? ffi.nullptr : other.thisCpp);
|
||||
return QRect.fromCppPointer(result, true);
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// intersects(const QRect & r) const
|
||||
bool intersects(QRect? r) {
|
||||
//tag=1028
|
||||
final bool_Func_voidstar_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<bool_Func_voidstar_voidstar_FFI>>(
|
||||
'c_QRect__intersects_QRect')
|
||||
.asFunction();
|
||||
//tag=1029
|
||||
return func(thisCpp, r == null ? ffi.nullptr : r.thisCpp) != 0;
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// isEmpty() const
|
||||
bool isEmpty() {
|
||||
//tag=1028
|
||||
final bool_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<bool_Func_voidstar_FFI>>('c_QRect__isEmpty')
|
||||
.asFunction();
|
||||
//tag=1029
|
||||
return func(thisCpp) != 0;
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// isNull() const
|
||||
bool isNull() {
|
||||
//tag=1028
|
||||
final bool_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<bool_Func_voidstar_FFI>>('c_QRect__isNull')
|
||||
.asFunction();
|
||||
//tag=1029
|
||||
return func(thisCpp) != 0;
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// isValid() const
|
||||
bool isValid() {
|
||||
//tag=1028
|
||||
final bool_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<bool_Func_voidstar_FFI>>('c_QRect__isValid')
|
||||
.asFunction();
|
||||
//tag=1029
|
||||
return func(thisCpp) != 0;
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// left() const
|
||||
int left() {
|
||||
//tag=1028
|
||||
final int_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<int_Func_voidstar_FFI>>('c_QRect__left')
|
||||
.asFunction();
|
||||
//tag=1031
|
||||
return func(thisCpp);
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// moveBottom(int pos)
|
||||
moveBottom(int pos) {
|
||||
//tag=1028
|
||||
final void_Func_voidstar_int func = _dylib
|
||||
.lookup<ffi.NativeFunction<void_Func_voidstar_ffi_Int32_FFI>>(
|
||||
'c_QRect__moveBottom_int')
|
||||
.asFunction();
|
||||
//tag=1030
|
||||
func(thisCpp, pos);
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// moveBottomLeft(const QPoint & p)
|
||||
moveBottomLeft(QPoint? p) {
|
||||
//tag=1028
|
||||
final void_Func_voidstar_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<void_Func_voidstar_voidstar_FFI>>(
|
||||
'c_QRect__moveBottomLeft_QPoint')
|
||||
.asFunction();
|
||||
//tag=1030
|
||||
func(thisCpp, p == null ? ffi.nullptr : p.thisCpp);
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// moveBottomRight(const QPoint & p)
|
||||
moveBottomRight(QPoint? p) {
|
||||
//tag=1028
|
||||
final void_Func_voidstar_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<void_Func_voidstar_voidstar_FFI>>(
|
||||
'c_QRect__moveBottomRight_QPoint')
|
||||
.asFunction();
|
||||
//tag=1030
|
||||
func(thisCpp, p == null ? ffi.nullptr : p.thisCpp);
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// moveCenter(const QPoint & p)
|
||||
moveCenter(QPoint? p) {
|
||||
//tag=1028
|
||||
final void_Func_voidstar_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<void_Func_voidstar_voidstar_FFI>>(
|
||||
'c_QRect__moveCenter_QPoint')
|
||||
.asFunction();
|
||||
//tag=1030
|
||||
func(thisCpp, p == null ? ffi.nullptr : p.thisCpp);
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// moveLeft(int pos)
|
||||
moveLeft(int pos) {
|
||||
//tag=1028
|
||||
final void_Func_voidstar_int func = _dylib
|
||||
.lookup<ffi.NativeFunction<void_Func_voidstar_ffi_Int32_FFI>>(
|
||||
'c_QRect__moveLeft_int')
|
||||
.asFunction();
|
||||
//tag=1030
|
||||
func(thisCpp, pos);
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// moveRight(int pos)
|
||||
moveRight(int pos) {
|
||||
//tag=1028
|
||||
final void_Func_voidstar_int func = _dylib
|
||||
.lookup<ffi.NativeFunction<void_Func_voidstar_ffi_Int32_FFI>>(
|
||||
'c_QRect__moveRight_int')
|
||||
.asFunction();
|
||||
//tag=1030
|
||||
func(thisCpp, pos);
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// moveTo(const QPoint & p)
|
||||
moveTo(QPoint? p) {
|
||||
//tag=1028
|
||||
final void_Func_voidstar_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<void_Func_voidstar_voidstar_FFI>>(
|
||||
'c_QRect__moveTo_QPoint')
|
||||
.asFunction();
|
||||
//tag=1030
|
||||
func(thisCpp, p == null ? ffi.nullptr : p.thisCpp);
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// moveTo(int x, int t)
|
||||
moveTo_2(int x, int t) {
|
||||
//tag=1028
|
||||
final void_Func_voidstar_int_int func = _dylib
|
||||
.lookup<ffi.NativeFunction<void_Func_voidstar_ffi_Int32_ffi_Int32_FFI>>(
|
||||
'c_QRect__moveTo_int_int')
|
||||
.asFunction();
|
||||
//tag=1030
|
||||
func(thisCpp, x, t);
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// moveTop(int pos)
|
||||
moveTop(int pos) {
|
||||
//tag=1028
|
||||
final void_Func_voidstar_int func = _dylib
|
||||
.lookup<ffi.NativeFunction<void_Func_voidstar_ffi_Int32_FFI>>(
|
||||
'c_QRect__moveTop_int')
|
||||
.asFunction();
|
||||
//tag=1030
|
||||
func(thisCpp, pos);
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// moveTopLeft(const QPoint & p)
|
||||
moveTopLeft(QPoint? p) {
|
||||
//tag=1028
|
||||
final void_Func_voidstar_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<void_Func_voidstar_voidstar_FFI>>(
|
||||
'c_QRect__moveTopLeft_QPoint')
|
||||
.asFunction();
|
||||
//tag=1030
|
||||
func(thisCpp, p == null ? ffi.nullptr : p.thisCpp);
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// moveTopRight(const QPoint & p)
|
||||
moveTopRight(QPoint? p) {
|
||||
//tag=1028
|
||||
final void_Func_voidstar_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<void_Func_voidstar_voidstar_FFI>>(
|
||||
'c_QRect__moveTopRight_QPoint')
|
||||
.asFunction();
|
||||
//tag=1030
|
||||
func(thisCpp, p == null ? ffi.nullptr : p.thisCpp);
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// normalized() const
|
||||
QRect normalized() {
|
||||
//tag=1028
|
||||
final voidstar_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<voidstar_Func_voidstar_FFI>>(
|
||||
'c_QRect__normalized')
|
||||
.asFunction();
|
||||
//tag=1033
|
||||
ffi.Pointer<void> result = func(thisCpp);
|
||||
return QRect.fromCppPointer(result, true);
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// right() const
|
||||
int right() {
|
||||
//tag=1028
|
||||
final int_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<int_Func_voidstar_FFI>>('c_QRect__right')
|
||||
.asFunction();
|
||||
//tag=1031
|
||||
return func(thisCpp);
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// setBottom(int pos)
|
||||
setBottom(int pos) {
|
||||
//tag=1028
|
||||
final void_Func_voidstar_int func = _dylib
|
||||
.lookup<ffi.NativeFunction<void_Func_voidstar_ffi_Int32_FFI>>(
|
||||
'c_QRect__setBottom_int')
|
||||
.asFunction();
|
||||
//tag=1030
|
||||
func(thisCpp, pos);
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// setBottomLeft(const QPoint & p)
|
||||
setBottomLeft(QPoint? p) {
|
||||
//tag=1028
|
||||
final void_Func_voidstar_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<void_Func_voidstar_voidstar_FFI>>(
|
||||
'c_QRect__setBottomLeft_QPoint')
|
||||
.asFunction();
|
||||
//tag=1030
|
||||
func(thisCpp, p == null ? ffi.nullptr : p.thisCpp);
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// setBottomRight(const QPoint & p)
|
||||
setBottomRight(QPoint? p) {
|
||||
//tag=1028
|
||||
final void_Func_voidstar_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<void_Func_voidstar_voidstar_FFI>>(
|
||||
'c_QRect__setBottomRight_QPoint')
|
||||
.asFunction();
|
||||
//tag=1030
|
||||
func(thisCpp, p == null ? ffi.nullptr : p.thisCpp);
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// setCoords(int x1, int y1, int x2, int y2)
|
||||
setCoords(int x1, int y1, int x2, int y2) {
|
||||
//tag=1028
|
||||
final void_Func_voidstar_int_int_int_int func = _dylib
|
||||
.lookup<
|
||||
ffi.NativeFunction<
|
||||
void_Func_voidstar_ffi_Int32_ffi_Int32_ffi_Int32_ffi_Int32_FFI>>(
|
||||
'c_QRect__setCoords_int_int_int_int')
|
||||
.asFunction();
|
||||
//tag=1030
|
||||
func(thisCpp, x1, y1, x2, y2);
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// setHeight(int h)
|
||||
setHeight(int h) {
|
||||
//tag=1028
|
||||
final void_Func_voidstar_int func = _dylib
|
||||
.lookup<ffi.NativeFunction<void_Func_voidstar_ffi_Int32_FFI>>(
|
||||
'c_QRect__setHeight_int')
|
||||
.asFunction();
|
||||
//tag=1030
|
||||
func(thisCpp, h);
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// setLeft(int pos)
|
||||
setLeft(int pos) {
|
||||
//tag=1028
|
||||
final void_Func_voidstar_int func = _dylib
|
||||
.lookup<ffi.NativeFunction<void_Func_voidstar_ffi_Int32_FFI>>(
|
||||
'c_QRect__setLeft_int')
|
||||
.asFunction();
|
||||
//tag=1030
|
||||
func(thisCpp, pos);
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// setRect(int x, int y, int w, int h)
|
||||
setRect(int x, int y, int w, int h) {
|
||||
//tag=1028
|
||||
final void_Func_voidstar_int_int_int_int func = _dylib
|
||||
.lookup<
|
||||
ffi.NativeFunction<
|
||||
void_Func_voidstar_ffi_Int32_ffi_Int32_ffi_Int32_ffi_Int32_FFI>>(
|
||||
'c_QRect__setRect_int_int_int_int')
|
||||
.asFunction();
|
||||
//tag=1030
|
||||
func(thisCpp, x, y, w, h);
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// setRight(int pos)
|
||||
setRight(int pos) {
|
||||
//tag=1028
|
||||
final void_Func_voidstar_int func = _dylib
|
||||
.lookup<ffi.NativeFunction<void_Func_voidstar_ffi_Int32_FFI>>(
|
||||
'c_QRect__setRight_int')
|
||||
.asFunction();
|
||||
//tag=1030
|
||||
func(thisCpp, pos);
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// setSize(const QSize & s)
|
||||
setSize(QSize? s) {
|
||||
//tag=1028
|
||||
final void_Func_voidstar_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<void_Func_voidstar_voidstar_FFI>>(
|
||||
'c_QRect__setSize_QSize')
|
||||
.asFunction();
|
||||
//tag=1030
|
||||
func(thisCpp, s == null ? ffi.nullptr : s.thisCpp);
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// setTop(int pos)
|
||||
setTop(int pos) {
|
||||
//tag=1028
|
||||
final void_Func_voidstar_int func = _dylib
|
||||
.lookup<ffi.NativeFunction<void_Func_voidstar_ffi_Int32_FFI>>(
|
||||
'c_QRect__setTop_int')
|
||||
.asFunction();
|
||||
//tag=1030
|
||||
func(thisCpp, pos);
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// setTopLeft(const QPoint & p)
|
||||
setTopLeft(QPoint? p) {
|
||||
//tag=1028
|
||||
final void_Func_voidstar_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<void_Func_voidstar_voidstar_FFI>>(
|
||||
'c_QRect__setTopLeft_QPoint')
|
||||
.asFunction();
|
||||
//tag=1030
|
||||
func(thisCpp, p == null ? ffi.nullptr : p.thisCpp);
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// setTopRight(const QPoint & p)
|
||||
setTopRight(QPoint? p) {
|
||||
//tag=1028
|
||||
final void_Func_voidstar_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<void_Func_voidstar_voidstar_FFI>>(
|
||||
'c_QRect__setTopRight_QPoint')
|
||||
.asFunction();
|
||||
//tag=1030
|
||||
func(thisCpp, p == null ? ffi.nullptr : p.thisCpp);
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// setWidth(int w)
|
||||
setWidth(int w) {
|
||||
//tag=1028
|
||||
final void_Func_voidstar_int func = _dylib
|
||||
.lookup<ffi.NativeFunction<void_Func_voidstar_ffi_Int32_FFI>>(
|
||||
'c_QRect__setWidth_int')
|
||||
.asFunction();
|
||||
//tag=1030
|
||||
func(thisCpp, w);
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// setX(int x)
|
||||
setX(int x) {
|
||||
//tag=1028
|
||||
final void_Func_voidstar_int func = _dylib
|
||||
.lookup<ffi.NativeFunction<void_Func_voidstar_ffi_Int32_FFI>>(
|
||||
'c_QRect__setX_int')
|
||||
.asFunction();
|
||||
//tag=1030
|
||||
func(thisCpp, x);
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// setY(int y)
|
||||
setY(int y) {
|
||||
//tag=1028
|
||||
final void_Func_voidstar_int func = _dylib
|
||||
.lookup<ffi.NativeFunction<void_Func_voidstar_ffi_Int32_FFI>>(
|
||||
'c_QRect__setY_int')
|
||||
.asFunction();
|
||||
//tag=1030
|
||||
func(thisCpp, y);
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// size() const
|
||||
QSize size() {
|
||||
//tag=1028
|
||||
final voidstar_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<voidstar_Func_voidstar_FFI>>('c_QRect__size')
|
||||
.asFunction();
|
||||
//tag=1033
|
||||
ffi.Pointer<void> result = func(thisCpp);
|
||||
return QSize.fromCppPointer(result, true);
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// top() const
|
||||
int top() {
|
||||
//tag=1028
|
||||
final int_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<int_Func_voidstar_FFI>>('c_QRect__top')
|
||||
.asFunction();
|
||||
//tag=1031
|
||||
return func(thisCpp);
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// topLeft() const
|
||||
QPoint topLeft() {
|
||||
//tag=1028
|
||||
final voidstar_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<voidstar_Func_voidstar_FFI>>(
|
||||
'c_QRect__topLeft')
|
||||
.asFunction();
|
||||
//tag=1033
|
||||
ffi.Pointer<void> result = func(thisCpp);
|
||||
return QPoint.fromCppPointer(result, true);
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// topRight() const
|
||||
QPoint topRight() {
|
||||
//tag=1028
|
||||
final voidstar_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<voidstar_Func_voidstar_FFI>>(
|
||||
'c_QRect__topRight')
|
||||
.asFunction();
|
||||
//tag=1033
|
||||
ffi.Pointer<void> result = func(thisCpp);
|
||||
return QPoint.fromCppPointer(result, true);
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// translate(const QPoint & p)
|
||||
translate(QPoint? p) {
|
||||
//tag=1028
|
||||
final void_Func_voidstar_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<void_Func_voidstar_voidstar_FFI>>(
|
||||
'c_QRect__translate_QPoint')
|
||||
.asFunction();
|
||||
//tag=1030
|
||||
func(thisCpp, p == null ? ffi.nullptr : p.thisCpp);
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// translate(int dx, int dy)
|
||||
translate_2(int dx, int dy) {
|
||||
//tag=1028
|
||||
final void_Func_voidstar_int_int func = _dylib
|
||||
.lookup<ffi.NativeFunction<void_Func_voidstar_ffi_Int32_ffi_Int32_FFI>>(
|
||||
'c_QRect__translate_int_int')
|
||||
.asFunction();
|
||||
//tag=1030
|
||||
func(thisCpp, dx, dy);
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// translated(const QPoint & p) const
|
||||
QRect translated(QPoint? p) {
|
||||
//tag=1028
|
||||
final voidstar_Func_voidstar_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<voidstar_Func_voidstar_voidstar_FFI>>(
|
||||
'c_QRect__translated_QPoint')
|
||||
.asFunction();
|
||||
//tag=1033
|
||||
ffi.Pointer<void> result =
|
||||
func(thisCpp, p == null ? ffi.nullptr : p.thisCpp);
|
||||
return QRect.fromCppPointer(result, true);
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// translated(int dx, int dy) const
|
||||
QRect translated_2(int dx, int dy) {
|
||||
//tag=1028
|
||||
final voidstar_Func_voidstar_int_int func = _dylib
|
||||
.lookup<
|
||||
ffi.NativeFunction<
|
||||
voidstar_Func_voidstar_ffi_Int32_ffi_Int32_FFI>>(
|
||||
'c_QRect__translated_int_int')
|
||||
.asFunction();
|
||||
//tag=1033
|
||||
ffi.Pointer<void> result = func(thisCpp, dx, dy);
|
||||
return QRect.fromCppPointer(result, true);
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// transposed() const
|
||||
QRect transposed() {
|
||||
//tag=1028
|
||||
final voidstar_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<voidstar_Func_voidstar_FFI>>(
|
||||
'c_QRect__transposed')
|
||||
.asFunction();
|
||||
//tag=1033
|
||||
ffi.Pointer<void> result = func(thisCpp);
|
||||
return QRect.fromCppPointer(result, true);
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// united(const QRect & other) const
|
||||
QRect united(QRect? other) {
|
||||
//tag=1028
|
||||
final voidstar_Func_voidstar_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<voidstar_Func_voidstar_voidstar_FFI>>(
|
||||
'c_QRect__united_QRect')
|
||||
.asFunction();
|
||||
//tag=1033
|
||||
ffi.Pointer<void> result =
|
||||
func(thisCpp, other == null ? ffi.nullptr : other.thisCpp);
|
||||
return QRect.fromCppPointer(result, true);
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// width() const
|
||||
int width() {
|
||||
//tag=1028
|
||||
final int_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<int_Func_voidstar_FFI>>('c_QRect__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_QRect__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_QRect__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_QRect__destructor')
|
||||
.asFunction();
|
||||
func(thisCpp);
|
||||
}
|
||||
}
|
||||
228
src/flutter/generated/KDDockWidgets/dart/lib/src/QSize.dart
Normal file
228
src/flutter/generated/KDDockWidgets/dart/lib/src/QSize.dart
Normal file
@@ -0,0 +1,228 @@
|
||||
/*
|
||||
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_QSize_Finalizer');
|
||||
|
||||
class QSize {
|
||||
//tag=1060
|
||||
static var s_dartInstanceByCppPtr = Map<int, QSize>();
|
||||
var _thisCpp = null;
|
||||
bool _needsAutoDelete = true;
|
||||
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 QSize.fromCache(var cppPointer, [needsAutoDelete = false]) {
|
||||
return (s_dartInstanceByCppPtr[cppPointer.address] ??
|
||||
QSize.fromCppPointer(cppPointer, needsAutoDelete)) as QSize;
|
||||
}
|
||||
QSize.fromCppPointer(var cppPointer, [this._needsAutoDelete = false]) {
|
||||
//tag=1024
|
||||
thisCpp = cppPointer;
|
||||
}
|
||||
//tag=1025
|
||||
QSize.init() {}
|
||||
//tag=1023
|
||||
//QSize()
|
||||
QSize() {
|
||||
//tag=1075
|
||||
final voidstar_Func_void func = _dylib
|
||||
.lookup<ffi.NativeFunction<voidstar_Func_void_FFI>>(
|
||||
'c_QSize__constructor')
|
||||
.asFunction();
|
||||
thisCpp = func();
|
||||
QSize.s_dartInstanceByCppPtr[thisCpp.address] = this;
|
||||
}
|
||||
//tag=1023
|
||||
//QSize(int w, int h)
|
||||
QSize.ctor2(int w, int h) {
|
||||
//tag=1075
|
||||
final voidstar_Func_int_int func = _dylib
|
||||
.lookup<ffi.NativeFunction<voidstar_Func_ffi_Int32_ffi_Int32_FFI>>(
|
||||
'c_QSize__constructor_int_int')
|
||||
.asFunction();
|
||||
thisCpp = func(w, h);
|
||||
QSize.s_dartInstanceByCppPtr[thisCpp.address] = this;
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// boundedTo(const QSize & arg__1) const
|
||||
QSize boundedTo(QSize? arg__1) {
|
||||
//tag=1028
|
||||
final voidstar_Func_voidstar_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<voidstar_Func_voidstar_voidstar_FFI>>(
|
||||
'c_QSize__boundedTo_QSize')
|
||||
.asFunction();
|
||||
//tag=1033
|
||||
ffi.Pointer<void> result =
|
||||
func(thisCpp, arg__1 == null ? ffi.nullptr : arg__1.thisCpp);
|
||||
return QSize.fromCppPointer(result, true);
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// expandedTo(const QSize & arg__1) const
|
||||
QSize expandedTo(QSize? arg__1) {
|
||||
//tag=1028
|
||||
final voidstar_Func_voidstar_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<voidstar_Func_voidstar_voidstar_FFI>>(
|
||||
'c_QSize__expandedTo_QSize')
|
||||
.asFunction();
|
||||
//tag=1033
|
||||
ffi.Pointer<void> result =
|
||||
func(thisCpp, arg__1 == null ? ffi.nullptr : arg__1.thisCpp);
|
||||
return QSize.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_QSize__height')
|
||||
.asFunction();
|
||||
//tag=1031
|
||||
return func(thisCpp);
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// isEmpty() const
|
||||
bool isEmpty() {
|
||||
//tag=1028
|
||||
final bool_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<bool_Func_voidstar_FFI>>('c_QSize__isEmpty')
|
||||
.asFunction();
|
||||
//tag=1029
|
||||
return func(thisCpp) != 0;
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// isNull() const
|
||||
bool isNull() {
|
||||
//tag=1028
|
||||
final bool_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<bool_Func_voidstar_FFI>>('c_QSize__isNull')
|
||||
.asFunction();
|
||||
//tag=1029
|
||||
return func(thisCpp) != 0;
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// isValid() const
|
||||
bool isValid() {
|
||||
//tag=1028
|
||||
final bool_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<bool_Func_voidstar_FFI>>('c_QSize__isValid')
|
||||
.asFunction();
|
||||
//tag=1029
|
||||
return func(thisCpp) != 0;
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// setHeight(int h)
|
||||
setHeight(int h) {
|
||||
//tag=1028
|
||||
final void_Func_voidstar_int func = _dylib
|
||||
.lookup<ffi.NativeFunction<void_Func_voidstar_ffi_Int32_FFI>>(
|
||||
'c_QSize__setHeight_int')
|
||||
.asFunction();
|
||||
//tag=1030
|
||||
func(thisCpp, h);
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// setWidth(int w)
|
||||
setWidth(int w) {
|
||||
//tag=1028
|
||||
final void_Func_voidstar_int func = _dylib
|
||||
.lookup<ffi.NativeFunction<void_Func_voidstar_ffi_Int32_FFI>>(
|
||||
'c_QSize__setWidth_int')
|
||||
.asFunction();
|
||||
//tag=1030
|
||||
func(thisCpp, w);
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// transpose()
|
||||
transpose() {
|
||||
//tag=1028
|
||||
final void_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<void_Func_voidstar_FFI>>(
|
||||
'c_QSize__transpose')
|
||||
.asFunction();
|
||||
//tag=1030
|
||||
func(thisCpp);
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// transposed() const
|
||||
QSize transposed() {
|
||||
//tag=1028
|
||||
final voidstar_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<voidstar_Func_voidstar_FFI>>(
|
||||
'c_QSize__transposed')
|
||||
.asFunction();
|
||||
//tag=1033
|
||||
ffi.Pointer<void> result = func(thisCpp);
|
||||
return QSize.fromCppPointer(result, true);
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// width() const
|
||||
int width() {
|
||||
//tag=1028
|
||||
final int_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<int_Func_voidstar_FFI>>('c_QSize__width')
|
||||
.asFunction();
|
||||
//tag=1031
|
||||
return func(thisCpp);
|
||||
}
|
||||
|
||||
//tag=1022
|
||||
void release() {
|
||||
final void_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<void_Func_voidstar_FFI>>(
|
||||
'c_QSize__destructor')
|
||||
.asFunction();
|
||||
func(thisCpp);
|
||||
}
|
||||
}
|
||||
1451
src/flutter/generated/KDDockWidgets/dart/lib/src/QString.dart
Normal file
1451
src/flutter/generated/KDDockWidgets/dart/lib/src/QString.dart
Normal file
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,337 @@
|
||||
/*
|
||||
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.
|
||||
*/
|
||||
import 'dart:ffi' as ffi;
|
||||
import 'package:ffi/ffi.dart';
|
||||
// tag=1053
|
||||
|
||||
typedef void_Func_voidstar = void Function(ffi.Pointer<void>);
|
||||
typedef void_Func_voidstar_FFI = ffi.Void Function(ffi.Pointer<void>);
|
||||
typedef RegisterMethodIsReimplementedCallback = void Function(
|
||||
ffi.Pointer<void>, ffi.Pointer<void>, int);
|
||||
typedef RegisterMethodIsReimplementedCallback_FFI = ffi.Void Function(
|
||||
ffi.Pointer<void>, ffi.Pointer<void>, ffi.Int32);
|
||||
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 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(
|
||||
ffi.Pointer<void>, ffi.Pointer<void>);
|
||||
typedef voidstar_Func_voidstar_voidstar_FFI = ffi.Pointer<void> Function(
|
||||
ffi.Pointer<void>, ffi.Pointer<void>);
|
||||
typedef voidstar_Func_voidstar_voidstar_int = ffi.Pointer<void> Function(
|
||||
ffi.Pointer<void>, ffi.Pointer<void>, int);
|
||||
typedef voidstar_Func_voidstar_voidstar_ffi_Int32_FFI = ffi.Pointer<void>
|
||||
Function(ffi.Pointer<void>, ffi.Pointer<void>, ffi.Int32);
|
||||
typedef voidstar_Func_voidstar_voidstar_voidstar = ffi.Pointer<void> Function(
|
||||
ffi.Pointer<void>, ffi.Pointer<void>, ffi.Pointer<void>);
|
||||
typedef voidstar_Func_voidstar_voidstar_voidstar_FFI = ffi.Pointer<void>
|
||||
Function(ffi.Pointer<void>, ffi.Pointer<void>, ffi.Pointer<void>);
|
||||
typedef voidstar_Func_voidstar_voidstar_voidstar_voidstar
|
||||
= ffi.Pointer<void> Function(ffi.Pointer<void>, ffi.Pointer<void>,
|
||||
ffi.Pointer<void>, ffi.Pointer<void>);
|
||||
typedef voidstar_Func_voidstar_voidstar_voidstar_voidstar_FFI
|
||||
= ffi.Pointer<void> Function(ffi.Pointer<void>, ffi.Pointer<void>,
|
||||
ffi.Pointer<void>, ffi.Pointer<void>);
|
||||
typedef voidstar_Func_voidstar_voidstar_voidstar_voidstar_voidstar
|
||||
= ffi.Pointer<void> Function(ffi.Pointer<void>, ffi.Pointer<void>,
|
||||
ffi.Pointer<void>, ffi.Pointer<void>, ffi.Pointer<void>);
|
||||
typedef voidstar_Func_voidstar_voidstar_voidstar_voidstar_voidstar_FFI
|
||||
= ffi.Pointer<void> Function(ffi.Pointer<void>, ffi.Pointer<void>,
|
||||
ffi.Pointer<void>, ffi.Pointer<void>, ffi.Pointer<void>);
|
||||
typedef voidstar_Func_voidstar_voidstar_voidstar_voidstar_voidstar_voidstar
|
||||
= ffi.Pointer<void> Function(
|
||||
ffi.Pointer<void>,
|
||||
ffi.Pointer<void>,
|
||||
ffi.Pointer<void>,
|
||||
ffi.Pointer<void>,
|
||||
ffi.Pointer<void>,
|
||||
ffi.Pointer<void>);
|
||||
typedef voidstar_Func_voidstar_voidstar_voidstar_voidstar_voidstar_voidstar_FFI
|
||||
= ffi.Pointer<void> Function(
|
||||
ffi.Pointer<void>,
|
||||
ffi.Pointer<void>,
|
||||
ffi.Pointer<void>,
|
||||
ffi.Pointer<void>,
|
||||
ffi.Pointer<void>,
|
||||
ffi.Pointer<void>);
|
||||
typedef voidstar_Func_voidstar_voidstar_voidstar_voidstar_voidstar_voidstar_voidstar
|
||||
= ffi.Pointer<void> Function(
|
||||
ffi.Pointer<void>,
|
||||
ffi.Pointer<void>,
|
||||
ffi.Pointer<void>,
|
||||
ffi.Pointer<void>,
|
||||
ffi.Pointer<void>,
|
||||
ffi.Pointer<void>,
|
||||
ffi.Pointer<void>);
|
||||
typedef voidstar_Func_voidstar_voidstar_voidstar_voidstar_voidstar_voidstar_voidstar_FFI
|
||||
= ffi.Pointer<void> Function(
|
||||
ffi.Pointer<void>,
|
||||
ffi.Pointer<void>,
|
||||
ffi.Pointer<void>,
|
||||
ffi.Pointer<void>,
|
||||
ffi.Pointer<void>,
|
||||
ffi.Pointer<void>,
|
||||
ffi.Pointer<void>);
|
||||
typedef voidstar_Func_voidstar_voidstar_voidstar_voidstar_voidstar_voidstar_voidstar_voidstar
|
||||
= ffi.Pointer<void> Function(
|
||||
ffi.Pointer<void>,
|
||||
ffi.Pointer<void>,
|
||||
ffi.Pointer<void>,
|
||||
ffi.Pointer<void>,
|
||||
ffi.Pointer<void>,
|
||||
ffi.Pointer<void>,
|
||||
ffi.Pointer<void>,
|
||||
ffi.Pointer<void>);
|
||||
typedef voidstar_Func_voidstar_voidstar_voidstar_voidstar_voidstar_voidstar_voidstar_voidstar_FFI
|
||||
= ffi.Pointer<void> Function(
|
||||
ffi.Pointer<void>,
|
||||
ffi.Pointer<void>,
|
||||
ffi.Pointer<void>,
|
||||
ffi.Pointer<void>,
|
||||
ffi.Pointer<void>,
|
||||
ffi.Pointer<void>,
|
||||
ffi.Pointer<void>,
|
||||
ffi.Pointer<void>);
|
||||
typedef voidstar_Func_voidstar_voidstar_voidstar_voidstar_voidstar_voidstar_voidstar_voidstar_voidstar
|
||||
= ffi.Pointer<void> Function(
|
||||
ffi.Pointer<void>,
|
||||
ffi.Pointer<void>,
|
||||
ffi.Pointer<void>,
|
||||
ffi.Pointer<void>,
|
||||
ffi.Pointer<void>,
|
||||
ffi.Pointer<void>,
|
||||
ffi.Pointer<void>,
|
||||
ffi.Pointer<void>,
|
||||
ffi.Pointer<void>);
|
||||
typedef voidstar_Func_voidstar_voidstar_voidstar_voidstar_voidstar_voidstar_voidstar_voidstar_voidstar_FFI
|
||||
= ffi.Pointer<void> Function(
|
||||
ffi.Pointer<void>,
|
||||
ffi.Pointer<void>,
|
||||
ffi.Pointer<void>,
|
||||
ffi.Pointer<void>,
|
||||
ffi.Pointer<void>,
|
||||
ffi.Pointer<void>,
|
||||
ffi.Pointer<void>,
|
||||
ffi.Pointer<void>,
|
||||
ffi.Pointer<void>);
|
||||
typedef voidstar_Func_voidstar_voidstar_voidstar_voidstar_voidstar_voidstar_voidstar_voidstar_voidstar_voidstar
|
||||
= ffi.Pointer<void> Function(
|
||||
ffi.Pointer<void>,
|
||||
ffi.Pointer<void>,
|
||||
ffi.Pointer<void>,
|
||||
ffi.Pointer<void>,
|
||||
ffi.Pointer<void>,
|
||||
ffi.Pointer<void>,
|
||||
ffi.Pointer<void>,
|
||||
ffi.Pointer<void>,
|
||||
ffi.Pointer<void>,
|
||||
ffi.Pointer<void>);
|
||||
typedef voidstar_Func_voidstar_voidstar_voidstar_voidstar_voidstar_voidstar_voidstar_voidstar_voidstar_voidstar_FFI
|
||||
= ffi.Pointer<void> Function(
|
||||
ffi.Pointer<void>,
|
||||
ffi.Pointer<void>,
|
||||
ffi.Pointer<void>,
|
||||
ffi.Pointer<void>,
|
||||
ffi.Pointer<void>,
|
||||
ffi.Pointer<void>,
|
||||
ffi.Pointer<void>,
|
||||
ffi.Pointer<void>,
|
||||
ffi.Pointer<void>,
|
||||
ffi.Pointer<void>);
|
||||
typedef voidstar_Func_voidstar_int_int_int = ffi.Pointer<void> Function(
|
||||
ffi.Pointer<void>, int, int, int);
|
||||
typedef voidstar_Func_voidstar_ffi_Int32_ffi_Int32_ffi_Int32_FFI
|
||||
= ffi.Pointer<void> Function(
|
||||
ffi.Pointer<void>, ffi.Int32, ffi.Int32, ffi.Int32);
|
||||
typedef voidstar_Func_string = ffi.Pointer<void> Function(ffi.Pointer<Utf8>);
|
||||
typedef voidstar_Func_string_FFI = ffi.Pointer<void> Function(
|
||||
ffi.Pointer<Utf8>);
|
||||
typedef int_Func_voidstar = int Function(ffi.Pointer<void>);
|
||||
typedef int_Func_voidstar_FFI = ffi.Int32 Function(ffi.Pointer<void>);
|
||||
typedef void_Func_voidstar_int = void Function(ffi.Pointer<void>, int);
|
||||
typedef void_Func_voidstar_ffi_Int32_FFI = ffi.Void Function(
|
||||
ffi.Pointer<void>, ffi.Int32);
|
||||
typedef voidstar_Func_voidstar_int = ffi.Pointer<void> Function(
|
||||
ffi.Pointer<void>, int);
|
||||
typedef voidstar_Func_voidstar_ffi_Int32_FFI = ffi.Pointer<void> Function(
|
||||
ffi.Pointer<void>, ffi.Int32);
|
||||
typedef int_Func_voidstar_voidstar = int Function(
|
||||
ffi.Pointer<void>, ffi.Pointer<void>);
|
||||
typedef int_Func_voidstar_voidstar_FFI = ffi.Int32 Function(
|
||||
ffi.Pointer<void>, ffi.Pointer<void>);
|
||||
typedef bool_Func_voidstar_voidstar = int Function(
|
||||
ffi.Pointer<void>, ffi.Pointer<void>);
|
||||
typedef bool_Func_voidstar_voidstar_FFI = ffi.Int8 Function(
|
||||
ffi.Pointer<void>, ffi.Pointer<void>);
|
||||
typedef voidstar_Func_voidstar = ffi.Pointer<void> Function(ffi.Pointer<void>);
|
||||
typedef voidstar_Func_voidstar_FFI = ffi.Pointer<void> Function(
|
||||
ffi.Pointer<void>);
|
||||
typedef voidstar_Func_string_int = ffi.Pointer<void> Function(
|
||||
ffi.Pointer<Utf8>, int);
|
||||
typedef voidstar_Func_string_ffi_Int32_FFI = ffi.Pointer<void> Function(
|
||||
ffi.Pointer<Utf8>, ffi.Int32);
|
||||
typedef int_Func_voidstar_voidstar_int = int Function(
|
||||
ffi.Pointer<void>, ffi.Pointer<void>, int);
|
||||
typedef int_Func_voidstar_voidstar_ffi_Int32_FFI = ffi.Int32 Function(
|
||||
ffi.Pointer<void>, ffi.Pointer<void>, ffi.Int32);
|
||||
typedef voidstar_Func_voidstar_int_voidstar = ffi.Pointer<void> Function(
|
||||
ffi.Pointer<void>, int, ffi.Pointer<void>);
|
||||
typedef voidstar_Func_voidstar_ffi_Int32_voidstar_FFI = ffi.Pointer<void>
|
||||
Function(ffi.Pointer<void>, ffi.Int32, ffi.Pointer<void>);
|
||||
typedef bool_Func_voidstar = int Function(ffi.Pointer<void>);
|
||||
typedef bool_Func_voidstar_FFI = ffi.Int8 Function(ffi.Pointer<void>);
|
||||
typedef voidstar_Func_voidstar_int_int = ffi.Pointer<void> Function(
|
||||
ffi.Pointer<void>, int, int);
|
||||
typedef voidstar_Func_voidstar_ffi_Int32_ffi_Int32_FFI = ffi.Pointer<void>
|
||||
Function(ffi.Pointer<void>, ffi.Int32, ffi.Int32);
|
||||
typedef voidstar_Func_int_int = ffi.Pointer<void> Function(int, int);
|
||||
typedef voidstar_Func_ffi_Int32_ffi_Int32_FFI = ffi.Pointer<void> Function(
|
||||
ffi.Int32, ffi.Int32);
|
||||
typedef void_Func_voidstar_voidstar = void Function(
|
||||
ffi.Pointer<void>, ffi.Pointer<void>);
|
||||
typedef void_Func_voidstar_voidstar_FFI = ffi.Void Function(
|
||||
ffi.Pointer<void>, ffi.Pointer<void>);
|
||||
typedef voidstar_Func_voidstar_int_int_voidstar = ffi.Pointer<void> Function(
|
||||
ffi.Pointer<void>, int, int, ffi.Pointer<void>);
|
||||
typedef voidstar_Func_voidstar_ffi_Int32_ffi_Int32_voidstar_FFI
|
||||
= ffi.Pointer<void> Function(
|
||||
ffi.Pointer<void>, ffi.Int32, ffi.Int32, ffi.Pointer<void>);
|
||||
typedef voidstar_Func_voidstar_voidstar_int_int = ffi.Pointer<void> Function(
|
||||
ffi.Pointer<void>, ffi.Pointer<void>, int, int);
|
||||
typedef voidstar_Func_voidstar_voidstar_ffi_Int32_ffi_Int32_FFI
|
||||
= ffi.Pointer<void> Function(
|
||||
ffi.Pointer<void>, ffi.Pointer<void>, ffi.Int32, ffi.Int32);
|
||||
typedef voidstar_Func_int_int_int_int = ffi.Pointer<void> Function(
|
||||
int, int, int, int);
|
||||
typedef voidstar_Func_ffi_Int32_ffi_Int32_ffi_Int32_ffi_Int32_FFI
|
||||
= ffi.Pointer<void> Function(ffi.Int32, ffi.Int32, ffi.Int32, ffi.Int32);
|
||||
typedef void_Func_voidstar_int_int_int_int = void Function(
|
||||
ffi.Pointer<void>, int, int, int, int);
|
||||
typedef void_Func_voidstar_ffi_Int32_ffi_Int32_ffi_Int32_ffi_Int32_FFI
|
||||
= ffi.Void Function(
|
||||
ffi.Pointer<void>, ffi.Int32, ffi.Int32, ffi.Int32, ffi.Int32);
|
||||
typedef voidstar_Func_voidstar_int_int_int_int = ffi.Pointer<void> Function(
|
||||
ffi.Pointer<void>, int, int, int, int);
|
||||
typedef voidstar_Func_voidstar_ffi_Int32_ffi_Int32_ffi_Int32_ffi_Int32_FFI
|
||||
= ffi.Pointer<void> Function(
|
||||
ffi.Pointer<void>, ffi.Int32, ffi.Int32, ffi.Int32, ffi.Int32);
|
||||
typedef bool_Func_voidstar_voidstar_bool = int Function(
|
||||
ffi.Pointer<void>, ffi.Pointer<void>, int);
|
||||
typedef bool_Func_voidstar_voidstar_ffi_Int8_FFI = ffi.Int8 Function(
|
||||
ffi.Pointer<void>, ffi.Pointer<void>, ffi.Int8);
|
||||
typedef bool_Func_voidstar_int_int = int Function(ffi.Pointer<void>, int, int);
|
||||
typedef bool_Func_voidstar_ffi_Int32_ffi_Int32_FFI = ffi.Int8 Function(
|
||||
ffi.Pointer<void>, ffi.Int32, ffi.Int32);
|
||||
typedef bool_Func_voidstar_int_int_bool = int Function(
|
||||
ffi.Pointer<void>, int, int, int);
|
||||
typedef bool_Func_voidstar_ffi_Int32_ffi_Int32_ffi_Int8_FFI = ffi.Int8 Function(
|
||||
ffi.Pointer<void>, ffi.Int32, ffi.Int32, ffi.Int8);
|
||||
typedef void_Func_voidstar_int_int = void Function(ffi.Pointer<void>, int, int);
|
||||
typedef void_Func_voidstar_ffi_Int32_ffi_Int32_FFI = ffi.Void Function(
|
||||
ffi.Pointer<void>, ffi.Int32, ffi.Int32);
|
||||
typedef bool_Func_voidstar_bool = int Function(ffi.Pointer<void>, int);
|
||||
typedef bool_Func_voidstar_ffi_Int8_FFI = ffi.Int8 Function(
|
||||
ffi.Pointer<void>, ffi.Int8);
|
||||
typedef bool_Func_voidstar_voidstar_string = int Function(
|
||||
ffi.Pointer<void>, ffi.Pointer<void>, ffi.Pointer<Utf8>);
|
||||
typedef bool_Func_voidstar_voidstar_string_FFI = ffi.Int8 Function(
|
||||
ffi.Pointer<void>, ffi.Pointer<void>, ffi.Pointer<Utf8>);
|
||||
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_string = int Function(
|
||||
ffi.Pointer<void>, ffi.Pointer<Utf8>);
|
||||
typedef bool_Func_voidstar_string_FFI = ffi.Int8 Function(
|
||||
ffi.Pointer<void>, ffi.Pointer<Utf8>);
|
||||
typedef int_Func_voidstar_string = int Function(
|
||||
ffi.Pointer<void>, ffi.Pointer<Utf8>);
|
||||
typedef int_Func_voidstar_string_FFI = ffi.Int32 Function(
|
||||
ffi.Pointer<void>, ffi.Pointer<Utf8>);
|
||||
typedef int_Func_voidstar_int = int Function(ffi.Pointer<void>, int);
|
||||
typedef int_Func_voidstar_ffi_Int32_FFI = ffi.Int32 Function(
|
||||
ffi.Pointer<void>, ffi.Int32);
|
||||
typedef voidstar_Func_string_string_int = ffi.Pointer<void> Function(
|
||||
ffi.Pointer<Utf8>, ffi.Pointer<Utf8>, int);
|
||||
typedef voidstar_Func_string_string_ffi_Int32_FFI = ffi.Pointer<void> Function(
|
||||
ffi.Pointer<Utf8>, ffi.Pointer<Utf8>, ffi.Int32);
|
||||
typedef void_Func_voidstar_int_voidstar = void Function(
|
||||
ffi.Pointer<void>, int, ffi.Pointer<void>);
|
||||
typedef void_Func_voidstar_ffi_Int32_voidstar_FFI = ffi.Void Function(
|
||||
ffi.Pointer<void>, ffi.Int32, ffi.Pointer<void>);
|
||||
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_voidstar_string = ffi.Pointer<void> Function(
|
||||
ffi.Pointer<void>, ffi.Pointer<Utf8>);
|
||||
typedef voidstar_Func_voidstar_string_FFI = ffi.Pointer<void> Function(
|
||||
ffi.Pointer<void>, ffi.Pointer<Utf8>);
|
||||
typedef voidstar_Func_voidstar_string_int = ffi.Pointer<void> Function(
|
||||
ffi.Pointer<void>, ffi.Pointer<Utf8>, int);
|
||||
typedef voidstar_Func_voidstar_string_ffi_Int32_FFI = ffi.Pointer<void>
|
||||
Function(ffi.Pointer<void>, ffi.Pointer<Utf8>, ffi.Int32);
|
||||
typedef char_Func_voidstar_int = int Function(ffi.Pointer<void>, int);
|
||||
typedef char_Func_voidstar_ffi_Int32_FFI = ffi.Int8 Function(
|
||||
ffi.Pointer<void>, ffi.Int32);
|
||||
typedef char_Func_voidstar = int Function(ffi.Pointer<void>);
|
||||
typedef char_Func_voidstar_FFI = ffi.Int8 Function(ffi.Pointer<void>);
|
||||
typedef string_Func_voidstar = ffi.Pointer<Utf8> Function(ffi.Pointer<void>);
|
||||
typedef string_Func_voidstar_FFI = ffi.Pointer<Utf8> Function(
|
||||
ffi.Pointer<void>);
|
||||
typedef int_Func_voidstar_string_int = int Function(
|
||||
ffi.Pointer<void>, ffi.Pointer<Utf8>, int);
|
||||
typedef int_Func_voidstar_string_ffi_Int32_FFI = ffi.Int32 Function(
|
||||
ffi.Pointer<void>, ffi.Pointer<Utf8>, ffi.Int32);
|
||||
typedef voidstar_Func_voidstar_int_string = ffi.Pointer<void> Function(
|
||||
ffi.Pointer<void>, int, ffi.Pointer<Utf8>);
|
||||
typedef voidstar_Func_voidstar_ffi_Int32_string_FFI = ffi.Pointer<void>
|
||||
Function(ffi.Pointer<void>, ffi.Int32, ffi.Pointer<Utf8>);
|
||||
typedef voidstar_Func_voidstar_int_string_int = ffi.Pointer<void> Function(
|
||||
ffi.Pointer<void>, int, ffi.Pointer<Utf8>, int);
|
||||
typedef voidstar_Func_voidstar_ffi_Int32_string_ffi_Int32_FFI
|
||||
= ffi.Pointer<void> Function(
|
||||
ffi.Pointer<void>, ffi.Int32, ffi.Pointer<Utf8>, ffi.Int32);
|
||||
typedef void_Func_voidstar_string = void Function(
|
||||
ffi.Pointer<void>, ffi.Pointer<Utf8>);
|
||||
typedef void_Func_voidstar_string_FFI = ffi.Void Function(
|
||||
ffi.Pointer<void>, ffi.Pointer<Utf8>);
|
||||
typedef voidstar_Func_voidstar_voidstar_string = ffi.Pointer<void> Function(
|
||||
ffi.Pointer<void>, ffi.Pointer<void>, ffi.Pointer<Utf8>);
|
||||
typedef voidstar_Func_voidstar_voidstar_string_FFI = ffi.Pointer<void> Function(
|
||||
ffi.Pointer<void>, ffi.Pointer<void>, ffi.Pointer<Utf8>);
|
||||
typedef voidstar_Func_voidstar_string_voidstar = ffi.Pointer<void> Function(
|
||||
ffi.Pointer<void>, ffi.Pointer<Utf8>, ffi.Pointer<void>);
|
||||
typedef voidstar_Func_voidstar_string_voidstar_FFI = ffi.Pointer<void> Function(
|
||||
ffi.Pointer<void>, ffi.Pointer<Utf8>, ffi.Pointer<void>);
|
||||
typedef voidstar_Func_voidstar_string_string = ffi.Pointer<void> Function(
|
||||
ffi.Pointer<void>, ffi.Pointer<Utf8>, ffi.Pointer<Utf8>);
|
||||
typedef voidstar_Func_voidstar_string_string_FFI = ffi.Pointer<void> Function(
|
||||
ffi.Pointer<void>, ffi.Pointer<Utf8>, ffi.Pointer<Utf8>);
|
||||
typedef voidstar_Func_voidstar_string_int_string_int = ffi.Pointer<void>
|
||||
Function(ffi.Pointer<void>, ffi.Pointer<Utf8>, int, ffi.Pointer<Utf8>, int);
|
||||
typedef voidstar_Func_voidstar_string_ffi_Int32_string_ffi_Int32_FFI
|
||||
= ffi.Pointer<void> Function(ffi.Pointer<void>, ffi.Pointer<Utf8>,
|
||||
ffi.Int32, ffi.Pointer<Utf8>, ffi.Int32);
|
||||
typedef voidstar_Func_voidstar_int_int_string = ffi.Pointer<void> Function(
|
||||
ffi.Pointer<void>, int, int, ffi.Pointer<Utf8>);
|
||||
typedef voidstar_Func_voidstar_ffi_Int32_ffi_Int32_string_FFI
|
||||
= ffi.Pointer<void> Function(
|
||||
ffi.Pointer<void>, ffi.Int32, ffi.Int32, ffi.Pointer<Utf8>);
|
||||
typedef voidstar_Func_voidstar_int_int_string_int = ffi.Pointer<void> Function(
|
||||
ffi.Pointer<void>, int, int, ffi.Pointer<Utf8>, int);
|
||||
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);
|
||||
2221
src/flutter/generated/KDDockWidgets/dart/lib/src/View.dart
Normal file
2221
src/flutter/generated/KDDockWidgets/dart/lib/src/View.dart
Normal file
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,134 @@
|
||||
/*
|
||||
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 ViewFactory extends QObject {
|
||||
//tag=1064
|
||||
ViewFactory.fromCppPointer(var cppPointer, [var needsAutoDelete = false])
|
||||
: super.fromCppPointer(cppPointer, needsAutoDelete) {}
|
||||
ViewFactory.init() : super.init() {}
|
||||
//tag=1062
|
||||
factory ViewFactory.fromCache(var cppPointer, [needsAutoDelete = false]) {
|
||||
if (QObject.isCached(cppPointer)) {
|
||||
var instance = QObject.s_dartInstanceByCppPtr[cppPointer.address];
|
||||
if (instance != null) return instance as ViewFactory;
|
||||
}
|
||||
return ViewFactory.fromCppPointer(cppPointer, needsAutoDelete);
|
||||
}
|
||||
//tag=1023
|
||||
//ViewFactory()
|
||||
ViewFactory() : super.init() {
|
||||
//tag=1075
|
||||
final voidstar_Func_void func = _dylib
|
||||
.lookup<ffi.NativeFunction<voidstar_Func_void_FFI>>(
|
||||
'c_KDDockWidgets__ViewFactory__constructor')
|
||||
.asFunction();
|
||||
thisCpp = func();
|
||||
QObject.s_dartInstanceByCppPtr[thisCpp.address] = this;
|
||||
registerCallbacks();
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// createRubberBand(KDDockWidgets::View * parent) const
|
||||
View createRubberBand(View? parent) {
|
||||
//tag=1028
|
||||
final voidstar_Func_voidstar_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<voidstar_Func_voidstar_voidstar_FFI>>(
|
||||
cFunctionSymbolName(574))
|
||||
.asFunction();
|
||||
//tag=1033
|
||||
ffi.Pointer<void> result =
|
||||
func(thisCpp, parent == null ? ffi.nullptr : parent.thisCpp);
|
||||
return View.fromCppPointer(result, false);
|
||||
}
|
||||
|
||||
//tag=1035
|
||||
static ffi.Pointer<void> createRubberBand_calledFromC(
|
||||
ffi.Pointer<void> thisCpp, ffi.Pointer<void>? parent) {
|
||||
var dartInstance =
|
||||
QObject.s_dartInstanceByCppPtr[thisCpp.address] as ViewFactory;
|
||||
if (dartInstance == null) {
|
||||
print(
|
||||
"Dart instance not found for ViewFactory::createRubberBand(KDDockWidgets::View * parent) const! (${thisCpp.address})");
|
||||
throw Error();
|
||||
}
|
||||
//tag=1037
|
||||
final result = dartInstance.createRubberBand(View.fromCppPointer(parent));
|
||||
return result.thisCpp;
|
||||
}
|
||||
|
||||
//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__ViewFactory__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=1022
|
||||
void release() {
|
||||
final void_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<void_Func_voidstar_FFI>>(
|
||||
'c_KDDockWidgets__ViewFactory__destructor')
|
||||
.asFunction();
|
||||
func(thisCpp);
|
||||
}
|
||||
|
||||
//tag=1019
|
||||
String cFunctionSymbolName(int methodId) {
|
||||
switch (methodId) {
|
||||
case 574:
|
||||
return "c_KDDockWidgets__ViewFactory__createRubberBand_View";
|
||||
}
|
||||
return super.cFunctionSymbolName(methodId);
|
||||
}
|
||||
|
||||
static String methodNameFromId(int methodId) {
|
||||
switch (methodId) {
|
||||
case 574:
|
||||
return "createRubberBand";
|
||||
}
|
||||
throw Error();
|
||||
}
|
||||
|
||||
//tag=1020
|
||||
void registerCallbacks() {
|
||||
assert(thisCpp != null);
|
||||
final RegisterMethodIsReimplementedCallback registerCallback = _dylib
|
||||
.lookup<ffi.NativeFunction<RegisterMethodIsReimplementedCallback_FFI>>(
|
||||
'c_KDDockWidgets__ViewFactory__registerVirtualMethodCallback')
|
||||
.asFunction();
|
||||
|
||||
//tag=1021
|
||||
final callback574 =
|
||||
ffi.Pointer.fromFunction<voidstar_Func_voidstar_voidstar_FFI>(
|
||||
ViewFactory.createRubberBand_calledFromC);
|
||||
registerCallback(thisCpp, callback574, 574);
|
||||
}
|
||||
}
|
||||
13
src/flutter/generated/KDDockWidgets/dart/pubspec.yaml
Normal file
13
src/flutter/generated/KDDockWidgets/dart/pubspec.yaml
Normal file
@@ -0,0 +1,13 @@
|
||||
name: KDDockWidgets
|
||||
description: Bindings
|
||||
|
||||
environment:
|
||||
sdk: '>=2.12.0 <3.0.0'
|
||||
|
||||
dependencies:
|
||||
ffi:
|
||||
intl:
|
||||
meta:
|
||||
|
||||
dev_dependencies:
|
||||
pedantic: ^1.9.0
|
||||
Reference in New Issue
Block a user