flutter: Add bindings for Config.h
This commit is contained in:
@@ -0,0 +1,332 @@
|
||||
/*
|
||||
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 "Config_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 {
|
||||
QSize Config_wrapper::absoluteWidgetMaxSize() const
|
||||
{
|
||||
// tag=1000
|
||||
|
||||
// tag=1004
|
||||
return ::KDDockWidgets::Config::absoluteWidgetMaxSize();
|
||||
}
|
||||
QSize Config_wrapper::absoluteWidgetMinSize() const
|
||||
{
|
||||
// tag=1000
|
||||
|
||||
// tag=1004
|
||||
return ::KDDockWidgets::Config::absoluteWidgetMinSize();
|
||||
}
|
||||
qreal Config_wrapper::draggedWindowOpacity() const
|
||||
{
|
||||
// tag=1000
|
||||
|
||||
// tag=1004
|
||||
return ::KDDockWidgets::Config::draggedWindowOpacity();
|
||||
}
|
||||
bool Config_wrapper::dropIndicatorsInhibited() const
|
||||
{
|
||||
// tag=1000
|
||||
|
||||
// tag=1004
|
||||
return ::KDDockWidgets::Config::dropIndicatorsInhibited();
|
||||
}
|
||||
int Config_wrapper::mdiPopupThreshold() const
|
||||
{
|
||||
// tag=1000
|
||||
|
||||
// tag=1004
|
||||
return ::KDDockWidgets::Config::mdiPopupThreshold();
|
||||
}
|
||||
KDDockWidgets::Config &Config_wrapper::self()
|
||||
{
|
||||
// tag=1000
|
||||
|
||||
// tag=1004
|
||||
return ::KDDockWidgets::Config::self();
|
||||
}
|
||||
int Config_wrapper::separatorThickness() const
|
||||
{
|
||||
// tag=1000
|
||||
|
||||
// tag=1004
|
||||
return ::KDDockWidgets::Config::separatorThickness();
|
||||
}
|
||||
void Config_wrapper::setAbsoluteWidgetMaxSize(QSize size)
|
||||
{
|
||||
// tag=1000
|
||||
|
||||
// tag=1004
|
||||
::KDDockWidgets::Config::setAbsoluteWidgetMaxSize(size);
|
||||
}
|
||||
void Config_wrapper::setAbsoluteWidgetMinSize(QSize size)
|
||||
{
|
||||
// tag=1000
|
||||
|
||||
// tag=1004
|
||||
::KDDockWidgets::Config::setAbsoluteWidgetMinSize(size);
|
||||
}
|
||||
void Config_wrapper::setDraggedWindowOpacity(qreal opacity)
|
||||
{
|
||||
// tag=1000
|
||||
|
||||
// tag=1004
|
||||
::KDDockWidgets::Config::setDraggedWindowOpacity(opacity);
|
||||
}
|
||||
void Config_wrapper::setDropIndicatorsInhibited(bool inhibit) const
|
||||
{
|
||||
// tag=1000
|
||||
|
||||
// tag=1004
|
||||
::KDDockWidgets::Config::setDropIndicatorsInhibited(inhibit);
|
||||
}
|
||||
void Config_wrapper::setMDIPopupThreshold(int arg__1)
|
||||
{
|
||||
// tag=1000
|
||||
|
||||
// tag=1004
|
||||
::KDDockWidgets::Config::setMDIPopupThreshold(arg__1);
|
||||
}
|
||||
void Config_wrapper::setSeparatorThickness(int value)
|
||||
{
|
||||
// tag=1000
|
||||
|
||||
// tag=1004
|
||||
::KDDockWidgets::Config::setSeparatorThickness(value);
|
||||
}
|
||||
void Config_wrapper::setStartDragDistance(int arg__1)
|
||||
{
|
||||
// tag=1000
|
||||
|
||||
// tag=1004
|
||||
::KDDockWidgets::Config::setStartDragDistance(arg__1);
|
||||
}
|
||||
void Config_wrapper::setViewFactory(KDDockWidgets::ViewFactory *arg__1)
|
||||
{
|
||||
// tag=1000
|
||||
|
||||
// tag=1004
|
||||
::KDDockWidgets::Config::setViewFactory(arg__1);
|
||||
}
|
||||
int Config_wrapper::startDragDistance() const
|
||||
{
|
||||
// tag=1000
|
||||
|
||||
// tag=1004
|
||||
return ::KDDockWidgets::Config::startDragDistance();
|
||||
}
|
||||
KDDockWidgets::ViewFactory *Config_wrapper::viewFactory() const
|
||||
{
|
||||
// tag=1000
|
||||
|
||||
// tag=1004
|
||||
return ::KDDockWidgets::Config::viewFactory();
|
||||
}
|
||||
|
||||
// tag=1005
|
||||
Config_wrapper::~Config_wrapper()
|
||||
{
|
||||
}
|
||||
|
||||
}
|
||||
// tag=1013
|
||||
static KDDockWidgets::Config *fromPtr(void *ptr)
|
||||
{
|
||||
return reinterpret_cast<KDDockWidgets::Config *>(ptr);
|
||||
}
|
||||
// tag=1014
|
||||
static KDDockWidgetsBindings_wrappersNS::Config_wrapper *fromWrapperPtr(void *ptr)
|
||||
{
|
||||
return reinterpret_cast<KDDockWidgetsBindings_wrappersNS::Config_wrapper *>(ptr);
|
||||
}
|
||||
extern "C" {
|
||||
|
||||
// tag=1049
|
||||
void c_KDDockWidgets__Config_Finalizer(void *, void *cppObj, void *)
|
||||
{
|
||||
delete reinterpret_cast<KDDockWidgetsBindings_wrappersNS::Config_wrapper *>(cppObj);
|
||||
}
|
||||
// tag=1050
|
||||
// absoluteWidgetMaxSize() const
|
||||
void *c_KDDockWidgets__Config__absoluteWidgetMaxSize(void *thisObj)
|
||||
{
|
||||
return
|
||||
// tag=1010
|
||||
|
||||
// tag=1072
|
||||
new Dartagnan::ValueWrapper<QSize> { fromPtr(thisObj)->absoluteWidgetMaxSize() };
|
||||
}
|
||||
|
||||
// tag=1050
|
||||
// absoluteWidgetMinSize() const
|
||||
void *c_KDDockWidgets__Config__absoluteWidgetMinSize(void *thisObj)
|
||||
{
|
||||
return
|
||||
// tag=1010
|
||||
|
||||
// tag=1072
|
||||
new Dartagnan::ValueWrapper<QSize> { fromPtr(thisObj)->absoluteWidgetMinSize() };
|
||||
}
|
||||
|
||||
// tag=1050
|
||||
// draggedWindowOpacity() const
|
||||
qreal c_KDDockWidgets__Config__draggedWindowOpacity(void *thisObj)
|
||||
{
|
||||
return
|
||||
// tag=1010
|
||||
fromPtr(thisObj)->draggedWindowOpacity();
|
||||
}
|
||||
|
||||
// tag=1050
|
||||
// dropIndicatorsInhibited() const
|
||||
bool c_KDDockWidgets__Config__dropIndicatorsInhibited(void *thisObj)
|
||||
{
|
||||
return
|
||||
// tag=1010
|
||||
fromPtr(thisObj)->dropIndicatorsInhibited();
|
||||
}
|
||||
|
||||
// tag=1050
|
||||
// mdiPopupThreshold() const
|
||||
int c_KDDockWidgets__Config__mdiPopupThreshold(void *thisObj)
|
||||
{
|
||||
return
|
||||
// tag=1010
|
||||
fromPtr(thisObj)->mdiPopupThreshold();
|
||||
}
|
||||
|
||||
// tag=1050
|
||||
// self()
|
||||
void *c_static_KDDockWidgets__Config__self()
|
||||
{
|
||||
return
|
||||
// tag=1068
|
||||
|
||||
// tag=1070
|
||||
&KDDockWidgetsBindings_wrappersNS::Config_wrapper::self();
|
||||
}
|
||||
|
||||
// tag=1050
|
||||
// separatorThickness() const
|
||||
int c_KDDockWidgets__Config__separatorThickness(void *thisObj)
|
||||
{
|
||||
return
|
||||
// tag=1010
|
||||
fromPtr(thisObj)->separatorThickness();
|
||||
}
|
||||
|
||||
// tag=1050
|
||||
// setAbsoluteWidgetMaxSize(QSize size)
|
||||
void c_KDDockWidgets__Config__setAbsoluteWidgetMaxSize_QSize(void *thisObj, void *size_)
|
||||
{
|
||||
auto &size = *reinterpret_cast<QSize *>(size_);
|
||||
// tag=1010
|
||||
fromPtr(thisObj)->setAbsoluteWidgetMaxSize(size);
|
||||
}
|
||||
|
||||
// tag=1050
|
||||
// setAbsoluteWidgetMinSize(QSize size)
|
||||
void c_KDDockWidgets__Config__setAbsoluteWidgetMinSize_QSize(void *thisObj, void *size_)
|
||||
{
|
||||
auto &size = *reinterpret_cast<QSize *>(size_);
|
||||
// tag=1010
|
||||
fromPtr(thisObj)->setAbsoluteWidgetMinSize(size);
|
||||
}
|
||||
|
||||
// tag=1050
|
||||
// setDraggedWindowOpacity(qreal opacity)
|
||||
void c_KDDockWidgets__Config__setDraggedWindowOpacity_qreal(void *thisObj, qreal opacity)
|
||||
{
|
||||
// tag=1010
|
||||
fromPtr(thisObj)->setDraggedWindowOpacity(opacity);
|
||||
}
|
||||
|
||||
// tag=1050
|
||||
// setDropIndicatorsInhibited(bool inhibit) const
|
||||
void c_KDDockWidgets__Config__setDropIndicatorsInhibited_bool(void *thisObj, bool inhibit)
|
||||
{
|
||||
// tag=1010
|
||||
fromPtr(thisObj)->setDropIndicatorsInhibited(inhibit);
|
||||
}
|
||||
|
||||
// tag=1050
|
||||
// setMDIPopupThreshold(int arg__1)
|
||||
void c_KDDockWidgets__Config__setMDIPopupThreshold_int(void *thisObj, int arg__1)
|
||||
{
|
||||
// tag=1010
|
||||
fromPtr(thisObj)->setMDIPopupThreshold(arg__1);
|
||||
}
|
||||
|
||||
// tag=1050
|
||||
// setSeparatorThickness(int value)
|
||||
void c_KDDockWidgets__Config__setSeparatorThickness_int(void *thisObj, int value)
|
||||
{
|
||||
// tag=1010
|
||||
fromPtr(thisObj)->setSeparatorThickness(value);
|
||||
}
|
||||
|
||||
// tag=1050
|
||||
// setStartDragDistance(int arg__1)
|
||||
void c_KDDockWidgets__Config__setStartDragDistance_int(void *thisObj, int arg__1)
|
||||
{
|
||||
// tag=1010
|
||||
fromPtr(thisObj)->setStartDragDistance(arg__1);
|
||||
}
|
||||
|
||||
// tag=1050
|
||||
// setViewFactory(KDDockWidgets::ViewFactory * arg__1)
|
||||
void c_KDDockWidgets__Config__setViewFactory_ViewFactory(void *thisObj, void *arg__1_)
|
||||
{
|
||||
auto arg__1 = reinterpret_cast<KDDockWidgets::ViewFactory *>(arg__1_);
|
||||
// tag=1010
|
||||
fromPtr(thisObj)->setViewFactory(arg__1);
|
||||
}
|
||||
|
||||
// tag=1050
|
||||
// startDragDistance() const
|
||||
int c_KDDockWidgets__Config__startDragDistance(void *thisObj)
|
||||
{
|
||||
return
|
||||
// tag=1010
|
||||
fromPtr(thisObj)->startDragDistance();
|
||||
}
|
||||
|
||||
// tag=1050
|
||||
// viewFactory() const
|
||||
void *c_KDDockWidgets__Config__viewFactory(void *thisObj)
|
||||
{
|
||||
return
|
||||
// tag=1010
|
||||
fromPtr(thisObj)->viewFactory();
|
||||
}
|
||||
void c_KDDockWidgets__Config__destructor(void *thisObj)
|
||||
{
|
||||
|
||||
// tag=1055
|
||||
delete fromPtr(thisObj);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,135 @@
|
||||
/*
|
||||
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 <Config.h>
|
||||
#include <ViewFactory.h>
|
||||
#include <qsize.h>
|
||||
|
||||
namespace KDDockWidgetsBindings_wrappersNS {
|
||||
// tag=1043
|
||||
class Config_wrapper : public ::KDDockWidgets::Config
|
||||
{
|
||||
public:
|
||||
~Config_wrapper();
|
||||
// tag=1041
|
||||
QSize absoluteWidgetMaxSize() const;
|
||||
// tag=1041
|
||||
QSize absoluteWidgetMinSize() const;
|
||||
// tag=1041
|
||||
qreal draggedWindowOpacity() const;
|
||||
// tag=1041
|
||||
bool dropIndicatorsInhibited() const;
|
||||
// tag=1041
|
||||
int mdiPopupThreshold() const;
|
||||
// tag=1041
|
||||
static KDDockWidgets::Config &self();
|
||||
// tag=1041
|
||||
int separatorThickness() const;
|
||||
// tag=1041
|
||||
void setAbsoluteWidgetMaxSize(QSize size);
|
||||
// tag=1041
|
||||
void setAbsoluteWidgetMinSize(QSize size);
|
||||
// tag=1041
|
||||
void setDraggedWindowOpacity(qreal opacity);
|
||||
// tag=1041
|
||||
void setDropIndicatorsInhibited(bool inhibit) const;
|
||||
// tag=1041
|
||||
void setMDIPopupThreshold(int arg__1);
|
||||
// tag=1041
|
||||
void setSeparatorThickness(int value);
|
||||
// tag=1041
|
||||
void setStartDragDistance(int arg__1);
|
||||
// tag=1041
|
||||
void setViewFactory(KDDockWidgets::ViewFactory *arg__1);
|
||||
// tag=1041
|
||||
int startDragDistance() const;
|
||||
// tag=1041
|
||||
KDDockWidgets::ViewFactory *viewFactory() const;
|
||||
};
|
||||
}
|
||||
extern "C" {
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::Config::absoluteWidgetMaxSize() const
|
||||
KDDockWidgetsBindings_EXPORT void *c_KDDockWidgets__Config__absoluteWidgetMaxSize(void *thisObj);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::Config::absoluteWidgetMinSize() const
|
||||
KDDockWidgetsBindings_EXPORT void *c_KDDockWidgets__Config__absoluteWidgetMinSize(void *thisObj);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::Config::draggedWindowOpacity() const
|
||||
KDDockWidgetsBindings_EXPORT qreal c_KDDockWidgets__Config__draggedWindowOpacity(void *thisObj);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::Config::dropIndicatorsInhibited() const
|
||||
KDDockWidgetsBindings_EXPORT bool c_KDDockWidgets__Config__dropIndicatorsInhibited(void *thisObj);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::Config::mdiPopupThreshold() const
|
||||
KDDockWidgetsBindings_EXPORT int c_KDDockWidgets__Config__mdiPopupThreshold(void *thisObj);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::Config::self()
|
||||
KDDockWidgetsBindings_EXPORT void *c_static_KDDockWidgets__Config__self();
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::Config::separatorThickness() const
|
||||
KDDockWidgetsBindings_EXPORT int c_KDDockWidgets__Config__separatorThickness(void *thisObj);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::Config::setAbsoluteWidgetMaxSize(QSize size)
|
||||
KDDockWidgetsBindings_EXPORT void c_KDDockWidgets__Config__setAbsoluteWidgetMaxSize_QSize(void *thisObj, void *size_);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::Config::setAbsoluteWidgetMinSize(QSize size)
|
||||
KDDockWidgetsBindings_EXPORT void c_KDDockWidgets__Config__setAbsoluteWidgetMinSize_QSize(void *thisObj, void *size_);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::Config::setDraggedWindowOpacity(qreal opacity)
|
||||
KDDockWidgetsBindings_EXPORT void c_KDDockWidgets__Config__setDraggedWindowOpacity_qreal(void *thisObj, qreal opacity);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::Config::setDropIndicatorsInhibited(bool inhibit) const
|
||||
KDDockWidgetsBindings_EXPORT void c_KDDockWidgets__Config__setDropIndicatorsInhibited_bool(void *thisObj, bool inhibit);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::Config::setMDIPopupThreshold(int arg__1)
|
||||
KDDockWidgetsBindings_EXPORT void c_KDDockWidgets__Config__setMDIPopupThreshold_int(void *thisObj, int arg__1);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::Config::setSeparatorThickness(int value)
|
||||
KDDockWidgetsBindings_EXPORT void c_KDDockWidgets__Config__setSeparatorThickness_int(void *thisObj, int value);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::Config::setStartDragDistance(int arg__1)
|
||||
KDDockWidgetsBindings_EXPORT void c_KDDockWidgets__Config__setStartDragDistance_int(void *thisObj, int arg__1);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::Config::setViewFactory(KDDockWidgets::ViewFactory * arg__1)
|
||||
KDDockWidgetsBindings_EXPORT void c_KDDockWidgets__Config__setViewFactory_ViewFactory(void *thisObj, void *arg__1_);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::Config::startDragDistance() const
|
||||
KDDockWidgetsBindings_EXPORT int c_KDDockWidgets__Config__startDragDistance(void *thisObj);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::Config::viewFactory() const
|
||||
KDDockWidgetsBindings_EXPORT void *c_KDDockWidgets__Config__viewFactory(void *thisObj);
|
||||
|
||||
// tag=1066
|
||||
KDDockWidgetsBindings_EXPORT void c_KDDockWidgets__Config__destructor(void *thisObj);
|
||||
|
||||
// tag=1047
|
||||
KDDockWidgetsBindings_EXPORT void c_KDDockWidgets__Config_Finalizer(void *, void *cppObj, void *);
|
||||
}
|
||||
@@ -2209,3 +2209,76 @@ void c_KDDockWidgets__View__destructor(void *thisObj);
|
||||
void c_KDDockWidgets__View__registerVirtualMethodCallback(void *ptr, void *callback, int methodId);
|
||||
// tag=1047
|
||||
void c_KDDockWidgets__View_Finalizer(void *, void *cppObj, void *);
|
||||
// tag=1067
|
||||
// KDDockWidgets::Config::absoluteWidgetMaxSize() const
|
||||
void *c_KDDockWidgets__Config__absoluteWidgetMaxSize(void *thisObj);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::Config::absoluteWidgetMinSize() const
|
||||
void *c_KDDockWidgets__Config__absoluteWidgetMinSize(void *thisObj);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::Config::draggedWindowOpacity() const
|
||||
qreal c_KDDockWidgets__Config__draggedWindowOpacity(void *thisObj);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::Config::dropIndicatorsInhibited() const
|
||||
bool c_KDDockWidgets__Config__dropIndicatorsInhibited(void *thisObj);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::Config::mdiPopupThreshold() const
|
||||
int c_KDDockWidgets__Config__mdiPopupThreshold(void *thisObj);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::Config::self()
|
||||
void *c_static_KDDockWidgets__Config__self();
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::Config::separatorThickness() const
|
||||
int c_KDDockWidgets__Config__separatorThickness(void *thisObj);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::Config::setAbsoluteWidgetMaxSize(QSize size)
|
||||
void c_KDDockWidgets__Config__setAbsoluteWidgetMaxSize_QSize(void *thisObj, void *size_);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::Config::setAbsoluteWidgetMinSize(QSize size)
|
||||
void c_KDDockWidgets__Config__setAbsoluteWidgetMinSize_QSize(void *thisObj, void *size_);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::Config::setDraggedWindowOpacity(qreal opacity)
|
||||
void c_KDDockWidgets__Config__setDraggedWindowOpacity_qreal(void *thisObj, qreal opacity);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::Config::setDropIndicatorsInhibited(bool inhibit) const
|
||||
void c_KDDockWidgets__Config__setDropIndicatorsInhibited_bool(void *thisObj, bool inhibit);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::Config::setMDIPopupThreshold(int arg__1)
|
||||
void c_KDDockWidgets__Config__setMDIPopupThreshold_int(void *thisObj, int arg__1);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::Config::setSeparatorThickness(int value)
|
||||
void c_KDDockWidgets__Config__setSeparatorThickness_int(void *thisObj, int value);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::Config::setStartDragDistance(int arg__1)
|
||||
void c_KDDockWidgets__Config__setStartDragDistance_int(void *thisObj, int arg__1);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::Config::setViewFactory(KDDockWidgets::ViewFactory * arg__1)
|
||||
void c_KDDockWidgets__Config__setViewFactory_ViewFactory(void *thisObj, void *arg__1_);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::Config::startDragDistance() const
|
||||
int c_KDDockWidgets__Config__startDragDistance(void *thisObj);
|
||||
|
||||
// tag=1067
|
||||
// KDDockWidgets::Config::viewFactory() const
|
||||
void *c_KDDockWidgets__Config__viewFactory(void *thisObj);
|
||||
|
||||
// tag=1066
|
||||
void c_KDDockWidgets__Config__destructor(void *thisObj);
|
||||
|
||||
// tag=1047
|
||||
void c_KDDockWidgets__Config_Finalizer(void *, void *cppObj, void *);
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
|
||||
Contact KDAB at <info@kdab.com> for commercial licensing options.
|
||||
*/
|
||||
export 'src/Config.dart' show Config;
|
||||
export 'src/View.dart' show View;
|
||||
export 'src/Controller.dart' show Controller;
|
||||
export 'src/Platform_flutter.dart' show Platform_flutter;
|
||||
|
||||
@@ -0,0 +1,289 @@
|
||||
/*
|
||||
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__Config_Finalizer');
|
||||
|
||||
class Config {
|
||||
//tag=1060
|
||||
static var s_dartInstanceByCppPtr = Map<int, Config>();
|
||||
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 Config.fromCache(var cppPointer, [needsAutoDelete = false]) {
|
||||
return (s_dartInstanceByCppPtr[cppPointer.address] ??
|
||||
Config.fromCppPointer(cppPointer, needsAutoDelete)) as Config;
|
||||
}
|
||||
Config.fromCppPointer(var cppPointer, [this._needsAutoDelete = false]) {
|
||||
//tag=1024
|
||||
thisCpp = cppPointer;
|
||||
}
|
||||
//tag=1025
|
||||
Config.init() {}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// absoluteWidgetMaxSize() const
|
||||
QSize absoluteWidgetMaxSize() {
|
||||
//tag=1028
|
||||
final voidstar_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<voidstar_Func_voidstar_FFI>>(
|
||||
'c_KDDockWidgets__Config__absoluteWidgetMaxSize')
|
||||
.asFunction();
|
||||
//tag=1033
|
||||
ffi.Pointer<void> result = func(thisCpp);
|
||||
return QSize.fromCppPointer(result, true);
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// absoluteWidgetMinSize() const
|
||||
QSize absoluteWidgetMinSize() {
|
||||
//tag=1028
|
||||
final voidstar_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<voidstar_Func_voidstar_FFI>>(
|
||||
'c_KDDockWidgets__Config__absoluteWidgetMinSize')
|
||||
.asFunction();
|
||||
//tag=1033
|
||||
ffi.Pointer<void> result = func(thisCpp);
|
||||
return QSize.fromCppPointer(result, true);
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// draggedWindowOpacity() const
|
||||
double draggedWindowOpacity() {
|
||||
//tag=1028
|
||||
final double_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<double_Func_voidstar_FFI>>(
|
||||
'c_KDDockWidgets__Config__draggedWindowOpacity')
|
||||
.asFunction();
|
||||
//tag=1031
|
||||
return func(thisCpp);
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// dropIndicatorsInhibited() const
|
||||
bool dropIndicatorsInhibited() {
|
||||
//tag=1028
|
||||
final bool_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<bool_Func_voidstar_FFI>>(
|
||||
'c_KDDockWidgets__Config__dropIndicatorsInhibited')
|
||||
.asFunction();
|
||||
//tag=1029
|
||||
return func(thisCpp) != 0;
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// mdiPopupThreshold() const
|
||||
int mdiPopupThreshold() {
|
||||
//tag=1028
|
||||
final int_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<int_Func_voidstar_FFI>>(
|
||||
'c_KDDockWidgets__Config__mdiPopupThreshold')
|
||||
.asFunction();
|
||||
//tag=1031
|
||||
return func(thisCpp);
|
||||
}
|
||||
|
||||
//tag=1024
|
||||
static
|
||||
//tag=1027
|
||||
// self()
|
||||
Config self() {
|
||||
//tag=1028
|
||||
final voidstar_Func_void func = _dylib
|
||||
.lookup<ffi.NativeFunction<voidstar_Func_void_FFI>>(
|
||||
'c_static_KDDockWidgets__Config__self')
|
||||
.asFunction();
|
||||
//tag=1033
|
||||
ffi.Pointer<void> result = func();
|
||||
return Config.fromCppPointer(result, false);
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// separatorThickness() const
|
||||
int separatorThickness() {
|
||||
//tag=1028
|
||||
final int_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<int_Func_voidstar_FFI>>(
|
||||
'c_KDDockWidgets__Config__separatorThickness')
|
||||
.asFunction();
|
||||
//tag=1031
|
||||
return func(thisCpp);
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// setAbsoluteWidgetMaxSize(QSize size)
|
||||
setAbsoluteWidgetMaxSize(QSize size) {
|
||||
//tag=1028
|
||||
final void_Func_voidstar_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<void_Func_voidstar_voidstar_FFI>>(
|
||||
'c_KDDockWidgets__Config__setAbsoluteWidgetMaxSize_QSize')
|
||||
.asFunction();
|
||||
//tag=1030
|
||||
func(thisCpp, size == null ? ffi.nullptr : size.thisCpp);
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// setAbsoluteWidgetMinSize(QSize size)
|
||||
setAbsoluteWidgetMinSize(QSize size) {
|
||||
//tag=1028
|
||||
final void_Func_voidstar_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<void_Func_voidstar_voidstar_FFI>>(
|
||||
'c_KDDockWidgets__Config__setAbsoluteWidgetMinSize_QSize')
|
||||
.asFunction();
|
||||
//tag=1030
|
||||
func(thisCpp, size == null ? ffi.nullptr : size.thisCpp);
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// setDraggedWindowOpacity(qreal opacity)
|
||||
setDraggedWindowOpacity(double opacity) {
|
||||
//tag=1028
|
||||
final void_Func_voidstar_double func = _dylib
|
||||
.lookup<ffi.NativeFunction<void_Func_voidstar_ffi_Double_FFI>>(
|
||||
'c_KDDockWidgets__Config__setDraggedWindowOpacity_qreal')
|
||||
.asFunction();
|
||||
//tag=1030
|
||||
func(thisCpp, opacity);
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// setDropIndicatorsInhibited(bool inhibit) const
|
||||
setDropIndicatorsInhibited(bool inhibit) {
|
||||
//tag=1028
|
||||
final void_Func_voidstar_bool func = _dylib
|
||||
.lookup<ffi.NativeFunction<void_Func_voidstar_ffi_Int8_FFI>>(
|
||||
'c_KDDockWidgets__Config__setDropIndicatorsInhibited_bool')
|
||||
.asFunction();
|
||||
//tag=1030
|
||||
func(thisCpp, inhibit ? 1 : 0);
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// setMDIPopupThreshold(int arg__1)
|
||||
setMDIPopupThreshold(int arg__1) {
|
||||
//tag=1028
|
||||
final void_Func_voidstar_int func = _dylib
|
||||
.lookup<ffi.NativeFunction<void_Func_voidstar_ffi_Int32_FFI>>(
|
||||
'c_KDDockWidgets__Config__setMDIPopupThreshold_int')
|
||||
.asFunction();
|
||||
//tag=1030
|
||||
func(thisCpp, arg__1);
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// setSeparatorThickness(int value)
|
||||
setSeparatorThickness(int value) {
|
||||
//tag=1028
|
||||
final void_Func_voidstar_int func = _dylib
|
||||
.lookup<ffi.NativeFunction<void_Func_voidstar_ffi_Int32_FFI>>(
|
||||
'c_KDDockWidgets__Config__setSeparatorThickness_int')
|
||||
.asFunction();
|
||||
//tag=1030
|
||||
func(thisCpp, value);
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// setStartDragDistance(int arg__1)
|
||||
setStartDragDistance(int arg__1) {
|
||||
//tag=1028
|
||||
final void_Func_voidstar_int func = _dylib
|
||||
.lookup<ffi.NativeFunction<void_Func_voidstar_ffi_Int32_FFI>>(
|
||||
'c_KDDockWidgets__Config__setStartDragDistance_int')
|
||||
.asFunction();
|
||||
//tag=1030
|
||||
func(thisCpp, arg__1);
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// setViewFactory(KDDockWidgets::ViewFactory * arg__1)
|
||||
setViewFactory(ViewFactory? arg__1) {
|
||||
//tag=1028
|
||||
final void_Func_voidstar_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<void_Func_voidstar_voidstar_FFI>>(
|
||||
'c_KDDockWidgets__Config__setViewFactory_ViewFactory')
|
||||
.asFunction();
|
||||
//tag=1030
|
||||
func(thisCpp, arg__1 == null ? ffi.nullptr : arg__1.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__Config__startDragDistance')
|
||||
.asFunction();
|
||||
//tag=1031
|
||||
return func(thisCpp);
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// viewFactory() const
|
||||
ViewFactory viewFactory() {
|
||||
//tag=1028
|
||||
final voidstar_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<voidstar_Func_voidstar_FFI>>(
|
||||
'c_KDDockWidgets__Config__viewFactory')
|
||||
.asFunction();
|
||||
//tag=1033
|
||||
ffi.Pointer<void> result = func(thisCpp);
|
||||
return ViewFactory.fromCppPointer(result, false);
|
||||
}
|
||||
|
||||
//tag=1022
|
||||
void release() {
|
||||
final void_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<void_Func_voidstar_FFI>>(
|
||||
'c_KDDockWidgets__Config__destructor')
|
||||
.asFunction();
|
||||
func(thisCpp);
|
||||
}
|
||||
}
|
||||
@@ -357,3 +357,5 @@ typedef bool_Func_voidstar_voidstar_ffi_Int32_ffi_Int32_FFI = ffi.Int8 Function(
|
||||
typedef void_Func_voidstar_double = void Function(ffi.Pointer<void>, double);
|
||||
typedef void_Func_voidstar_ffi_Double_FFI = ffi.Void Function(
|
||||
ffi.Pointer<void>, ffi.Double);
|
||||
typedef double_Func_voidstar = double Function(ffi.Pointer<void>);
|
||||
typedef double_Func_voidstar_FFI = ffi.Double Function(ffi.Pointer<void>);
|
||||
|
||||
Reference in New Issue
Block a user