flutter: Renamed KDDockWidgets package to KDDockWidgetsBindings
The former is needed for the KDDW flutter frontend, which will use the latter to access the C++ API. Using two packages instead of one, since one is generated by dartagnan.
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,19 @@
|
||||
/*
|
||||
This file is part of KDDockWidgets.
|
||||
|
||||
SPDX-FileCopyrightText: 2019-2022 Klarälvdalens Datakonsult AB, a KDAB Group company <info@kdab.com>
|
||||
Author: Sérgio Martins <sergio.martins@kdab.com>
|
||||
|
||||
SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only
|
||||
|
||||
Contact KDAB at <info@kdab.com> for commercial licensing options.
|
||||
*/
|
||||
|
||||
//tag=1040
|
||||
#include "KDDockWidgetsBindings_exports.h"
|
||||
#include <Qt5Qt6Compat_p.h>
|
||||
|
||||
extern "C" {
|
||||
|
||||
//tag=1047
|
||||
KDDockWidgetsBindings_EXPORT void c_KDDockWidgets_Finalizer(void *, void *cppObj, void *);}
|
||||
@@ -0,0 +1,426 @@
|
||||
/*
|
||||
This file is part of KDDockWidgets.
|
||||
|
||||
SPDX-FileCopyrightText: 2019-2022 Klarälvdalens Datakonsult AB, a KDAB Group company <info@kdab.com>
|
||||
Author: Sérgio Martins <sergio.martins@kdab.com>
|
||||
|
||||
SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only
|
||||
|
||||
Contact KDAB at <info@kdab.com> for commercial licensing options.
|
||||
*/
|
||||
#include "Platform_wrapper.h"
|
||||
|
||||
|
||||
#include <QDebug>
|
||||
|
||||
|
||||
namespace Dartagnan {
|
||||
|
||||
typedef int (*CleanupCallback)(void *thisPtr);
|
||||
static CleanupCallback s_cleanupCallback = nullptr;
|
||||
|
||||
template<typename T>
|
||||
struct ValueWrapper
|
||||
{
|
||||
T value;
|
||||
};
|
||||
|
||||
}
|
||||
namespace KDDockWidgetsBindings_wrappersNS {
|
||||
//tag=1006
|
||||
Platform_wrapper::Platform_wrapper() : ::KDDockWidgets::Platform() {}
|
||||
QString Platform_wrapper::applicationName()const{
|
||||
//tag=1000
|
||||
if (m_applicationNameCallback) {
|
||||
//tag=1001
|
||||
const void* thisPtr = this;
|
||||
return *m_applicationNameCallback(const_cast<void *>(thisPtr));} else {
|
||||
//tag=1015
|
||||
qWarning() << Q_FUNC_INFO << "Warning: Calling pure-virtual";
|
||||
return {};}}
|
||||
//tag=1009
|
||||
QString Platform_wrapper::applicationName_nocallback()const{
|
||||
//tag=1003
|
||||
|
||||
//tag=1007
|
||||
qWarning() << Q_FUNC_INFO << "Warning: Calling pure-virtual";
|
||||
return {};}
|
||||
KDDockWidgets::ViewFactory * Platform_wrapper::createDefaultViewFactory(){
|
||||
//tag=1000
|
||||
if (m_createDefaultViewFactoryCallback) {
|
||||
//tag=1001
|
||||
const void* thisPtr = this;
|
||||
return m_createDefaultViewFactoryCallback(const_cast<void *>(thisPtr));} else {
|
||||
//tag=1015
|
||||
qWarning() << Q_FUNC_INFO << "Warning: Calling pure-virtual";
|
||||
return {};}}
|
||||
//tag=1009
|
||||
KDDockWidgets::ViewFactory * Platform_wrapper::createDefaultViewFactory_nocallback(){
|
||||
//tag=1003
|
||||
|
||||
//tag=1007
|
||||
qWarning() << Q_FUNC_INFO << "Warning: Calling pure-virtual";
|
||||
return {};}
|
||||
bool Platform_wrapper::hasActivePopup()const{
|
||||
//tag=1000
|
||||
if (m_hasActivePopupCallback) {
|
||||
//tag=1001
|
||||
const void* thisPtr = this;
|
||||
return m_hasActivePopupCallback(const_cast<void *>(thisPtr));} else {
|
||||
//tag=1002
|
||||
return ::KDDockWidgets::Platform::hasActivePopup();}}
|
||||
//tag=1009
|
||||
bool Platform_wrapper::hasActivePopup_nocallback()const{
|
||||
//tag=1003
|
||||
return ::KDDockWidgets::Platform::hasActivePopup();}
|
||||
bool Platform_wrapper::inDisallowedDragView(QPoint globalPos)const{
|
||||
//tag=1000
|
||||
if (m_inDisallowedDragViewCallback) {
|
||||
//tag=1001
|
||||
const void* thisPtr = this;
|
||||
return m_inDisallowedDragViewCallback(const_cast<void *>(thisPtr),globalPos);} else {
|
||||
//tag=1015
|
||||
qWarning() << Q_FUNC_INFO << "Warning: Calling pure-virtual";
|
||||
return {};}}
|
||||
//tag=1009
|
||||
bool Platform_wrapper::inDisallowedDragView_nocallback(QPoint globalPos)const{
|
||||
//tag=1003
|
||||
|
||||
//tag=1007
|
||||
qWarning() << Q_FUNC_INFO << "Warning: Calling pure-virtual";
|
||||
return {};}
|
||||
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 KDDockWidgetsBindings_wrappersNS::Platform_wrapper* fromWrapperPtr(void *ptr)
|
||||
{return reinterpret_cast<KDDockWidgetsBindings_wrappersNS::Platform_wrapper*>(ptr);}extern "C" {
|
||||
|
||||
//tag=1049
|
||||
void c_KDDockWidgets__Platform_Finalizer(void *, void *cppObj, void *){delete reinterpret_cast<KDDockWidgetsBindings_wrappersNS::Platform_wrapper *>(cppObj);}void * c_KDDockWidgets__Platform__constructor()
|
||||
{
|
||||
|
||||
//tag=1056
|
||||
auto ptr = new KDDockWidgetsBindings_wrappersNS::Platform_wrapper();return reinterpret_cast<void*>(ptr);}
|
||||
|
||||
//tag=1050
|
||||
//applicationName() const
|
||||
void* c_KDDockWidgets__Platform__applicationName(void *thisObj){return
|
||||
//tag=1016
|
||||
|
||||
//tag=1072
|
||||
new Dartagnan::ValueWrapper<QString>{[&]{auto targetPtr = fromPtr(thisObj);auto wrapperPtr = dynamic_cast<KDDockWidgetsBindings_wrappersNS::Platform_wrapper*>(targetPtr);if (wrapperPtr) { return wrapperPtr->applicationName_nocallback();} else { return targetPtr->applicationName();}}()};}
|
||||
|
||||
//tag=1050
|
||||
//createDefaultViewFactory()
|
||||
void* c_KDDockWidgets__Platform__createDefaultViewFactory(void *thisObj){return
|
||||
//tag=1016
|
||||
[&]{auto targetPtr = fromPtr(thisObj);auto wrapperPtr = dynamic_cast<KDDockWidgetsBindings_wrappersNS::Platform_wrapper*>(targetPtr);if (wrapperPtr) { return wrapperPtr->createDefaultViewFactory_nocallback();} else { return targetPtr->createDefaultViewFactory();}}();}
|
||||
|
||||
//tag=1050
|
||||
//hasActivePopup() const
|
||||
bool c_KDDockWidgets__Platform__hasActivePopup(void *thisObj){return
|
||||
//tag=1016
|
||||
[&]{auto targetPtr = fromPtr(thisObj);auto wrapperPtr = dynamic_cast<KDDockWidgetsBindings_wrappersNS::Platform_wrapper*>(targetPtr);if (wrapperPtr) { return wrapperPtr->hasActivePopup_nocallback();} else { return targetPtr->hasActivePopup();}}();}
|
||||
|
||||
//tag=1050
|
||||
//inDisallowedDragView(QPoint globalPos) const
|
||||
bool c_KDDockWidgets__Platform__inDisallowedDragView_QPoint(void *thisObj,void* globalPos_){auto &globalPos = *reinterpret_cast<QPoint *>(globalPos_);return
|
||||
//tag=1016
|
||||
[&]{auto targetPtr = fromPtr(thisObj);auto wrapperPtr = dynamic_cast<KDDockWidgetsBindings_wrappersNS::Platform_wrapper*>(targetPtr);if (wrapperPtr) { return wrapperPtr->inDisallowedDragView_nocallback(globalPos);} else { return targetPtr->inDisallowedDragView(globalPos);}}();}
|
||||
|
||||
//tag=1050
|
||||
//instance()
|
||||
void* c_static_KDDockWidgets__Platform__instance(){return
|
||||
//tag=1068
|
||||
KDDockWidgetsBindings_wrappersNS::Platform_wrapper::instance();}
|
||||
|
||||
//tag=1050
|
||||
//isLeftMouseButtonPressed() const
|
||||
bool c_KDDockWidgets__Platform__isLeftMouseButtonPressed(void *thisObj){return
|
||||
//tag=1016
|
||||
[&]{auto targetPtr = fromPtr(thisObj);auto wrapperPtr = dynamic_cast<KDDockWidgetsBindings_wrappersNS::Platform_wrapper*>(targetPtr);if (wrapperPtr) { return wrapperPtr->isLeftMouseButtonPressed_nocallback();} else { return targetPtr->isLeftMouseButtonPressed();}}();}
|
||||
|
||||
//tag=1050
|
||||
//isProcessingAppQuitEvent() const
|
||||
bool c_KDDockWidgets__Platform__isProcessingAppQuitEvent(void *thisObj){return
|
||||
//tag=1016
|
||||
[&]{auto targetPtr = fromPtr(thisObj);auto wrapperPtr = dynamic_cast<KDDockWidgetsBindings_wrappersNS::Platform_wrapper*>(targetPtr);if (wrapperPtr) { return wrapperPtr->isProcessingAppQuitEvent_nocallback();} else { return targetPtr->isProcessingAppQuitEvent();}}();}
|
||||
|
||||
//tag=1050
|
||||
//isQtQuick() const
|
||||
bool c_KDDockWidgets__Platform__isQtQuick(void *thisObj){return
|
||||
//tag=1010
|
||||
fromPtr(thisObj)->isQtQuick();}
|
||||
|
||||
//tag=1050
|
||||
//isQtWidgets() const
|
||||
bool c_KDDockWidgets__Platform__isQtWidgets(void *thisObj){return
|
||||
//tag=1010
|
||||
fromPtr(thisObj)->isQtWidgets();}
|
||||
|
||||
//tag=1050
|
||||
//name() const
|
||||
const char * c_KDDockWidgets__Platform__name(void *thisObj){return
|
||||
//tag=1016
|
||||
[&]{auto targetPtr = fromPtr(thisObj);auto wrapperPtr = dynamic_cast<KDDockWidgetsBindings_wrappersNS::Platform_wrapper*>(targetPtr);if (wrapperPtr) { return wrapperPtr->name_nocallback();} else { return targetPtr->name();}}();}
|
||||
|
||||
//tag=1050
|
||||
//organizationName() const
|
||||
void* c_KDDockWidgets__Platform__organizationName(void *thisObj){return
|
||||
//tag=1016
|
||||
|
||||
//tag=1072
|
||||
new Dartagnan::ValueWrapper<QString>{[&]{auto targetPtr = fromPtr(thisObj);auto wrapperPtr = dynamic_cast<KDDockWidgetsBindings_wrappersNS::Platform_wrapper*>(targetPtr);if (wrapperPtr) { return wrapperPtr->organizationName_nocallback();} else { return targetPtr->organizationName();}}()};}
|
||||
|
||||
//tag=1050
|
||||
//restoreMouseCursor()
|
||||
void c_KDDockWidgets__Platform__restoreMouseCursor(void *thisObj){
|
||||
//tag=1016
|
||||
[&]{auto targetPtr = fromPtr(thisObj);auto wrapperPtr = dynamic_cast<KDDockWidgetsBindings_wrappersNS::Platform_wrapper*>(targetPtr);if (wrapperPtr) { return wrapperPtr->restoreMouseCursor_nocallback();} else { return targetPtr->restoreMouseCursor();}}();}
|
||||
|
||||
//tag=1050
|
||||
//screenNumberFor(KDDockWidgets::View * arg__1) const
|
||||
int c_KDDockWidgets__Platform__screenNumberFor_View(void *thisObj,void* arg__1_){auto arg__1 = reinterpret_cast<KDDockWidgets::View *>(arg__1_);return
|
||||
//tag=1016
|
||||
[&]{auto targetPtr = fromPtr(thisObj);auto wrapperPtr = dynamic_cast<KDDockWidgetsBindings_wrappersNS::Platform_wrapper*>(targetPtr);if (wrapperPtr) { return wrapperPtr->screenNumberFor_nocallback(arg__1);} else { return targetPtr->screenNumberFor(arg__1);}}();}
|
||||
|
||||
//tag=1050
|
||||
//screenSizeFor(KDDockWidgets::View * arg__1) const
|
||||
void* c_KDDockWidgets__Platform__screenSizeFor_View(void *thisObj,void* arg__1_){auto arg__1 = reinterpret_cast<KDDockWidgets::View *>(arg__1_);return
|
||||
//tag=1016
|
||||
|
||||
//tag=1072
|
||||
new Dartagnan::ValueWrapper<QSize>{[&]{auto targetPtr = fromPtr(thisObj);auto wrapperPtr = dynamic_cast<KDDockWidgetsBindings_wrappersNS::Platform_wrapper*>(targetPtr);if (wrapperPtr) { return wrapperPtr->screenSizeFor_nocallback(arg__1);} else { return targetPtr->screenSizeFor(arg__1);}}()};}
|
||||
|
||||
//tag=1050
|
||||
//startDragDistance() const
|
||||
int c_KDDockWidgets__Platform__startDragDistance(void *thisObj){return
|
||||
//tag=1010
|
||||
fromPtr(thisObj)->startDragDistance();}
|
||||
|
||||
//tag=1050
|
||||
//startDragDistance_impl() const
|
||||
int c_KDDockWidgets__Platform__startDragDistance_impl(void *thisObj){return
|
||||
//tag=1011
|
||||
|
||||
//tag=1074
|
||||
fromWrapperPtr(thisObj)->startDragDistance_impl_nocallback();}
|
||||
|
||||
//tag=1050
|
||||
//ungrabMouse()
|
||||
void c_KDDockWidgets__Platform__ungrabMouse(void *thisObj){
|
||||
//tag=1016
|
||||
[&]{auto targetPtr = fromPtr(thisObj);auto wrapperPtr = dynamic_cast<KDDockWidgetsBindings_wrappersNS::Platform_wrapper*>(targetPtr);if (wrapperPtr) { return wrapperPtr->ungrabMouse_nocallback();} else { return targetPtr->ungrabMouse();}}();}
|
||||
|
||||
//tag=1050
|
||||
//usesFallbackMouseGrabber() const
|
||||
bool c_KDDockWidgets__Platform__usesFallbackMouseGrabber(void *thisObj){return
|
||||
//tag=1016
|
||||
[&]{auto targetPtr = fromPtr(thisObj);auto wrapperPtr = dynamic_cast<KDDockWidgetsBindings_wrappersNS::Platform_wrapper*>(targetPtr);if (wrapperPtr) { return wrapperPtr->usesFallbackMouseGrabber_nocallback();} else { return targetPtr->usesFallbackMouseGrabber();}}();}
|
||||
void c_KDDockWidgets__Platform__destructor(void *thisObj)
|
||||
{
|
||||
|
||||
//tag=1055
|
||||
delete fromPtr(thisObj);}
|
||||
void c_KDDockWidgets__Platform__registerVirtualMethodCallback(void *ptr, void *callback, int methodId){
|
||||
//tag=1048
|
||||
auto wrapper = fromWrapperPtr(ptr);
|
||||
switch (methodId) {
|
||||
case 680:
|
||||
wrapper->m_applicationNameCallback = reinterpret_cast<KDDockWidgetsBindings_wrappersNS::Platform_wrapper::Callback_applicationName>(callback);break;case 681:
|
||||
wrapper->m_createDefaultViewFactoryCallback = reinterpret_cast<KDDockWidgetsBindings_wrappersNS::Platform_wrapper::Callback_createDefaultViewFactory>(callback);break;case 682:
|
||||
wrapper->m_hasActivePopupCallback = reinterpret_cast<KDDockWidgetsBindings_wrappersNS::Platform_wrapper::Callback_hasActivePopup>(callback);break;case 683:
|
||||
wrapper->m_inDisallowedDragViewCallback = reinterpret_cast<KDDockWidgetsBindings_wrappersNS::Platform_wrapper::Callback_inDisallowedDragView>(callback);break;case 685:
|
||||
wrapper->m_isLeftMouseButtonPressedCallback = reinterpret_cast<KDDockWidgetsBindings_wrappersNS::Platform_wrapper::Callback_isLeftMouseButtonPressed>(callback);break;case 686:
|
||||
wrapper->m_isProcessingAppQuitEventCallback = reinterpret_cast<KDDockWidgetsBindings_wrappersNS::Platform_wrapper::Callback_isProcessingAppQuitEvent>(callback);break;case 689:
|
||||
wrapper->m_nameCallback = reinterpret_cast<KDDockWidgetsBindings_wrappersNS::Platform_wrapper::Callback_name>(callback);break;case 690:
|
||||
wrapper->m_organizationNameCallback = reinterpret_cast<KDDockWidgetsBindings_wrappersNS::Platform_wrapper::Callback_organizationName>(callback);break;case 691:
|
||||
wrapper->m_restoreMouseCursorCallback = reinterpret_cast<KDDockWidgetsBindings_wrappersNS::Platform_wrapper::Callback_restoreMouseCursor>(callback);break;case 692:
|
||||
wrapper->m_screenNumberForCallback = reinterpret_cast<KDDockWidgetsBindings_wrappersNS::Platform_wrapper::Callback_screenNumberFor>(callback);break;case 693:
|
||||
wrapper->m_screenSizeForCallback = reinterpret_cast<KDDockWidgetsBindings_wrappersNS::Platform_wrapper::Callback_screenSizeFor>(callback);break;case 695:
|
||||
wrapper->m_startDragDistance_implCallback = reinterpret_cast<KDDockWidgetsBindings_wrappersNS::Platform_wrapper::Callback_startDragDistance_impl>(callback);break;case 696:
|
||||
wrapper->m_ungrabMouseCallback = reinterpret_cast<KDDockWidgetsBindings_wrappersNS::Platform_wrapper::Callback_ungrabMouse>(callback);break;case 697:
|
||||
wrapper->m_usesFallbackMouseGrabberCallback = reinterpret_cast<KDDockWidgetsBindings_wrappersNS::Platform_wrapper::Callback_usesFallbackMouseGrabber>(callback);break;}
|
||||
}}
|
||||
@@ -0,0 +1,205 @@
|
||||
/*
|
||||
This file is part of KDDockWidgets.
|
||||
|
||||
SPDX-FileCopyrightText: 2019-2022 Klarälvdalens Datakonsult AB, a KDAB Group company <info@kdab.com>
|
||||
Author: Sérgio Martins <sergio.martins@kdab.com>
|
||||
|
||||
SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only
|
||||
|
||||
Contact KDAB at <info@kdab.com> for commercial licensing options.
|
||||
*/
|
||||
|
||||
//tag=1040
|
||||
#include "KDDockWidgetsBindings_exports.h"
|
||||
#include <Platform.h>
|
||||
#include <ViewFactory.h>
|
||||
#include <View.h>
|
||||
#include <qsize.h>
|
||||
#include <qpoint.h>
|
||||
#include <qstring.h>
|
||||
|
||||
namespace KDDockWidgetsBindings_wrappersNS {
|
||||
//tag=1017
|
||||
class Platform_wrapper : public ::KDDockWidgets::Platform {public:
|
||||
~Platform_wrapper();
|
||||
//tag=1041
|
||||
Platform_wrapper();
|
||||
//tag=1041
|
||||
virtual QString applicationName()const;
|
||||
//tag=1008
|
||||
virtual QString applicationName_nocallback()const;
|
||||
//tag=1041
|
||||
virtual KDDockWidgets::ViewFactory * createDefaultViewFactory();
|
||||
//tag=1008
|
||||
virtual KDDockWidgets::ViewFactory * createDefaultViewFactory_nocallback();
|
||||
//tag=1041
|
||||
virtual bool hasActivePopup()const;
|
||||
//tag=1008
|
||||
virtual bool hasActivePopup_nocallback()const;
|
||||
//tag=1041
|
||||
virtual bool inDisallowedDragView(QPoint globalPos)const;
|
||||
//tag=1008
|
||||
virtual bool inDisallowedDragView_nocallback(QPoint globalPos)const;
|
||||
//tag=1041
|
||||
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()
|
||||
KDDockWidgetsBindings_EXPORT void * c_KDDockWidgets__Platform__constructor();
|
||||
|
||||
//tag=1067
|
||||
// KDDockWidgets::Platform::applicationName() const
|
||||
KDDockWidgetsBindings_EXPORT void* c_KDDockWidgets__Platform__applicationName(void *thisObj);
|
||||
|
||||
//tag=1067
|
||||
// KDDockWidgets::Platform::createDefaultViewFactory()
|
||||
KDDockWidgetsBindings_EXPORT void* c_KDDockWidgets__Platform__createDefaultViewFactory(void *thisObj);
|
||||
|
||||
//tag=1067
|
||||
// KDDockWidgets::Platform::hasActivePopup() const
|
||||
KDDockWidgetsBindings_EXPORT bool c_KDDockWidgets__Platform__hasActivePopup(void *thisObj);
|
||||
|
||||
//tag=1067
|
||||
// KDDockWidgets::Platform::inDisallowedDragView(QPoint globalPos) const
|
||||
KDDockWidgetsBindings_EXPORT bool c_KDDockWidgets__Platform__inDisallowedDragView_QPoint(void *thisObj,void* globalPos_);
|
||||
|
||||
//tag=1067
|
||||
// KDDockWidgets::Platform::instance()
|
||||
KDDockWidgetsBindings_EXPORT void* c_static_KDDockWidgets__Platform__instance();
|
||||
|
||||
//tag=1067
|
||||
// KDDockWidgets::Platform::isLeftMouseButtonPressed() const
|
||||
KDDockWidgetsBindings_EXPORT bool c_KDDockWidgets__Platform__isLeftMouseButtonPressed(void *thisObj);
|
||||
|
||||
//tag=1067
|
||||
// KDDockWidgets::Platform::isProcessingAppQuitEvent() const
|
||||
KDDockWidgetsBindings_EXPORT bool c_KDDockWidgets__Platform__isProcessingAppQuitEvent(void *thisObj);
|
||||
|
||||
//tag=1067
|
||||
// KDDockWidgets::Platform::isQtQuick() const
|
||||
KDDockWidgetsBindings_EXPORT bool c_KDDockWidgets__Platform__isQtQuick(void *thisObj);
|
||||
|
||||
//tag=1067
|
||||
// KDDockWidgets::Platform::isQtWidgets() const
|
||||
KDDockWidgetsBindings_EXPORT bool c_KDDockWidgets__Platform__isQtWidgets(void *thisObj);
|
||||
|
||||
//tag=1067
|
||||
// KDDockWidgets::Platform::name() const
|
||||
KDDockWidgetsBindings_EXPORT const char * c_KDDockWidgets__Platform__name(void *thisObj);
|
||||
|
||||
//tag=1067
|
||||
// KDDockWidgets::Platform::organizationName() const
|
||||
KDDockWidgetsBindings_EXPORT void* c_KDDockWidgets__Platform__organizationName(void *thisObj);
|
||||
|
||||
//tag=1067
|
||||
// KDDockWidgets::Platform::restoreMouseCursor()
|
||||
KDDockWidgetsBindings_EXPORT void c_KDDockWidgets__Platform__restoreMouseCursor(void *thisObj);
|
||||
|
||||
//tag=1067
|
||||
// KDDockWidgets::Platform::screenNumberFor(KDDockWidgets::View * arg__1) const
|
||||
KDDockWidgetsBindings_EXPORT int c_KDDockWidgets__Platform__screenNumberFor_View(void *thisObj,void* arg__1_);
|
||||
|
||||
//tag=1067
|
||||
// KDDockWidgets::Platform::screenSizeFor(KDDockWidgets::View * arg__1) const
|
||||
KDDockWidgetsBindings_EXPORT void* c_KDDockWidgets__Platform__screenSizeFor_View(void *thisObj,void* arg__1_);
|
||||
|
||||
//tag=1067
|
||||
// KDDockWidgets::Platform::startDragDistance() const
|
||||
KDDockWidgetsBindings_EXPORT int c_KDDockWidgets__Platform__startDragDistance(void *thisObj);
|
||||
|
||||
//tag=1067
|
||||
// KDDockWidgets::Platform::startDragDistance_impl() const
|
||||
KDDockWidgetsBindings_EXPORT int c_KDDockWidgets__Platform__startDragDistance_impl(void *thisObj);
|
||||
|
||||
//tag=1067
|
||||
// KDDockWidgets::Platform::ungrabMouse()
|
||||
KDDockWidgetsBindings_EXPORT void c_KDDockWidgets__Platform__ungrabMouse(void *thisObj);
|
||||
|
||||
//tag=1067
|
||||
// KDDockWidgets::Platform::usesFallbackMouseGrabber() const
|
||||
KDDockWidgetsBindings_EXPORT bool c_KDDockWidgets__Platform__usesFallbackMouseGrabber(void *thisObj);
|
||||
|
||||
//tag=1066
|
||||
KDDockWidgetsBindings_EXPORT void c_KDDockWidgets__Platform__destructor(void *thisObj);
|
||||
|
||||
//tag=1046
|
||||
KDDockWidgetsBindings_EXPORT void c_KDDockWidgets__Platform__registerVirtualMethodCallback(void *ptr, void *callback, int methodId);
|
||||
//tag=1047
|
||||
KDDockWidgetsBindings_EXPORT void c_KDDockWidgets__Platform_Finalizer(void *, void *cppObj, void *);}
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,545 @@
|
||||
/*
|
||||
This file is part of KDDockWidgets.
|
||||
|
||||
SPDX-FileCopyrightText: 2019-2022 Klarälvdalens Datakonsult AB, a KDAB Group company <info@kdab.com>
|
||||
Author: Sérgio Martins <sergio.martins@kdab.com>
|
||||
|
||||
SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only
|
||||
|
||||
Contact KDAB at <info@kdab.com> for commercial licensing options.
|
||||
*/
|
||||
|
||||
//tag=1040
|
||||
#include "KDDockWidgetsBindings_exports.h"
|
||||
#include <qbytearray.h>
|
||||
#include <qlist.h>
|
||||
|
||||
namespace KDDockWidgetsBindings_wrappersNS {
|
||||
//tag=1043
|
||||
class QByteArray_wrapper : public ::QByteArray {public:
|
||||
~QByteArray_wrapper();
|
||||
//tag=1041
|
||||
QByteArray_wrapper();
|
||||
//tag=1041
|
||||
QByteArray_wrapper(const char * arg__1,int size = -1);
|
||||
//tag=1041
|
||||
QByteArray & append(const QByteArray & a);
|
||||
//tag=1041
|
||||
QByteArray & append(const char * s);
|
||||
//tag=1041
|
||||
QByteArray & append(const char * s,int len);
|
||||
//tag=1041
|
||||
char at(int i)const;
|
||||
//tag=1041
|
||||
char back()const;
|
||||
//tag=1041
|
||||
const char * begin()const;
|
||||
//tag=1041
|
||||
int capacity()const;
|
||||
//tag=1041
|
||||
const char * cbegin()const;
|
||||
//tag=1041
|
||||
const char * cend()const;
|
||||
//tag=1041
|
||||
void chop(int n);
|
||||
//tag=1041
|
||||
QByteArray chopped(int len)const;
|
||||
//tag=1041
|
||||
void clear();
|
||||
//tag=1041
|
||||
int compare(const QByteArray & a)const;
|
||||
//tag=1041
|
||||
int compare(const char * c)const;
|
||||
//tag=1041
|
||||
const char * constBegin()const;
|
||||
//tag=1041
|
||||
const char * constData()const;
|
||||
//tag=1041
|
||||
const char * constEnd()const;
|
||||
//tag=1041
|
||||
bool contains(const QByteArray & a)const;
|
||||
//tag=1041
|
||||
bool contains(const char * a)const;
|
||||
//tag=1041
|
||||
int count()const;
|
||||
//tag=1041
|
||||
int count(const QByteArray & a)const;
|
||||
//tag=1041
|
||||
int count(const char * a)const;
|
||||
//tag=1041
|
||||
const char * data()const;
|
||||
//tag=1041
|
||||
void detach();
|
||||
//tag=1041
|
||||
const char * end()const;
|
||||
//tag=1041
|
||||
bool endsWith(const QByteArray & a)const;
|
||||
//tag=1041
|
||||
bool endsWith(const char * c)const;
|
||||
//tag=1041
|
||||
static QByteArray fromBase64(const QByteArray & base64);
|
||||
//tag=1041
|
||||
static QByteArray fromHex(const QByteArray & hexEncoded);
|
||||
//tag=1041
|
||||
static QByteArray fromRawData(const char * arg__1,int size);
|
||||
//tag=1041
|
||||
char front()const;
|
||||
//tag=1041
|
||||
int indexOf(const QByteArray & a,int from = 0)const;
|
||||
//tag=1041
|
||||
int indexOf(const char * c,int from = 0)const;
|
||||
//tag=1041
|
||||
QByteArray & insert(int i,const QByteArray & a);
|
||||
//tag=1041
|
||||
QByteArray & insert(int i,const char * s);
|
||||
//tag=1041
|
||||
QByteArray & insert(int i,const char * s,int len);
|
||||
//tag=1041
|
||||
bool isDetached()const;
|
||||
//tag=1041
|
||||
bool isEmpty()const;
|
||||
//tag=1041
|
||||
bool isLower()const;
|
||||
//tag=1041
|
||||
bool isNull()const;
|
||||
//tag=1041
|
||||
bool isSharedWith(const QByteArray & other)const;
|
||||
//tag=1041
|
||||
bool isUpper()const;
|
||||
//tag=1041
|
||||
int lastIndexOf(const QByteArray & a,int from = -1)const;
|
||||
//tag=1041
|
||||
int lastIndexOf(const char * c,int from = -1)const;
|
||||
//tag=1041
|
||||
QByteArray left(int len)const;
|
||||
//tag=1041
|
||||
int length()const;
|
||||
//tag=1041
|
||||
QByteArray mid(int index,int len = -1)const;
|
||||
//tag=1041
|
||||
static QByteArray number(int arg__1,int base = 10);
|
||||
//tag=1041
|
||||
static QByteArray number(qint64 arg__1,int base = 10);
|
||||
//tag=1041
|
||||
QByteArray & prepend(const QByteArray & a);
|
||||
//tag=1041
|
||||
QByteArray & prepend(const char * s);
|
||||
//tag=1041
|
||||
QByteArray & prepend(const char * s,int len);
|
||||
//tag=1041
|
||||
void push_back(const QByteArray & a);
|
||||
//tag=1041
|
||||
void push_back(const char * c);
|
||||
//tag=1041
|
||||
void push_front(const QByteArray & a);
|
||||
//tag=1041
|
||||
void push_front(const char * c);
|
||||
//tag=1041
|
||||
QByteArray & remove(int index,int len);
|
||||
//tag=1041
|
||||
QByteArray repeated(int times)const;
|
||||
//tag=1041
|
||||
QByteArray & replace(const QByteArray & before,const QByteArray & after);
|
||||
//tag=1041
|
||||
QByteArray & replace(const QByteArray & before,const char * after);
|
||||
//tag=1041
|
||||
QByteArray & replace(const char * before,const QByteArray & after);
|
||||
//tag=1041
|
||||
QByteArray & replace(const char * before,const char * after);
|
||||
//tag=1041
|
||||
QByteArray & replace(const char * before,int bsize,const char * after,int asize);
|
||||
//tag=1041
|
||||
QByteArray & replace(int index,int len,const QByteArray & s);
|
||||
//tag=1041
|
||||
QByteArray & replace(int index,int len,const char * s);
|
||||
//tag=1041
|
||||
QByteArray & replace(int index,int len,const char * s,int alen);
|
||||
//tag=1041
|
||||
void reserve(int size);
|
||||
//tag=1041
|
||||
void resize(int size);
|
||||
//tag=1041
|
||||
QByteArray right(int len)const;
|
||||
//tag=1041
|
||||
QByteArray & setNum(int arg__1,int base = 10);
|
||||
//tag=1041
|
||||
QByteArray & setNum(qint64 arg__1,int base = 10);
|
||||
//tag=1041
|
||||
QByteArray & setNum(short arg__1,int base = 10);
|
||||
//tag=1041
|
||||
void shrink_to_fit();
|
||||
//tag=1041
|
||||
QByteArray simplified();
|
||||
//tag=1041
|
||||
int size()const;
|
||||
//tag=1041
|
||||
void squeeze();
|
||||
//tag=1041
|
||||
bool startsWith(const QByteArray & a)const;
|
||||
//tag=1041
|
||||
bool startsWith(const char * c)const;
|
||||
//tag=1041
|
||||
QByteArray toBase64()const;
|
||||
//tag=1041
|
||||
QByteArray toHex()const;
|
||||
//tag=1041
|
||||
QByteArray toLower();
|
||||
//tag=1041
|
||||
QByteArray toUpper();
|
||||
//tag=1041
|
||||
QByteArray trimmed();
|
||||
//tag=1041
|
||||
void truncate(int pos);
|
||||
|
||||
};
|
||||
}extern "C" {
|
||||
|
||||
//tag=1067
|
||||
// QByteArray::QByteArray()
|
||||
KDDockWidgetsBindings_EXPORT void * c_QByteArray__constructor();
|
||||
|
||||
//tag=1067
|
||||
// QByteArray::QByteArray(const char * arg__1, int size)
|
||||
KDDockWidgetsBindings_EXPORT void * c_QByteArray__constructor_char_int(const char * arg__1,int size);
|
||||
|
||||
//tag=1067
|
||||
// QByteArray::append(const QByteArray & a)
|
||||
KDDockWidgetsBindings_EXPORT void* c_QByteArray__append_QByteArray(void *thisObj,void* a_);
|
||||
|
||||
//tag=1067
|
||||
// QByteArray::append(const char * s)
|
||||
KDDockWidgetsBindings_EXPORT void* c_QByteArray__append_char(void *thisObj,const char * s);
|
||||
|
||||
//tag=1067
|
||||
// QByteArray::append(const char * s, int len)
|
||||
KDDockWidgetsBindings_EXPORT void* c_QByteArray__append_char_int(void *thisObj,const char * s,int len);
|
||||
|
||||
//tag=1067
|
||||
// QByteArray::at(int i) const
|
||||
KDDockWidgetsBindings_EXPORT char c_QByteArray__at_int(void *thisObj,int i);
|
||||
|
||||
//tag=1067
|
||||
// QByteArray::back() const
|
||||
KDDockWidgetsBindings_EXPORT char c_QByteArray__back(void *thisObj);
|
||||
|
||||
//tag=1067
|
||||
// QByteArray::begin() const
|
||||
KDDockWidgetsBindings_EXPORT const char * c_QByteArray__begin(void *thisObj);
|
||||
|
||||
//tag=1067
|
||||
// QByteArray::capacity() const
|
||||
KDDockWidgetsBindings_EXPORT int c_QByteArray__capacity(void *thisObj);
|
||||
|
||||
//tag=1067
|
||||
// QByteArray::cbegin() const
|
||||
KDDockWidgetsBindings_EXPORT const char * c_QByteArray__cbegin(void *thisObj);
|
||||
|
||||
//tag=1067
|
||||
// QByteArray::cend() const
|
||||
KDDockWidgetsBindings_EXPORT const char * c_QByteArray__cend(void *thisObj);
|
||||
|
||||
//tag=1067
|
||||
// QByteArray::chop(int n)
|
||||
KDDockWidgetsBindings_EXPORT void c_QByteArray__chop_int(void *thisObj,int n);
|
||||
|
||||
//tag=1067
|
||||
// QByteArray::chopped(int len) const
|
||||
KDDockWidgetsBindings_EXPORT void* c_QByteArray__chopped_int(void *thisObj,int len);
|
||||
|
||||
//tag=1067
|
||||
// QByteArray::clear()
|
||||
KDDockWidgetsBindings_EXPORT void c_QByteArray__clear(void *thisObj);
|
||||
|
||||
//tag=1067
|
||||
// QByteArray::compare(const QByteArray & a) const
|
||||
KDDockWidgetsBindings_EXPORT int c_QByteArray__compare_QByteArray(void *thisObj,void* a_);
|
||||
|
||||
//tag=1067
|
||||
// QByteArray::compare(const char * c) const
|
||||
KDDockWidgetsBindings_EXPORT int c_QByteArray__compare_char(void *thisObj,const char * c);
|
||||
|
||||
//tag=1067
|
||||
// QByteArray::constBegin() const
|
||||
KDDockWidgetsBindings_EXPORT const char * c_QByteArray__constBegin(void *thisObj);
|
||||
|
||||
//tag=1067
|
||||
// QByteArray::constData() const
|
||||
KDDockWidgetsBindings_EXPORT const char * c_QByteArray__constData(void *thisObj);
|
||||
|
||||
//tag=1067
|
||||
// QByteArray::constEnd() const
|
||||
KDDockWidgetsBindings_EXPORT const char * c_QByteArray__constEnd(void *thisObj);
|
||||
|
||||
//tag=1067
|
||||
// QByteArray::contains(const QByteArray & a) const
|
||||
KDDockWidgetsBindings_EXPORT bool c_QByteArray__contains_QByteArray(void *thisObj,void* a_);
|
||||
|
||||
//tag=1067
|
||||
// QByteArray::contains(const char * a) const
|
||||
KDDockWidgetsBindings_EXPORT bool c_QByteArray__contains_char(void *thisObj,const char * a);
|
||||
|
||||
//tag=1067
|
||||
// QByteArray::count() const
|
||||
KDDockWidgetsBindings_EXPORT int c_QByteArray__count(void *thisObj);
|
||||
|
||||
//tag=1067
|
||||
// QByteArray::count(const QByteArray & a) const
|
||||
KDDockWidgetsBindings_EXPORT int c_QByteArray__count_QByteArray(void *thisObj,void* a_);
|
||||
|
||||
//tag=1067
|
||||
// QByteArray::count(const char * a) const
|
||||
KDDockWidgetsBindings_EXPORT int c_QByteArray__count_char(void *thisObj,const char * a);
|
||||
|
||||
//tag=1067
|
||||
// QByteArray::data() const
|
||||
KDDockWidgetsBindings_EXPORT const char * c_QByteArray__data(void *thisObj);
|
||||
|
||||
//tag=1067
|
||||
// QByteArray::detach()
|
||||
KDDockWidgetsBindings_EXPORT void c_QByteArray__detach(void *thisObj);
|
||||
|
||||
//tag=1067
|
||||
// QByteArray::end() const
|
||||
KDDockWidgetsBindings_EXPORT const char * c_QByteArray__end(void *thisObj);
|
||||
|
||||
//tag=1067
|
||||
// QByteArray::endsWith(const QByteArray & a) const
|
||||
KDDockWidgetsBindings_EXPORT bool c_QByteArray__endsWith_QByteArray(void *thisObj,void* a_);
|
||||
|
||||
//tag=1067
|
||||
// QByteArray::endsWith(const char * c) const
|
||||
KDDockWidgetsBindings_EXPORT bool c_QByteArray__endsWith_char(void *thisObj,const char * c);
|
||||
|
||||
//tag=1067
|
||||
// QByteArray::fromBase64(const QByteArray & base64)
|
||||
KDDockWidgetsBindings_EXPORT void* c_static_QByteArray__fromBase64_QByteArray(void* base64_);
|
||||
|
||||
//tag=1067
|
||||
// QByteArray::fromHex(const QByteArray & hexEncoded)
|
||||
KDDockWidgetsBindings_EXPORT void* c_static_QByteArray__fromHex_QByteArray(void* hexEncoded_);
|
||||
|
||||
//tag=1067
|
||||
// QByteArray::fromRawData(const char * arg__1, int size)
|
||||
KDDockWidgetsBindings_EXPORT void* c_static_QByteArray__fromRawData_char_int(const char * arg__1,int size);
|
||||
|
||||
//tag=1067
|
||||
// QByteArray::front() const
|
||||
KDDockWidgetsBindings_EXPORT char c_QByteArray__front(void *thisObj);
|
||||
|
||||
//tag=1067
|
||||
// QByteArray::indexOf(const QByteArray & a, int from) const
|
||||
KDDockWidgetsBindings_EXPORT int c_QByteArray__indexOf_QByteArray_int(void *thisObj,void* a_,int from);
|
||||
|
||||
//tag=1067
|
||||
// QByteArray::indexOf(const char * c, int from) const
|
||||
KDDockWidgetsBindings_EXPORT int c_QByteArray__indexOf_char_int(void *thisObj,const char * c,int from);
|
||||
|
||||
//tag=1067
|
||||
// QByteArray::insert(int i, const QByteArray & a)
|
||||
KDDockWidgetsBindings_EXPORT void* c_QByteArray__insert_int_QByteArray(void *thisObj,int i,void* a_);
|
||||
|
||||
//tag=1067
|
||||
// QByteArray::insert(int i, const char * s)
|
||||
KDDockWidgetsBindings_EXPORT void* c_QByteArray__insert_int_char(void *thisObj,int i,const char * s);
|
||||
|
||||
//tag=1067
|
||||
// QByteArray::insert(int i, const char * s, int len)
|
||||
KDDockWidgetsBindings_EXPORT void* c_QByteArray__insert_int_char_int(void *thisObj,int i,const char * s,int len);
|
||||
|
||||
//tag=1067
|
||||
// QByteArray::isDetached() const
|
||||
KDDockWidgetsBindings_EXPORT bool c_QByteArray__isDetached(void *thisObj);
|
||||
|
||||
//tag=1067
|
||||
// QByteArray::isEmpty() const
|
||||
KDDockWidgetsBindings_EXPORT bool c_QByteArray__isEmpty(void *thisObj);
|
||||
|
||||
//tag=1067
|
||||
// QByteArray::isLower() const
|
||||
KDDockWidgetsBindings_EXPORT bool c_QByteArray__isLower(void *thisObj);
|
||||
|
||||
//tag=1067
|
||||
// QByteArray::isNull() const
|
||||
KDDockWidgetsBindings_EXPORT bool c_QByteArray__isNull(void *thisObj);
|
||||
|
||||
//tag=1067
|
||||
// QByteArray::isSharedWith(const QByteArray & other) const
|
||||
KDDockWidgetsBindings_EXPORT bool c_QByteArray__isSharedWith_QByteArray(void *thisObj,void* other_);
|
||||
|
||||
//tag=1067
|
||||
// QByteArray::isUpper() const
|
||||
KDDockWidgetsBindings_EXPORT bool c_QByteArray__isUpper(void *thisObj);
|
||||
|
||||
//tag=1067
|
||||
// QByteArray::lastIndexOf(const QByteArray & a, int from) const
|
||||
KDDockWidgetsBindings_EXPORT int c_QByteArray__lastIndexOf_QByteArray_int(void *thisObj,void* a_,int from);
|
||||
|
||||
//tag=1067
|
||||
// QByteArray::lastIndexOf(const char * c, int from) const
|
||||
KDDockWidgetsBindings_EXPORT int c_QByteArray__lastIndexOf_char_int(void *thisObj,const char * c,int from);
|
||||
|
||||
//tag=1067
|
||||
// QByteArray::left(int len) const
|
||||
KDDockWidgetsBindings_EXPORT void* c_QByteArray__left_int(void *thisObj,int len);
|
||||
|
||||
//tag=1067
|
||||
// QByteArray::length() const
|
||||
KDDockWidgetsBindings_EXPORT int c_QByteArray__length(void *thisObj);
|
||||
|
||||
//tag=1067
|
||||
// QByteArray::mid(int index, int len) const
|
||||
KDDockWidgetsBindings_EXPORT void* c_QByteArray__mid_int_int(void *thisObj,int index,int len);
|
||||
|
||||
//tag=1067
|
||||
// QByteArray::number(int arg__1, int base)
|
||||
KDDockWidgetsBindings_EXPORT void* c_static_QByteArray__number_int_int(int arg__1,int base);
|
||||
|
||||
//tag=1067
|
||||
// QByteArray::number(qint64 arg__1, int base)
|
||||
KDDockWidgetsBindings_EXPORT void* c_static_QByteArray__number_qint64_int(qint64 arg__1,int base);
|
||||
|
||||
//tag=1067
|
||||
// QByteArray::prepend(const QByteArray & a)
|
||||
KDDockWidgetsBindings_EXPORT void* c_QByteArray__prepend_QByteArray(void *thisObj,void* a_);
|
||||
|
||||
//tag=1067
|
||||
// QByteArray::prepend(const char * s)
|
||||
KDDockWidgetsBindings_EXPORT void* c_QByteArray__prepend_char(void *thisObj,const char * s);
|
||||
|
||||
//tag=1067
|
||||
// QByteArray::prepend(const char * s, int len)
|
||||
KDDockWidgetsBindings_EXPORT void* c_QByteArray__prepend_char_int(void *thisObj,const char * s,int len);
|
||||
|
||||
//tag=1067
|
||||
// QByteArray::push_back(const QByteArray & a)
|
||||
KDDockWidgetsBindings_EXPORT void c_QByteArray__push_back_QByteArray(void *thisObj,void* a_);
|
||||
|
||||
//tag=1067
|
||||
// QByteArray::push_back(const char * c)
|
||||
KDDockWidgetsBindings_EXPORT void c_QByteArray__push_back_char(void *thisObj,const char * c);
|
||||
|
||||
//tag=1067
|
||||
// QByteArray::push_front(const QByteArray & a)
|
||||
KDDockWidgetsBindings_EXPORT void c_QByteArray__push_front_QByteArray(void *thisObj,void* a_);
|
||||
|
||||
//tag=1067
|
||||
// QByteArray::push_front(const char * c)
|
||||
KDDockWidgetsBindings_EXPORT void c_QByteArray__push_front_char(void *thisObj,const char * c);
|
||||
|
||||
//tag=1067
|
||||
// QByteArray::remove(int index, int len)
|
||||
KDDockWidgetsBindings_EXPORT void* c_QByteArray__remove_int_int(void *thisObj,int index,int len);
|
||||
|
||||
//tag=1067
|
||||
// QByteArray::repeated(int times) const
|
||||
KDDockWidgetsBindings_EXPORT void* c_QByteArray__repeated_int(void *thisObj,int times);
|
||||
|
||||
//tag=1067
|
||||
// QByteArray::replace(const QByteArray & before, const QByteArray & after)
|
||||
KDDockWidgetsBindings_EXPORT void* c_QByteArray__replace_QByteArray_QByteArray(void *thisObj,void* before_,void* after_);
|
||||
|
||||
//tag=1067
|
||||
// QByteArray::replace(const QByteArray & before, const char * after)
|
||||
KDDockWidgetsBindings_EXPORT void* c_QByteArray__replace_QByteArray_char(void *thisObj,void* before_,const char * after);
|
||||
|
||||
//tag=1067
|
||||
// QByteArray::replace(const char * before, const QByteArray & after)
|
||||
KDDockWidgetsBindings_EXPORT void* c_QByteArray__replace_char_QByteArray(void *thisObj,const char * before,void* after_);
|
||||
|
||||
//tag=1067
|
||||
// QByteArray::replace(const char * before, const char * after)
|
||||
KDDockWidgetsBindings_EXPORT void* c_QByteArray__replace_char_char(void *thisObj,const char * before,const char * after);
|
||||
|
||||
//tag=1067
|
||||
// QByteArray::replace(const char * before, int bsize, const char * after, int asize)
|
||||
KDDockWidgetsBindings_EXPORT void* c_QByteArray__replace_char_int_char_int(void *thisObj,const char * before,int bsize,const char * after,int asize);
|
||||
|
||||
//tag=1067
|
||||
// QByteArray::replace(int index, int len, const QByteArray & s)
|
||||
KDDockWidgetsBindings_EXPORT void* c_QByteArray__replace_int_int_QByteArray(void *thisObj,int index,int len,void* s_);
|
||||
|
||||
//tag=1067
|
||||
// QByteArray::replace(int index, int len, const char * s)
|
||||
KDDockWidgetsBindings_EXPORT void* c_QByteArray__replace_int_int_char(void *thisObj,int index,int len,const char * s);
|
||||
|
||||
//tag=1067
|
||||
// QByteArray::replace(int index, int len, const char * s, int alen)
|
||||
KDDockWidgetsBindings_EXPORT void* c_QByteArray__replace_int_int_char_int(void *thisObj,int index,int len,const char * s,int alen);
|
||||
|
||||
//tag=1067
|
||||
// QByteArray::reserve(int size)
|
||||
KDDockWidgetsBindings_EXPORT void c_QByteArray__reserve_int(void *thisObj,int size);
|
||||
|
||||
//tag=1067
|
||||
// QByteArray::resize(int size)
|
||||
KDDockWidgetsBindings_EXPORT void c_QByteArray__resize_int(void *thisObj,int size);
|
||||
|
||||
//tag=1067
|
||||
// QByteArray::right(int len) const
|
||||
KDDockWidgetsBindings_EXPORT void* c_QByteArray__right_int(void *thisObj,int len);
|
||||
|
||||
//tag=1067
|
||||
// QByteArray::setNum(int arg__1, int base)
|
||||
KDDockWidgetsBindings_EXPORT void* c_QByteArray__setNum_int_int(void *thisObj,int arg__1,int base);
|
||||
|
||||
//tag=1067
|
||||
// QByteArray::setNum(qint64 arg__1, int base)
|
||||
KDDockWidgetsBindings_EXPORT void* c_QByteArray__setNum_qint64_int(void *thisObj,qint64 arg__1,int base);
|
||||
|
||||
//tag=1067
|
||||
// QByteArray::setNum(short arg__1, int base)
|
||||
KDDockWidgetsBindings_EXPORT void* c_QByteArray__setNum_short_int(void *thisObj,short arg__1,int base);
|
||||
|
||||
//tag=1067
|
||||
// QByteArray::shrink_to_fit()
|
||||
KDDockWidgetsBindings_EXPORT void c_QByteArray__shrink_to_fit(void *thisObj);
|
||||
|
||||
//tag=1067
|
||||
// QByteArray::simplified()
|
||||
KDDockWidgetsBindings_EXPORT void* c_QByteArray__simplified(void *thisObj);
|
||||
|
||||
//tag=1067
|
||||
// QByteArray::size() const
|
||||
KDDockWidgetsBindings_EXPORT int c_QByteArray__size(void *thisObj);
|
||||
|
||||
//tag=1067
|
||||
// QByteArray::squeeze()
|
||||
KDDockWidgetsBindings_EXPORT void c_QByteArray__squeeze(void *thisObj);
|
||||
|
||||
//tag=1067
|
||||
// QByteArray::startsWith(const QByteArray & a) const
|
||||
KDDockWidgetsBindings_EXPORT bool c_QByteArray__startsWith_QByteArray(void *thisObj,void* a_);
|
||||
|
||||
//tag=1067
|
||||
// QByteArray::startsWith(const char * c) const
|
||||
KDDockWidgetsBindings_EXPORT bool c_QByteArray__startsWith_char(void *thisObj,const char * c);
|
||||
|
||||
//tag=1067
|
||||
// QByteArray::toBase64() const
|
||||
KDDockWidgetsBindings_EXPORT void* c_QByteArray__toBase64(void *thisObj);
|
||||
|
||||
//tag=1067
|
||||
// QByteArray::toHex() const
|
||||
KDDockWidgetsBindings_EXPORT void* c_QByteArray__toHex(void *thisObj);
|
||||
|
||||
//tag=1067
|
||||
// QByteArray::toLower()
|
||||
KDDockWidgetsBindings_EXPORT void* c_QByteArray__toLower(void *thisObj);
|
||||
|
||||
//tag=1067
|
||||
// QByteArray::toUpper()
|
||||
KDDockWidgetsBindings_EXPORT void* c_QByteArray__toUpper(void *thisObj);
|
||||
|
||||
//tag=1067
|
||||
// QByteArray::trimmed()
|
||||
KDDockWidgetsBindings_EXPORT void* c_QByteArray__trimmed(void *thisObj);
|
||||
|
||||
//tag=1067
|
||||
// QByteArray::truncate(int pos)
|
||||
KDDockWidgetsBindings_EXPORT void c_QByteArray__truncate_int(void *thisObj,int pos);
|
||||
|
||||
//tag=1066
|
||||
KDDockWidgetsBindings_EXPORT void c_QByteArray__destructor(void *thisObj);
|
||||
|
||||
//tag=1047
|
||||
KDDockWidgetsBindings_EXPORT void c_QByteArray_Finalizer(void *, void *cppObj, void *);}
|
||||
@@ -0,0 +1,896 @@
|
||||
/*
|
||||
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 "QList_wrapper.h"
|
||||
|
||||
|
||||
#include <QDebug>
|
||||
|
||||
|
||||
namespace Dartagnan {
|
||||
|
||||
typedef int (*CleanupCallback)(void *thisPtr);
|
||||
static CleanupCallback s_cleanupCallback = nullptr;
|
||||
|
||||
template<typename T>
|
||||
struct ValueWrapper
|
||||
{
|
||||
T value;
|
||||
};
|
||||
|
||||
}
|
||||
namespace KDDockWidgetsBindings_wrappersNS {
|
||||
//tag=1006
|
||||
template <typename T>QList_wrapper<T>::QList_wrapper() : ::QList<T>() {}
|
||||
template <typename T>void QList_wrapper<T>::append(const QList<T > & t){
|
||||
//tag=1000
|
||||
|
||||
//tag=1004
|
||||
::QList<T>::append(t);}
|
||||
template <typename T>void QList_wrapper<T>::append(const T & t){
|
||||
//tag=1000
|
||||
|
||||
//tag=1004
|
||||
::QList<T>::append(t);}
|
||||
template <typename T>const T & QList_wrapper<T>::at(int i)const{
|
||||
//tag=1000
|
||||
|
||||
//tag=1004
|
||||
return ::QList<T>::at(i);}
|
||||
template <typename T>T & QList_wrapper<T>::back(){
|
||||
//tag=1000
|
||||
|
||||
//tag=1004
|
||||
return ::QList<T>::back();}
|
||||
template <typename T>void QList_wrapper<T>::clear(){
|
||||
//tag=1000
|
||||
|
||||
//tag=1004
|
||||
::QList<T>::clear();}
|
||||
template <typename T>const T & QList_wrapper<T>::constFirst()const{
|
||||
//tag=1000
|
||||
|
||||
//tag=1004
|
||||
return ::QList<T>::constFirst();}
|
||||
template <typename T>const T & QList_wrapper<T>::constLast()const{
|
||||
//tag=1000
|
||||
|
||||
//tag=1004
|
||||
return ::QList<T>::constLast();}
|
||||
template <typename T>bool QList_wrapper<T>::contains(const T & t)const{
|
||||
//tag=1000
|
||||
|
||||
//tag=1004
|
||||
return ::QList<T>::contains(t);}
|
||||
template <typename T>int QList_wrapper<T>::count()const{
|
||||
//tag=1000
|
||||
|
||||
//tag=1004
|
||||
return ::QList<T>::count();}
|
||||
template <typename T>int QList_wrapper<T>::count(const T & t)const{
|
||||
//tag=1000
|
||||
|
||||
//tag=1004
|
||||
return ::QList<T>::count(t);}
|
||||
template <typename T>void QList_wrapper<T>::detach(){
|
||||
//tag=1000
|
||||
|
||||
//tag=1004
|
||||
::QList<T>::detach();}
|
||||
template <typename T>void QList_wrapper<T>::detachShared(){
|
||||
//tag=1000
|
||||
|
||||
//tag=1004
|
||||
::QList<T>::detachShared();}
|
||||
template <typename T>bool QList_wrapper<T>::empty()const{
|
||||
//tag=1000
|
||||
|
||||
//tag=1004
|
||||
return ::QList<T>::empty();}
|
||||
template <typename T>bool QList_wrapper<T>::endsWith(const T & t)const{
|
||||
//tag=1000
|
||||
|
||||
//tag=1004
|
||||
return ::QList<T>::endsWith(t);}
|
||||
template <typename T>T & QList_wrapper<T>::first(){
|
||||
//tag=1000
|
||||
|
||||
//tag=1004
|
||||
return ::QList<T>::first();}
|
||||
template <typename T>T & QList_wrapper<T>::front(){
|
||||
//tag=1000
|
||||
|
||||
//tag=1004
|
||||
return ::QList<T>::front();}
|
||||
template <typename T>int QList_wrapper<T>::indexOf(const T & t,int from)const{
|
||||
//tag=1000
|
||||
|
||||
//tag=1004
|
||||
return ::QList<T>::indexOf(t,from);}
|
||||
template <typename T>void QList_wrapper<T>::insert(int i,const T & t){
|
||||
//tag=1000
|
||||
|
||||
//tag=1004
|
||||
::QList<T>::insert(i,t);}
|
||||
template <typename T>bool QList_wrapper<T>::isDetached()const{
|
||||
//tag=1000
|
||||
|
||||
//tag=1004
|
||||
return ::QList<T>::isDetached();}
|
||||
template <typename T>bool QList_wrapper<T>::isEmpty()const{
|
||||
//tag=1000
|
||||
|
||||
//tag=1004
|
||||
return ::QList<T>::isEmpty();}
|
||||
template <typename T>bool QList_wrapper<T>::isSharedWith(const QList<T > & other)const{
|
||||
//tag=1000
|
||||
|
||||
//tag=1004
|
||||
return ::QList<T>::isSharedWith(other);}
|
||||
template <typename T>T & QList_wrapper<T>::last(){
|
||||
//tag=1000
|
||||
|
||||
//tag=1004
|
||||
return ::QList<T>::last();}
|
||||
template <typename T>int QList_wrapper<T>::lastIndexOf(const T & t,int from)const{
|
||||
//tag=1000
|
||||
|
||||
//tag=1004
|
||||
return ::QList<T>::lastIndexOf(t,from);}
|
||||
template <typename T>int QList_wrapper<T>::length()const{
|
||||
//tag=1000
|
||||
|
||||
//tag=1004
|
||||
return ::QList<T>::length();}
|
||||
template <typename T>QList<T > QList_wrapper<T>::mid(int pos,int length)const{
|
||||
//tag=1000
|
||||
|
||||
//tag=1004
|
||||
return ::QList<T>::mid(pos,length);}
|
||||
template <typename T>void QList_wrapper<T>::move(int from,int to){
|
||||
//tag=1000
|
||||
|
||||
//tag=1004
|
||||
::QList<T>::move(from,to);}
|
||||
template <typename T>void QList_wrapper<T>::pop_back(){
|
||||
//tag=1000
|
||||
|
||||
//tag=1004
|
||||
::QList<T>::pop_back();}
|
||||
template <typename T>void QList_wrapper<T>::pop_front(){
|
||||
//tag=1000
|
||||
|
||||
//tag=1004
|
||||
::QList<T>::pop_front();}
|
||||
template <typename T>void QList_wrapper<T>::prepend(const T & t){
|
||||
//tag=1000
|
||||
|
||||
//tag=1004
|
||||
::QList<T>::prepend(t);}
|
||||
template <typename T>void QList_wrapper<T>::push_back(const T & t){
|
||||
//tag=1000
|
||||
|
||||
//tag=1004
|
||||
::QList<T>::push_back(t);}
|
||||
template <typename T>void QList_wrapper<T>::push_front(const T & t){
|
||||
//tag=1000
|
||||
|
||||
//tag=1004
|
||||
::QList<T>::push_front(t);}
|
||||
template <typename T>int QList_wrapper<T>::removeAll(const T & t){
|
||||
//tag=1000
|
||||
|
||||
//tag=1004
|
||||
return ::QList<T>::removeAll(t);}
|
||||
template <typename T>void QList_wrapper<T>::removeAt(int i){
|
||||
//tag=1000
|
||||
|
||||
//tag=1004
|
||||
::QList<T>::removeAt(i);}
|
||||
template <typename T>void QList_wrapper<T>::removeFirst(){
|
||||
//tag=1000
|
||||
|
||||
//tag=1004
|
||||
::QList<T>::removeFirst();}
|
||||
template <typename T>void QList_wrapper<T>::removeLast(){
|
||||
//tag=1000
|
||||
|
||||
//tag=1004
|
||||
::QList<T>::removeLast();}
|
||||
template <typename T>bool QList_wrapper<T>::removeOne(const T & t){
|
||||
//tag=1000
|
||||
|
||||
//tag=1004
|
||||
return ::QList<T>::removeOne(t);}
|
||||
template <typename T>void QList_wrapper<T>::replace(int i,const T & t){
|
||||
//tag=1000
|
||||
|
||||
//tag=1004
|
||||
::QList<T>::replace(i,t);}
|
||||
template <typename T>void QList_wrapper<T>::reserve(int size){
|
||||
//tag=1000
|
||||
|
||||
//tag=1004
|
||||
::QList<T>::reserve(size);}
|
||||
template <typename T>void QList_wrapper<T>::setSharable(bool sharable){
|
||||
//tag=1000
|
||||
|
||||
//tag=1004
|
||||
::QList<T>::setSharable(sharable);}
|
||||
template <typename T>int QList_wrapper<T>::size()const{
|
||||
//tag=1000
|
||||
|
||||
//tag=1004
|
||||
return ::QList<T>::size();}
|
||||
template <typename T>bool QList_wrapper<T>::startsWith(const T & t)const{
|
||||
//tag=1000
|
||||
|
||||
//tag=1004
|
||||
return ::QList<T>::startsWith(t);}
|
||||
template <typename T>void QList_wrapper<T>::swapItemsAt(int i,int j){
|
||||
//tag=1000
|
||||
|
||||
//tag=1004
|
||||
::QList<T>::swapItemsAt(i,j);}
|
||||
template <typename T>T QList_wrapper<T>::takeAt(int i){
|
||||
//tag=1000
|
||||
|
||||
//tag=1004
|
||||
return ::QList<T>::takeAt(i);}
|
||||
template <typename T>T QList_wrapper<T>::takeFirst(){
|
||||
//tag=1000
|
||||
|
||||
//tag=1004
|
||||
return ::QList<T>::takeFirst();}
|
||||
template <typename T>T QList_wrapper<T>::takeLast(){
|
||||
//tag=1000
|
||||
|
||||
//tag=1004
|
||||
return ::QList<T>::takeLast();}
|
||||
template <typename T>T QList_wrapper<T>::value(int i)const{
|
||||
//tag=1000
|
||||
|
||||
//tag=1004
|
||||
return ::QList<T>::value(i);}
|
||||
template <typename T>T QList_wrapper<T>::value(int i,const T & defaultValue)const{
|
||||
//tag=1000
|
||||
|
||||
//tag=1004
|
||||
return ::QList<T>::value(i,defaultValue);}
|
||||
|
||||
//tag=1005
|
||||
template <typename T>QList_wrapper<T>::~QList_wrapper() {}
|
||||
|
||||
}
|
||||
//tag=1013
|
||||
template <typename T>static QList<T>* fromPtr(void *ptr)
|
||||
{return reinterpret_cast<QList<T>*>(ptr);}
|
||||
//tag=1014
|
||||
template <typename T>static KDDockWidgetsBindings_wrappersNS::QList_wrapper<T>* fromWrapperPtr(void *ptr)
|
||||
{return reinterpret_cast<KDDockWidgetsBindings_wrappersNS::QList_wrapper<T>*>(ptr);}extern "C" {
|
||||
|
||||
//tag=1049
|
||||
void c_QList_T_QObject_T__Finalizer(void *, void *cppObj, void *){delete reinterpret_cast<KDDockWidgetsBindings_wrappersNS::QList_wrapper<QObject *> *>(cppObj);}void * c_QList_T_QObject_T___constructor()
|
||||
{
|
||||
|
||||
//tag=1056
|
||||
auto ptr = new KDDockWidgetsBindings_wrappersNS::QList_wrapper<QObject *>();return reinterpret_cast<void*>(ptr);}
|
||||
|
||||
//tag=1050
|
||||
//append(const QList<T > & t)
|
||||
void c_QList_T_QObject_T___append_QList_T(void *thisObj,void* t_){auto &t = *reinterpret_cast<QList<QObject *> *>(t_);
|
||||
//tag=1010
|
||||
fromPtr<QObject *>(thisObj)->append(t);}
|
||||
|
||||
//tag=1050
|
||||
//append(const T & t)
|
||||
void c_QList_T_QObject_T___append_QObject(void *thisObj,void* t_){auto t = reinterpret_cast<QObject *>(t_);
|
||||
//tag=1010
|
||||
fromPtr<QObject *>(thisObj)->append(t);}
|
||||
|
||||
//tag=1050
|
||||
//at(int i) const
|
||||
const void* c_QList_T_QObject_T___at_int(void *thisObj,int i){return
|
||||
//tag=1010
|
||||
fromPtr<QObject *>(thisObj)->at(i);}
|
||||
|
||||
//tag=1050
|
||||
//back()
|
||||
void* c_QList_T_QObject_T___back(void *thisObj){return
|
||||
//tag=1010
|
||||
fromPtr<QObject *>(thisObj)->back();}
|
||||
|
||||
//tag=1050
|
||||
//clear()
|
||||
void c_QList_T_QObject_T___clear(void *thisObj){
|
||||
//tag=1010
|
||||
fromPtr<QObject *>(thisObj)->clear();}
|
||||
|
||||
//tag=1050
|
||||
//constFirst() const
|
||||
const void* c_QList_T_QObject_T___constFirst(void *thisObj){return
|
||||
//tag=1010
|
||||
fromPtr<QObject *>(thisObj)->constFirst();}
|
||||
|
||||
//tag=1050
|
||||
//constLast() const
|
||||
const void* c_QList_T_QObject_T___constLast(void *thisObj){return
|
||||
//tag=1010
|
||||
fromPtr<QObject *>(thisObj)->constLast();}
|
||||
|
||||
//tag=1050
|
||||
//contains(const T & t) const
|
||||
bool c_QList_T_QObject_T___contains_QObject(void *thisObj,void* t_){auto t = reinterpret_cast<QObject *>(t_);return
|
||||
//tag=1010
|
||||
fromPtr<QObject *>(thisObj)->contains(t);}
|
||||
|
||||
//tag=1050
|
||||
//count() const
|
||||
int c_QList_T_QObject_T___count(void *thisObj){return
|
||||
//tag=1010
|
||||
fromPtr<QObject *>(thisObj)->count();}
|
||||
|
||||
//tag=1050
|
||||
//count(const T & t) const
|
||||
int c_QList_T_QObject_T___count_QObject(void *thisObj,void* t_){auto t = reinterpret_cast<QObject *>(t_);return
|
||||
//tag=1010
|
||||
fromPtr<QObject *>(thisObj)->count(t);}
|
||||
|
||||
//tag=1050
|
||||
//detach()
|
||||
void c_QList_T_QObject_T___detach(void *thisObj){
|
||||
//tag=1010
|
||||
fromPtr<QObject *>(thisObj)->detach();}
|
||||
|
||||
//tag=1050
|
||||
//detachShared()
|
||||
void c_QList_T_QObject_T___detachShared(void *thisObj){
|
||||
//tag=1010
|
||||
fromPtr<QObject *>(thisObj)->detachShared();}
|
||||
|
||||
//tag=1050
|
||||
//empty() const
|
||||
bool c_QList_T_QObject_T___empty(void *thisObj){return
|
||||
//tag=1010
|
||||
fromPtr<QObject *>(thisObj)->empty();}
|
||||
|
||||
//tag=1050
|
||||
//endsWith(const T & t) const
|
||||
bool c_QList_T_QObject_T___endsWith_QObject(void *thisObj,void* t_){auto t = reinterpret_cast<QObject *>(t_);return
|
||||
//tag=1010
|
||||
fromPtr<QObject *>(thisObj)->endsWith(t);}
|
||||
|
||||
//tag=1050
|
||||
//first()
|
||||
void* c_QList_T_QObject_T___first(void *thisObj){return
|
||||
//tag=1010
|
||||
fromPtr<QObject *>(thisObj)->first();}
|
||||
|
||||
//tag=1050
|
||||
//front()
|
||||
void* c_QList_T_QObject_T___front(void *thisObj){return
|
||||
//tag=1010
|
||||
fromPtr<QObject *>(thisObj)->front();}
|
||||
|
||||
//tag=1050
|
||||
//indexOf(const T & t, int from) const
|
||||
int c_QList_T_QObject_T___indexOf_QObject_int(void *thisObj,void* t_,int from){auto t = reinterpret_cast<QObject *>(t_);return
|
||||
//tag=1010
|
||||
fromPtr<QObject *>(thisObj)->indexOf(t,from);}
|
||||
|
||||
//tag=1050
|
||||
//insert(int i, const T & t)
|
||||
void c_QList_T_QObject_T___insert_int_QObject(void *thisObj,int i,void* t_){auto t = reinterpret_cast<QObject *>(t_);
|
||||
//tag=1010
|
||||
fromPtr<QObject *>(thisObj)->insert(i,t);}
|
||||
|
||||
//tag=1050
|
||||
//isDetached() const
|
||||
bool c_QList_T_QObject_T___isDetached(void *thisObj){return
|
||||
//tag=1010
|
||||
fromPtr<QObject *>(thisObj)->isDetached();}
|
||||
|
||||
//tag=1050
|
||||
//isEmpty() const
|
||||
bool c_QList_T_QObject_T___isEmpty(void *thisObj){return
|
||||
//tag=1010
|
||||
fromPtr<QObject *>(thisObj)->isEmpty();}
|
||||
|
||||
//tag=1050
|
||||
//isSharedWith(const QList<T > & other) const
|
||||
bool c_QList_T_QObject_T___isSharedWith_QList_T(void *thisObj,void* other_){auto &other = *reinterpret_cast<QList<QObject *> *>(other_);return
|
||||
//tag=1010
|
||||
fromPtr<QObject *>(thisObj)->isSharedWith(other);}
|
||||
|
||||
//tag=1050
|
||||
//last()
|
||||
void* c_QList_T_QObject_T___last(void *thisObj){return
|
||||
//tag=1010
|
||||
fromPtr<QObject *>(thisObj)->last();}
|
||||
|
||||
//tag=1050
|
||||
//lastIndexOf(const T & t, int from) const
|
||||
int c_QList_T_QObject_T___lastIndexOf_QObject_int(void *thisObj,void* t_,int from){auto t = reinterpret_cast<QObject *>(t_);return
|
||||
//tag=1010
|
||||
fromPtr<QObject *>(thisObj)->lastIndexOf(t,from);}
|
||||
|
||||
//tag=1050
|
||||
//length() const
|
||||
int c_QList_T_QObject_T___length(void *thisObj){return
|
||||
//tag=1010
|
||||
fromPtr<QObject *>(thisObj)->length();}
|
||||
|
||||
//tag=1050
|
||||
//mid(int pos, int length) const
|
||||
void* c_QList_T_QObject_T___mid_int_int(void *thisObj,int pos,int length){return
|
||||
//tag=1010
|
||||
|
||||
//tag=1072
|
||||
new Dartagnan::ValueWrapper<QList<QObject *>>{fromPtr<QObject *>(thisObj)->mid(pos,length)};}
|
||||
|
||||
//tag=1050
|
||||
//move(int from, int to)
|
||||
void c_QList_T_QObject_T___move_int_int(void *thisObj,int from,int to){
|
||||
//tag=1010
|
||||
fromPtr<QObject *>(thisObj)->move(from,to);}
|
||||
|
||||
//tag=1050
|
||||
//pop_back()
|
||||
void c_QList_T_QObject_T___pop_back(void *thisObj){
|
||||
//tag=1010
|
||||
fromPtr<QObject *>(thisObj)->pop_back();}
|
||||
|
||||
//tag=1050
|
||||
//pop_front()
|
||||
void c_QList_T_QObject_T___pop_front(void *thisObj){
|
||||
//tag=1010
|
||||
fromPtr<QObject *>(thisObj)->pop_front();}
|
||||
|
||||
//tag=1050
|
||||
//prepend(const T & t)
|
||||
void c_QList_T_QObject_T___prepend_QObject(void *thisObj,void* t_){auto t = reinterpret_cast<QObject *>(t_);
|
||||
//tag=1010
|
||||
fromPtr<QObject *>(thisObj)->prepend(t);}
|
||||
|
||||
//tag=1050
|
||||
//push_back(const T & t)
|
||||
void c_QList_T_QObject_T___push_back_QObject(void *thisObj,void* t_){auto t = reinterpret_cast<QObject *>(t_);
|
||||
//tag=1010
|
||||
fromPtr<QObject *>(thisObj)->push_back(t);}
|
||||
|
||||
//tag=1050
|
||||
//push_front(const T & t)
|
||||
void c_QList_T_QObject_T___push_front_QObject(void *thisObj,void* t_){auto t = reinterpret_cast<QObject *>(t_);
|
||||
//tag=1010
|
||||
fromPtr<QObject *>(thisObj)->push_front(t);}
|
||||
|
||||
//tag=1050
|
||||
//removeAll(const T & t)
|
||||
int c_QList_T_QObject_T___removeAll_QObject(void *thisObj,void* t_){auto t = reinterpret_cast<QObject *>(t_);return
|
||||
//tag=1010
|
||||
fromPtr<QObject *>(thisObj)->removeAll(t);}
|
||||
|
||||
//tag=1050
|
||||
//removeAt(int i)
|
||||
void c_QList_T_QObject_T___removeAt_int(void *thisObj,int i){
|
||||
//tag=1010
|
||||
fromPtr<QObject *>(thisObj)->removeAt(i);}
|
||||
|
||||
//tag=1050
|
||||
//removeFirst()
|
||||
void c_QList_T_QObject_T___removeFirst(void *thisObj){
|
||||
//tag=1010
|
||||
fromPtr<QObject *>(thisObj)->removeFirst();}
|
||||
|
||||
//tag=1050
|
||||
//removeLast()
|
||||
void c_QList_T_QObject_T___removeLast(void *thisObj){
|
||||
//tag=1010
|
||||
fromPtr<QObject *>(thisObj)->removeLast();}
|
||||
|
||||
//tag=1050
|
||||
//removeOne(const T & t)
|
||||
bool c_QList_T_QObject_T___removeOne_QObject(void *thisObj,void* t_){auto t = reinterpret_cast<QObject *>(t_);return
|
||||
//tag=1010
|
||||
fromPtr<QObject *>(thisObj)->removeOne(t);}
|
||||
|
||||
//tag=1050
|
||||
//replace(int i, const T & t)
|
||||
void c_QList_T_QObject_T___replace_int_QObject(void *thisObj,int i,void* t_){auto t = reinterpret_cast<QObject *>(t_);
|
||||
//tag=1010
|
||||
fromPtr<QObject *>(thisObj)->replace(i,t);}
|
||||
|
||||
//tag=1050
|
||||
//reserve(int size)
|
||||
void c_QList_T_QObject_T___reserve_int(void *thisObj,int size){
|
||||
//tag=1010
|
||||
fromPtr<QObject *>(thisObj)->reserve(size);}
|
||||
|
||||
//tag=1050
|
||||
//setSharable(bool sharable)
|
||||
void c_QList_T_QObject_T___setSharable_bool(void *thisObj,bool sharable){
|
||||
//tag=1010
|
||||
fromPtr<QObject *>(thisObj)->setSharable(sharable);}
|
||||
|
||||
//tag=1050
|
||||
//size() const
|
||||
int c_QList_T_QObject_T___size(void *thisObj){return
|
||||
//tag=1010
|
||||
fromPtr<QObject *>(thisObj)->size();}
|
||||
|
||||
//tag=1050
|
||||
//startsWith(const T & t) const
|
||||
bool c_QList_T_QObject_T___startsWith_QObject(void *thisObj,void* t_){auto t = reinterpret_cast<QObject *>(t_);return
|
||||
//tag=1010
|
||||
fromPtr<QObject *>(thisObj)->startsWith(t);}
|
||||
|
||||
//tag=1050
|
||||
//swapItemsAt(int i, int j)
|
||||
void c_QList_T_QObject_T___swapItemsAt_int_int(void *thisObj,int i,int j){
|
||||
//tag=1010
|
||||
fromPtr<QObject *>(thisObj)->swapItemsAt(i,j);}
|
||||
|
||||
//tag=1050
|
||||
//takeAt(int i)
|
||||
void* c_QList_T_QObject_T___takeAt_int(void *thisObj,int i){return
|
||||
//tag=1010
|
||||
fromPtr<QObject *>(thisObj)->takeAt(i);}
|
||||
|
||||
//tag=1050
|
||||
//takeFirst()
|
||||
void* c_QList_T_QObject_T___takeFirst(void *thisObj){return
|
||||
//tag=1010
|
||||
fromPtr<QObject *>(thisObj)->takeFirst();}
|
||||
|
||||
//tag=1050
|
||||
//takeLast()
|
||||
void* c_QList_T_QObject_T___takeLast(void *thisObj){return
|
||||
//tag=1010
|
||||
fromPtr<QObject *>(thisObj)->takeLast();}
|
||||
|
||||
//tag=1050
|
||||
//value(int i) const
|
||||
void* c_QList_T_QObject_T___value_int(void *thisObj,int i){return
|
||||
//tag=1010
|
||||
fromPtr<QObject *>(thisObj)->value(i);}
|
||||
|
||||
//tag=1050
|
||||
//value(int i, const T & defaultValue) const
|
||||
void* c_QList_T_QObject_T___value_int_QObject(void *thisObj,int i,void* defaultValue_){auto defaultValue = reinterpret_cast<QObject *>(defaultValue_);return
|
||||
//tag=1010
|
||||
fromPtr<QObject *>(thisObj)->value(i,defaultValue);}
|
||||
void c_QList_T_QObject_T___destructor(void *thisObj)
|
||||
{
|
||||
|
||||
//tag=1055
|
||||
delete fromPtr<QObject *>(thisObj);}
|
||||
}
|
||||
extern "C" {
|
||||
|
||||
//tag=1049
|
||||
void c_QList_T_QByteArray_T__Finalizer(void *, void *cppObj, void *){delete reinterpret_cast<KDDockWidgetsBindings_wrappersNS::QList_wrapper<QByteArray> *>(cppObj);}void * c_QList_T_QByteArray_T___constructor()
|
||||
{
|
||||
|
||||
//tag=1056
|
||||
auto ptr = new KDDockWidgetsBindings_wrappersNS::QList_wrapper<QByteArray>();return reinterpret_cast<void*>(ptr);}
|
||||
|
||||
//tag=1050
|
||||
//append(const QList<T > & t)
|
||||
void c_QList_T_QByteArray_T___append_QList_T(void *thisObj,void* t_){auto &t = *reinterpret_cast<QList<QByteArray> *>(t_);
|
||||
//tag=1010
|
||||
fromPtr<QByteArray>(thisObj)->append(t);}
|
||||
|
||||
//tag=1050
|
||||
//append(const T & t)
|
||||
void c_QList_T_QByteArray_T___append_QByteArray(void *thisObj,void* t_){auto &t = *reinterpret_cast<QByteArray *>(t_);
|
||||
//tag=1010
|
||||
fromPtr<QByteArray>(thisObj)->append(t);}
|
||||
|
||||
//tag=1050
|
||||
//at(int i) const
|
||||
const void* c_QList_T_QByteArray_T___at_int(void *thisObj,int i){return
|
||||
//tag=1010
|
||||
|
||||
//tag=1072
|
||||
new Dartagnan::ValueWrapper<QByteArray>{fromPtr<QByteArray>(thisObj)->at(i)};}
|
||||
|
||||
//tag=1050
|
||||
//back()
|
||||
void* c_QList_T_QByteArray_T___back(void *thisObj){return
|
||||
//tag=1010
|
||||
|
||||
//tag=1072
|
||||
new Dartagnan::ValueWrapper<QByteArray>{fromPtr<QByteArray>(thisObj)->back()};}
|
||||
|
||||
//tag=1050
|
||||
//clear()
|
||||
void c_QList_T_QByteArray_T___clear(void *thisObj){
|
||||
//tag=1010
|
||||
fromPtr<QByteArray>(thisObj)->clear();}
|
||||
|
||||
//tag=1050
|
||||
//constFirst() const
|
||||
const void* c_QList_T_QByteArray_T___constFirst(void *thisObj){return
|
||||
//tag=1010
|
||||
|
||||
//tag=1072
|
||||
new Dartagnan::ValueWrapper<QByteArray>{fromPtr<QByteArray>(thisObj)->constFirst()};}
|
||||
|
||||
//tag=1050
|
||||
//constLast() const
|
||||
const void* c_QList_T_QByteArray_T___constLast(void *thisObj){return
|
||||
//tag=1010
|
||||
|
||||
//tag=1072
|
||||
new Dartagnan::ValueWrapper<QByteArray>{fromPtr<QByteArray>(thisObj)->constLast()};}
|
||||
|
||||
//tag=1050
|
||||
//contains(const T & t) const
|
||||
bool c_QList_T_QByteArray_T___contains_QByteArray(void *thisObj,void* t_){auto &t = *reinterpret_cast<QByteArray *>(t_);return
|
||||
//tag=1010
|
||||
fromPtr<QByteArray>(thisObj)->contains(t);}
|
||||
|
||||
//tag=1050
|
||||
//count() const
|
||||
int c_QList_T_QByteArray_T___count(void *thisObj){return
|
||||
//tag=1010
|
||||
fromPtr<QByteArray>(thisObj)->count();}
|
||||
|
||||
//tag=1050
|
||||
//count(const T & t) const
|
||||
int c_QList_T_QByteArray_T___count_QByteArray(void *thisObj,void* t_){auto &t = *reinterpret_cast<QByteArray *>(t_);return
|
||||
//tag=1010
|
||||
fromPtr<QByteArray>(thisObj)->count(t);}
|
||||
|
||||
//tag=1050
|
||||
//detach()
|
||||
void c_QList_T_QByteArray_T___detach(void *thisObj){
|
||||
//tag=1010
|
||||
fromPtr<QByteArray>(thisObj)->detach();}
|
||||
|
||||
//tag=1050
|
||||
//detachShared()
|
||||
void c_QList_T_QByteArray_T___detachShared(void *thisObj){
|
||||
//tag=1010
|
||||
fromPtr<QByteArray>(thisObj)->detachShared();}
|
||||
|
||||
//tag=1050
|
||||
//empty() const
|
||||
bool c_QList_T_QByteArray_T___empty(void *thisObj){return
|
||||
//tag=1010
|
||||
fromPtr<QByteArray>(thisObj)->empty();}
|
||||
|
||||
//tag=1050
|
||||
//endsWith(const T & t) const
|
||||
bool c_QList_T_QByteArray_T___endsWith_QByteArray(void *thisObj,void* t_){auto &t = *reinterpret_cast<QByteArray *>(t_);return
|
||||
//tag=1010
|
||||
fromPtr<QByteArray>(thisObj)->endsWith(t);}
|
||||
|
||||
//tag=1050
|
||||
//first()
|
||||
void* c_QList_T_QByteArray_T___first(void *thisObj){return
|
||||
//tag=1010
|
||||
|
||||
//tag=1072
|
||||
new Dartagnan::ValueWrapper<QByteArray>{fromPtr<QByteArray>(thisObj)->first()};}
|
||||
|
||||
//tag=1050
|
||||
//front()
|
||||
void* c_QList_T_QByteArray_T___front(void *thisObj){return
|
||||
//tag=1010
|
||||
|
||||
//tag=1072
|
||||
new Dartagnan::ValueWrapper<QByteArray>{fromPtr<QByteArray>(thisObj)->front()};}
|
||||
|
||||
//tag=1050
|
||||
//indexOf(const T & t, int from) const
|
||||
int c_QList_T_QByteArray_T___indexOf_QByteArray_int(void *thisObj,void* t_,int from){auto &t = *reinterpret_cast<QByteArray *>(t_);return
|
||||
//tag=1010
|
||||
fromPtr<QByteArray>(thisObj)->indexOf(t,from);}
|
||||
|
||||
//tag=1050
|
||||
//insert(int i, const T & t)
|
||||
void c_QList_T_QByteArray_T___insert_int_QByteArray(void *thisObj,int i,void* t_){auto &t = *reinterpret_cast<QByteArray *>(t_);
|
||||
//tag=1010
|
||||
fromPtr<QByteArray>(thisObj)->insert(i,t);}
|
||||
|
||||
//tag=1050
|
||||
//isDetached() const
|
||||
bool c_QList_T_QByteArray_T___isDetached(void *thisObj){return
|
||||
//tag=1010
|
||||
fromPtr<QByteArray>(thisObj)->isDetached();}
|
||||
|
||||
//tag=1050
|
||||
//isEmpty() const
|
||||
bool c_QList_T_QByteArray_T___isEmpty(void *thisObj){return
|
||||
//tag=1010
|
||||
fromPtr<QByteArray>(thisObj)->isEmpty();}
|
||||
|
||||
//tag=1050
|
||||
//isSharedWith(const QList<T > & other) const
|
||||
bool c_QList_T_QByteArray_T___isSharedWith_QList_T(void *thisObj,void* other_){auto &other = *reinterpret_cast<QList<QByteArray> *>(other_);return
|
||||
//tag=1010
|
||||
fromPtr<QByteArray>(thisObj)->isSharedWith(other);}
|
||||
|
||||
//tag=1050
|
||||
//last()
|
||||
void* c_QList_T_QByteArray_T___last(void *thisObj){return
|
||||
//tag=1010
|
||||
|
||||
//tag=1072
|
||||
new Dartagnan::ValueWrapper<QByteArray>{fromPtr<QByteArray>(thisObj)->last()};}
|
||||
|
||||
//tag=1050
|
||||
//lastIndexOf(const T & t, int from) const
|
||||
int c_QList_T_QByteArray_T___lastIndexOf_QByteArray_int(void *thisObj,void* t_,int from){auto &t = *reinterpret_cast<QByteArray *>(t_);return
|
||||
//tag=1010
|
||||
fromPtr<QByteArray>(thisObj)->lastIndexOf(t,from);}
|
||||
|
||||
//tag=1050
|
||||
//length() const
|
||||
int c_QList_T_QByteArray_T___length(void *thisObj){return
|
||||
//tag=1010
|
||||
fromPtr<QByteArray>(thisObj)->length();}
|
||||
|
||||
//tag=1050
|
||||
//mid(int pos, int length) const
|
||||
void* c_QList_T_QByteArray_T___mid_int_int(void *thisObj,int pos,int length){return
|
||||
//tag=1010
|
||||
|
||||
//tag=1072
|
||||
new Dartagnan::ValueWrapper<QList<QByteArray>>{fromPtr<QByteArray>(thisObj)->mid(pos,length)};}
|
||||
|
||||
//tag=1050
|
||||
//move(int from, int to)
|
||||
void c_QList_T_QByteArray_T___move_int_int(void *thisObj,int from,int to){
|
||||
//tag=1010
|
||||
fromPtr<QByteArray>(thisObj)->move(from,to);}
|
||||
|
||||
//tag=1050
|
||||
//pop_back()
|
||||
void c_QList_T_QByteArray_T___pop_back(void *thisObj){
|
||||
//tag=1010
|
||||
fromPtr<QByteArray>(thisObj)->pop_back();}
|
||||
|
||||
//tag=1050
|
||||
//pop_front()
|
||||
void c_QList_T_QByteArray_T___pop_front(void *thisObj){
|
||||
//tag=1010
|
||||
fromPtr<QByteArray>(thisObj)->pop_front();}
|
||||
|
||||
//tag=1050
|
||||
//prepend(const T & t)
|
||||
void c_QList_T_QByteArray_T___prepend_QByteArray(void *thisObj,void* t_){auto &t = *reinterpret_cast<QByteArray *>(t_);
|
||||
//tag=1010
|
||||
fromPtr<QByteArray>(thisObj)->prepend(t);}
|
||||
|
||||
//tag=1050
|
||||
//push_back(const T & t)
|
||||
void c_QList_T_QByteArray_T___push_back_QByteArray(void *thisObj,void* t_){auto &t = *reinterpret_cast<QByteArray *>(t_);
|
||||
//tag=1010
|
||||
fromPtr<QByteArray>(thisObj)->push_back(t);}
|
||||
|
||||
//tag=1050
|
||||
//push_front(const T & t)
|
||||
void c_QList_T_QByteArray_T___push_front_QByteArray(void *thisObj,void* t_){auto &t = *reinterpret_cast<QByteArray *>(t_);
|
||||
//tag=1010
|
||||
fromPtr<QByteArray>(thisObj)->push_front(t);}
|
||||
|
||||
//tag=1050
|
||||
//removeAll(const T & t)
|
||||
int c_QList_T_QByteArray_T___removeAll_QByteArray(void *thisObj,void* t_){auto &t = *reinterpret_cast<QByteArray *>(t_);return
|
||||
//tag=1010
|
||||
fromPtr<QByteArray>(thisObj)->removeAll(t);}
|
||||
|
||||
//tag=1050
|
||||
//removeAt(int i)
|
||||
void c_QList_T_QByteArray_T___removeAt_int(void *thisObj,int i){
|
||||
//tag=1010
|
||||
fromPtr<QByteArray>(thisObj)->removeAt(i);}
|
||||
|
||||
//tag=1050
|
||||
//removeFirst()
|
||||
void c_QList_T_QByteArray_T___removeFirst(void *thisObj){
|
||||
//tag=1010
|
||||
fromPtr<QByteArray>(thisObj)->removeFirst();}
|
||||
|
||||
//tag=1050
|
||||
//removeLast()
|
||||
void c_QList_T_QByteArray_T___removeLast(void *thisObj){
|
||||
//tag=1010
|
||||
fromPtr<QByteArray>(thisObj)->removeLast();}
|
||||
|
||||
//tag=1050
|
||||
//removeOne(const T & t)
|
||||
bool c_QList_T_QByteArray_T___removeOne_QByteArray(void *thisObj,void* t_){auto &t = *reinterpret_cast<QByteArray *>(t_);return
|
||||
//tag=1010
|
||||
fromPtr<QByteArray>(thisObj)->removeOne(t);}
|
||||
|
||||
//tag=1050
|
||||
//replace(int i, const T & t)
|
||||
void c_QList_T_QByteArray_T___replace_int_QByteArray(void *thisObj,int i,void* t_){auto &t = *reinterpret_cast<QByteArray *>(t_);
|
||||
//tag=1010
|
||||
fromPtr<QByteArray>(thisObj)->replace(i,t);}
|
||||
|
||||
//tag=1050
|
||||
//reserve(int size)
|
||||
void c_QList_T_QByteArray_T___reserve_int(void *thisObj,int size){
|
||||
//tag=1010
|
||||
fromPtr<QByteArray>(thisObj)->reserve(size);}
|
||||
|
||||
//tag=1050
|
||||
//setSharable(bool sharable)
|
||||
void c_QList_T_QByteArray_T___setSharable_bool(void *thisObj,bool sharable){
|
||||
//tag=1010
|
||||
fromPtr<QByteArray>(thisObj)->setSharable(sharable);}
|
||||
|
||||
//tag=1050
|
||||
//size() const
|
||||
int c_QList_T_QByteArray_T___size(void *thisObj){return
|
||||
//tag=1010
|
||||
fromPtr<QByteArray>(thisObj)->size();}
|
||||
|
||||
//tag=1050
|
||||
//startsWith(const T & t) const
|
||||
bool c_QList_T_QByteArray_T___startsWith_QByteArray(void *thisObj,void* t_){auto &t = *reinterpret_cast<QByteArray *>(t_);return
|
||||
//tag=1010
|
||||
fromPtr<QByteArray>(thisObj)->startsWith(t);}
|
||||
|
||||
//tag=1050
|
||||
//swapItemsAt(int i, int j)
|
||||
void c_QList_T_QByteArray_T___swapItemsAt_int_int(void *thisObj,int i,int j){
|
||||
//tag=1010
|
||||
fromPtr<QByteArray>(thisObj)->swapItemsAt(i,j);}
|
||||
|
||||
//tag=1050
|
||||
//takeAt(int i)
|
||||
void* c_QList_T_QByteArray_T___takeAt_int(void *thisObj,int i){return
|
||||
//tag=1010
|
||||
|
||||
//tag=1072
|
||||
new Dartagnan::ValueWrapper<QByteArray>{fromPtr<QByteArray>(thisObj)->takeAt(i)};}
|
||||
|
||||
//tag=1050
|
||||
//takeFirst()
|
||||
void* c_QList_T_QByteArray_T___takeFirst(void *thisObj){return
|
||||
//tag=1010
|
||||
|
||||
//tag=1072
|
||||
new Dartagnan::ValueWrapper<QByteArray>{fromPtr<QByteArray>(thisObj)->takeFirst()};}
|
||||
|
||||
//tag=1050
|
||||
//takeLast()
|
||||
void* c_QList_T_QByteArray_T___takeLast(void *thisObj){return
|
||||
//tag=1010
|
||||
|
||||
//tag=1072
|
||||
new Dartagnan::ValueWrapper<QByteArray>{fromPtr<QByteArray>(thisObj)->takeLast()};}
|
||||
|
||||
//tag=1050
|
||||
//value(int i) const
|
||||
void* c_QList_T_QByteArray_T___value_int(void *thisObj,int i){return
|
||||
//tag=1010
|
||||
|
||||
//tag=1072
|
||||
new Dartagnan::ValueWrapper<QByteArray>{fromPtr<QByteArray>(thisObj)->value(i)};}
|
||||
|
||||
//tag=1050
|
||||
//value(int i, const T & defaultValue) const
|
||||
void* c_QList_T_QByteArray_T___value_int_QByteArray(void *thisObj,int i,void* defaultValue_){auto &defaultValue = *reinterpret_cast<QByteArray *>(defaultValue_);return
|
||||
//tag=1010
|
||||
|
||||
//tag=1072
|
||||
new Dartagnan::ValueWrapper<QByteArray>{fromPtr<QByteArray>(thisObj)->value(i,defaultValue)};}
|
||||
void c_QList_T_QByteArray_T___destructor(void *thisObj)
|
||||
{
|
||||
|
||||
//tag=1055
|
||||
delete fromPtr<QByteArray>(thisObj);}
|
||||
}
|
||||
@@ -0,0 +1,518 @@
|
||||
/*
|
||||
This file is part of KDDockWidgets.
|
||||
|
||||
SPDX-FileCopyrightText: 2019-2022 Klarälvdalens Datakonsult AB, a KDAB Group company <info@kdab.com>
|
||||
Author: Sérgio Martins <sergio.martins@kdab.com>
|
||||
|
||||
SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only
|
||||
|
||||
Contact KDAB at <info@kdab.com> for commercial licensing options.
|
||||
*/
|
||||
|
||||
//tag=1040
|
||||
#include "KDDockWidgetsBindings_exports.h"
|
||||
#include <qlist.h>
|
||||
#include <qobject.h>
|
||||
#include <qstring.h>
|
||||
#include <qbytearray.h>
|
||||
|
||||
namespace KDDockWidgetsBindings_wrappersNS {
|
||||
//tag=1043
|
||||
template <typename T>class QList_wrapper : public ::QList<T> {public:
|
||||
~QList_wrapper();
|
||||
//tag=1041
|
||||
QList_wrapper();
|
||||
//tag=1041
|
||||
void append(const QList<T > & t);
|
||||
//tag=1041
|
||||
void append(const T & t);
|
||||
//tag=1041
|
||||
const T & at(int i)const;
|
||||
//tag=1041
|
||||
T & back();
|
||||
//tag=1041
|
||||
void clear();
|
||||
//tag=1041
|
||||
const T & constFirst()const;
|
||||
//tag=1041
|
||||
const T & constLast()const;
|
||||
//tag=1041
|
||||
bool contains(const T & t)const;
|
||||
//tag=1041
|
||||
int count()const;
|
||||
//tag=1041
|
||||
int count(const T & t)const;
|
||||
//tag=1041
|
||||
void detach();
|
||||
//tag=1041
|
||||
void detachShared();
|
||||
//tag=1041
|
||||
bool empty()const;
|
||||
//tag=1041
|
||||
bool endsWith(const T & t)const;
|
||||
//tag=1041
|
||||
T & first();
|
||||
//tag=1041
|
||||
T & front();
|
||||
//tag=1041
|
||||
int indexOf(const T & t,int from = 0)const;
|
||||
//tag=1041
|
||||
void insert(int i,const T & t);
|
||||
//tag=1041
|
||||
bool isDetached()const;
|
||||
//tag=1041
|
||||
bool isEmpty()const;
|
||||
//tag=1041
|
||||
bool isSharedWith(const QList<T > & other)const;
|
||||
//tag=1041
|
||||
T & last();
|
||||
//tag=1041
|
||||
int lastIndexOf(const T & t,int from = -1)const;
|
||||
//tag=1041
|
||||
int length()const;
|
||||
//tag=1041
|
||||
QList<T > mid(int pos,int length = -1)const;
|
||||
//tag=1041
|
||||
void move(int from,int to);
|
||||
//tag=1041
|
||||
void pop_back();
|
||||
//tag=1041
|
||||
void pop_front();
|
||||
//tag=1041
|
||||
void prepend(const T & t);
|
||||
//tag=1041
|
||||
void push_back(const T & t);
|
||||
//tag=1041
|
||||
void push_front(const T & t);
|
||||
//tag=1041
|
||||
int removeAll(const T & t);
|
||||
//tag=1041
|
||||
void removeAt(int i);
|
||||
//tag=1041
|
||||
void removeFirst();
|
||||
//tag=1041
|
||||
void removeLast();
|
||||
//tag=1041
|
||||
bool removeOne(const T & t);
|
||||
//tag=1041
|
||||
void replace(int i,const T & t);
|
||||
//tag=1041
|
||||
void reserve(int size);
|
||||
//tag=1041
|
||||
void setSharable(bool sharable);
|
||||
//tag=1041
|
||||
int size()const;
|
||||
//tag=1041
|
||||
bool startsWith(const T & t)const;
|
||||
//tag=1041
|
||||
void swapItemsAt(int i,int j);
|
||||
//tag=1041
|
||||
T takeAt(int i);
|
||||
//tag=1041
|
||||
T takeFirst();
|
||||
//tag=1041
|
||||
T takeLast();
|
||||
//tag=1041
|
||||
T value(int i)const;
|
||||
//tag=1041
|
||||
T value(int i,const T & defaultValue)const;
|
||||
|
||||
};
|
||||
}extern "C" {
|
||||
|
||||
//tag=1067
|
||||
// QList::QList<T>()
|
||||
KDDockWidgetsBindings_EXPORT void * c_QList_T_QObject_T___constructor();
|
||||
|
||||
//tag=1067
|
||||
// QList::append(const QList<T > & t)
|
||||
KDDockWidgetsBindings_EXPORT void c_QList_T_QObject_T___append_QList_T(void *thisObj,void* t_);
|
||||
|
||||
//tag=1067
|
||||
// QList::append(const T & t)
|
||||
KDDockWidgetsBindings_EXPORT void c_QList_T_QObject_T___append_QObject(void *thisObj,void* t_);
|
||||
|
||||
//tag=1067
|
||||
// QList::at(int i) const
|
||||
KDDockWidgetsBindings_EXPORT const void* c_QList_T_QObject_T___at_int(void *thisObj,int i);
|
||||
|
||||
//tag=1067
|
||||
// QList::back()
|
||||
KDDockWidgetsBindings_EXPORT void* c_QList_T_QObject_T___back(void *thisObj);
|
||||
|
||||
//tag=1067
|
||||
// QList::clear()
|
||||
KDDockWidgetsBindings_EXPORT void c_QList_T_QObject_T___clear(void *thisObj);
|
||||
|
||||
//tag=1067
|
||||
// QList::constFirst() const
|
||||
KDDockWidgetsBindings_EXPORT const void* c_QList_T_QObject_T___constFirst(void *thisObj);
|
||||
|
||||
//tag=1067
|
||||
// QList::constLast() const
|
||||
KDDockWidgetsBindings_EXPORT const void* c_QList_T_QObject_T___constLast(void *thisObj);
|
||||
|
||||
//tag=1067
|
||||
// QList::contains(const T & t) const
|
||||
KDDockWidgetsBindings_EXPORT bool c_QList_T_QObject_T___contains_QObject(void *thisObj,void* t_);
|
||||
|
||||
//tag=1067
|
||||
// QList::count() const
|
||||
KDDockWidgetsBindings_EXPORT int c_QList_T_QObject_T___count(void *thisObj);
|
||||
|
||||
//tag=1067
|
||||
// QList::count(const T & t) const
|
||||
KDDockWidgetsBindings_EXPORT int c_QList_T_QObject_T___count_QObject(void *thisObj,void* t_);
|
||||
|
||||
//tag=1067
|
||||
// QList::detach()
|
||||
KDDockWidgetsBindings_EXPORT void c_QList_T_QObject_T___detach(void *thisObj);
|
||||
|
||||
//tag=1067
|
||||
// QList::detachShared()
|
||||
KDDockWidgetsBindings_EXPORT void c_QList_T_QObject_T___detachShared(void *thisObj);
|
||||
|
||||
//tag=1067
|
||||
// QList::empty() const
|
||||
KDDockWidgetsBindings_EXPORT bool c_QList_T_QObject_T___empty(void *thisObj);
|
||||
|
||||
//tag=1067
|
||||
// QList::endsWith(const T & t) const
|
||||
KDDockWidgetsBindings_EXPORT bool c_QList_T_QObject_T___endsWith_QObject(void *thisObj,void* t_);
|
||||
|
||||
//tag=1067
|
||||
// QList::first()
|
||||
KDDockWidgetsBindings_EXPORT void* c_QList_T_QObject_T___first(void *thisObj);
|
||||
|
||||
//tag=1067
|
||||
// QList::front()
|
||||
KDDockWidgetsBindings_EXPORT void* c_QList_T_QObject_T___front(void *thisObj);
|
||||
|
||||
//tag=1067
|
||||
// QList::indexOf(const T & t, int from) const
|
||||
KDDockWidgetsBindings_EXPORT int c_QList_T_QObject_T___indexOf_QObject_int(void *thisObj,void* t_,int from);
|
||||
|
||||
//tag=1067
|
||||
// QList::insert(int i, const T & t)
|
||||
KDDockWidgetsBindings_EXPORT void c_QList_T_QObject_T___insert_int_QObject(void *thisObj,int i,void* t_);
|
||||
|
||||
//tag=1067
|
||||
// QList::isDetached() const
|
||||
KDDockWidgetsBindings_EXPORT bool c_QList_T_QObject_T___isDetached(void *thisObj);
|
||||
|
||||
//tag=1067
|
||||
// QList::isEmpty() const
|
||||
KDDockWidgetsBindings_EXPORT bool c_QList_T_QObject_T___isEmpty(void *thisObj);
|
||||
|
||||
//tag=1067
|
||||
// QList::isSharedWith(const QList<T > & other) const
|
||||
KDDockWidgetsBindings_EXPORT bool c_QList_T_QObject_T___isSharedWith_QList_T(void *thisObj,void* other_);
|
||||
|
||||
//tag=1067
|
||||
// QList::last()
|
||||
KDDockWidgetsBindings_EXPORT void* c_QList_T_QObject_T___last(void *thisObj);
|
||||
|
||||
//tag=1067
|
||||
// QList::lastIndexOf(const T & t, int from) const
|
||||
KDDockWidgetsBindings_EXPORT int c_QList_T_QObject_T___lastIndexOf_QObject_int(void *thisObj,void* t_,int from);
|
||||
|
||||
//tag=1067
|
||||
// QList::length() const
|
||||
KDDockWidgetsBindings_EXPORT int c_QList_T_QObject_T___length(void *thisObj);
|
||||
|
||||
//tag=1067
|
||||
// QList::mid(int pos, int length) const
|
||||
KDDockWidgetsBindings_EXPORT void* c_QList_T_QObject_T___mid_int_int(void *thisObj,int pos,int length);
|
||||
|
||||
//tag=1067
|
||||
// QList::move(int from, int to)
|
||||
KDDockWidgetsBindings_EXPORT void c_QList_T_QObject_T___move_int_int(void *thisObj,int from,int to);
|
||||
|
||||
//tag=1067
|
||||
// QList::pop_back()
|
||||
KDDockWidgetsBindings_EXPORT void c_QList_T_QObject_T___pop_back(void *thisObj);
|
||||
|
||||
//tag=1067
|
||||
// QList::pop_front()
|
||||
KDDockWidgetsBindings_EXPORT void c_QList_T_QObject_T___pop_front(void *thisObj);
|
||||
|
||||
//tag=1067
|
||||
// QList::prepend(const T & t)
|
||||
KDDockWidgetsBindings_EXPORT void c_QList_T_QObject_T___prepend_QObject(void *thisObj,void* t_);
|
||||
|
||||
//tag=1067
|
||||
// QList::push_back(const T & t)
|
||||
KDDockWidgetsBindings_EXPORT void c_QList_T_QObject_T___push_back_QObject(void *thisObj,void* t_);
|
||||
|
||||
//tag=1067
|
||||
// QList::push_front(const T & t)
|
||||
KDDockWidgetsBindings_EXPORT void c_QList_T_QObject_T___push_front_QObject(void *thisObj,void* t_);
|
||||
|
||||
//tag=1067
|
||||
// QList::removeAll(const T & t)
|
||||
KDDockWidgetsBindings_EXPORT int c_QList_T_QObject_T___removeAll_QObject(void *thisObj,void* t_);
|
||||
|
||||
//tag=1067
|
||||
// QList::removeAt(int i)
|
||||
KDDockWidgetsBindings_EXPORT void c_QList_T_QObject_T___removeAt_int(void *thisObj,int i);
|
||||
|
||||
//tag=1067
|
||||
// QList::removeFirst()
|
||||
KDDockWidgetsBindings_EXPORT void c_QList_T_QObject_T___removeFirst(void *thisObj);
|
||||
|
||||
//tag=1067
|
||||
// QList::removeLast()
|
||||
KDDockWidgetsBindings_EXPORT void c_QList_T_QObject_T___removeLast(void *thisObj);
|
||||
|
||||
//tag=1067
|
||||
// QList::removeOne(const T & t)
|
||||
KDDockWidgetsBindings_EXPORT bool c_QList_T_QObject_T___removeOne_QObject(void *thisObj,void* t_);
|
||||
|
||||
//tag=1067
|
||||
// QList::replace(int i, const T & t)
|
||||
KDDockWidgetsBindings_EXPORT void c_QList_T_QObject_T___replace_int_QObject(void *thisObj,int i,void* t_);
|
||||
|
||||
//tag=1067
|
||||
// QList::reserve(int size)
|
||||
KDDockWidgetsBindings_EXPORT void c_QList_T_QObject_T___reserve_int(void *thisObj,int size);
|
||||
|
||||
//tag=1067
|
||||
// QList::setSharable(bool sharable)
|
||||
KDDockWidgetsBindings_EXPORT void c_QList_T_QObject_T___setSharable_bool(void *thisObj,bool sharable);
|
||||
|
||||
//tag=1067
|
||||
// QList::size() const
|
||||
KDDockWidgetsBindings_EXPORT int c_QList_T_QObject_T___size(void *thisObj);
|
||||
|
||||
//tag=1067
|
||||
// QList::startsWith(const T & t) const
|
||||
KDDockWidgetsBindings_EXPORT bool c_QList_T_QObject_T___startsWith_QObject(void *thisObj,void* t_);
|
||||
|
||||
//tag=1067
|
||||
// QList::swapItemsAt(int i, int j)
|
||||
KDDockWidgetsBindings_EXPORT void c_QList_T_QObject_T___swapItemsAt_int_int(void *thisObj,int i,int j);
|
||||
|
||||
//tag=1067
|
||||
// QList::takeAt(int i)
|
||||
KDDockWidgetsBindings_EXPORT void* c_QList_T_QObject_T___takeAt_int(void *thisObj,int i);
|
||||
|
||||
//tag=1067
|
||||
// QList::takeFirst()
|
||||
KDDockWidgetsBindings_EXPORT void* c_QList_T_QObject_T___takeFirst(void *thisObj);
|
||||
|
||||
//tag=1067
|
||||
// QList::takeLast()
|
||||
KDDockWidgetsBindings_EXPORT void* c_QList_T_QObject_T___takeLast(void *thisObj);
|
||||
|
||||
//tag=1067
|
||||
// QList::value(int i) const
|
||||
KDDockWidgetsBindings_EXPORT void* c_QList_T_QObject_T___value_int(void *thisObj,int i);
|
||||
|
||||
//tag=1067
|
||||
// QList::value(int i, const T & defaultValue) const
|
||||
KDDockWidgetsBindings_EXPORT void* c_QList_T_QObject_T___value_int_QObject(void *thisObj,int i,void* defaultValue_);
|
||||
|
||||
//tag=1066
|
||||
KDDockWidgetsBindings_EXPORT void c_QList_T_QObject_T___destructor(void *thisObj);
|
||||
|
||||
//tag=1047
|
||||
KDDockWidgetsBindings_EXPORT void c_QList_T_QObject_T__Finalizer(void *, void *cppObj, void *);}
|
||||
extern "C" {
|
||||
|
||||
//tag=1067
|
||||
// QList::QList<T>()
|
||||
KDDockWidgetsBindings_EXPORT void * c_QList_T_QByteArray_T___constructor();
|
||||
|
||||
//tag=1067
|
||||
// QList::append(const QList<T > & t)
|
||||
KDDockWidgetsBindings_EXPORT void c_QList_T_QByteArray_T___append_QList_T(void *thisObj,void* t_);
|
||||
|
||||
//tag=1067
|
||||
// QList::append(const T & t)
|
||||
KDDockWidgetsBindings_EXPORT void c_QList_T_QByteArray_T___append_QByteArray(void *thisObj,void* t_);
|
||||
|
||||
//tag=1067
|
||||
// QList::at(int i) const
|
||||
KDDockWidgetsBindings_EXPORT const void* c_QList_T_QByteArray_T___at_int(void *thisObj,int i);
|
||||
|
||||
//tag=1067
|
||||
// QList::back()
|
||||
KDDockWidgetsBindings_EXPORT void* c_QList_T_QByteArray_T___back(void *thisObj);
|
||||
|
||||
//tag=1067
|
||||
// QList::clear()
|
||||
KDDockWidgetsBindings_EXPORT void c_QList_T_QByteArray_T___clear(void *thisObj);
|
||||
|
||||
//tag=1067
|
||||
// QList::constFirst() const
|
||||
KDDockWidgetsBindings_EXPORT const void* c_QList_T_QByteArray_T___constFirst(void *thisObj);
|
||||
|
||||
//tag=1067
|
||||
// QList::constLast() const
|
||||
KDDockWidgetsBindings_EXPORT const void* c_QList_T_QByteArray_T___constLast(void *thisObj);
|
||||
|
||||
//tag=1067
|
||||
// QList::contains(const T & t) const
|
||||
KDDockWidgetsBindings_EXPORT bool c_QList_T_QByteArray_T___contains_QByteArray(void *thisObj,void* t_);
|
||||
|
||||
//tag=1067
|
||||
// QList::count() const
|
||||
KDDockWidgetsBindings_EXPORT int c_QList_T_QByteArray_T___count(void *thisObj);
|
||||
|
||||
//tag=1067
|
||||
// QList::count(const T & t) const
|
||||
KDDockWidgetsBindings_EXPORT int c_QList_T_QByteArray_T___count_QByteArray(void *thisObj,void* t_);
|
||||
|
||||
//tag=1067
|
||||
// QList::detach()
|
||||
KDDockWidgetsBindings_EXPORT void c_QList_T_QByteArray_T___detach(void *thisObj);
|
||||
|
||||
//tag=1067
|
||||
// QList::detachShared()
|
||||
KDDockWidgetsBindings_EXPORT void c_QList_T_QByteArray_T___detachShared(void *thisObj);
|
||||
|
||||
//tag=1067
|
||||
// QList::empty() const
|
||||
KDDockWidgetsBindings_EXPORT bool c_QList_T_QByteArray_T___empty(void *thisObj);
|
||||
|
||||
//tag=1067
|
||||
// QList::endsWith(const T & t) const
|
||||
KDDockWidgetsBindings_EXPORT bool c_QList_T_QByteArray_T___endsWith_QByteArray(void *thisObj,void* t_);
|
||||
|
||||
//tag=1067
|
||||
// QList::first()
|
||||
KDDockWidgetsBindings_EXPORT void* c_QList_T_QByteArray_T___first(void *thisObj);
|
||||
|
||||
//tag=1067
|
||||
// QList::front()
|
||||
KDDockWidgetsBindings_EXPORT void* c_QList_T_QByteArray_T___front(void *thisObj);
|
||||
|
||||
//tag=1067
|
||||
// QList::indexOf(const T & t, int from) const
|
||||
KDDockWidgetsBindings_EXPORT int c_QList_T_QByteArray_T___indexOf_QByteArray_int(void *thisObj,void* t_,int from);
|
||||
|
||||
//tag=1067
|
||||
// QList::insert(int i, const T & t)
|
||||
KDDockWidgetsBindings_EXPORT void c_QList_T_QByteArray_T___insert_int_QByteArray(void *thisObj,int i,void* t_);
|
||||
|
||||
//tag=1067
|
||||
// QList::isDetached() const
|
||||
KDDockWidgetsBindings_EXPORT bool c_QList_T_QByteArray_T___isDetached(void *thisObj);
|
||||
|
||||
//tag=1067
|
||||
// QList::isEmpty() const
|
||||
KDDockWidgetsBindings_EXPORT bool c_QList_T_QByteArray_T___isEmpty(void *thisObj);
|
||||
|
||||
//tag=1067
|
||||
// QList::isSharedWith(const QList<T > & other) const
|
||||
KDDockWidgetsBindings_EXPORT bool c_QList_T_QByteArray_T___isSharedWith_QList_T(void *thisObj,void* other_);
|
||||
|
||||
//tag=1067
|
||||
// QList::last()
|
||||
KDDockWidgetsBindings_EXPORT void* c_QList_T_QByteArray_T___last(void *thisObj);
|
||||
|
||||
//tag=1067
|
||||
// QList::lastIndexOf(const T & t, int from) const
|
||||
KDDockWidgetsBindings_EXPORT int c_QList_T_QByteArray_T___lastIndexOf_QByteArray_int(void *thisObj,void* t_,int from);
|
||||
|
||||
//tag=1067
|
||||
// QList::length() const
|
||||
KDDockWidgetsBindings_EXPORT int c_QList_T_QByteArray_T___length(void *thisObj);
|
||||
|
||||
//tag=1067
|
||||
// QList::mid(int pos, int length) const
|
||||
KDDockWidgetsBindings_EXPORT void* c_QList_T_QByteArray_T___mid_int_int(void *thisObj,int pos,int length);
|
||||
|
||||
//tag=1067
|
||||
// QList::move(int from, int to)
|
||||
KDDockWidgetsBindings_EXPORT void c_QList_T_QByteArray_T___move_int_int(void *thisObj,int from,int to);
|
||||
|
||||
//tag=1067
|
||||
// QList::pop_back()
|
||||
KDDockWidgetsBindings_EXPORT void c_QList_T_QByteArray_T___pop_back(void *thisObj);
|
||||
|
||||
//tag=1067
|
||||
// QList::pop_front()
|
||||
KDDockWidgetsBindings_EXPORT void c_QList_T_QByteArray_T___pop_front(void *thisObj);
|
||||
|
||||
//tag=1067
|
||||
// QList::prepend(const T & t)
|
||||
KDDockWidgetsBindings_EXPORT void c_QList_T_QByteArray_T___prepend_QByteArray(void *thisObj,void* t_);
|
||||
|
||||
//tag=1067
|
||||
// QList::push_back(const T & t)
|
||||
KDDockWidgetsBindings_EXPORT void c_QList_T_QByteArray_T___push_back_QByteArray(void *thisObj,void* t_);
|
||||
|
||||
//tag=1067
|
||||
// QList::push_front(const T & t)
|
||||
KDDockWidgetsBindings_EXPORT void c_QList_T_QByteArray_T___push_front_QByteArray(void *thisObj,void* t_);
|
||||
|
||||
//tag=1067
|
||||
// QList::removeAll(const T & t)
|
||||
KDDockWidgetsBindings_EXPORT int c_QList_T_QByteArray_T___removeAll_QByteArray(void *thisObj,void* t_);
|
||||
|
||||
//tag=1067
|
||||
// QList::removeAt(int i)
|
||||
KDDockWidgetsBindings_EXPORT void c_QList_T_QByteArray_T___removeAt_int(void *thisObj,int i);
|
||||
|
||||
//tag=1067
|
||||
// QList::removeFirst()
|
||||
KDDockWidgetsBindings_EXPORT void c_QList_T_QByteArray_T___removeFirst(void *thisObj);
|
||||
|
||||
//tag=1067
|
||||
// QList::removeLast()
|
||||
KDDockWidgetsBindings_EXPORT void c_QList_T_QByteArray_T___removeLast(void *thisObj);
|
||||
|
||||
//tag=1067
|
||||
// QList::removeOne(const T & t)
|
||||
KDDockWidgetsBindings_EXPORT bool c_QList_T_QByteArray_T___removeOne_QByteArray(void *thisObj,void* t_);
|
||||
|
||||
//tag=1067
|
||||
// QList::replace(int i, const T & t)
|
||||
KDDockWidgetsBindings_EXPORT void c_QList_T_QByteArray_T___replace_int_QByteArray(void *thisObj,int i,void* t_);
|
||||
|
||||
//tag=1067
|
||||
// QList::reserve(int size)
|
||||
KDDockWidgetsBindings_EXPORT void c_QList_T_QByteArray_T___reserve_int(void *thisObj,int size);
|
||||
|
||||
//tag=1067
|
||||
// QList::setSharable(bool sharable)
|
||||
KDDockWidgetsBindings_EXPORT void c_QList_T_QByteArray_T___setSharable_bool(void *thisObj,bool sharable);
|
||||
|
||||
//tag=1067
|
||||
// QList::size() const
|
||||
KDDockWidgetsBindings_EXPORT int c_QList_T_QByteArray_T___size(void *thisObj);
|
||||
|
||||
//tag=1067
|
||||
// QList::startsWith(const T & t) const
|
||||
KDDockWidgetsBindings_EXPORT bool c_QList_T_QByteArray_T___startsWith_QByteArray(void *thisObj,void* t_);
|
||||
|
||||
//tag=1067
|
||||
// QList::swapItemsAt(int i, int j)
|
||||
KDDockWidgetsBindings_EXPORT void c_QList_T_QByteArray_T___swapItemsAt_int_int(void *thisObj,int i,int j);
|
||||
|
||||
//tag=1067
|
||||
// QList::takeAt(int i)
|
||||
KDDockWidgetsBindings_EXPORT void* c_QList_T_QByteArray_T___takeAt_int(void *thisObj,int i);
|
||||
|
||||
//tag=1067
|
||||
// QList::takeFirst()
|
||||
KDDockWidgetsBindings_EXPORT void* c_QList_T_QByteArray_T___takeFirst(void *thisObj);
|
||||
|
||||
//tag=1067
|
||||
// QList::takeLast()
|
||||
KDDockWidgetsBindings_EXPORT void* c_QList_T_QByteArray_T___takeLast(void *thisObj);
|
||||
|
||||
//tag=1067
|
||||
// QList::value(int i) const
|
||||
KDDockWidgetsBindings_EXPORT void* c_QList_T_QByteArray_T___value_int(void *thisObj,int i);
|
||||
|
||||
//tag=1067
|
||||
// QList::value(int i, const T & defaultValue) const
|
||||
KDDockWidgetsBindings_EXPORT void* c_QList_T_QByteArray_T___value_int_QByteArray(void *thisObj,int i,void* defaultValue_);
|
||||
|
||||
//tag=1066
|
||||
KDDockWidgetsBindings_EXPORT void c_QList_T_QByteArray_T___destructor(void *thisObj);
|
||||
|
||||
//tag=1047
|
||||
KDDockWidgetsBindings_EXPORT void c_QList_T_QByteArray_T__Finalizer(void *, void *cppObj, void *);}
|
||||
@@ -0,0 +1,371 @@
|
||||
/*
|
||||
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 "QObject_wrapper.h"
|
||||
|
||||
|
||||
#include <QDebug>
|
||||
|
||||
|
||||
namespace Dartagnan {
|
||||
|
||||
typedef int (*CleanupCallback)(void *thisPtr);
|
||||
static CleanupCallback s_cleanupCallback = nullptr;
|
||||
|
||||
template<typename T>
|
||||
struct ValueWrapper
|
||||
{
|
||||
T value;
|
||||
};
|
||||
|
||||
}
|
||||
namespace KDDockWidgetsBindings_wrappersNS {
|
||||
//tag=1006
|
||||
QObject_wrapper::QObject_wrapper(QObject * parent) : ::QObject(parent) {}
|
||||
bool QObject_wrapper::blockSignals(bool b){
|
||||
//tag=1000
|
||||
|
||||
//tag=1004
|
||||
return ::QObject::blockSignals(b);}
|
||||
const QList<QObject* > & QObject_wrapper::children()const{
|
||||
//tag=1000
|
||||
|
||||
//tag=1004
|
||||
return ::QObject::children();}
|
||||
void QObject_wrapper::deleteLater(){
|
||||
//tag=1000
|
||||
|
||||
//tag=1004
|
||||
::QObject::deleteLater();}
|
||||
void QObject_wrapper::destroyed(QObject * arg__1){
|
||||
//tag=1000
|
||||
|
||||
//tag=1004
|
||||
::QObject::destroyed(arg__1);}
|
||||
bool QObject_wrapper::disconnect(const QObject * receiver,const char * member)const{
|
||||
//tag=1000
|
||||
|
||||
//tag=1004
|
||||
return ::QObject::disconnect(receiver,member);}
|
||||
bool QObject_wrapper::disconnect(const QObject * sender,const char * signal,const QObject * receiver,const char * member){
|
||||
//tag=1000
|
||||
|
||||
//tag=1004
|
||||
return ::QObject::disconnect(sender,signal,receiver,member);}
|
||||
bool QObject_wrapper::disconnect(const char * signal,const QObject * receiver,const char * member)const{
|
||||
//tag=1000
|
||||
|
||||
//tag=1004
|
||||
return ::QObject::disconnect(signal,receiver,member);}
|
||||
void QObject_wrapper::dumpObjectInfo(){
|
||||
//tag=1000
|
||||
|
||||
//tag=1004
|
||||
::QObject::dumpObjectInfo();}
|
||||
void QObject_wrapper::dumpObjectTree(){
|
||||
//tag=1000
|
||||
|
||||
//tag=1004
|
||||
::QObject::dumpObjectTree();}
|
||||
QList<QByteArray > QObject_wrapper::dynamicPropertyNames()const{
|
||||
//tag=1000
|
||||
|
||||
//tag=1004
|
||||
return ::QObject::dynamicPropertyNames();}
|
||||
bool QObject_wrapper::inherits(const char * classname)const{
|
||||
//tag=1000
|
||||
|
||||
//tag=1004
|
||||
return ::QObject::inherits(classname);}
|
||||
void QObject_wrapper::installEventFilter(QObject * filterObj){
|
||||
//tag=1000
|
||||
|
||||
//tag=1004
|
||||
::QObject::installEventFilter(filterObj);}
|
||||
bool QObject_wrapper::isWidgetType()const{
|
||||
//tag=1000
|
||||
|
||||
//tag=1004
|
||||
return ::QObject::isWidgetType();}
|
||||
bool QObject_wrapper::isWindowType()const{
|
||||
//tag=1000
|
||||
|
||||
//tag=1004
|
||||
return ::QObject::isWindowType();}
|
||||
void QObject_wrapper::killTimer(int id){
|
||||
//tag=1000
|
||||
|
||||
//tag=1004
|
||||
::QObject::killTimer(id);}
|
||||
QString QObject_wrapper::objectName()const{
|
||||
//tag=1000
|
||||
|
||||
//tag=1004
|
||||
return ::QObject::objectName();}
|
||||
QObject * QObject_wrapper::parent()const{
|
||||
//tag=1000
|
||||
|
||||
//tag=1004
|
||||
return ::QObject::parent();}
|
||||
int QObject_wrapper::receivers(const char * signal)const{
|
||||
//tag=1000
|
||||
|
||||
//tag=1004
|
||||
return ::QObject::receivers(signal);}
|
||||
void QObject_wrapper::removeEventFilter(QObject * obj){
|
||||
//tag=1000
|
||||
|
||||
//tag=1004
|
||||
::QObject::removeEventFilter(obj);}
|
||||
QObject * QObject_wrapper::sender()const{
|
||||
//tag=1000
|
||||
|
||||
//tag=1004
|
||||
return ::QObject::sender();}
|
||||
int QObject_wrapper::senderSignalIndex()const{
|
||||
//tag=1000
|
||||
|
||||
//tag=1004
|
||||
return ::QObject::senderSignalIndex();}
|
||||
void QObject_wrapper::setObjectName(const QString & name){
|
||||
//tag=1000
|
||||
|
||||
//tag=1004
|
||||
::QObject::setObjectName(name);}
|
||||
void QObject_wrapper::setParent(QObject * parent){
|
||||
//tag=1000
|
||||
|
||||
//tag=1004
|
||||
::QObject::setParent(parent);}
|
||||
bool QObject_wrapper::signalsBlocked()const{
|
||||
//tag=1000
|
||||
|
||||
//tag=1004
|
||||
return ::QObject::signalsBlocked();}
|
||||
int QObject_wrapper::startTimer(int interval){
|
||||
//tag=1000
|
||||
|
||||
//tag=1004
|
||||
return ::QObject::startTimer(interval);}
|
||||
QString QObject_wrapper::tr(const char * s,const char * c,int n){
|
||||
//tag=1000
|
||||
|
||||
//tag=1004
|
||||
return ::QObject::tr(s,c,n);}
|
||||
|
||||
//tag=1005
|
||||
QObject_wrapper::~QObject_wrapper() {}
|
||||
|
||||
}
|
||||
//tag=1013
|
||||
static QObject* fromPtr(void *ptr)
|
||||
{return reinterpret_cast<QObject*>(ptr);}
|
||||
//tag=1014
|
||||
static KDDockWidgetsBindings_wrappersNS::QObject_wrapper* fromWrapperPtr(void *ptr)
|
||||
{return reinterpret_cast<KDDockWidgetsBindings_wrappersNS::QObject_wrapper*>(ptr);}extern "C" {
|
||||
|
||||
//tag=1049
|
||||
void c_QObject_Finalizer(void *, void *cppObj, void *){delete reinterpret_cast<KDDockWidgetsBindings_wrappersNS::QObject_wrapper *>(cppObj);}void * c_QObject__constructor_QObject(void* parent_)
|
||||
{
|
||||
auto parent = reinterpret_cast<QObject *>(parent_);
|
||||
//tag=1056
|
||||
auto ptr = new KDDockWidgetsBindings_wrappersNS::QObject_wrapper(parent);return reinterpret_cast<void*>(ptr);}
|
||||
|
||||
//tag=1050
|
||||
//blockSignals(bool b)
|
||||
bool c_QObject__blockSignals_bool(void *thisObj,bool b){return
|
||||
//tag=1010
|
||||
fromPtr(thisObj)->blockSignals(b);}
|
||||
|
||||
//tag=1050
|
||||
//children() const
|
||||
void* c_QObject__children(void *thisObj){return
|
||||
//tag=1010
|
||||
|
||||
//tag=1071
|
||||
const_cast<void*>(static_cast<const void*>(&fromPtr(thisObj)->children()));}
|
||||
|
||||
//tag=1050
|
||||
//deleteLater()
|
||||
void c_QObject__deleteLater(void *thisObj){
|
||||
//tag=1010
|
||||
fromPtr(thisObj)->deleteLater();}
|
||||
|
||||
//tag=1050
|
||||
//destroyed(QObject * arg__1)
|
||||
void c_QObject__destroyed_QObject(void *thisObj,void* arg__1_){auto arg__1 = reinterpret_cast<QObject *>(arg__1_);
|
||||
//tag=1010
|
||||
fromPtr(thisObj)->destroyed(arg__1);}
|
||||
|
||||
//tag=1079
|
||||
void c_QObject__onDestroyed_QObject(void *thisObj, void *contextQObject, void *callback)
|
||||
{
|
||||
auto instance = reinterpret_cast<QObject *>(thisObj);
|
||||
auto context = reinterpret_cast<QObject *>(contextQObject);
|
||||
QObject::connect(instance, &QObject::destroyed, context ? context : instance, [thisObj, callback] {
|
||||
typedef void (*SignalHandler_callback)(void *);
|
||||
auto dartCallback = reinterpret_cast<SignalHandler_callback>(callback);
|
||||
dartCallback(thisObj);});
|
||||
}
|
||||
|
||||
//tag=1050
|
||||
//disconnect(const QObject * receiver, const char * member) const
|
||||
bool c_QObject__disconnect_QObject_char(void *thisObj,void* receiver_,const char * member){auto receiver = reinterpret_cast<QObject *>(receiver_);return
|
||||
//tag=1010
|
||||
fromPtr(thisObj)->disconnect(receiver,member);}
|
||||
|
||||
//tag=1050
|
||||
//disconnect(const QObject * sender, const char * signal, const QObject * receiver, const char * member)
|
||||
bool c_static_QObject__disconnect_QObject_char_QObject_char(void* sender_,const char * signal,void* receiver_,const char * member){auto sender = reinterpret_cast<QObject *>(sender_);auto receiver = reinterpret_cast<QObject *>(receiver_);return
|
||||
//tag=1068
|
||||
KDDockWidgetsBindings_wrappersNS::QObject_wrapper::disconnect(sender,signal,receiver,member);}
|
||||
|
||||
//tag=1050
|
||||
//disconnect(const char * signal, const QObject * receiver, const char * member) const
|
||||
bool c_QObject__disconnect_char_QObject_char(void *thisObj,const char * signal,void* receiver_,const char * member){auto receiver = reinterpret_cast<QObject *>(receiver_);return
|
||||
//tag=1010
|
||||
fromPtr(thisObj)->disconnect(signal,receiver,member);}
|
||||
|
||||
//tag=1050
|
||||
//dumpObjectInfo()
|
||||
void c_QObject__dumpObjectInfo(void *thisObj){
|
||||
//tag=1010
|
||||
fromPtr(thisObj)->dumpObjectInfo();}
|
||||
|
||||
//tag=1050
|
||||
//dumpObjectTree()
|
||||
void c_QObject__dumpObjectTree(void *thisObj){
|
||||
//tag=1010
|
||||
fromPtr(thisObj)->dumpObjectTree();}
|
||||
|
||||
//tag=1050
|
||||
//dynamicPropertyNames() const
|
||||
void* c_QObject__dynamicPropertyNames(void *thisObj){return
|
||||
//tag=1010
|
||||
|
||||
//tag=1072
|
||||
new Dartagnan::ValueWrapper<QList<QByteArray >>{fromPtr(thisObj)->dynamicPropertyNames()};}
|
||||
|
||||
//tag=1050
|
||||
//inherits(const char * classname) const
|
||||
bool c_QObject__inherits_char(void *thisObj,const char * classname){return
|
||||
//tag=1010
|
||||
fromPtr(thisObj)->inherits(classname);}
|
||||
|
||||
//tag=1050
|
||||
//installEventFilter(QObject * filterObj)
|
||||
void c_QObject__installEventFilter_QObject(void *thisObj,void* filterObj_){auto filterObj = reinterpret_cast<QObject *>(filterObj_);
|
||||
//tag=1010
|
||||
fromPtr(thisObj)->installEventFilter(filterObj);}
|
||||
|
||||
//tag=1050
|
||||
//isWidgetType() const
|
||||
bool c_QObject__isWidgetType(void *thisObj){return
|
||||
//tag=1010
|
||||
fromPtr(thisObj)->isWidgetType();}
|
||||
|
||||
//tag=1050
|
||||
//isWindowType() const
|
||||
bool c_QObject__isWindowType(void *thisObj){return
|
||||
//tag=1010
|
||||
fromPtr(thisObj)->isWindowType();}
|
||||
|
||||
//tag=1050
|
||||
//killTimer(int id)
|
||||
void c_QObject__killTimer_int(void *thisObj,int id){
|
||||
//tag=1010
|
||||
fromPtr(thisObj)->killTimer(id);}
|
||||
|
||||
//tag=1050
|
||||
//objectName() const
|
||||
void* c_QObject__objectName(void *thisObj){return
|
||||
//tag=1010
|
||||
|
||||
//tag=1072
|
||||
new Dartagnan::ValueWrapper<QString>{fromPtr(thisObj)->objectName()};}
|
||||
|
||||
//tag=1050
|
||||
//parent() const
|
||||
void* c_QObject__parent(void *thisObj){return
|
||||
//tag=1010
|
||||
fromPtr(thisObj)->parent();}
|
||||
|
||||
//tag=1050
|
||||
//receivers(const char * signal) const
|
||||
int c_QObject__receivers_char(void *thisObj,const char * signal){return
|
||||
//tag=1011
|
||||
|
||||
//tag=1073
|
||||
fromWrapperPtr(thisObj)->receivers(signal);}
|
||||
|
||||
//tag=1050
|
||||
//removeEventFilter(QObject * obj)
|
||||
void c_QObject__removeEventFilter_QObject(void *thisObj,void* obj_){auto obj = reinterpret_cast<QObject *>(obj_);
|
||||
//tag=1010
|
||||
fromPtr(thisObj)->removeEventFilter(obj);}
|
||||
|
||||
//tag=1050
|
||||
//sender() const
|
||||
void* c_QObject__sender(void *thisObj){return
|
||||
//tag=1011
|
||||
|
||||
//tag=1073
|
||||
fromWrapperPtr(thisObj)->sender();}
|
||||
|
||||
//tag=1050
|
||||
//senderSignalIndex() const
|
||||
int c_QObject__senderSignalIndex(void *thisObj){return
|
||||
//tag=1011
|
||||
|
||||
//tag=1073
|
||||
fromWrapperPtr(thisObj)->senderSignalIndex();}
|
||||
|
||||
//tag=1050
|
||||
//setObjectName(const QString & name)
|
||||
void c_QObject__setObjectName_QString(void *thisObj,const char *name_){const auto name = QString::fromUtf8(name_);
|
||||
//tag=1010
|
||||
fromPtr(thisObj)->setObjectName(name);}
|
||||
|
||||
//tag=1050
|
||||
//setParent(QObject * parent)
|
||||
void c_QObject__setParent_QObject(void *thisObj,void* parent_){auto parent = reinterpret_cast<QObject *>(parent_);
|
||||
//tag=1010
|
||||
fromPtr(thisObj)->setParent(parent);}
|
||||
|
||||
//tag=1050
|
||||
//signalsBlocked() const
|
||||
bool c_QObject__signalsBlocked(void *thisObj){return
|
||||
//tag=1010
|
||||
fromPtr(thisObj)->signalsBlocked();}
|
||||
|
||||
//tag=1050
|
||||
//startTimer(int interval)
|
||||
int c_QObject__startTimer_int(void *thisObj,int interval){return
|
||||
//tag=1010
|
||||
fromPtr(thisObj)->startTimer(interval);}
|
||||
|
||||
//tag=1050
|
||||
//tr(const char * s, const char * c, int n)
|
||||
void* c_static_QObject__tr_char_char_int(const char * s,const char * c,int n){return
|
||||
//tag=1068
|
||||
|
||||
//tag=1072
|
||||
new Dartagnan::ValueWrapper<QString>{KDDockWidgetsBindings_wrappersNS::QObject_wrapper::tr(s,c,n)};}
|
||||
void c_QObject__destructor(void *thisObj)
|
||||
{
|
||||
|
||||
//tag=1055
|
||||
delete fromPtr(thisObj);}
|
||||
void c_QObject__registerVirtualMethodCallback(void *ptr, void *callback, int methodId){
|
||||
//tag=1048
|
||||
auto wrapper = fromWrapperPtr(ptr);
|
||||
switch (methodId) {
|
||||
}
|
||||
}}
|
||||
@@ -0,0 +1,197 @@
|
||||
/*
|
||||
This file is part of KDDockWidgets.
|
||||
|
||||
SPDX-FileCopyrightText: 2019-2022 Klarälvdalens Datakonsult AB, a KDAB Group company <info@kdab.com>
|
||||
Author: Sérgio Martins <sergio.martins@kdab.com>
|
||||
|
||||
SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only
|
||||
|
||||
Contact KDAB at <info@kdab.com> for commercial licensing options.
|
||||
*/
|
||||
|
||||
//tag=1040
|
||||
#include "KDDockWidgetsBindings_exports.h"
|
||||
#include <qobject.h>
|
||||
#include <qstring.h>
|
||||
#include <qlist.h>
|
||||
#include <qbytearray.h>
|
||||
|
||||
namespace KDDockWidgetsBindings_wrappersNS {
|
||||
//tag=1017
|
||||
class QObject_wrapper : public ::QObject {public:
|
||||
~QObject_wrapper();
|
||||
//tag=1041
|
||||
QObject_wrapper(QObject * parent = nullptr);
|
||||
//tag=1041
|
||||
bool blockSignals(bool b);
|
||||
//tag=1041
|
||||
const QList<QObject* > & children()const;
|
||||
//tag=1041
|
||||
void deleteLater();
|
||||
//tag=1041
|
||||
void destroyed(QObject * arg__1 = nullptr);
|
||||
//tag=1041
|
||||
bool disconnect(const QObject * receiver,const char * member = nullptr)const;
|
||||
//tag=1041
|
||||
static bool disconnect(const QObject * sender,const char * signal,const QObject * receiver,const char * member);
|
||||
//tag=1041
|
||||
bool disconnect(const char * signal = nullptr,const QObject * receiver = nullptr,const char * member = nullptr)const;
|
||||
//tag=1041
|
||||
void dumpObjectInfo();
|
||||
//tag=1041
|
||||
void dumpObjectTree();
|
||||
//tag=1041
|
||||
QList<QByteArray > dynamicPropertyNames()const;
|
||||
//tag=1041
|
||||
bool inherits(const char * classname)const;
|
||||
//tag=1041
|
||||
void installEventFilter(QObject * filterObj);
|
||||
//tag=1041
|
||||
bool isWidgetType()const;
|
||||
//tag=1041
|
||||
bool isWindowType()const;
|
||||
//tag=1041
|
||||
void killTimer(int id);
|
||||
//tag=1041
|
||||
QString objectName()const;
|
||||
//tag=1041
|
||||
QObject * parent()const;
|
||||
//tag=1041
|
||||
int receivers(const char * signal)const;
|
||||
//tag=1041
|
||||
void removeEventFilter(QObject * obj);
|
||||
//tag=1041
|
||||
QObject * sender()const;
|
||||
//tag=1041
|
||||
int senderSignalIndex()const;
|
||||
//tag=1041
|
||||
void setObjectName(const QString & name);
|
||||
//tag=1041
|
||||
void setParent(QObject * parent);
|
||||
//tag=1041
|
||||
bool signalsBlocked()const;
|
||||
//tag=1041
|
||||
int startTimer(int interval);
|
||||
//tag=1041
|
||||
static QString tr(const char * s,const char * c,int n);
|
||||
|
||||
};
|
||||
}extern "C" {
|
||||
|
||||
//tag=1067
|
||||
// QObject::QObject(QObject * parent)
|
||||
KDDockWidgetsBindings_EXPORT void * c_QObject__constructor_QObject(void* parent_);
|
||||
|
||||
//tag=1067
|
||||
// QObject::blockSignals(bool b)
|
||||
KDDockWidgetsBindings_EXPORT bool c_QObject__blockSignals_bool(void *thisObj,bool b);
|
||||
|
||||
//tag=1067
|
||||
// QObject::children() const
|
||||
KDDockWidgetsBindings_EXPORT void* c_QObject__children(void *thisObj);
|
||||
|
||||
//tag=1067
|
||||
// QObject::deleteLater()
|
||||
KDDockWidgetsBindings_EXPORT void c_QObject__deleteLater(void *thisObj);
|
||||
|
||||
//tag=1067
|
||||
// QObject::destroyed(QObject * arg__1)
|
||||
KDDockWidgetsBindings_EXPORT void c_QObject__destroyed_QObject(void *thisObj,void* arg__1_);
|
||||
|
||||
//tag=1078
|
||||
KDDockWidgetsBindings_EXPORT void c_QObject__onDestroyed_QObject(void *thisObj, void *contextQObject, void *callback);
|
||||
//tag=1067
|
||||
// QObject::disconnect(const QObject * receiver, const char * member) const
|
||||
KDDockWidgetsBindings_EXPORT bool c_QObject__disconnect_QObject_char(void *thisObj,void* receiver_,const char * member);
|
||||
|
||||
//tag=1067
|
||||
// QObject::disconnect(const QObject * sender, const char * signal, const QObject * receiver, const char * member)
|
||||
KDDockWidgetsBindings_EXPORT bool c_static_QObject__disconnect_QObject_char_QObject_char(void* sender_,const char * signal,void* receiver_,const char * member);
|
||||
|
||||
//tag=1067
|
||||
// QObject::disconnect(const char * signal, const QObject * receiver, const char * member) const
|
||||
KDDockWidgetsBindings_EXPORT bool c_QObject__disconnect_char_QObject_char(void *thisObj,const char * signal,void* receiver_,const char * member);
|
||||
|
||||
//tag=1067
|
||||
// QObject::dumpObjectInfo()
|
||||
KDDockWidgetsBindings_EXPORT void c_QObject__dumpObjectInfo(void *thisObj);
|
||||
|
||||
//tag=1067
|
||||
// QObject::dumpObjectTree()
|
||||
KDDockWidgetsBindings_EXPORT void c_QObject__dumpObjectTree(void *thisObj);
|
||||
|
||||
//tag=1067
|
||||
// QObject::dynamicPropertyNames() const
|
||||
KDDockWidgetsBindings_EXPORT void* c_QObject__dynamicPropertyNames(void *thisObj);
|
||||
|
||||
//tag=1067
|
||||
// QObject::inherits(const char * classname) const
|
||||
KDDockWidgetsBindings_EXPORT bool c_QObject__inherits_char(void *thisObj,const char * classname);
|
||||
|
||||
//tag=1067
|
||||
// QObject::installEventFilter(QObject * filterObj)
|
||||
KDDockWidgetsBindings_EXPORT void c_QObject__installEventFilter_QObject(void *thisObj,void* filterObj_);
|
||||
|
||||
//tag=1067
|
||||
// QObject::isWidgetType() const
|
||||
KDDockWidgetsBindings_EXPORT bool c_QObject__isWidgetType(void *thisObj);
|
||||
|
||||
//tag=1067
|
||||
// QObject::isWindowType() const
|
||||
KDDockWidgetsBindings_EXPORT bool c_QObject__isWindowType(void *thisObj);
|
||||
|
||||
//tag=1067
|
||||
// QObject::killTimer(int id)
|
||||
KDDockWidgetsBindings_EXPORT void c_QObject__killTimer_int(void *thisObj,int id);
|
||||
|
||||
//tag=1067
|
||||
// QObject::objectName() const
|
||||
KDDockWidgetsBindings_EXPORT void* c_QObject__objectName(void *thisObj);
|
||||
|
||||
//tag=1067
|
||||
// QObject::parent() const
|
||||
KDDockWidgetsBindings_EXPORT void* c_QObject__parent(void *thisObj);
|
||||
|
||||
//tag=1067
|
||||
// QObject::receivers(const char * signal) const
|
||||
KDDockWidgetsBindings_EXPORT int c_QObject__receivers_char(void *thisObj,const char * signal);
|
||||
|
||||
//tag=1067
|
||||
// QObject::removeEventFilter(QObject * obj)
|
||||
KDDockWidgetsBindings_EXPORT void c_QObject__removeEventFilter_QObject(void *thisObj,void* obj_);
|
||||
|
||||
//tag=1067
|
||||
// QObject::sender() const
|
||||
KDDockWidgetsBindings_EXPORT void* c_QObject__sender(void *thisObj);
|
||||
|
||||
//tag=1067
|
||||
// QObject::senderSignalIndex() const
|
||||
KDDockWidgetsBindings_EXPORT int c_QObject__senderSignalIndex(void *thisObj);
|
||||
|
||||
//tag=1067
|
||||
// QObject::setObjectName(const QString & name)
|
||||
KDDockWidgetsBindings_EXPORT void c_QObject__setObjectName_QString(void *thisObj,const char *name_);
|
||||
|
||||
//tag=1067
|
||||
// QObject::setParent(QObject * parent)
|
||||
KDDockWidgetsBindings_EXPORT void c_QObject__setParent_QObject(void *thisObj,void* parent_);
|
||||
|
||||
//tag=1067
|
||||
// QObject::signalsBlocked() const
|
||||
KDDockWidgetsBindings_EXPORT bool c_QObject__signalsBlocked(void *thisObj);
|
||||
|
||||
//tag=1067
|
||||
// QObject::startTimer(int interval)
|
||||
KDDockWidgetsBindings_EXPORT int c_QObject__startTimer_int(void *thisObj,int interval);
|
||||
|
||||
//tag=1067
|
||||
// QObject::tr(const char * s, const char * c, int n)
|
||||
KDDockWidgetsBindings_EXPORT void* c_static_QObject__tr_char_char_int(const char * s,const char * c,int n);
|
||||
|
||||
//tag=1066
|
||||
KDDockWidgetsBindings_EXPORT void c_QObject__destructor(void *thisObj);
|
||||
|
||||
//tag=1046
|
||||
KDDockWidgetsBindings_EXPORT void c_QObject__registerVirtualMethodCallback(void *ptr, void *callback, int methodId);
|
||||
//tag=1047
|
||||
KDDockWidgetsBindings_EXPORT void c_QObject_Finalizer(void *, void *cppObj, void *);}
|
||||
@@ -0,0 +1,153 @@
|
||||
/*
|
||||
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 "QPoint_wrapper.h"
|
||||
|
||||
|
||||
#include <QDebug>
|
||||
|
||||
|
||||
namespace Dartagnan {
|
||||
|
||||
typedef int (*CleanupCallback)(void *thisPtr);
|
||||
static CleanupCallback s_cleanupCallback = nullptr;
|
||||
|
||||
template<typename T>
|
||||
struct ValueWrapper
|
||||
{
|
||||
T value;
|
||||
};
|
||||
|
||||
}
|
||||
namespace KDDockWidgetsBindings_wrappersNS {
|
||||
//tag=1006
|
||||
QPoint_wrapper::QPoint_wrapper() : ::QPoint() {}
|
||||
|
||||
//tag=1006
|
||||
QPoint_wrapper::QPoint_wrapper(int xpos,int ypos) : ::QPoint(xpos,ypos) {}
|
||||
int QPoint_wrapper::dotProduct(const QPoint & p1,const QPoint & p2){
|
||||
//tag=1000
|
||||
|
||||
//tag=1004
|
||||
return ::QPoint::dotProduct(p1,p2);}
|
||||
bool QPoint_wrapper::isNull()const{
|
||||
//tag=1000
|
||||
|
||||
//tag=1004
|
||||
return ::QPoint::isNull();}
|
||||
int QPoint_wrapper::manhattanLength()const{
|
||||
//tag=1000
|
||||
|
||||
//tag=1004
|
||||
return ::QPoint::manhattanLength();}
|
||||
void QPoint_wrapper::setX(int x){
|
||||
//tag=1000
|
||||
|
||||
//tag=1004
|
||||
::QPoint::setX(x);}
|
||||
void QPoint_wrapper::setY(int y){
|
||||
//tag=1000
|
||||
|
||||
//tag=1004
|
||||
::QPoint::setY(y);}
|
||||
QPoint QPoint_wrapper::transposed()const{
|
||||
//tag=1000
|
||||
|
||||
//tag=1004
|
||||
return ::QPoint::transposed();}
|
||||
int QPoint_wrapper::x()const{
|
||||
//tag=1000
|
||||
|
||||
//tag=1004
|
||||
return ::QPoint::x();}
|
||||
int QPoint_wrapper::y()const{
|
||||
//tag=1000
|
||||
|
||||
//tag=1004
|
||||
return ::QPoint::y();}
|
||||
|
||||
//tag=1005
|
||||
QPoint_wrapper::~QPoint_wrapper() {}
|
||||
|
||||
}
|
||||
//tag=1013
|
||||
static QPoint* fromPtr(void *ptr)
|
||||
{return reinterpret_cast<QPoint*>(ptr);}
|
||||
//tag=1014
|
||||
static KDDockWidgetsBindings_wrappersNS::QPoint_wrapper* fromWrapperPtr(void *ptr)
|
||||
{return reinterpret_cast<KDDockWidgetsBindings_wrappersNS::QPoint_wrapper*>(ptr);}extern "C" {
|
||||
|
||||
//tag=1049
|
||||
void c_QPoint_Finalizer(void *, void *cppObj, void *){delete reinterpret_cast<KDDockWidgetsBindings_wrappersNS::QPoint_wrapper *>(cppObj);}void * c_QPoint__constructor()
|
||||
{
|
||||
|
||||
//tag=1056
|
||||
auto ptr = new KDDockWidgetsBindings_wrappersNS::QPoint_wrapper();return reinterpret_cast<void*>(ptr);}
|
||||
void * c_QPoint__constructor_int_int(int xpos,int ypos)
|
||||
{
|
||||
|
||||
//tag=1056
|
||||
auto ptr = new KDDockWidgetsBindings_wrappersNS::QPoint_wrapper(xpos,ypos);return reinterpret_cast<void*>(ptr);}
|
||||
|
||||
//tag=1050
|
||||
//dotProduct(const QPoint & p1, const QPoint & p2)
|
||||
int c_static_QPoint__dotProduct_QPoint_QPoint(void* p1_,void* p2_){auto &p1 = *reinterpret_cast<QPoint *>(p1_);auto &p2 = *reinterpret_cast<QPoint *>(p2_);return
|
||||
//tag=1068
|
||||
KDDockWidgetsBindings_wrappersNS::QPoint_wrapper::dotProduct(p1,p2);}
|
||||
|
||||
//tag=1050
|
||||
//isNull() const
|
||||
bool c_QPoint__isNull(void *thisObj){return
|
||||
//tag=1010
|
||||
fromPtr(thisObj)->isNull();}
|
||||
|
||||
//tag=1050
|
||||
//manhattanLength() const
|
||||
int c_QPoint__manhattanLength(void *thisObj){return
|
||||
//tag=1010
|
||||
fromPtr(thisObj)->manhattanLength();}
|
||||
|
||||
//tag=1050
|
||||
//setX(int x)
|
||||
void c_QPoint__setX_int(void *thisObj,int x){
|
||||
//tag=1010
|
||||
fromPtr(thisObj)->setX(x);}
|
||||
|
||||
//tag=1050
|
||||
//setY(int y)
|
||||
void c_QPoint__setY_int(void *thisObj,int y){
|
||||
//tag=1010
|
||||
fromPtr(thisObj)->setY(y);}
|
||||
|
||||
//tag=1050
|
||||
//transposed() const
|
||||
void* c_QPoint__transposed(void *thisObj){return
|
||||
//tag=1010
|
||||
|
||||
//tag=1072
|
||||
new Dartagnan::ValueWrapper<QPoint>{fromPtr(thisObj)->transposed()};}
|
||||
|
||||
//tag=1050
|
||||
//x() const
|
||||
int c_QPoint__x(void *thisObj){return
|
||||
//tag=1010
|
||||
fromPtr(thisObj)->x();}
|
||||
|
||||
//tag=1050
|
||||
//y() const
|
||||
int c_QPoint__y(void *thisObj){return
|
||||
//tag=1010
|
||||
fromPtr(thisObj)->y();}
|
||||
void c_QPoint__destructor(void *thisObj)
|
||||
{
|
||||
|
||||
//tag=1055
|
||||
delete fromPtr(thisObj);}
|
||||
}
|
||||
@@ -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.
|
||||
*/
|
||||
|
||||
//tag=1040
|
||||
#include "KDDockWidgetsBindings_exports.h"
|
||||
#include <qpoint.h>
|
||||
|
||||
namespace KDDockWidgetsBindings_wrappersNS {
|
||||
//tag=1043
|
||||
class QPoint_wrapper : public ::QPoint {public:
|
||||
~QPoint_wrapper();
|
||||
//tag=1041
|
||||
QPoint_wrapper();
|
||||
//tag=1041
|
||||
QPoint_wrapper(int xpos,int ypos);
|
||||
//tag=1041
|
||||
static int dotProduct(const QPoint & p1,const QPoint & p2);
|
||||
//tag=1041
|
||||
bool isNull()const;
|
||||
//tag=1041
|
||||
int manhattanLength()const;
|
||||
//tag=1041
|
||||
void setX(int x);
|
||||
//tag=1041
|
||||
void setY(int y);
|
||||
//tag=1041
|
||||
QPoint transposed()const;
|
||||
//tag=1041
|
||||
int x()const;
|
||||
//tag=1041
|
||||
int y()const;
|
||||
|
||||
};
|
||||
}extern "C" {
|
||||
|
||||
//tag=1067
|
||||
// QPoint::QPoint()
|
||||
KDDockWidgetsBindings_EXPORT void * c_QPoint__constructor();
|
||||
|
||||
//tag=1067
|
||||
// QPoint::QPoint(int xpos, int ypos)
|
||||
KDDockWidgetsBindings_EXPORT void * c_QPoint__constructor_int_int(int xpos,int ypos);
|
||||
|
||||
//tag=1067
|
||||
// QPoint::dotProduct(const QPoint & p1, const QPoint & p2)
|
||||
KDDockWidgetsBindings_EXPORT int c_static_QPoint__dotProduct_QPoint_QPoint(void* p1_,void* p2_);
|
||||
|
||||
//tag=1067
|
||||
// QPoint::isNull() const
|
||||
KDDockWidgetsBindings_EXPORT bool c_QPoint__isNull(void *thisObj);
|
||||
|
||||
//tag=1067
|
||||
// QPoint::manhattanLength() const
|
||||
KDDockWidgetsBindings_EXPORT int c_QPoint__manhattanLength(void *thisObj);
|
||||
|
||||
//tag=1067
|
||||
// QPoint::setX(int x)
|
||||
KDDockWidgetsBindings_EXPORT void c_QPoint__setX_int(void *thisObj,int x);
|
||||
|
||||
//tag=1067
|
||||
// QPoint::setY(int y)
|
||||
KDDockWidgetsBindings_EXPORT void c_QPoint__setY_int(void *thisObj,int y);
|
||||
|
||||
//tag=1067
|
||||
// QPoint::transposed() const
|
||||
KDDockWidgetsBindings_EXPORT void* c_QPoint__transposed(void *thisObj);
|
||||
|
||||
//tag=1067
|
||||
// QPoint::x() const
|
||||
KDDockWidgetsBindings_EXPORT int c_QPoint__x(void *thisObj);
|
||||
|
||||
//tag=1067
|
||||
// QPoint::y() const
|
||||
KDDockWidgetsBindings_EXPORT int c_QPoint__y(void *thisObj);
|
||||
|
||||
//tag=1066
|
||||
KDDockWidgetsBindings_EXPORT void c_QPoint__destructor(void *thisObj);
|
||||
|
||||
//tag=1047
|
||||
KDDockWidgetsBindings_EXPORT void c_QPoint_Finalizer(void *, void *cppObj, void *);}
|
||||
@@ -0,0 +1,743 @@
|
||||
/*
|
||||
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 "QRect_wrapper.h"
|
||||
|
||||
|
||||
#include <QDebug>
|
||||
|
||||
|
||||
namespace Dartagnan {
|
||||
|
||||
typedef int (*CleanupCallback)(void *thisPtr);
|
||||
static CleanupCallback s_cleanupCallback = nullptr;
|
||||
|
||||
template<typename T>
|
||||
struct ValueWrapper
|
||||
{
|
||||
T value;
|
||||
};
|
||||
|
||||
}
|
||||
namespace KDDockWidgetsBindings_wrappersNS {
|
||||
//tag=1006
|
||||
QRect_wrapper::QRect_wrapper() : ::QRect() {}
|
||||
|
||||
//tag=1006
|
||||
QRect_wrapper::QRect_wrapper(const QPoint & topleft,const QPoint & bottomright) : ::QRect(topleft,bottomright) {}
|
||||
|
||||
//tag=1006
|
||||
QRect_wrapper::QRect_wrapper(const QPoint & topleft,const QSize & size) : ::QRect(topleft,size) {}
|
||||
|
||||
//tag=1006
|
||||
QRect_wrapper::QRect_wrapper(int left,int top,int width,int height) : ::QRect(left,top,width,height) {}
|
||||
void QRect_wrapper::adjust(int x1,int y1,int x2,int y2){
|
||||
//tag=1000
|
||||
|
||||
//tag=1004
|
||||
::QRect::adjust(x1,y1,x2,y2);}
|
||||
QRect QRect_wrapper::adjusted(int x1,int y1,int x2,int y2)const{
|
||||
//tag=1000
|
||||
|
||||
//tag=1004
|
||||
return ::QRect::adjusted(x1,y1,x2,y2);}
|
||||
int QRect_wrapper::bottom()const{
|
||||
//tag=1000
|
||||
|
||||
//tag=1004
|
||||
return ::QRect::bottom();}
|
||||
QPoint QRect_wrapper::bottomLeft()const{
|
||||
//tag=1000
|
||||
|
||||
//tag=1004
|
||||
return ::QRect::bottomLeft();}
|
||||
QPoint QRect_wrapper::bottomRight()const{
|
||||
//tag=1000
|
||||
|
||||
//tag=1004
|
||||
return ::QRect::bottomRight();}
|
||||
QPoint QRect_wrapper::center()const{
|
||||
//tag=1000
|
||||
|
||||
//tag=1004
|
||||
return ::QRect::center();}
|
||||
bool QRect_wrapper::contains(const QPoint & p,bool proper)const{
|
||||
//tag=1000
|
||||
|
||||
//tag=1004
|
||||
return ::QRect::contains(p,proper);}
|
||||
bool QRect_wrapper::contains(const QRect & r,bool proper)const{
|
||||
//tag=1000
|
||||
|
||||
//tag=1004
|
||||
return ::QRect::contains(r,proper);}
|
||||
bool QRect_wrapper::contains(int x,int y)const{
|
||||
//tag=1000
|
||||
|
||||
//tag=1004
|
||||
return ::QRect::contains(x,y);}
|
||||
bool QRect_wrapper::contains(int x,int y,bool proper)const{
|
||||
//tag=1000
|
||||
|
||||
//tag=1004
|
||||
return ::QRect::contains(x,y,proper);}
|
||||
int QRect_wrapper::height()const{
|
||||
//tag=1000
|
||||
|
||||
//tag=1004
|
||||
return ::QRect::height();}
|
||||
QRect QRect_wrapper::intersected(const QRect & other)const{
|
||||
//tag=1000
|
||||
|
||||
//tag=1004
|
||||
return ::QRect::intersected(other);}
|
||||
bool QRect_wrapper::intersects(const QRect & r)const{
|
||||
//tag=1000
|
||||
|
||||
//tag=1004
|
||||
return ::QRect::intersects(r);}
|
||||
bool QRect_wrapper::isEmpty()const{
|
||||
//tag=1000
|
||||
|
||||
//tag=1004
|
||||
return ::QRect::isEmpty();}
|
||||
bool QRect_wrapper::isNull()const{
|
||||
//tag=1000
|
||||
|
||||
//tag=1004
|
||||
return ::QRect::isNull();}
|
||||
bool QRect_wrapper::isValid()const{
|
||||
//tag=1000
|
||||
|
||||
//tag=1004
|
||||
return ::QRect::isValid();}
|
||||
int QRect_wrapper::left()const{
|
||||
//tag=1000
|
||||
|
||||
//tag=1004
|
||||
return ::QRect::left();}
|
||||
void QRect_wrapper::moveBottom(int pos){
|
||||
//tag=1000
|
||||
|
||||
//tag=1004
|
||||
::QRect::moveBottom(pos);}
|
||||
void QRect_wrapper::moveBottomLeft(const QPoint & p){
|
||||
//tag=1000
|
||||
|
||||
//tag=1004
|
||||
::QRect::moveBottomLeft(p);}
|
||||
void QRect_wrapper::moveBottomRight(const QPoint & p){
|
||||
//tag=1000
|
||||
|
||||
//tag=1004
|
||||
::QRect::moveBottomRight(p);}
|
||||
void QRect_wrapper::moveCenter(const QPoint & p){
|
||||
//tag=1000
|
||||
|
||||
//tag=1004
|
||||
::QRect::moveCenter(p);}
|
||||
void QRect_wrapper::moveLeft(int pos){
|
||||
//tag=1000
|
||||
|
||||
//tag=1004
|
||||
::QRect::moveLeft(pos);}
|
||||
void QRect_wrapper::moveRight(int pos){
|
||||
//tag=1000
|
||||
|
||||
//tag=1004
|
||||
::QRect::moveRight(pos);}
|
||||
void QRect_wrapper::moveTo(const QPoint & p){
|
||||
//tag=1000
|
||||
|
||||
//tag=1004
|
||||
::QRect::moveTo(p);}
|
||||
void QRect_wrapper::moveTo(int x,int t){
|
||||
//tag=1000
|
||||
|
||||
//tag=1004
|
||||
::QRect::moveTo(x,t);}
|
||||
void QRect_wrapper::moveTop(int pos){
|
||||
//tag=1000
|
||||
|
||||
//tag=1004
|
||||
::QRect::moveTop(pos);}
|
||||
void QRect_wrapper::moveTopLeft(const QPoint & p){
|
||||
//tag=1000
|
||||
|
||||
//tag=1004
|
||||
::QRect::moveTopLeft(p);}
|
||||
void QRect_wrapper::moveTopRight(const QPoint & p){
|
||||
//tag=1000
|
||||
|
||||
//tag=1004
|
||||
::QRect::moveTopRight(p);}
|
||||
QRect QRect_wrapper::normalized()const{
|
||||
//tag=1000
|
||||
|
||||
//tag=1004
|
||||
return ::QRect::normalized();}
|
||||
int QRect_wrapper::right()const{
|
||||
//tag=1000
|
||||
|
||||
//tag=1004
|
||||
return ::QRect::right();}
|
||||
void QRect_wrapper::setBottom(int pos){
|
||||
//tag=1000
|
||||
|
||||
//tag=1004
|
||||
::QRect::setBottom(pos);}
|
||||
void QRect_wrapper::setBottomLeft(const QPoint & p){
|
||||
//tag=1000
|
||||
|
||||
//tag=1004
|
||||
::QRect::setBottomLeft(p);}
|
||||
void QRect_wrapper::setBottomRight(const QPoint & p){
|
||||
//tag=1000
|
||||
|
||||
//tag=1004
|
||||
::QRect::setBottomRight(p);}
|
||||
void QRect_wrapper::setCoords(int x1,int y1,int x2,int y2){
|
||||
//tag=1000
|
||||
|
||||
//tag=1004
|
||||
::QRect::setCoords(x1,y1,x2,y2);}
|
||||
void QRect_wrapper::setHeight(int h){
|
||||
//tag=1000
|
||||
|
||||
//tag=1004
|
||||
::QRect::setHeight(h);}
|
||||
void QRect_wrapper::setLeft(int pos){
|
||||
//tag=1000
|
||||
|
||||
//tag=1004
|
||||
::QRect::setLeft(pos);}
|
||||
void QRect_wrapper::setRect(int x,int y,int w,int h){
|
||||
//tag=1000
|
||||
|
||||
//tag=1004
|
||||
::QRect::setRect(x,y,w,h);}
|
||||
void QRect_wrapper::setRight(int pos){
|
||||
//tag=1000
|
||||
|
||||
//tag=1004
|
||||
::QRect::setRight(pos);}
|
||||
void QRect_wrapper::setSize(const QSize & s){
|
||||
//tag=1000
|
||||
|
||||
//tag=1004
|
||||
::QRect::setSize(s);}
|
||||
void QRect_wrapper::setTop(int pos){
|
||||
//tag=1000
|
||||
|
||||
//tag=1004
|
||||
::QRect::setTop(pos);}
|
||||
void QRect_wrapper::setTopLeft(const QPoint & p){
|
||||
//tag=1000
|
||||
|
||||
//tag=1004
|
||||
::QRect::setTopLeft(p);}
|
||||
void QRect_wrapper::setTopRight(const QPoint & p){
|
||||
//tag=1000
|
||||
|
||||
//tag=1004
|
||||
::QRect::setTopRight(p);}
|
||||
void QRect_wrapper::setWidth(int w){
|
||||
//tag=1000
|
||||
|
||||
//tag=1004
|
||||
::QRect::setWidth(w);}
|
||||
void QRect_wrapper::setX(int x){
|
||||
//tag=1000
|
||||
|
||||
//tag=1004
|
||||
::QRect::setX(x);}
|
||||
void QRect_wrapper::setY(int y){
|
||||
//tag=1000
|
||||
|
||||
//tag=1004
|
||||
::QRect::setY(y);}
|
||||
QSize QRect_wrapper::size()const{
|
||||
//tag=1000
|
||||
|
||||
//tag=1004
|
||||
return ::QRect::size();}
|
||||
int QRect_wrapper::top()const{
|
||||
//tag=1000
|
||||
|
||||
//tag=1004
|
||||
return ::QRect::top();}
|
||||
QPoint QRect_wrapper::topLeft()const{
|
||||
//tag=1000
|
||||
|
||||
//tag=1004
|
||||
return ::QRect::topLeft();}
|
||||
QPoint QRect_wrapper::topRight()const{
|
||||
//tag=1000
|
||||
|
||||
//tag=1004
|
||||
return ::QRect::topRight();}
|
||||
void QRect_wrapper::translate(const QPoint & p){
|
||||
//tag=1000
|
||||
|
||||
//tag=1004
|
||||
::QRect::translate(p);}
|
||||
void QRect_wrapper::translate(int dx,int dy){
|
||||
//tag=1000
|
||||
|
||||
//tag=1004
|
||||
::QRect::translate(dx,dy);}
|
||||
QRect QRect_wrapper::translated(const QPoint & p)const{
|
||||
//tag=1000
|
||||
|
||||
//tag=1004
|
||||
return ::QRect::translated(p);}
|
||||
QRect QRect_wrapper::translated(int dx,int dy)const{
|
||||
//tag=1000
|
||||
|
||||
//tag=1004
|
||||
return ::QRect::translated(dx,dy);}
|
||||
QRect QRect_wrapper::transposed()const{
|
||||
//tag=1000
|
||||
|
||||
//tag=1004
|
||||
return ::QRect::transposed();}
|
||||
QRect QRect_wrapper::united(const QRect & other)const{
|
||||
//tag=1000
|
||||
|
||||
//tag=1004
|
||||
return ::QRect::united(other);}
|
||||
int QRect_wrapper::width()const{
|
||||
//tag=1000
|
||||
|
||||
//tag=1004
|
||||
return ::QRect::width();}
|
||||
int QRect_wrapper::x()const{
|
||||
//tag=1000
|
||||
|
||||
//tag=1004
|
||||
return ::QRect::x();}
|
||||
int QRect_wrapper::y()const{
|
||||
//tag=1000
|
||||
|
||||
//tag=1004
|
||||
return ::QRect::y();}
|
||||
|
||||
//tag=1005
|
||||
QRect_wrapper::~QRect_wrapper() {}
|
||||
|
||||
}
|
||||
//tag=1013
|
||||
static QRect* fromPtr(void *ptr)
|
||||
{return reinterpret_cast<QRect*>(ptr);}
|
||||
//tag=1014
|
||||
static KDDockWidgetsBindings_wrappersNS::QRect_wrapper* fromWrapperPtr(void *ptr)
|
||||
{return reinterpret_cast<KDDockWidgetsBindings_wrappersNS::QRect_wrapper*>(ptr);}extern "C" {
|
||||
|
||||
//tag=1049
|
||||
void c_QRect_Finalizer(void *, void *cppObj, void *){delete reinterpret_cast<KDDockWidgetsBindings_wrappersNS::QRect_wrapper *>(cppObj);}void * c_QRect__constructor()
|
||||
{
|
||||
|
||||
//tag=1056
|
||||
auto ptr = new KDDockWidgetsBindings_wrappersNS::QRect_wrapper();return reinterpret_cast<void*>(ptr);}
|
||||
void * c_QRect__constructor_QPoint_QPoint(void* topleft_,void* bottomright_)
|
||||
{
|
||||
auto &topleft = *reinterpret_cast<QPoint *>(topleft_);auto &bottomright = *reinterpret_cast<QPoint *>(bottomright_);
|
||||
//tag=1056
|
||||
auto ptr = new KDDockWidgetsBindings_wrappersNS::QRect_wrapper(topleft,bottomright);return reinterpret_cast<void*>(ptr);}
|
||||
void * c_QRect__constructor_QPoint_QSize(void* topleft_,void* size_)
|
||||
{
|
||||
auto &topleft = *reinterpret_cast<QPoint *>(topleft_);auto &size = *reinterpret_cast<QSize *>(size_);
|
||||
//tag=1056
|
||||
auto ptr = new KDDockWidgetsBindings_wrappersNS::QRect_wrapper(topleft,size);return reinterpret_cast<void*>(ptr);}
|
||||
void * c_QRect__constructor_int_int_int_int(int left,int top,int width,int height)
|
||||
{
|
||||
|
||||
//tag=1056
|
||||
auto ptr = new KDDockWidgetsBindings_wrappersNS::QRect_wrapper(left,top,width,height);return reinterpret_cast<void*>(ptr);}
|
||||
|
||||
//tag=1050
|
||||
//adjust(int x1, int y1, int x2, int y2)
|
||||
void c_QRect__adjust_int_int_int_int(void *thisObj,int x1,int y1,int x2,int y2){
|
||||
//tag=1010
|
||||
fromPtr(thisObj)->adjust(x1,y1,x2,y2);}
|
||||
|
||||
//tag=1050
|
||||
//adjusted(int x1, int y1, int x2, int y2) const
|
||||
void* c_QRect__adjusted_int_int_int_int(void *thisObj,int x1,int y1,int x2,int y2){return
|
||||
//tag=1010
|
||||
|
||||
//tag=1072
|
||||
new Dartagnan::ValueWrapper<QRect>{fromPtr(thisObj)->adjusted(x1,y1,x2,y2)};}
|
||||
|
||||
//tag=1050
|
||||
//bottom() const
|
||||
int c_QRect__bottom(void *thisObj){return
|
||||
//tag=1010
|
||||
fromPtr(thisObj)->bottom();}
|
||||
|
||||
//tag=1050
|
||||
//bottomLeft() const
|
||||
void* c_QRect__bottomLeft(void *thisObj){return
|
||||
//tag=1010
|
||||
|
||||
//tag=1072
|
||||
new Dartagnan::ValueWrapper<QPoint>{fromPtr(thisObj)->bottomLeft()};}
|
||||
|
||||
//tag=1050
|
||||
//bottomRight() const
|
||||
void* c_QRect__bottomRight(void *thisObj){return
|
||||
//tag=1010
|
||||
|
||||
//tag=1072
|
||||
new Dartagnan::ValueWrapper<QPoint>{fromPtr(thisObj)->bottomRight()};}
|
||||
|
||||
//tag=1050
|
||||
//center() const
|
||||
void* c_QRect__center(void *thisObj){return
|
||||
//tag=1010
|
||||
|
||||
//tag=1072
|
||||
new Dartagnan::ValueWrapper<QPoint>{fromPtr(thisObj)->center()};}
|
||||
|
||||
//tag=1050
|
||||
//contains(const QPoint & p, bool proper) const
|
||||
bool c_QRect__contains_QPoint_bool(void *thisObj,void* p_,bool proper){auto &p = *reinterpret_cast<QPoint *>(p_);return
|
||||
//tag=1010
|
||||
fromPtr(thisObj)->contains(p,proper);}
|
||||
|
||||
//tag=1050
|
||||
//contains(const QRect & r, bool proper) const
|
||||
bool c_QRect__contains_QRect_bool(void *thisObj,void* r_,bool proper){auto &r = *reinterpret_cast<QRect *>(r_);return
|
||||
//tag=1010
|
||||
fromPtr(thisObj)->contains(r,proper);}
|
||||
|
||||
//tag=1050
|
||||
//contains(int x, int y) const
|
||||
bool c_QRect__contains_int_int(void *thisObj,int x,int y){return
|
||||
//tag=1010
|
||||
fromPtr(thisObj)->contains(x,y);}
|
||||
|
||||
//tag=1050
|
||||
//contains(int x, int y, bool proper) const
|
||||
bool c_QRect__contains_int_int_bool(void *thisObj,int x,int y,bool proper){return
|
||||
//tag=1010
|
||||
fromPtr(thisObj)->contains(x,y,proper);}
|
||||
|
||||
//tag=1050
|
||||
//height() const
|
||||
int c_QRect__height(void *thisObj){return
|
||||
//tag=1010
|
||||
fromPtr(thisObj)->height();}
|
||||
|
||||
//tag=1050
|
||||
//intersected(const QRect & other) const
|
||||
void* c_QRect__intersected_QRect(void *thisObj,void* other_){auto &other = *reinterpret_cast<QRect *>(other_);return
|
||||
//tag=1010
|
||||
|
||||
//tag=1072
|
||||
new Dartagnan::ValueWrapper<QRect>{fromPtr(thisObj)->intersected(other)};}
|
||||
|
||||
//tag=1050
|
||||
//intersects(const QRect & r) const
|
||||
bool c_QRect__intersects_QRect(void *thisObj,void* r_){auto &r = *reinterpret_cast<QRect *>(r_);return
|
||||
//tag=1010
|
||||
fromPtr(thisObj)->intersects(r);}
|
||||
|
||||
//tag=1050
|
||||
//isEmpty() const
|
||||
bool c_QRect__isEmpty(void *thisObj){return
|
||||
//tag=1010
|
||||
fromPtr(thisObj)->isEmpty();}
|
||||
|
||||
//tag=1050
|
||||
//isNull() const
|
||||
bool c_QRect__isNull(void *thisObj){return
|
||||
//tag=1010
|
||||
fromPtr(thisObj)->isNull();}
|
||||
|
||||
//tag=1050
|
||||
//isValid() const
|
||||
bool c_QRect__isValid(void *thisObj){return
|
||||
//tag=1010
|
||||
fromPtr(thisObj)->isValid();}
|
||||
|
||||
//tag=1050
|
||||
//left() const
|
||||
int c_QRect__left(void *thisObj){return
|
||||
//tag=1010
|
||||
fromPtr(thisObj)->left();}
|
||||
|
||||
//tag=1050
|
||||
//moveBottom(int pos)
|
||||
void c_QRect__moveBottom_int(void *thisObj,int pos){
|
||||
//tag=1010
|
||||
fromPtr(thisObj)->moveBottom(pos);}
|
||||
|
||||
//tag=1050
|
||||
//moveBottomLeft(const QPoint & p)
|
||||
void c_QRect__moveBottomLeft_QPoint(void *thisObj,void* p_){auto &p = *reinterpret_cast<QPoint *>(p_);
|
||||
//tag=1010
|
||||
fromPtr(thisObj)->moveBottomLeft(p);}
|
||||
|
||||
//tag=1050
|
||||
//moveBottomRight(const QPoint & p)
|
||||
void c_QRect__moveBottomRight_QPoint(void *thisObj,void* p_){auto &p = *reinterpret_cast<QPoint *>(p_);
|
||||
//tag=1010
|
||||
fromPtr(thisObj)->moveBottomRight(p);}
|
||||
|
||||
//tag=1050
|
||||
//moveCenter(const QPoint & p)
|
||||
void c_QRect__moveCenter_QPoint(void *thisObj,void* p_){auto &p = *reinterpret_cast<QPoint *>(p_);
|
||||
//tag=1010
|
||||
fromPtr(thisObj)->moveCenter(p);}
|
||||
|
||||
//tag=1050
|
||||
//moveLeft(int pos)
|
||||
void c_QRect__moveLeft_int(void *thisObj,int pos){
|
||||
//tag=1010
|
||||
fromPtr(thisObj)->moveLeft(pos);}
|
||||
|
||||
//tag=1050
|
||||
//moveRight(int pos)
|
||||
void c_QRect__moveRight_int(void *thisObj,int pos){
|
||||
//tag=1010
|
||||
fromPtr(thisObj)->moveRight(pos);}
|
||||
|
||||
//tag=1050
|
||||
//moveTo(const QPoint & p)
|
||||
void c_QRect__moveTo_QPoint(void *thisObj,void* p_){auto &p = *reinterpret_cast<QPoint *>(p_);
|
||||
//tag=1010
|
||||
fromPtr(thisObj)->moveTo(p);}
|
||||
|
||||
//tag=1050
|
||||
//moveTo(int x, int t)
|
||||
void c_QRect__moveTo_int_int(void *thisObj,int x,int t){
|
||||
//tag=1010
|
||||
fromPtr(thisObj)->moveTo(x,t);}
|
||||
|
||||
//tag=1050
|
||||
//moveTop(int pos)
|
||||
void c_QRect__moveTop_int(void *thisObj,int pos){
|
||||
//tag=1010
|
||||
fromPtr(thisObj)->moveTop(pos);}
|
||||
|
||||
//tag=1050
|
||||
//moveTopLeft(const QPoint & p)
|
||||
void c_QRect__moveTopLeft_QPoint(void *thisObj,void* p_){auto &p = *reinterpret_cast<QPoint *>(p_);
|
||||
//tag=1010
|
||||
fromPtr(thisObj)->moveTopLeft(p);}
|
||||
|
||||
//tag=1050
|
||||
//moveTopRight(const QPoint & p)
|
||||
void c_QRect__moveTopRight_QPoint(void *thisObj,void* p_){auto &p = *reinterpret_cast<QPoint *>(p_);
|
||||
//tag=1010
|
||||
fromPtr(thisObj)->moveTopRight(p);}
|
||||
|
||||
//tag=1050
|
||||
//normalized() const
|
||||
void* c_QRect__normalized(void *thisObj){return
|
||||
//tag=1010
|
||||
|
||||
//tag=1072
|
||||
new Dartagnan::ValueWrapper<QRect>{fromPtr(thisObj)->normalized()};}
|
||||
|
||||
//tag=1050
|
||||
//right() const
|
||||
int c_QRect__right(void *thisObj){return
|
||||
//tag=1010
|
||||
fromPtr(thisObj)->right();}
|
||||
|
||||
//tag=1050
|
||||
//setBottom(int pos)
|
||||
void c_QRect__setBottom_int(void *thisObj,int pos){
|
||||
//tag=1010
|
||||
fromPtr(thisObj)->setBottom(pos);}
|
||||
|
||||
//tag=1050
|
||||
//setBottomLeft(const QPoint & p)
|
||||
void c_QRect__setBottomLeft_QPoint(void *thisObj,void* p_){auto &p = *reinterpret_cast<QPoint *>(p_);
|
||||
//tag=1010
|
||||
fromPtr(thisObj)->setBottomLeft(p);}
|
||||
|
||||
//tag=1050
|
||||
//setBottomRight(const QPoint & p)
|
||||
void c_QRect__setBottomRight_QPoint(void *thisObj,void* p_){auto &p = *reinterpret_cast<QPoint *>(p_);
|
||||
//tag=1010
|
||||
fromPtr(thisObj)->setBottomRight(p);}
|
||||
|
||||
//tag=1050
|
||||
//setCoords(int x1, int y1, int x2, int y2)
|
||||
void c_QRect__setCoords_int_int_int_int(void *thisObj,int x1,int y1,int x2,int y2){
|
||||
//tag=1010
|
||||
fromPtr(thisObj)->setCoords(x1,y1,x2,y2);}
|
||||
|
||||
//tag=1050
|
||||
//setHeight(int h)
|
||||
void c_QRect__setHeight_int(void *thisObj,int h){
|
||||
//tag=1010
|
||||
fromPtr(thisObj)->setHeight(h);}
|
||||
|
||||
//tag=1050
|
||||
//setLeft(int pos)
|
||||
void c_QRect__setLeft_int(void *thisObj,int pos){
|
||||
//tag=1010
|
||||
fromPtr(thisObj)->setLeft(pos);}
|
||||
|
||||
//tag=1050
|
||||
//setRect(int x, int y, int w, int h)
|
||||
void c_QRect__setRect_int_int_int_int(void *thisObj,int x,int y,int w,int h){
|
||||
//tag=1010
|
||||
fromPtr(thisObj)->setRect(x,y,w,h);}
|
||||
|
||||
//tag=1050
|
||||
//setRight(int pos)
|
||||
void c_QRect__setRight_int(void *thisObj,int pos){
|
||||
//tag=1010
|
||||
fromPtr(thisObj)->setRight(pos);}
|
||||
|
||||
//tag=1050
|
||||
//setSize(const QSize & s)
|
||||
void c_QRect__setSize_QSize(void *thisObj,void* s_){auto &s = *reinterpret_cast<QSize *>(s_);
|
||||
//tag=1010
|
||||
fromPtr(thisObj)->setSize(s);}
|
||||
|
||||
//tag=1050
|
||||
//setTop(int pos)
|
||||
void c_QRect__setTop_int(void *thisObj,int pos){
|
||||
//tag=1010
|
||||
fromPtr(thisObj)->setTop(pos);}
|
||||
|
||||
//tag=1050
|
||||
//setTopLeft(const QPoint & p)
|
||||
void c_QRect__setTopLeft_QPoint(void *thisObj,void* p_){auto &p = *reinterpret_cast<QPoint *>(p_);
|
||||
//tag=1010
|
||||
fromPtr(thisObj)->setTopLeft(p);}
|
||||
|
||||
//tag=1050
|
||||
//setTopRight(const QPoint & p)
|
||||
void c_QRect__setTopRight_QPoint(void *thisObj,void* p_){auto &p = *reinterpret_cast<QPoint *>(p_);
|
||||
//tag=1010
|
||||
fromPtr(thisObj)->setTopRight(p);}
|
||||
|
||||
//tag=1050
|
||||
//setWidth(int w)
|
||||
void c_QRect__setWidth_int(void *thisObj,int w){
|
||||
//tag=1010
|
||||
fromPtr(thisObj)->setWidth(w);}
|
||||
|
||||
//tag=1050
|
||||
//setX(int x)
|
||||
void c_QRect__setX_int(void *thisObj,int x){
|
||||
//tag=1010
|
||||
fromPtr(thisObj)->setX(x);}
|
||||
|
||||
//tag=1050
|
||||
//setY(int y)
|
||||
void c_QRect__setY_int(void *thisObj,int y){
|
||||
//tag=1010
|
||||
fromPtr(thisObj)->setY(y);}
|
||||
|
||||
//tag=1050
|
||||
//size() const
|
||||
void* c_QRect__size(void *thisObj){return
|
||||
//tag=1010
|
||||
|
||||
//tag=1072
|
||||
new Dartagnan::ValueWrapper<QSize>{fromPtr(thisObj)->size()};}
|
||||
|
||||
//tag=1050
|
||||
//top() const
|
||||
int c_QRect__top(void *thisObj){return
|
||||
//tag=1010
|
||||
fromPtr(thisObj)->top();}
|
||||
|
||||
//tag=1050
|
||||
//topLeft() const
|
||||
void* c_QRect__topLeft(void *thisObj){return
|
||||
//tag=1010
|
||||
|
||||
//tag=1072
|
||||
new Dartagnan::ValueWrapper<QPoint>{fromPtr(thisObj)->topLeft()};}
|
||||
|
||||
//tag=1050
|
||||
//topRight() const
|
||||
void* c_QRect__topRight(void *thisObj){return
|
||||
//tag=1010
|
||||
|
||||
//tag=1072
|
||||
new Dartagnan::ValueWrapper<QPoint>{fromPtr(thisObj)->topRight()};}
|
||||
|
||||
//tag=1050
|
||||
//translate(const QPoint & p)
|
||||
void c_QRect__translate_QPoint(void *thisObj,void* p_){auto &p = *reinterpret_cast<QPoint *>(p_);
|
||||
//tag=1010
|
||||
fromPtr(thisObj)->translate(p);}
|
||||
|
||||
//tag=1050
|
||||
//translate(int dx, int dy)
|
||||
void c_QRect__translate_int_int(void *thisObj,int dx,int dy){
|
||||
//tag=1010
|
||||
fromPtr(thisObj)->translate(dx,dy);}
|
||||
|
||||
//tag=1050
|
||||
//translated(const QPoint & p) const
|
||||
void* c_QRect__translated_QPoint(void *thisObj,void* p_){auto &p = *reinterpret_cast<QPoint *>(p_);return
|
||||
//tag=1010
|
||||
|
||||
//tag=1072
|
||||
new Dartagnan::ValueWrapper<QRect>{fromPtr(thisObj)->translated(p)};}
|
||||
|
||||
//tag=1050
|
||||
//translated(int dx, int dy) const
|
||||
void* c_QRect__translated_int_int(void *thisObj,int dx,int dy){return
|
||||
//tag=1010
|
||||
|
||||
//tag=1072
|
||||
new Dartagnan::ValueWrapper<QRect>{fromPtr(thisObj)->translated(dx,dy)};}
|
||||
|
||||
//tag=1050
|
||||
//transposed() const
|
||||
void* c_QRect__transposed(void *thisObj){return
|
||||
//tag=1010
|
||||
|
||||
//tag=1072
|
||||
new Dartagnan::ValueWrapper<QRect>{fromPtr(thisObj)->transposed()};}
|
||||
|
||||
//tag=1050
|
||||
//united(const QRect & other) const
|
||||
void* c_QRect__united_QRect(void *thisObj,void* other_){auto &other = *reinterpret_cast<QRect *>(other_);return
|
||||
//tag=1010
|
||||
|
||||
//tag=1072
|
||||
new Dartagnan::ValueWrapper<QRect>{fromPtr(thisObj)->united(other)};}
|
||||
|
||||
//tag=1050
|
||||
//width() const
|
||||
int c_QRect__width(void *thisObj){return
|
||||
//tag=1010
|
||||
fromPtr(thisObj)->width();}
|
||||
|
||||
//tag=1050
|
||||
//x() const
|
||||
int c_QRect__x(void *thisObj){return
|
||||
//tag=1010
|
||||
fromPtr(thisObj)->x();}
|
||||
|
||||
//tag=1050
|
||||
//y() const
|
||||
int c_QRect__y(void *thisObj){return
|
||||
//tag=1010
|
||||
fromPtr(thisObj)->y();}
|
||||
void c_QRect__destructor(void *thisObj)
|
||||
{
|
||||
|
||||
//tag=1055
|
||||
delete fromPtr(thisObj);}
|
||||
}
|
||||
@@ -0,0 +1,402 @@
|
||||
/*
|
||||
This file is part of KDDockWidgets.
|
||||
|
||||
SPDX-FileCopyrightText: 2019-2022 Klarälvdalens Datakonsult AB, a KDAB Group company <info@kdab.com>
|
||||
Author: Sérgio Martins <sergio.martins@kdab.com>
|
||||
|
||||
SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only
|
||||
|
||||
Contact KDAB at <info@kdab.com> for commercial licensing options.
|
||||
*/
|
||||
|
||||
//tag=1040
|
||||
#include "KDDockWidgetsBindings_exports.h"
|
||||
#include <qrect.h>
|
||||
#include <qpoint.h>
|
||||
#include <qsize.h>
|
||||
|
||||
namespace KDDockWidgetsBindings_wrappersNS {
|
||||
//tag=1043
|
||||
class QRect_wrapper : public ::QRect {public:
|
||||
~QRect_wrapper();
|
||||
//tag=1041
|
||||
QRect_wrapper();
|
||||
//tag=1041
|
||||
QRect_wrapper(const QPoint & topleft,const QPoint & bottomright);
|
||||
//tag=1041
|
||||
QRect_wrapper(const QPoint & topleft,const QSize & size);
|
||||
//tag=1041
|
||||
QRect_wrapper(int left,int top,int width,int height);
|
||||
//tag=1041
|
||||
void adjust(int x1,int y1,int x2,int y2);
|
||||
//tag=1041
|
||||
QRect adjusted(int x1,int y1,int x2,int y2)const;
|
||||
//tag=1041
|
||||
int bottom()const;
|
||||
//tag=1041
|
||||
QPoint bottomLeft()const;
|
||||
//tag=1041
|
||||
QPoint bottomRight()const;
|
||||
//tag=1041
|
||||
QPoint center()const;
|
||||
//tag=1041
|
||||
bool contains(const QPoint & p,bool proper = false)const;
|
||||
//tag=1041
|
||||
bool contains(const QRect & r,bool proper = false)const;
|
||||
//tag=1041
|
||||
bool contains(int x,int y)const;
|
||||
//tag=1041
|
||||
bool contains(int x,int y,bool proper)const;
|
||||
//tag=1041
|
||||
int height()const;
|
||||
//tag=1041
|
||||
QRect intersected(const QRect & other)const;
|
||||
//tag=1041
|
||||
bool intersects(const QRect & r)const;
|
||||
//tag=1041
|
||||
bool isEmpty()const;
|
||||
//tag=1041
|
||||
bool isNull()const;
|
||||
//tag=1041
|
||||
bool isValid()const;
|
||||
//tag=1041
|
||||
int left()const;
|
||||
//tag=1041
|
||||
void moveBottom(int pos);
|
||||
//tag=1041
|
||||
void moveBottomLeft(const QPoint & p);
|
||||
//tag=1041
|
||||
void moveBottomRight(const QPoint & p);
|
||||
//tag=1041
|
||||
void moveCenter(const QPoint & p);
|
||||
//tag=1041
|
||||
void moveLeft(int pos);
|
||||
//tag=1041
|
||||
void moveRight(int pos);
|
||||
//tag=1041
|
||||
void moveTo(const QPoint & p);
|
||||
//tag=1041
|
||||
void moveTo(int x,int t);
|
||||
//tag=1041
|
||||
void moveTop(int pos);
|
||||
//tag=1041
|
||||
void moveTopLeft(const QPoint & p);
|
||||
//tag=1041
|
||||
void moveTopRight(const QPoint & p);
|
||||
//tag=1041
|
||||
QRect normalized()const;
|
||||
//tag=1041
|
||||
int right()const;
|
||||
//tag=1041
|
||||
void setBottom(int pos);
|
||||
//tag=1041
|
||||
void setBottomLeft(const QPoint & p);
|
||||
//tag=1041
|
||||
void setBottomRight(const QPoint & p);
|
||||
//tag=1041
|
||||
void setCoords(int x1,int y1,int x2,int y2);
|
||||
//tag=1041
|
||||
void setHeight(int h);
|
||||
//tag=1041
|
||||
void setLeft(int pos);
|
||||
//tag=1041
|
||||
void setRect(int x,int y,int w,int h);
|
||||
//tag=1041
|
||||
void setRight(int pos);
|
||||
//tag=1041
|
||||
void setSize(const QSize & s);
|
||||
//tag=1041
|
||||
void setTop(int pos);
|
||||
//tag=1041
|
||||
void setTopLeft(const QPoint & p);
|
||||
//tag=1041
|
||||
void setTopRight(const QPoint & p);
|
||||
//tag=1041
|
||||
void setWidth(int w);
|
||||
//tag=1041
|
||||
void setX(int x);
|
||||
//tag=1041
|
||||
void setY(int y);
|
||||
//tag=1041
|
||||
QSize size()const;
|
||||
//tag=1041
|
||||
int top()const;
|
||||
//tag=1041
|
||||
QPoint topLeft()const;
|
||||
//tag=1041
|
||||
QPoint topRight()const;
|
||||
//tag=1041
|
||||
void translate(const QPoint & p);
|
||||
//tag=1041
|
||||
void translate(int dx,int dy);
|
||||
//tag=1041
|
||||
QRect translated(const QPoint & p)const;
|
||||
//tag=1041
|
||||
QRect translated(int dx,int dy)const;
|
||||
//tag=1041
|
||||
QRect transposed()const;
|
||||
//tag=1041
|
||||
QRect united(const QRect & other)const;
|
||||
//tag=1041
|
||||
int width()const;
|
||||
//tag=1041
|
||||
int x()const;
|
||||
//tag=1041
|
||||
int y()const;
|
||||
|
||||
};
|
||||
}extern "C" {
|
||||
|
||||
//tag=1067
|
||||
// QRect::QRect()
|
||||
KDDockWidgetsBindings_EXPORT void * c_QRect__constructor();
|
||||
|
||||
//tag=1067
|
||||
// QRect::QRect(const QPoint & topleft, const QPoint & bottomright)
|
||||
KDDockWidgetsBindings_EXPORT void * c_QRect__constructor_QPoint_QPoint(void* topleft_,void* bottomright_);
|
||||
|
||||
//tag=1067
|
||||
// QRect::QRect(const QPoint & topleft, const QSize & size)
|
||||
KDDockWidgetsBindings_EXPORT void * c_QRect__constructor_QPoint_QSize(void* topleft_,void* size_);
|
||||
|
||||
//tag=1067
|
||||
// QRect::QRect(int left, int top, int width, int height)
|
||||
KDDockWidgetsBindings_EXPORT void * c_QRect__constructor_int_int_int_int(int left,int top,int width,int height);
|
||||
|
||||
//tag=1067
|
||||
// QRect::adjust(int x1, int y1, int x2, int y2)
|
||||
KDDockWidgetsBindings_EXPORT void c_QRect__adjust_int_int_int_int(void *thisObj,int x1,int y1,int x2,int y2);
|
||||
|
||||
//tag=1067
|
||||
// QRect::adjusted(int x1, int y1, int x2, int y2) const
|
||||
KDDockWidgetsBindings_EXPORT void* c_QRect__adjusted_int_int_int_int(void *thisObj,int x1,int y1,int x2,int y2);
|
||||
|
||||
//tag=1067
|
||||
// QRect::bottom() const
|
||||
KDDockWidgetsBindings_EXPORT int c_QRect__bottom(void *thisObj);
|
||||
|
||||
//tag=1067
|
||||
// QRect::bottomLeft() const
|
||||
KDDockWidgetsBindings_EXPORT void* c_QRect__bottomLeft(void *thisObj);
|
||||
|
||||
//tag=1067
|
||||
// QRect::bottomRight() const
|
||||
KDDockWidgetsBindings_EXPORT void* c_QRect__bottomRight(void *thisObj);
|
||||
|
||||
//tag=1067
|
||||
// QRect::center() const
|
||||
KDDockWidgetsBindings_EXPORT void* c_QRect__center(void *thisObj);
|
||||
|
||||
//tag=1067
|
||||
// QRect::contains(const QPoint & p, bool proper) const
|
||||
KDDockWidgetsBindings_EXPORT bool c_QRect__contains_QPoint_bool(void *thisObj,void* p_,bool proper);
|
||||
|
||||
//tag=1067
|
||||
// QRect::contains(const QRect & r, bool proper) const
|
||||
KDDockWidgetsBindings_EXPORT bool c_QRect__contains_QRect_bool(void *thisObj,void* r_,bool proper);
|
||||
|
||||
//tag=1067
|
||||
// QRect::contains(int x, int y) const
|
||||
KDDockWidgetsBindings_EXPORT bool c_QRect__contains_int_int(void *thisObj,int x,int y);
|
||||
|
||||
//tag=1067
|
||||
// QRect::contains(int x, int y, bool proper) const
|
||||
KDDockWidgetsBindings_EXPORT bool c_QRect__contains_int_int_bool(void *thisObj,int x,int y,bool proper);
|
||||
|
||||
//tag=1067
|
||||
// QRect::height() const
|
||||
KDDockWidgetsBindings_EXPORT int c_QRect__height(void *thisObj);
|
||||
|
||||
//tag=1067
|
||||
// QRect::intersected(const QRect & other) const
|
||||
KDDockWidgetsBindings_EXPORT void* c_QRect__intersected_QRect(void *thisObj,void* other_);
|
||||
|
||||
//tag=1067
|
||||
// QRect::intersects(const QRect & r) const
|
||||
KDDockWidgetsBindings_EXPORT bool c_QRect__intersects_QRect(void *thisObj,void* r_);
|
||||
|
||||
//tag=1067
|
||||
// QRect::isEmpty() const
|
||||
KDDockWidgetsBindings_EXPORT bool c_QRect__isEmpty(void *thisObj);
|
||||
|
||||
//tag=1067
|
||||
// QRect::isNull() const
|
||||
KDDockWidgetsBindings_EXPORT bool c_QRect__isNull(void *thisObj);
|
||||
|
||||
//tag=1067
|
||||
// QRect::isValid() const
|
||||
KDDockWidgetsBindings_EXPORT bool c_QRect__isValid(void *thisObj);
|
||||
|
||||
//tag=1067
|
||||
// QRect::left() const
|
||||
KDDockWidgetsBindings_EXPORT int c_QRect__left(void *thisObj);
|
||||
|
||||
//tag=1067
|
||||
// QRect::moveBottom(int pos)
|
||||
KDDockWidgetsBindings_EXPORT void c_QRect__moveBottom_int(void *thisObj,int pos);
|
||||
|
||||
//tag=1067
|
||||
// QRect::moveBottomLeft(const QPoint & p)
|
||||
KDDockWidgetsBindings_EXPORT void c_QRect__moveBottomLeft_QPoint(void *thisObj,void* p_);
|
||||
|
||||
//tag=1067
|
||||
// QRect::moveBottomRight(const QPoint & p)
|
||||
KDDockWidgetsBindings_EXPORT void c_QRect__moveBottomRight_QPoint(void *thisObj,void* p_);
|
||||
|
||||
//tag=1067
|
||||
// QRect::moveCenter(const QPoint & p)
|
||||
KDDockWidgetsBindings_EXPORT void c_QRect__moveCenter_QPoint(void *thisObj,void* p_);
|
||||
|
||||
//tag=1067
|
||||
// QRect::moveLeft(int pos)
|
||||
KDDockWidgetsBindings_EXPORT void c_QRect__moveLeft_int(void *thisObj,int pos);
|
||||
|
||||
//tag=1067
|
||||
// QRect::moveRight(int pos)
|
||||
KDDockWidgetsBindings_EXPORT void c_QRect__moveRight_int(void *thisObj,int pos);
|
||||
|
||||
//tag=1067
|
||||
// QRect::moveTo(const QPoint & p)
|
||||
KDDockWidgetsBindings_EXPORT void c_QRect__moveTo_QPoint(void *thisObj,void* p_);
|
||||
|
||||
//tag=1067
|
||||
// QRect::moveTo(int x, int t)
|
||||
KDDockWidgetsBindings_EXPORT void c_QRect__moveTo_int_int(void *thisObj,int x,int t);
|
||||
|
||||
//tag=1067
|
||||
// QRect::moveTop(int pos)
|
||||
KDDockWidgetsBindings_EXPORT void c_QRect__moveTop_int(void *thisObj,int pos);
|
||||
|
||||
//tag=1067
|
||||
// QRect::moveTopLeft(const QPoint & p)
|
||||
KDDockWidgetsBindings_EXPORT void c_QRect__moveTopLeft_QPoint(void *thisObj,void* p_);
|
||||
|
||||
//tag=1067
|
||||
// QRect::moveTopRight(const QPoint & p)
|
||||
KDDockWidgetsBindings_EXPORT void c_QRect__moveTopRight_QPoint(void *thisObj,void* p_);
|
||||
|
||||
//tag=1067
|
||||
// QRect::normalized() const
|
||||
KDDockWidgetsBindings_EXPORT void* c_QRect__normalized(void *thisObj);
|
||||
|
||||
//tag=1067
|
||||
// QRect::right() const
|
||||
KDDockWidgetsBindings_EXPORT int c_QRect__right(void *thisObj);
|
||||
|
||||
//tag=1067
|
||||
// QRect::setBottom(int pos)
|
||||
KDDockWidgetsBindings_EXPORT void c_QRect__setBottom_int(void *thisObj,int pos);
|
||||
|
||||
//tag=1067
|
||||
// QRect::setBottomLeft(const QPoint & p)
|
||||
KDDockWidgetsBindings_EXPORT void c_QRect__setBottomLeft_QPoint(void *thisObj,void* p_);
|
||||
|
||||
//tag=1067
|
||||
// QRect::setBottomRight(const QPoint & p)
|
||||
KDDockWidgetsBindings_EXPORT void c_QRect__setBottomRight_QPoint(void *thisObj,void* p_);
|
||||
|
||||
//tag=1067
|
||||
// QRect::setCoords(int x1, int y1, int x2, int y2)
|
||||
KDDockWidgetsBindings_EXPORT void c_QRect__setCoords_int_int_int_int(void *thisObj,int x1,int y1,int x2,int y2);
|
||||
|
||||
//tag=1067
|
||||
// QRect::setHeight(int h)
|
||||
KDDockWidgetsBindings_EXPORT void c_QRect__setHeight_int(void *thisObj,int h);
|
||||
|
||||
//tag=1067
|
||||
// QRect::setLeft(int pos)
|
||||
KDDockWidgetsBindings_EXPORT void c_QRect__setLeft_int(void *thisObj,int pos);
|
||||
|
||||
//tag=1067
|
||||
// QRect::setRect(int x, int y, int w, int h)
|
||||
KDDockWidgetsBindings_EXPORT void c_QRect__setRect_int_int_int_int(void *thisObj,int x,int y,int w,int h);
|
||||
|
||||
//tag=1067
|
||||
// QRect::setRight(int pos)
|
||||
KDDockWidgetsBindings_EXPORT void c_QRect__setRight_int(void *thisObj,int pos);
|
||||
|
||||
//tag=1067
|
||||
// QRect::setSize(const QSize & s)
|
||||
KDDockWidgetsBindings_EXPORT void c_QRect__setSize_QSize(void *thisObj,void* s_);
|
||||
|
||||
//tag=1067
|
||||
// QRect::setTop(int pos)
|
||||
KDDockWidgetsBindings_EXPORT void c_QRect__setTop_int(void *thisObj,int pos);
|
||||
|
||||
//tag=1067
|
||||
// QRect::setTopLeft(const QPoint & p)
|
||||
KDDockWidgetsBindings_EXPORT void c_QRect__setTopLeft_QPoint(void *thisObj,void* p_);
|
||||
|
||||
//tag=1067
|
||||
// QRect::setTopRight(const QPoint & p)
|
||||
KDDockWidgetsBindings_EXPORT void c_QRect__setTopRight_QPoint(void *thisObj,void* p_);
|
||||
|
||||
//tag=1067
|
||||
// QRect::setWidth(int w)
|
||||
KDDockWidgetsBindings_EXPORT void c_QRect__setWidth_int(void *thisObj,int w);
|
||||
|
||||
//tag=1067
|
||||
// QRect::setX(int x)
|
||||
KDDockWidgetsBindings_EXPORT void c_QRect__setX_int(void *thisObj,int x);
|
||||
|
||||
//tag=1067
|
||||
// QRect::setY(int y)
|
||||
KDDockWidgetsBindings_EXPORT void c_QRect__setY_int(void *thisObj,int y);
|
||||
|
||||
//tag=1067
|
||||
// QRect::size() const
|
||||
KDDockWidgetsBindings_EXPORT void* c_QRect__size(void *thisObj);
|
||||
|
||||
//tag=1067
|
||||
// QRect::top() const
|
||||
KDDockWidgetsBindings_EXPORT int c_QRect__top(void *thisObj);
|
||||
|
||||
//tag=1067
|
||||
// QRect::topLeft() const
|
||||
KDDockWidgetsBindings_EXPORT void* c_QRect__topLeft(void *thisObj);
|
||||
|
||||
//tag=1067
|
||||
// QRect::topRight() const
|
||||
KDDockWidgetsBindings_EXPORT void* c_QRect__topRight(void *thisObj);
|
||||
|
||||
//tag=1067
|
||||
// QRect::translate(const QPoint & p)
|
||||
KDDockWidgetsBindings_EXPORT void c_QRect__translate_QPoint(void *thisObj,void* p_);
|
||||
|
||||
//tag=1067
|
||||
// QRect::translate(int dx, int dy)
|
||||
KDDockWidgetsBindings_EXPORT void c_QRect__translate_int_int(void *thisObj,int dx,int dy);
|
||||
|
||||
//tag=1067
|
||||
// QRect::translated(const QPoint & p) const
|
||||
KDDockWidgetsBindings_EXPORT void* c_QRect__translated_QPoint(void *thisObj,void* p_);
|
||||
|
||||
//tag=1067
|
||||
// QRect::translated(int dx, int dy) const
|
||||
KDDockWidgetsBindings_EXPORT void* c_QRect__translated_int_int(void *thisObj,int dx,int dy);
|
||||
|
||||
//tag=1067
|
||||
// QRect::transposed() const
|
||||
KDDockWidgetsBindings_EXPORT void* c_QRect__transposed(void *thisObj);
|
||||
|
||||
//tag=1067
|
||||
// QRect::united(const QRect & other) const
|
||||
KDDockWidgetsBindings_EXPORT void* c_QRect__united_QRect(void *thisObj,void* other_);
|
||||
|
||||
//tag=1067
|
||||
// QRect::width() const
|
||||
KDDockWidgetsBindings_EXPORT int c_QRect__width(void *thisObj);
|
||||
|
||||
//tag=1067
|
||||
// QRect::x() const
|
||||
KDDockWidgetsBindings_EXPORT int c_QRect__x(void *thisObj);
|
||||
|
||||
//tag=1067
|
||||
// QRect::y() const
|
||||
KDDockWidgetsBindings_EXPORT int c_QRect__y(void *thisObj);
|
||||
|
||||
//tag=1066
|
||||
KDDockWidgetsBindings_EXPORT void c_QRect__destructor(void *thisObj);
|
||||
|
||||
//tag=1047
|
||||
KDDockWidgetsBindings_EXPORT void c_QRect_Finalizer(void *, void *cppObj, void *);}
|
||||
@@ -0,0 +1,190 @@
|
||||
/*
|
||||
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 "QSize_wrapper.h"
|
||||
|
||||
|
||||
#include <QDebug>
|
||||
|
||||
|
||||
namespace Dartagnan {
|
||||
|
||||
typedef int (*CleanupCallback)(void *thisPtr);
|
||||
static CleanupCallback s_cleanupCallback = nullptr;
|
||||
|
||||
template<typename T>
|
||||
struct ValueWrapper
|
||||
{
|
||||
T value;
|
||||
};
|
||||
|
||||
}
|
||||
namespace KDDockWidgetsBindings_wrappersNS {
|
||||
//tag=1006
|
||||
QSize_wrapper::QSize_wrapper() : ::QSize() {}
|
||||
|
||||
//tag=1006
|
||||
QSize_wrapper::QSize_wrapper(int w,int h) : ::QSize(w,h) {}
|
||||
QSize QSize_wrapper::boundedTo(const QSize & arg__1)const{
|
||||
//tag=1000
|
||||
|
||||
//tag=1004
|
||||
return ::QSize::boundedTo(arg__1);}
|
||||
QSize QSize_wrapper::expandedTo(const QSize & arg__1)const{
|
||||
//tag=1000
|
||||
|
||||
//tag=1004
|
||||
return ::QSize::expandedTo(arg__1);}
|
||||
int QSize_wrapper::height()const{
|
||||
//tag=1000
|
||||
|
||||
//tag=1004
|
||||
return ::QSize::height();}
|
||||
bool QSize_wrapper::isEmpty()const{
|
||||
//tag=1000
|
||||
|
||||
//tag=1004
|
||||
return ::QSize::isEmpty();}
|
||||
bool QSize_wrapper::isNull()const{
|
||||
//tag=1000
|
||||
|
||||
//tag=1004
|
||||
return ::QSize::isNull();}
|
||||
bool QSize_wrapper::isValid()const{
|
||||
//tag=1000
|
||||
|
||||
//tag=1004
|
||||
return ::QSize::isValid();}
|
||||
void QSize_wrapper::setHeight(int h){
|
||||
//tag=1000
|
||||
|
||||
//tag=1004
|
||||
::QSize::setHeight(h);}
|
||||
void QSize_wrapper::setWidth(int w){
|
||||
//tag=1000
|
||||
|
||||
//tag=1004
|
||||
::QSize::setWidth(w);}
|
||||
void QSize_wrapper::transpose(){
|
||||
//tag=1000
|
||||
|
||||
//tag=1004
|
||||
::QSize::transpose();}
|
||||
QSize QSize_wrapper::transposed()const{
|
||||
//tag=1000
|
||||
|
||||
//tag=1004
|
||||
return ::QSize::transposed();}
|
||||
int QSize_wrapper::width()const{
|
||||
//tag=1000
|
||||
|
||||
//tag=1004
|
||||
return ::QSize::width();}
|
||||
|
||||
//tag=1005
|
||||
QSize_wrapper::~QSize_wrapper() {}
|
||||
|
||||
}
|
||||
//tag=1013
|
||||
static QSize* fromPtr(void *ptr)
|
||||
{return reinterpret_cast<QSize*>(ptr);}
|
||||
//tag=1014
|
||||
static KDDockWidgetsBindings_wrappersNS::QSize_wrapper* fromWrapperPtr(void *ptr)
|
||||
{return reinterpret_cast<KDDockWidgetsBindings_wrappersNS::QSize_wrapper*>(ptr);}extern "C" {
|
||||
|
||||
//tag=1049
|
||||
void c_QSize_Finalizer(void *, void *cppObj, void *){delete reinterpret_cast<KDDockWidgetsBindings_wrappersNS::QSize_wrapper *>(cppObj);}void * c_QSize__constructor()
|
||||
{
|
||||
|
||||
//tag=1056
|
||||
auto ptr = new KDDockWidgetsBindings_wrappersNS::QSize_wrapper();return reinterpret_cast<void*>(ptr);}
|
||||
void * c_QSize__constructor_int_int(int w,int h)
|
||||
{
|
||||
|
||||
//tag=1056
|
||||
auto ptr = new KDDockWidgetsBindings_wrappersNS::QSize_wrapper(w,h);return reinterpret_cast<void*>(ptr);}
|
||||
|
||||
//tag=1050
|
||||
//boundedTo(const QSize & arg__1) const
|
||||
void* c_QSize__boundedTo_QSize(void *thisObj,void* arg__1_){auto &arg__1 = *reinterpret_cast<QSize *>(arg__1_);return
|
||||
//tag=1010
|
||||
|
||||
//tag=1072
|
||||
new Dartagnan::ValueWrapper<QSize>{fromPtr(thisObj)->boundedTo(arg__1)};}
|
||||
|
||||
//tag=1050
|
||||
//expandedTo(const QSize & arg__1) const
|
||||
void* c_QSize__expandedTo_QSize(void *thisObj,void* arg__1_){auto &arg__1 = *reinterpret_cast<QSize *>(arg__1_);return
|
||||
//tag=1010
|
||||
|
||||
//tag=1072
|
||||
new Dartagnan::ValueWrapper<QSize>{fromPtr(thisObj)->expandedTo(arg__1)};}
|
||||
|
||||
//tag=1050
|
||||
//height() const
|
||||
int c_QSize__height(void *thisObj){return
|
||||
//tag=1010
|
||||
fromPtr(thisObj)->height();}
|
||||
|
||||
//tag=1050
|
||||
//isEmpty() const
|
||||
bool c_QSize__isEmpty(void *thisObj){return
|
||||
//tag=1010
|
||||
fromPtr(thisObj)->isEmpty();}
|
||||
|
||||
//tag=1050
|
||||
//isNull() const
|
||||
bool c_QSize__isNull(void *thisObj){return
|
||||
//tag=1010
|
||||
fromPtr(thisObj)->isNull();}
|
||||
|
||||
//tag=1050
|
||||
//isValid() const
|
||||
bool c_QSize__isValid(void *thisObj){return
|
||||
//tag=1010
|
||||
fromPtr(thisObj)->isValid();}
|
||||
|
||||
//tag=1050
|
||||
//setHeight(int h)
|
||||
void c_QSize__setHeight_int(void *thisObj,int h){
|
||||
//tag=1010
|
||||
fromPtr(thisObj)->setHeight(h);}
|
||||
|
||||
//tag=1050
|
||||
//setWidth(int w)
|
||||
void c_QSize__setWidth_int(void *thisObj,int w){
|
||||
//tag=1010
|
||||
fromPtr(thisObj)->setWidth(w);}
|
||||
|
||||
//tag=1050
|
||||
//transpose()
|
||||
void c_QSize__transpose(void *thisObj){
|
||||
//tag=1010
|
||||
fromPtr(thisObj)->transpose();}
|
||||
|
||||
//tag=1050
|
||||
//transposed() const
|
||||
void* c_QSize__transposed(void *thisObj){return
|
||||
//tag=1010
|
||||
|
||||
//tag=1072
|
||||
new Dartagnan::ValueWrapper<QSize>{fromPtr(thisObj)->transposed()};}
|
||||
|
||||
//tag=1050
|
||||
//width() const
|
||||
int c_QSize__width(void *thisObj){return
|
||||
//tag=1010
|
||||
fromPtr(thisObj)->width();}
|
||||
void c_QSize__destructor(void *thisObj)
|
||||
{
|
||||
|
||||
//tag=1055
|
||||
delete fromPtr(thisObj);}
|
||||
}
|
||||
@@ -0,0 +1,106 @@
|
||||
/*
|
||||
This file is part of KDDockWidgets.
|
||||
|
||||
SPDX-FileCopyrightText: 2019-2022 Klarälvdalens Datakonsult AB, a KDAB Group company <info@kdab.com>
|
||||
Author: Sérgio Martins <sergio.martins@kdab.com>
|
||||
|
||||
SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only
|
||||
|
||||
Contact KDAB at <info@kdab.com> for commercial licensing options.
|
||||
*/
|
||||
|
||||
//tag=1040
|
||||
#include "KDDockWidgetsBindings_exports.h"
|
||||
#include <qsize.h>
|
||||
|
||||
namespace KDDockWidgetsBindings_wrappersNS {
|
||||
//tag=1043
|
||||
class QSize_wrapper : public ::QSize {public:
|
||||
~QSize_wrapper();
|
||||
//tag=1041
|
||||
QSize_wrapper();
|
||||
//tag=1041
|
||||
QSize_wrapper(int w,int h);
|
||||
//tag=1041
|
||||
QSize boundedTo(const QSize & arg__1)const;
|
||||
//tag=1041
|
||||
QSize expandedTo(const QSize & arg__1)const;
|
||||
//tag=1041
|
||||
int height()const;
|
||||
//tag=1041
|
||||
bool isEmpty()const;
|
||||
//tag=1041
|
||||
bool isNull()const;
|
||||
//tag=1041
|
||||
bool isValid()const;
|
||||
//tag=1041
|
||||
void setHeight(int h);
|
||||
//tag=1041
|
||||
void setWidth(int w);
|
||||
//tag=1041
|
||||
void transpose();
|
||||
//tag=1041
|
||||
QSize transposed()const;
|
||||
//tag=1041
|
||||
int width()const;
|
||||
|
||||
};
|
||||
}extern "C" {
|
||||
|
||||
//tag=1067
|
||||
// QSize::QSize()
|
||||
KDDockWidgetsBindings_EXPORT void * c_QSize__constructor();
|
||||
|
||||
//tag=1067
|
||||
// QSize::QSize(int w, int h)
|
||||
KDDockWidgetsBindings_EXPORT void * c_QSize__constructor_int_int(int w,int h);
|
||||
|
||||
//tag=1067
|
||||
// QSize::boundedTo(const QSize & arg__1) const
|
||||
KDDockWidgetsBindings_EXPORT void* c_QSize__boundedTo_QSize(void *thisObj,void* arg__1_);
|
||||
|
||||
//tag=1067
|
||||
// QSize::expandedTo(const QSize & arg__1) const
|
||||
KDDockWidgetsBindings_EXPORT void* c_QSize__expandedTo_QSize(void *thisObj,void* arg__1_);
|
||||
|
||||
//tag=1067
|
||||
// QSize::height() const
|
||||
KDDockWidgetsBindings_EXPORT int c_QSize__height(void *thisObj);
|
||||
|
||||
//tag=1067
|
||||
// QSize::isEmpty() const
|
||||
KDDockWidgetsBindings_EXPORT bool c_QSize__isEmpty(void *thisObj);
|
||||
|
||||
//tag=1067
|
||||
// QSize::isNull() const
|
||||
KDDockWidgetsBindings_EXPORT bool c_QSize__isNull(void *thisObj);
|
||||
|
||||
//tag=1067
|
||||
// QSize::isValid() const
|
||||
KDDockWidgetsBindings_EXPORT bool c_QSize__isValid(void *thisObj);
|
||||
|
||||
//tag=1067
|
||||
// QSize::setHeight(int h)
|
||||
KDDockWidgetsBindings_EXPORT void c_QSize__setHeight_int(void *thisObj,int h);
|
||||
|
||||
//tag=1067
|
||||
// QSize::setWidth(int w)
|
||||
KDDockWidgetsBindings_EXPORT void c_QSize__setWidth_int(void *thisObj,int w);
|
||||
|
||||
//tag=1067
|
||||
// QSize::transpose()
|
||||
KDDockWidgetsBindings_EXPORT void c_QSize__transpose(void *thisObj);
|
||||
|
||||
//tag=1067
|
||||
// QSize::transposed() const
|
||||
KDDockWidgetsBindings_EXPORT void* c_QSize__transposed(void *thisObj);
|
||||
|
||||
//tag=1067
|
||||
// QSize::width() const
|
||||
KDDockWidgetsBindings_EXPORT int c_QSize__width(void *thisObj);
|
||||
|
||||
//tag=1066
|
||||
KDDockWidgetsBindings_EXPORT void c_QSize__destructor(void *thisObj);
|
||||
|
||||
//tag=1047
|
||||
KDDockWidgetsBindings_EXPORT void c_QSize_Finalizer(void *, void *cppObj, void *);}
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,539 @@
|
||||
/*
|
||||
This file is part of KDDockWidgets.
|
||||
|
||||
SPDX-FileCopyrightText: 2019-2022 Klarälvdalens Datakonsult AB, a KDAB Group company <info@kdab.com>
|
||||
Author: Sérgio Martins <sergio.martins@kdab.com>
|
||||
|
||||
SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only
|
||||
|
||||
Contact KDAB at <info@kdab.com> for commercial licensing options.
|
||||
*/
|
||||
|
||||
//tag=1040
|
||||
#include "KDDockWidgetsBindings_exports.h"
|
||||
#include <qstring.h>
|
||||
#include <qbytearray.h>
|
||||
|
||||
namespace KDDockWidgetsBindings_wrappersNS {
|
||||
//tag=1043
|
||||
class QString_wrapper : public ::QString {public:
|
||||
~QString_wrapper();
|
||||
//tag=1041
|
||||
QString_wrapper();
|
||||
//tag=1041
|
||||
QString & append(const QString & s);
|
||||
//tag=1041
|
||||
QString arg(const QString & a,int fieldWidth = 0)const;
|
||||
//tag=1041
|
||||
QString arg(const QString & a1,const QString & a2)const;
|
||||
//tag=1041
|
||||
QString arg(const QString & a1,const QString & a2,const QString & a3)const;
|
||||
//tag=1041
|
||||
QString arg(const QString & a1,const QString & a2,const QString & a3,const QString & a4)const;
|
||||
//tag=1041
|
||||
QString arg(const QString & a1,const QString & a2,const QString & a3,const QString & a4,const QString & a5)const;
|
||||
//tag=1041
|
||||
QString arg(const QString & a1,const QString & a2,const QString & a3,const QString & a4,const QString & a5,const QString & a6)const;
|
||||
//tag=1041
|
||||
QString arg(const QString & a1,const QString & a2,const QString & a3,const QString & a4,const QString & a5,const QString & a6,const QString & a7)const;
|
||||
//tag=1041
|
||||
QString arg(const QString & a1,const QString & a2,const QString & a3,const QString & a4,const QString & a5,const QString & a6,const QString & a7,const QString & a8)const;
|
||||
//tag=1041
|
||||
QString arg(const QString & a1,const QString & a2,const QString & a3,const QString & a4,const QString & a5,const QString & a6,const QString & a7,const QString & a8,const QString & a9)const;
|
||||
//tag=1041
|
||||
QString arg(int a,int fieldWidth = 0,int base = 10)const;
|
||||
//tag=1041
|
||||
QString arg(long a,int fieldwidth = 0,int base = 10)const;
|
||||
//tag=1041
|
||||
QString arg(qint64 a,int fieldwidth = 0,int base = 10)const;
|
||||
//tag=1041
|
||||
QString arg(short a,int fieldWidth = 0,int base = 10)const;
|
||||
//tag=1041
|
||||
static QString asprintf(const char * format);
|
||||
//tag=1041
|
||||
int capacity()const;
|
||||
//tag=1041
|
||||
void chop(int n);
|
||||
//tag=1041
|
||||
QString chopped(int n)const;
|
||||
//tag=1041
|
||||
void clear();
|
||||
//tag=1041
|
||||
int compare(const QString & s)const;
|
||||
//tag=1041
|
||||
static int compare(const QString & s1,const QString & s2);
|
||||
//tag=1041
|
||||
bool contains(const QString & s)const;
|
||||
//tag=1041
|
||||
int count()const;
|
||||
//tag=1041
|
||||
int count(const QString & s)const;
|
||||
//tag=1041
|
||||
void detach();
|
||||
//tag=1041
|
||||
bool endsWith(const QString & s)const;
|
||||
//tag=1041
|
||||
static QString fromLatin1(const QByteArray & str);
|
||||
//tag=1041
|
||||
static QString fromLatin1(const char * str,int size = -1);
|
||||
//tag=1041
|
||||
static QString fromLocal8Bit(const QByteArray & str);
|
||||
//tag=1041
|
||||
static QString fromLocal8Bit(const char * str,int size = -1);
|
||||
//tag=1041
|
||||
static QString fromUtf8(const QByteArray & str);
|
||||
//tag=1041
|
||||
static QString fromUtf8(const char * str,int size = -1);
|
||||
//tag=1041
|
||||
int indexOf(const QString & s,int from = 0)const;
|
||||
//tag=1041
|
||||
QString & insert(int i,const QString & s);
|
||||
//tag=1041
|
||||
bool isDetached()const;
|
||||
//tag=1041
|
||||
bool isEmpty()const;
|
||||
//tag=1041
|
||||
bool isLower()const;
|
||||
//tag=1041
|
||||
bool isNull()const;
|
||||
//tag=1041
|
||||
bool isRightToLeft()const;
|
||||
//tag=1041
|
||||
bool isSharedWith(const QString & other)const;
|
||||
//tag=1041
|
||||
bool isSimpleText()const;
|
||||
//tag=1041
|
||||
bool isUpper()const;
|
||||
//tag=1041
|
||||
bool isValidUtf16()const;
|
||||
//tag=1041
|
||||
int lastIndexOf(const QString & s,int from = -1)const;
|
||||
//tag=1041
|
||||
QString left(int n)const;
|
||||
//tag=1041
|
||||
QString leftJustified(int width)const;
|
||||
//tag=1041
|
||||
int length()const;
|
||||
//tag=1041
|
||||
int localeAwareCompare(const QString & s)const;
|
||||
//tag=1041
|
||||
static int localeAwareCompare(const QString & s1,const QString & s2);
|
||||
//tag=1041
|
||||
QString mid(int position,int n = -1)const;
|
||||
//tag=1041
|
||||
static QString number(int arg__1,int base = 10);
|
||||
//tag=1041
|
||||
static QString number(long arg__1,int base = 10);
|
||||
//tag=1041
|
||||
static QString number(qint64 arg__1,int base = 10);
|
||||
//tag=1041
|
||||
QString & prepend(const QString & s);
|
||||
//tag=1041
|
||||
void push_back(const QString & s);
|
||||
//tag=1041
|
||||
void push_front(const QString & s);
|
||||
//tag=1041
|
||||
QString & remove(const QString & s);
|
||||
//tag=1041
|
||||
QString & remove(int i,int len);
|
||||
//tag=1041
|
||||
QString repeated(int times)const;
|
||||
//tag=1041
|
||||
QString & replace(const QString & before,const QString & after);
|
||||
//tag=1041
|
||||
QString & replace(int i,int len,const QString & after);
|
||||
//tag=1041
|
||||
void reserve(int size);
|
||||
//tag=1041
|
||||
void resize(int size);
|
||||
//tag=1041
|
||||
QString right(int n)const;
|
||||
//tag=1041
|
||||
QString rightJustified(int width)const;
|
||||
//tag=1041
|
||||
QString section(const QString & in_sep,int start,int end = -1)const;
|
||||
//tag=1041
|
||||
QString & setNum(int arg__1,int base = 10);
|
||||
//tag=1041
|
||||
QString & setNum(long arg__1,int base = 10);
|
||||
//tag=1041
|
||||
QString & setNum(qint64 arg__1,int base = 10);
|
||||
//tag=1041
|
||||
QString & setNum(short arg__1,int base = 10);
|
||||
//tag=1041
|
||||
void shrink_to_fit();
|
||||
//tag=1041
|
||||
QString simplified();
|
||||
//tag=1041
|
||||
int size()const;
|
||||
//tag=1041
|
||||
void squeeze();
|
||||
//tag=1041
|
||||
bool startsWith(const QString & s)const;
|
||||
//tag=1041
|
||||
QString toCaseFolded();
|
||||
//tag=1041
|
||||
QString toHtmlEscaped()const;
|
||||
//tag=1041
|
||||
QByteArray toLatin1();
|
||||
//tag=1041
|
||||
QByteArray toLocal8Bit();
|
||||
//tag=1041
|
||||
QString toLower();
|
||||
//tag=1041
|
||||
QString toUpper();
|
||||
//tag=1041
|
||||
QByteArray toUtf8();
|
||||
//tag=1041
|
||||
QString trimmed();
|
||||
//tag=1041
|
||||
void truncate(int pos);
|
||||
|
||||
};
|
||||
}extern "C" {
|
||||
|
||||
//tag=1067
|
||||
// QString::QString()
|
||||
KDDockWidgetsBindings_EXPORT void * c_QString__constructor();
|
||||
|
||||
//tag=1067
|
||||
// QString::append(const QString & s)
|
||||
KDDockWidgetsBindings_EXPORT void* c_QString__append_QString(void *thisObj,const char *s_);
|
||||
|
||||
//tag=1067
|
||||
// QString::arg(const QString & a, int fieldWidth) const
|
||||
KDDockWidgetsBindings_EXPORT void* c_QString__arg_QString_int(void *thisObj,const char *a_,int fieldWidth);
|
||||
|
||||
//tag=1067
|
||||
// QString::arg(const QString & a1, const QString & a2) const
|
||||
KDDockWidgetsBindings_EXPORT void* c_QString__arg_QString_QString(void *thisObj,const char *a1_,const char *a2_);
|
||||
|
||||
//tag=1067
|
||||
// QString::arg(const QString & a1, const QString & a2, const QString & a3) const
|
||||
KDDockWidgetsBindings_EXPORT void* c_QString__arg_QString_QString_QString(void *thisObj,const char *a1_,const char *a2_,const char *a3_);
|
||||
|
||||
//tag=1067
|
||||
// QString::arg(const QString & a1, const QString & a2, const QString & a3, const QString & a4) const
|
||||
KDDockWidgetsBindings_EXPORT void* c_QString__arg_QString_QString_QString_QString(void *thisObj,const char *a1_,const char *a2_,const char *a3_,const char *a4_);
|
||||
|
||||
//tag=1067
|
||||
// QString::arg(const QString & a1, const QString & a2, const QString & a3, const QString & a4, const QString & a5) const
|
||||
KDDockWidgetsBindings_EXPORT void* c_QString__arg_QString_QString_QString_QString_QString(void *thisObj,const char *a1_,const char *a2_,const char *a3_,const char *a4_,const char *a5_);
|
||||
|
||||
//tag=1067
|
||||
// QString::arg(const QString & a1, const QString & a2, const QString & a3, const QString & a4, const QString & a5, const QString & a6) const
|
||||
KDDockWidgetsBindings_EXPORT void* c_QString__arg_QString_QString_QString_QString_QString_QString(void *thisObj,const char *a1_,const char *a2_,const char *a3_,const char *a4_,const char *a5_,const char *a6_);
|
||||
|
||||
//tag=1067
|
||||
// QString::arg(const QString & a1, const QString & a2, const QString & a3, const QString & a4, const QString & a5, const QString & a6, const QString & a7) const
|
||||
KDDockWidgetsBindings_EXPORT void* c_QString__arg_QString_QString_QString_QString_QString_QString_QString(void *thisObj,const char *a1_,const char *a2_,const char *a3_,const char *a4_,const char *a5_,const char *a6_,const char *a7_);
|
||||
|
||||
//tag=1067
|
||||
// QString::arg(const QString & a1, const QString & a2, const QString & a3, const QString & a4, const QString & a5, const QString & a6, const QString & a7, const QString & a8) const
|
||||
KDDockWidgetsBindings_EXPORT void* c_QString__arg_QString_QString_QString_QString_QString_QString_QString_QString(void *thisObj,const char *a1_,const char *a2_,const char *a3_,const char *a4_,const char *a5_,const char *a6_,const char *a7_,const char *a8_);
|
||||
|
||||
//tag=1067
|
||||
// QString::arg(const QString & a1, const QString & a2, const QString & a3, const QString & a4, const QString & a5, const QString & a6, const QString & a7, const QString & a8, const QString & a9) const
|
||||
KDDockWidgetsBindings_EXPORT void* c_QString__arg_QString_QString_QString_QString_QString_QString_QString_QString_QString(void *thisObj,const char *a1_,const char *a2_,const char *a3_,const char *a4_,const char *a5_,const char *a6_,const char *a7_,const char *a8_,const char *a9_);
|
||||
|
||||
//tag=1067
|
||||
// QString::arg(int a, int fieldWidth, int base) const
|
||||
KDDockWidgetsBindings_EXPORT void* c_QString__arg_int_int_int(void *thisObj,int a,int fieldWidth,int base);
|
||||
|
||||
//tag=1067
|
||||
// QString::arg(long a, int fieldwidth, int base) const
|
||||
KDDockWidgetsBindings_EXPORT void* c_QString__arg_long_int_int(void *thisObj,long a,int fieldwidth,int base);
|
||||
|
||||
//tag=1067
|
||||
// QString::arg(qint64 a, int fieldwidth, int base) const
|
||||
KDDockWidgetsBindings_EXPORT void* c_QString__arg_qint64_int_int(void *thisObj,qint64 a,int fieldwidth,int base);
|
||||
|
||||
//tag=1067
|
||||
// QString::arg(short a, int fieldWidth, int base) const
|
||||
KDDockWidgetsBindings_EXPORT void* c_QString__arg_short_int_int(void *thisObj,short a,int fieldWidth,int base);
|
||||
|
||||
//tag=1067
|
||||
// QString::asprintf(const char * format)
|
||||
KDDockWidgetsBindings_EXPORT void* c_static_QString__asprintf_char(const char * format);
|
||||
|
||||
//tag=1067
|
||||
// QString::capacity() const
|
||||
KDDockWidgetsBindings_EXPORT int c_QString__capacity(void *thisObj);
|
||||
|
||||
//tag=1067
|
||||
// QString::chop(int n)
|
||||
KDDockWidgetsBindings_EXPORT void c_QString__chop_int(void *thisObj,int n);
|
||||
|
||||
//tag=1067
|
||||
// QString::chopped(int n) const
|
||||
KDDockWidgetsBindings_EXPORT void* c_QString__chopped_int(void *thisObj,int n);
|
||||
|
||||
//tag=1067
|
||||
// QString::clear()
|
||||
KDDockWidgetsBindings_EXPORT void c_QString__clear(void *thisObj);
|
||||
|
||||
//tag=1067
|
||||
// QString::compare(const QString & s) const
|
||||
KDDockWidgetsBindings_EXPORT int c_QString__compare_QString(void *thisObj,const char *s_);
|
||||
|
||||
//tag=1067
|
||||
// QString::compare(const QString & s1, const QString & s2)
|
||||
KDDockWidgetsBindings_EXPORT int c_static_QString__compare_QString_QString(const char *s1_,const char *s2_);
|
||||
|
||||
//tag=1067
|
||||
// QString::contains(const QString & s) const
|
||||
KDDockWidgetsBindings_EXPORT bool c_QString__contains_QString(void *thisObj,const char *s_);
|
||||
|
||||
//tag=1067
|
||||
// QString::count() const
|
||||
KDDockWidgetsBindings_EXPORT int c_QString__count(void *thisObj);
|
||||
|
||||
//tag=1067
|
||||
// QString::count(const QString & s) const
|
||||
KDDockWidgetsBindings_EXPORT int c_QString__count_QString(void *thisObj,const char *s_);
|
||||
|
||||
//tag=1067
|
||||
// QString::detach()
|
||||
KDDockWidgetsBindings_EXPORT void c_QString__detach(void *thisObj);
|
||||
|
||||
//tag=1067
|
||||
// QString::endsWith(const QString & s) const
|
||||
KDDockWidgetsBindings_EXPORT bool c_QString__endsWith_QString(void *thisObj,const char *s_);
|
||||
|
||||
//tag=1067
|
||||
// QString::fromLatin1(const QByteArray & str)
|
||||
KDDockWidgetsBindings_EXPORT void* c_static_QString__fromLatin1_QByteArray(void* str_);
|
||||
|
||||
//tag=1067
|
||||
// QString::fromLatin1(const char * str, int size)
|
||||
KDDockWidgetsBindings_EXPORT void* c_static_QString__fromLatin1_char_int(const char * str,int size);
|
||||
|
||||
//tag=1067
|
||||
// QString::fromLocal8Bit(const QByteArray & str)
|
||||
KDDockWidgetsBindings_EXPORT void* c_static_QString__fromLocal8Bit_QByteArray(void* str_);
|
||||
|
||||
//tag=1067
|
||||
// QString::fromLocal8Bit(const char * str, int size)
|
||||
KDDockWidgetsBindings_EXPORT void* c_static_QString__fromLocal8Bit_char_int(const char * str,int size);
|
||||
|
||||
//tag=1067
|
||||
// QString::fromUtf8(const QByteArray & str)
|
||||
KDDockWidgetsBindings_EXPORT void* c_static_QString__fromUtf8_QByteArray(void* str_);
|
||||
|
||||
//tag=1067
|
||||
// QString::fromUtf8(const char * str, int size)
|
||||
KDDockWidgetsBindings_EXPORT void* c_static_QString__fromUtf8_char_int(const char * str,int size);
|
||||
|
||||
//tag=1067
|
||||
// QString::indexOf(const QString & s, int from) const
|
||||
KDDockWidgetsBindings_EXPORT int c_QString__indexOf_QString_int(void *thisObj,const char *s_,int from);
|
||||
|
||||
//tag=1067
|
||||
// QString::insert(int i, const QString & s)
|
||||
KDDockWidgetsBindings_EXPORT void* c_QString__insert_int_QString(void *thisObj,int i,const char *s_);
|
||||
|
||||
//tag=1067
|
||||
// QString::isDetached() const
|
||||
KDDockWidgetsBindings_EXPORT bool c_QString__isDetached(void *thisObj);
|
||||
|
||||
//tag=1067
|
||||
// QString::isEmpty() const
|
||||
KDDockWidgetsBindings_EXPORT bool c_QString__isEmpty(void *thisObj);
|
||||
|
||||
//tag=1067
|
||||
// QString::isLower() const
|
||||
KDDockWidgetsBindings_EXPORT bool c_QString__isLower(void *thisObj);
|
||||
|
||||
//tag=1067
|
||||
// QString::isNull() const
|
||||
KDDockWidgetsBindings_EXPORT bool c_QString__isNull(void *thisObj);
|
||||
|
||||
//tag=1067
|
||||
// QString::isRightToLeft() const
|
||||
KDDockWidgetsBindings_EXPORT bool c_QString__isRightToLeft(void *thisObj);
|
||||
|
||||
//tag=1067
|
||||
// QString::isSharedWith(const QString & other) const
|
||||
KDDockWidgetsBindings_EXPORT bool c_QString__isSharedWith_QString(void *thisObj,const char *other_);
|
||||
|
||||
//tag=1067
|
||||
// QString::isSimpleText() const
|
||||
KDDockWidgetsBindings_EXPORT bool c_QString__isSimpleText(void *thisObj);
|
||||
|
||||
//tag=1067
|
||||
// QString::isUpper() const
|
||||
KDDockWidgetsBindings_EXPORT bool c_QString__isUpper(void *thisObj);
|
||||
|
||||
//tag=1067
|
||||
// QString::isValidUtf16() const
|
||||
KDDockWidgetsBindings_EXPORT bool c_QString__isValidUtf16(void *thisObj);
|
||||
|
||||
//tag=1067
|
||||
// QString::lastIndexOf(const QString & s, int from) const
|
||||
KDDockWidgetsBindings_EXPORT int c_QString__lastIndexOf_QString_int(void *thisObj,const char *s_,int from);
|
||||
|
||||
//tag=1067
|
||||
// QString::left(int n) const
|
||||
KDDockWidgetsBindings_EXPORT void* c_QString__left_int(void *thisObj,int n);
|
||||
|
||||
//tag=1067
|
||||
// QString::leftJustified(int width) const
|
||||
KDDockWidgetsBindings_EXPORT void* c_QString__leftJustified_int(void *thisObj,int width);
|
||||
|
||||
//tag=1067
|
||||
// QString::length() const
|
||||
KDDockWidgetsBindings_EXPORT int c_QString__length(void *thisObj);
|
||||
|
||||
//tag=1067
|
||||
// QString::localeAwareCompare(const QString & s) const
|
||||
KDDockWidgetsBindings_EXPORT int c_QString__localeAwareCompare_QString(void *thisObj,const char *s_);
|
||||
|
||||
//tag=1067
|
||||
// QString::localeAwareCompare(const QString & s1, const QString & s2)
|
||||
KDDockWidgetsBindings_EXPORT int c_static_QString__localeAwareCompare_QString_QString(const char *s1_,const char *s2_);
|
||||
|
||||
//tag=1067
|
||||
// QString::mid(int position, int n) const
|
||||
KDDockWidgetsBindings_EXPORT void* c_QString__mid_int_int(void *thisObj,int position,int n);
|
||||
|
||||
//tag=1067
|
||||
// QString::number(int arg__1, int base)
|
||||
KDDockWidgetsBindings_EXPORT void* c_static_QString__number_int_int(int arg__1,int base);
|
||||
|
||||
//tag=1067
|
||||
// QString::number(long arg__1, int base)
|
||||
KDDockWidgetsBindings_EXPORT void* c_static_QString__number_long_int(long arg__1,int base);
|
||||
|
||||
//tag=1067
|
||||
// QString::number(qint64 arg__1, int base)
|
||||
KDDockWidgetsBindings_EXPORT void* c_static_QString__number_qint64_int(qint64 arg__1,int base);
|
||||
|
||||
//tag=1067
|
||||
// QString::prepend(const QString & s)
|
||||
KDDockWidgetsBindings_EXPORT void* c_QString__prepend_QString(void *thisObj,const char *s_);
|
||||
|
||||
//tag=1067
|
||||
// QString::push_back(const QString & s)
|
||||
KDDockWidgetsBindings_EXPORT void c_QString__push_back_QString(void *thisObj,const char *s_);
|
||||
|
||||
//tag=1067
|
||||
// QString::push_front(const QString & s)
|
||||
KDDockWidgetsBindings_EXPORT void c_QString__push_front_QString(void *thisObj,const char *s_);
|
||||
|
||||
//tag=1067
|
||||
// QString::remove(const QString & s)
|
||||
KDDockWidgetsBindings_EXPORT void* c_QString__remove_QString(void *thisObj,const char *s_);
|
||||
|
||||
//tag=1067
|
||||
// QString::remove(int i, int len)
|
||||
KDDockWidgetsBindings_EXPORT void* c_QString__remove_int_int(void *thisObj,int i,int len);
|
||||
|
||||
//tag=1067
|
||||
// QString::repeated(int times) const
|
||||
KDDockWidgetsBindings_EXPORT void* c_QString__repeated_int(void *thisObj,int times);
|
||||
|
||||
//tag=1067
|
||||
// QString::replace(const QString & before, const QString & after)
|
||||
KDDockWidgetsBindings_EXPORT void* c_QString__replace_QString_QString(void *thisObj,const char *before_,const char *after_);
|
||||
|
||||
//tag=1067
|
||||
// QString::replace(int i, int len, const QString & after)
|
||||
KDDockWidgetsBindings_EXPORT void* c_QString__replace_int_int_QString(void *thisObj,int i,int len,const char *after_);
|
||||
|
||||
//tag=1067
|
||||
// QString::reserve(int size)
|
||||
KDDockWidgetsBindings_EXPORT void c_QString__reserve_int(void *thisObj,int size);
|
||||
|
||||
//tag=1067
|
||||
// QString::resize(int size)
|
||||
KDDockWidgetsBindings_EXPORT void c_QString__resize_int(void *thisObj,int size);
|
||||
|
||||
//tag=1067
|
||||
// QString::right(int n) const
|
||||
KDDockWidgetsBindings_EXPORT void* c_QString__right_int(void *thisObj,int n);
|
||||
|
||||
//tag=1067
|
||||
// QString::rightJustified(int width) const
|
||||
KDDockWidgetsBindings_EXPORT void* c_QString__rightJustified_int(void *thisObj,int width);
|
||||
|
||||
//tag=1067
|
||||
// QString::section(const QString & in_sep, int start, int end) const
|
||||
KDDockWidgetsBindings_EXPORT void* c_QString__section_QString_int_int(void *thisObj,const char *in_sep_,int start,int end);
|
||||
|
||||
//tag=1067
|
||||
// QString::setNum(int arg__1, int base)
|
||||
KDDockWidgetsBindings_EXPORT void* c_QString__setNum_int_int(void *thisObj,int arg__1,int base);
|
||||
|
||||
//tag=1067
|
||||
// QString::setNum(long arg__1, int base)
|
||||
KDDockWidgetsBindings_EXPORT void* c_QString__setNum_long_int(void *thisObj,long arg__1,int base);
|
||||
|
||||
//tag=1067
|
||||
// QString::setNum(qint64 arg__1, int base)
|
||||
KDDockWidgetsBindings_EXPORT void* c_QString__setNum_qint64_int(void *thisObj,qint64 arg__1,int base);
|
||||
|
||||
//tag=1067
|
||||
// QString::setNum(short arg__1, int base)
|
||||
KDDockWidgetsBindings_EXPORT void* c_QString__setNum_short_int(void *thisObj,short arg__1,int base);
|
||||
|
||||
//tag=1067
|
||||
// QString::shrink_to_fit()
|
||||
KDDockWidgetsBindings_EXPORT void c_QString__shrink_to_fit(void *thisObj);
|
||||
|
||||
//tag=1067
|
||||
// QString::simplified()
|
||||
KDDockWidgetsBindings_EXPORT void* c_QString__simplified(void *thisObj);
|
||||
|
||||
//tag=1067
|
||||
// QString::size() const
|
||||
KDDockWidgetsBindings_EXPORT int c_QString__size(void *thisObj);
|
||||
|
||||
//tag=1067
|
||||
// QString::squeeze()
|
||||
KDDockWidgetsBindings_EXPORT void c_QString__squeeze(void *thisObj);
|
||||
|
||||
//tag=1067
|
||||
// QString::startsWith(const QString & s) const
|
||||
KDDockWidgetsBindings_EXPORT bool c_QString__startsWith_QString(void *thisObj,const char *s_);
|
||||
|
||||
//tag=1067
|
||||
// QString::toCaseFolded()
|
||||
KDDockWidgetsBindings_EXPORT void* c_QString__toCaseFolded(void *thisObj);
|
||||
|
||||
//tag=1067
|
||||
// QString::toHtmlEscaped() const
|
||||
KDDockWidgetsBindings_EXPORT void* c_QString__toHtmlEscaped(void *thisObj);
|
||||
|
||||
//tag=1067
|
||||
// QString::toLatin1()
|
||||
KDDockWidgetsBindings_EXPORT void* c_QString__toLatin1(void *thisObj);
|
||||
|
||||
//tag=1067
|
||||
// QString::toLocal8Bit()
|
||||
KDDockWidgetsBindings_EXPORT void* c_QString__toLocal8Bit(void *thisObj);
|
||||
|
||||
//tag=1067
|
||||
// QString::toLower()
|
||||
KDDockWidgetsBindings_EXPORT void* c_QString__toLower(void *thisObj);
|
||||
|
||||
//tag=1067
|
||||
// QString::toUpper()
|
||||
KDDockWidgetsBindings_EXPORT void* c_QString__toUpper(void *thisObj);
|
||||
|
||||
//tag=1067
|
||||
// QString::toUtf8()
|
||||
KDDockWidgetsBindings_EXPORT void* c_QString__toUtf8(void *thisObj);
|
||||
|
||||
//tag=1067
|
||||
// QString::trimmed()
|
||||
KDDockWidgetsBindings_EXPORT void* c_QString__trimmed(void *thisObj);
|
||||
|
||||
//tag=1067
|
||||
// QString::truncate(int pos)
|
||||
KDDockWidgetsBindings_EXPORT void c_QString__truncate_int(void *thisObj,int pos);
|
||||
|
||||
//tag=1066
|
||||
KDDockWidgetsBindings_EXPORT void c_QString__destructor(void *thisObj);
|
||||
|
||||
//tag=1047
|
||||
KDDockWidgetsBindings_EXPORT void c_QString_Finalizer(void *, void *cppObj, void *);}
|
||||
@@ -0,0 +1,107 @@
|
||||
/*
|
||||
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 KDDockWidgetsBindings_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 KDDockWidgetsBindings_wrappersNS::ViewFactory_wrapper* fromWrapperPtr(void *ptr)
|
||||
{return reinterpret_cast<KDDockWidgetsBindings_wrappersNS::ViewFactory_wrapper*>(ptr);}extern "C" {
|
||||
|
||||
//tag=1049
|
||||
void c_KDDockWidgets__ViewFactory_Finalizer(void *, void *cppObj, void *){delete reinterpret_cast<KDDockWidgetsBindings_wrappersNS::ViewFactory_wrapper *>(cppObj);}void * c_KDDockWidgets__ViewFactory__constructor()
|
||||
{
|
||||
|
||||
//tag=1056
|
||||
auto ptr = new KDDockWidgetsBindings_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<KDDockWidgetsBindings_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>{KDDockWidgetsBindings_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<KDDockWidgetsBindings_wrappersNS::ViewFactory_wrapper::Callback_createRubberBand>(callback);break;}
|
||||
}}
|
||||
@@ -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.
|
||||
*/
|
||||
|
||||
//tag=1040
|
||||
#include "KDDockWidgetsBindings_exports.h"
|
||||
#include <ViewFactory.h>
|
||||
#include <qstring.h>
|
||||
#include <View.h>
|
||||
#include <qobject.h>
|
||||
#include <qlist.h>
|
||||
#include <qbytearray.h>
|
||||
|
||||
namespace KDDockWidgetsBindings_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()
|
||||
KDDockWidgetsBindings_EXPORT void * c_KDDockWidgets__ViewFactory__constructor();
|
||||
|
||||
//tag=1067
|
||||
// KDDockWidgets::ViewFactory::createRubberBand(KDDockWidgets::View * parent) const
|
||||
KDDockWidgetsBindings_EXPORT void* c_KDDockWidgets__ViewFactory__createRubberBand_View(void *thisObj,void* parent_);
|
||||
|
||||
//tag=1067
|
||||
// KDDockWidgets::ViewFactory::tr(const char * s, const char * c, int n)
|
||||
KDDockWidgetsBindings_EXPORT void* c_static_KDDockWidgets__ViewFactory__tr_char_char_int(const char * s,const char * c,int n);
|
||||
|
||||
//tag=1066
|
||||
KDDockWidgetsBindings_EXPORT void c_KDDockWidgets__ViewFactory__destructor(void *thisObj);
|
||||
|
||||
//tag=1046
|
||||
KDDockWidgetsBindings_EXPORT void c_KDDockWidgets__ViewFactory__registerVirtualMethodCallback(void *ptr, void *callback, int methodId);
|
||||
//tag=1047
|
||||
KDDockWidgetsBindings_EXPORT void c_KDDockWidgets__ViewFactory_Finalizer(void *, void *cppObj, void *);}
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,704 @@
|
||||
/*
|
||||
This file is part of KDDockWidgets.
|
||||
|
||||
SPDX-FileCopyrightText: 2019-2022 Klarälvdalens Datakonsult AB, a KDAB Group company <info@kdab.com>
|
||||
Author: Sérgio Martins <sergio.martins@kdab.com>
|
||||
|
||||
SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only
|
||||
|
||||
Contact KDAB at <info@kdab.com> for commercial licensing options.
|
||||
*/
|
||||
|
||||
//tag=1040
|
||||
#include "KDDockWidgetsBindings_exports.h"
|
||||
#include <View.h>
|
||||
#include <qsize.h>
|
||||
#include <qrect.h>
|
||||
#include <qpoint.h>
|
||||
#include <qstring.h>
|
||||
|
||||
namespace KDDockWidgetsBindings_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
|
||||
KDDockWidgetsBindings_EXPORT bool c_KDDockWidgets__View__aboutToBeDestroyed(void *thisObj);
|
||||
|
||||
//tag=1067
|
||||
// KDDockWidgets::View::activateWindow()
|
||||
KDDockWidgetsBindings_EXPORT void c_KDDockWidgets__View__activateWindow(void *thisObj);
|
||||
|
||||
//tag=1067
|
||||
// KDDockWidgets::View::boundedMaxSize(QSize min, QSize max)
|
||||
KDDockWidgetsBindings_EXPORT void* c_static_KDDockWidgets__View__boundedMaxSize_QSize_QSize(void* min_,void* max_);
|
||||
|
||||
//tag=1067
|
||||
// KDDockWidgets::View::close()
|
||||
KDDockWidgetsBindings_EXPORT bool c_KDDockWidgets__View__close(void *thisObj);
|
||||
|
||||
//tag=1067
|
||||
// KDDockWidgets::View::closeRootView()
|
||||
KDDockWidgetsBindings_EXPORT void c_KDDockWidgets__View__closeRootView(void *thisObj);
|
||||
|
||||
//tag=1067
|
||||
// KDDockWidgets::View::createPlatformWindow()
|
||||
KDDockWidgetsBindings_EXPORT void c_KDDockWidgets__View__createPlatformWindow(void *thisObj);
|
||||
|
||||
//tag=1067
|
||||
// KDDockWidgets::View::equals(const KDDockWidgets::View * one, const KDDockWidgets::View * two)
|
||||
KDDockWidgetsBindings_EXPORT bool c_static_KDDockWidgets__View__equals_View_View(void* one_,void* two_);
|
||||
|
||||
//tag=1067
|
||||
// KDDockWidgets::View::equals(const KDDockWidgets::View * other) const
|
||||
KDDockWidgetsBindings_EXPORT bool c_KDDockWidgets__View__equals_View(void *thisObj,void* other_);
|
||||
|
||||
//tag=1067
|
||||
// KDDockWidgets::View::free()
|
||||
KDDockWidgetsBindings_EXPORT void c_KDDockWidgets__View__free(void *thisObj);
|
||||
|
||||
//tag=1067
|
||||
// KDDockWidgets::View::free_impl()
|
||||
KDDockWidgetsBindings_EXPORT void c_KDDockWidgets__View__free_impl(void *thisObj);
|
||||
|
||||
//tag=1067
|
||||
// KDDockWidgets::View::freed() const
|
||||
KDDockWidgetsBindings_EXPORT bool c_KDDockWidgets__View__freed(void *thisObj);
|
||||
|
||||
//tag=1067
|
||||
// KDDockWidgets::View::geometry() const
|
||||
KDDockWidgetsBindings_EXPORT void* c_KDDockWidgets__View__geometry(void *thisObj);
|
||||
|
||||
//tag=1067
|
||||
// KDDockWidgets::View::globalGeometry() const
|
||||
KDDockWidgetsBindings_EXPORT void* c_KDDockWidgets__View__globalGeometry(void *thisObj);
|
||||
|
||||
//tag=1067
|
||||
// KDDockWidgets::View::grabMouse()
|
||||
KDDockWidgetsBindings_EXPORT void c_KDDockWidgets__View__grabMouse(void *thisObj);
|
||||
|
||||
//tag=1067
|
||||
// KDDockWidgets::View::hardcodedMinimumSize()
|
||||
KDDockWidgetsBindings_EXPORT void* c_static_KDDockWidgets__View__hardcodedMinimumSize();
|
||||
|
||||
//tag=1067
|
||||
// KDDockWidgets::View::hasFocus() const
|
||||
KDDockWidgetsBindings_EXPORT bool c_KDDockWidgets__View__hasFocus(void *thisObj);
|
||||
|
||||
//tag=1067
|
||||
// KDDockWidgets::View::height() const
|
||||
KDDockWidgetsBindings_EXPORT int c_KDDockWidgets__View__height(void *thisObj);
|
||||
|
||||
//tag=1067
|
||||
// KDDockWidgets::View::hide()
|
||||
KDDockWidgetsBindings_EXPORT void c_KDDockWidgets__View__hide(void *thisObj);
|
||||
|
||||
//tag=1067
|
||||
// KDDockWidgets::View::id() const
|
||||
KDDockWidgetsBindings_EXPORT void* c_KDDockWidgets__View__id(void *thisObj);
|
||||
|
||||
//tag=1067
|
||||
// KDDockWidgets::View::inDtor() const
|
||||
KDDockWidgetsBindings_EXPORT bool c_KDDockWidgets__View__inDtor(void *thisObj);
|
||||
|
||||
//tag=1067
|
||||
// KDDockWidgets::View::init()
|
||||
KDDockWidgetsBindings_EXPORT void c_KDDockWidgets__View__init(void *thisObj);
|
||||
|
||||
//tag=1067
|
||||
// KDDockWidgets::View::isActiveWindow() const
|
||||
KDDockWidgetsBindings_EXPORT bool c_KDDockWidgets__View__isActiveWindow(void *thisObj);
|
||||
|
||||
//tag=1067
|
||||
// KDDockWidgets::View::isMaximized() const
|
||||
KDDockWidgetsBindings_EXPORT bool c_KDDockWidgets__View__isMaximized(void *thisObj);
|
||||
|
||||
//tag=1067
|
||||
// KDDockWidgets::View::isMinimized() const
|
||||
KDDockWidgetsBindings_EXPORT bool c_KDDockWidgets__View__isMinimized(void *thisObj);
|
||||
|
||||
//tag=1067
|
||||
// KDDockWidgets::View::isNull() const
|
||||
KDDockWidgetsBindings_EXPORT bool c_KDDockWidgets__View__isNull(void *thisObj);
|
||||
|
||||
//tag=1067
|
||||
// KDDockWidgets::View::isRootView() const
|
||||
KDDockWidgetsBindings_EXPORT bool c_KDDockWidgets__View__isRootView(void *thisObj);
|
||||
|
||||
//tag=1067
|
||||
// KDDockWidgets::View::isVisible() const
|
||||
KDDockWidgetsBindings_EXPORT bool c_KDDockWidgets__View__isVisible(void *thisObj);
|
||||
|
||||
//tag=1067
|
||||
// KDDockWidgets::View::mapFromGlobal(QPoint arg__1) const
|
||||
KDDockWidgetsBindings_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
|
||||
KDDockWidgetsBindings_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
|
||||
KDDockWidgetsBindings_EXPORT void* c_KDDockWidgets__View__mapToGlobal_QPoint(void *thisObj,void* arg__1_);
|
||||
|
||||
//tag=1067
|
||||
// KDDockWidgets::View::maxSizeHint() const
|
||||
KDDockWidgetsBindings_EXPORT void* c_KDDockWidgets__View__maxSizeHint(void *thisObj);
|
||||
|
||||
//tag=1067
|
||||
// KDDockWidgets::View::maximumSize() const
|
||||
KDDockWidgetsBindings_EXPORT void* c_KDDockWidgets__View__maximumSize(void *thisObj);
|
||||
|
||||
//tag=1067
|
||||
// KDDockWidgets::View::minSize() const
|
||||
KDDockWidgetsBindings_EXPORT void* c_KDDockWidgets__View__minSize(void *thisObj);
|
||||
|
||||
//tag=1067
|
||||
// KDDockWidgets::View::minimumHeight() const
|
||||
KDDockWidgetsBindings_EXPORT int c_KDDockWidgets__View__minimumHeight(void *thisObj);
|
||||
|
||||
//tag=1067
|
||||
// KDDockWidgets::View::minimumWidth() const
|
||||
KDDockWidgetsBindings_EXPORT int c_KDDockWidgets__View__minimumWidth(void *thisObj);
|
||||
|
||||
//tag=1067
|
||||
// KDDockWidgets::View::move(QPoint arg__1)
|
||||
KDDockWidgetsBindings_EXPORT void c_KDDockWidgets__View__move_QPoint(void *thisObj,void* arg__1_);
|
||||
|
||||
//tag=1067
|
||||
// KDDockWidgets::View::move(int x, int y)
|
||||
KDDockWidgetsBindings_EXPORT void c_KDDockWidgets__View__move_int_int(void *thisObj,int x,int y);
|
||||
|
||||
//tag=1067
|
||||
// KDDockWidgets::View::normalGeometry() const
|
||||
KDDockWidgetsBindings_EXPORT void* c_KDDockWidgets__View__normalGeometry(void *thisObj);
|
||||
|
||||
//tag=1067
|
||||
// KDDockWidgets::View::objectName() const
|
||||
KDDockWidgetsBindings_EXPORT void* c_KDDockWidgets__View__objectName(void *thisObj);
|
||||
|
||||
//tag=1067
|
||||
// KDDockWidgets::View::onResize(QSize newSize)
|
||||
KDDockWidgetsBindings_EXPORT bool c_KDDockWidgets__View__onResize_QSize(void *thisObj,void* newSize_);
|
||||
|
||||
//tag=1067
|
||||
// KDDockWidgets::View::parentSize() const
|
||||
KDDockWidgetsBindings_EXPORT void* c_KDDockWidgets__View__parentSize(void *thisObj);
|
||||
|
||||
//tag=1067
|
||||
// KDDockWidgets::View::pos() const
|
||||
KDDockWidgetsBindings_EXPORT void* c_KDDockWidgets__View__pos(void *thisObj);
|
||||
|
||||
//tag=1067
|
||||
// KDDockWidgets::View::raise()
|
||||
KDDockWidgetsBindings_EXPORT void c_KDDockWidgets__View__raise(void *thisObj);
|
||||
|
||||
//tag=1067
|
||||
// KDDockWidgets::View::raiseAndActivate()
|
||||
KDDockWidgetsBindings_EXPORT void c_KDDockWidgets__View__raiseAndActivate(void *thisObj);
|
||||
|
||||
//tag=1067
|
||||
// KDDockWidgets::View::rect() const
|
||||
KDDockWidgetsBindings_EXPORT void* c_KDDockWidgets__View__rect(void *thisObj);
|
||||
|
||||
//tag=1067
|
||||
// KDDockWidgets::View::releaseKeyboard()
|
||||
KDDockWidgetsBindings_EXPORT void c_KDDockWidgets__View__releaseKeyboard(void *thisObj);
|
||||
|
||||
//tag=1067
|
||||
// KDDockWidgets::View::releaseMouse()
|
||||
KDDockWidgetsBindings_EXPORT void c_KDDockWidgets__View__releaseMouse(void *thisObj);
|
||||
|
||||
//tag=1067
|
||||
// KDDockWidgets::View::resize(QSize arg__1)
|
||||
KDDockWidgetsBindings_EXPORT void c_KDDockWidgets__View__resize_QSize(void *thisObj,void* arg__1_);
|
||||
|
||||
//tag=1067
|
||||
// KDDockWidgets::View::resize(int w, int h)
|
||||
KDDockWidgetsBindings_EXPORT void c_KDDockWidgets__View__resize_int_int(void *thisObj,int w,int h);
|
||||
|
||||
//tag=1067
|
||||
// KDDockWidgets::View::setAboutToBeDestroyed()
|
||||
KDDockWidgetsBindings_EXPORT void c_KDDockWidgets__View__setAboutToBeDestroyed(void *thisObj);
|
||||
|
||||
//tag=1067
|
||||
// KDDockWidgets::View::setFixedHeight(int arg__1)
|
||||
KDDockWidgetsBindings_EXPORT void c_KDDockWidgets__View__setFixedHeight_int(void *thisObj,int arg__1);
|
||||
|
||||
//tag=1067
|
||||
// KDDockWidgets::View::setFixedWidth(int arg__1)
|
||||
KDDockWidgetsBindings_EXPORT void c_KDDockWidgets__View__setFixedWidth_int(void *thisObj,int arg__1);
|
||||
|
||||
//tag=1067
|
||||
// KDDockWidgets::View::setGeometry(QRect arg__1)
|
||||
KDDockWidgetsBindings_EXPORT void c_KDDockWidgets__View__setGeometry_QRect(void *thisObj,void* arg__1_);
|
||||
|
||||
//tag=1067
|
||||
// KDDockWidgets::View::setHeight(int height)
|
||||
KDDockWidgetsBindings_EXPORT void c_KDDockWidgets__View__setHeight_int(void *thisObj,int height);
|
||||
|
||||
//tag=1067
|
||||
// KDDockWidgets::View::setMaximumSize(QSize sz)
|
||||
KDDockWidgetsBindings_EXPORT void c_KDDockWidgets__View__setMaximumSize_QSize(void *thisObj,void* sz_);
|
||||
|
||||
//tag=1067
|
||||
// KDDockWidgets::View::setMinimumSize(QSize arg__1)
|
||||
KDDockWidgetsBindings_EXPORT void c_KDDockWidgets__View__setMinimumSize_QSize(void *thisObj,void* arg__1_);
|
||||
|
||||
//tag=1067
|
||||
// KDDockWidgets::View::setMouseTracking(bool arg__1)
|
||||
KDDockWidgetsBindings_EXPORT void c_KDDockWidgets__View__setMouseTracking_bool(void *thisObj,bool arg__1);
|
||||
|
||||
//tag=1067
|
||||
// KDDockWidgets::View::setObjectName(const QString & arg__1)
|
||||
KDDockWidgetsBindings_EXPORT void c_KDDockWidgets__View__setObjectName_QString(void *thisObj,const char *arg__1_);
|
||||
|
||||
//tag=1067
|
||||
// KDDockWidgets::View::setParent(KDDockWidgets::View * arg__1)
|
||||
KDDockWidgetsBindings_EXPORT void c_KDDockWidgets__View__setParent_View(void *thisObj,void* arg__1_);
|
||||
|
||||
//tag=1067
|
||||
// KDDockWidgets::View::setSize(QSize arg__1)
|
||||
KDDockWidgetsBindings_EXPORT void c_KDDockWidgets__View__setSize_QSize(void *thisObj,void* arg__1_);
|
||||
|
||||
//tag=1067
|
||||
// KDDockWidgets::View::setSize(int width, int height)
|
||||
KDDockWidgetsBindings_EXPORT void c_KDDockWidgets__View__setSize_int_int(void *thisObj,int width,int height);
|
||||
|
||||
//tag=1067
|
||||
// KDDockWidgets::View::setVisible(bool arg__1)
|
||||
KDDockWidgetsBindings_EXPORT void c_KDDockWidgets__View__setVisible_bool(void *thisObj,bool arg__1);
|
||||
|
||||
//tag=1067
|
||||
// KDDockWidgets::View::setWidth(int width)
|
||||
KDDockWidgetsBindings_EXPORT void c_KDDockWidgets__View__setWidth_int(void *thisObj,int width);
|
||||
|
||||
//tag=1067
|
||||
// KDDockWidgets::View::setWindowOpacity(double arg__1)
|
||||
KDDockWidgetsBindings_EXPORT void c_KDDockWidgets__View__setWindowOpacity_double(void *thisObj,double arg__1);
|
||||
|
||||
//tag=1067
|
||||
// KDDockWidgets::View::setWindowTitle(const QString & title)
|
||||
KDDockWidgetsBindings_EXPORT void c_KDDockWidgets__View__setWindowTitle_QString(void *thisObj,const char *title_);
|
||||
|
||||
//tag=1067
|
||||
// KDDockWidgets::View::setZOrder(int arg__1)
|
||||
KDDockWidgetsBindings_EXPORT void c_KDDockWidgets__View__setZOrder_int(void *thisObj,int arg__1);
|
||||
|
||||
//tag=1067
|
||||
// KDDockWidgets::View::show()
|
||||
KDDockWidgetsBindings_EXPORT void c_KDDockWidgets__View__show(void *thisObj);
|
||||
|
||||
//tag=1067
|
||||
// KDDockWidgets::View::showMaximized()
|
||||
KDDockWidgetsBindings_EXPORT void c_KDDockWidgets__View__showMaximized(void *thisObj);
|
||||
|
||||
//tag=1067
|
||||
// KDDockWidgets::View::showMinimized()
|
||||
KDDockWidgetsBindings_EXPORT void c_KDDockWidgets__View__showMinimized(void *thisObj);
|
||||
|
||||
//tag=1067
|
||||
// KDDockWidgets::View::showNormal()
|
||||
KDDockWidgetsBindings_EXPORT void c_KDDockWidgets__View__showNormal(void *thisObj);
|
||||
|
||||
//tag=1067
|
||||
// KDDockWidgets::View::size() const
|
||||
KDDockWidgetsBindings_EXPORT void* c_KDDockWidgets__View__size(void *thisObj);
|
||||
|
||||
//tag=1067
|
||||
// KDDockWidgets::View::sizeHint() const
|
||||
KDDockWidgetsBindings_EXPORT void* c_KDDockWidgets__View__sizeHint(void *thisObj);
|
||||
|
||||
//tag=1067
|
||||
// KDDockWidgets::View::update()
|
||||
KDDockWidgetsBindings_EXPORT void c_KDDockWidgets__View__update(void *thisObj);
|
||||
|
||||
//tag=1067
|
||||
// KDDockWidgets::View::width() const
|
||||
KDDockWidgetsBindings_EXPORT int c_KDDockWidgets__View__width(void *thisObj);
|
||||
|
||||
//tag=1067
|
||||
// KDDockWidgets::View::windowGeometry() const
|
||||
KDDockWidgetsBindings_EXPORT void* c_KDDockWidgets__View__windowGeometry(void *thisObj);
|
||||
|
||||
//tag=1067
|
||||
// KDDockWidgets::View::x() const
|
||||
KDDockWidgetsBindings_EXPORT int c_KDDockWidgets__View__x(void *thisObj);
|
||||
|
||||
//tag=1067
|
||||
// KDDockWidgets::View::y() const
|
||||
KDDockWidgetsBindings_EXPORT int c_KDDockWidgets__View__y(void *thisObj);
|
||||
|
||||
//tag=1066
|
||||
KDDockWidgetsBindings_EXPORT void c_KDDockWidgets__View__destructor(void *thisObj);
|
||||
|
||||
//tag=1046
|
||||
KDDockWidgetsBindings_EXPORT void c_KDDockWidgets__View__registerVirtualMethodCallback(void *ptr, void *callback, int methodId);
|
||||
//tag=1047
|
||||
KDDockWidgetsBindings_EXPORT void c_KDDockWidgets__View_Finalizer(void *, void *cppObj, void *);}
|
||||
File diff suppressed because it is too large
Load Diff
@@ -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;
|
||||
@@ -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.toNativeUtf8();
|
||||
}
|
||||
//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);
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
1481
src/flutter/generated/KDDockWidgetsBindings/dart/lib/src/QList.dart
Normal file
1481
src/flutter/generated/KDDockWidgetsBindings/dart/lib/src/QList.dart
Normal file
File diff suppressed because it is too large
Load Diff
@@ -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();
|
||||
}
|
||||
}
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
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/KDDockWidgetsBindings/dart/lib/src/View.dart
Normal file
2221
src/flutter/generated/KDDockWidgetsBindings/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);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
name: KDDockWidgetsBindings
|
||||
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