flutter: Creating a DropArea almost works

This commit is contained in:
Sergio Martins
2022-07-27 11:44:04 +01:00
parent 7b20eedf6d
commit ecd05ffbc5
14 changed files with 35 additions and 28 deletions

View File

@@ -17,8 +17,8 @@
#include <qrect.h>
#include <qpoint.h>
#include <qsize.h>
#include <qcoreevent.h>
#include <qobject.h>
#include <qcoreevent.h>
#include <qlist.h>
#include <qbytearray.h>

View File

@@ -15,11 +15,11 @@
#include <View.h>
#include <qsize.h>
#include <DropArea.h>
#include <qcoreevent.h>
#include <qpoint.h>
#include <qrect.h>
#include <qobject.h>
#include <qcoreevent.h>
#include <qstring.h>
#include <qpoint.h>
#include <qobject.h>
namespace KDDockWidgetsBindings_wrappersNS {
// tag=1017

View File

@@ -15,8 +15,8 @@
#include <qstring.h>
#include <View.h>
#include <DropArea.h>
#include <qcoreevent.h>
#include <qobject.h>
#include <qcoreevent.h>
#include <qlist.h>
#include <qbytearray.h>

View File

@@ -28,7 +28,7 @@ struct ValueWrapper
}
namespace KDDockWidgetsBindings_wrappersNS {
// tag=1006
View_flutter_wrapper::View_flutter_wrapper(KDDockWidgets::Controller *controller, KDDockWidgets::Type type, KDDockWidgets::Views::View_flutter *arg__3, Qt::WindowFlags windowFlags)
View_flutter_wrapper::View_flutter_wrapper(KDDockWidgets::Controller *controller, KDDockWidgets::Type type, KDDockWidgets::View *arg__3, Qt::WindowFlags windowFlags)
: ::KDDockWidgets::Views::View_flutter(controller, type, arg__3, windowFlags)
{
}
@@ -1042,10 +1042,10 @@ void c_KDDockWidgets__Views__View_flutter_Finalizer(void *, void *cppObj, void *
{
delete reinterpret_cast<KDDockWidgetsBindings_wrappersNS::View_flutter_wrapper *>(cppObj);
}
void *c_KDDockWidgets__Views__View_flutter__constructor_Controller_Type_View_flutter_WindowFlags(void *controller_, int type, void *arg__3_, int windowFlags)
void *c_KDDockWidgets__Views__View_flutter__constructor_Controller_Type_View_WindowFlags(void *controller_, int type, void *arg__3_, int windowFlags)
{
auto controller = reinterpret_cast<KDDockWidgets::Controller *>(controller_);
auto arg__3 = reinterpret_cast<KDDockWidgets::Views::View_flutter *>(arg__3_);
auto arg__3 = reinterpret_cast<KDDockWidgets::View *>(arg__3_);
// tag=1056
auto ptr = new KDDockWidgetsBindings_wrappersNS::View_flutter_wrapper(controller, static_cast<KDDockWidgets::Type>(type), arg__3, static_cast<Qt::WindowFlags>(windowFlags));
return reinterpret_cast<void *>(ptr);

View File

@@ -13,13 +13,13 @@
#include "KDDockWidgetsBindings_exports.h"
#include <View_flutter.h>
#include <Controller.h>
#include <View.h>
#include <qsize.h>
#include <qrect.h>
#include <View.h>
#include <qpoint.h>
#include <qstring.h>
#include <DropArea.h>
#include <controllers/Layout.h>
#include <DropArea.h>
namespace KDDockWidgetsBindings_wrappersNS {
// tag=1017
@@ -28,7 +28,7 @@ class View_flutter_wrapper : public ::KDDockWidgets::Views::View_flutter
public:
~View_flutter_wrapper();
// tag=1041
View_flutter_wrapper(KDDockWidgets::Controller *controller, KDDockWidgets::Type type, KDDockWidgets::Views::View_flutter *arg__3, Qt::WindowFlags windowFlags = {});
View_flutter_wrapper(KDDockWidgets::Controller *controller, KDDockWidgets::Type type, KDDockWidgets::View *arg__3, Qt::WindowFlags windowFlags = {});
// tag=1041
virtual void activateWindow();
// tag=1008
@@ -416,8 +416,8 @@ public:
extern "C" {
// tag=1067
// KDDockWidgets::Views::View_flutter::View_flutter(KDDockWidgets::Controller * controller, KDDockWidgets::Type type, KDDockWidgets::Views::View_flutter * arg__3, Qt::WindowFlags windowFlags)
KDDockWidgetsBindings_EXPORT void *c_KDDockWidgets__Views__View_flutter__constructor_Controller_Type_View_flutter_WindowFlags(void *controller_, int type, void *arg__3_, int windowFlags);
// KDDockWidgets::Views::View_flutter::View_flutter(KDDockWidgets::Controller * controller, KDDockWidgets::Type type, KDDockWidgets::View * arg__3, Qt::WindowFlags windowFlags)
KDDockWidgetsBindings_EXPORT void *c_KDDockWidgets__Views__View_flutter__constructor_Controller_Type_View_WindowFlags(void *controller_, int type, void *arg__3_, int windowFlags);
// tag=1067
// KDDockWidgets::Views::View_flutter::activateWindow()

View File

@@ -2322,8 +2322,8 @@ void c_KDDockWidgets__View__registerVirtualMethodCallback(void *ptr, void *callb
// tag=1047
void c_KDDockWidgets__View_Finalizer(void *, void *cppObj, void *);
// tag=1067
// KDDockWidgets::Views::View_flutter::View_flutter(KDDockWidgets::Controller * controller, KDDockWidgets::Type type, KDDockWidgets::Views::View_flutter * arg__3, Qt::WindowFlags windowFlags)
void *c_KDDockWidgets__Views__View_flutter__constructor_Controller_Type_View_flutter_WindowFlags(void *controller_, int type, void *arg__3_, int windowFlags);
// KDDockWidgets::Views::View_flutter::View_flutter(KDDockWidgets::Controller * controller, KDDockWidgets::Type type, KDDockWidgets::View * arg__3, Qt::WindowFlags windowFlags)
void *c_KDDockWidgets__Views__View_flutter__constructor_Controller_Type_View_WindowFlags(void *controller_, int type, void *arg__3_, int windowFlags);
// tag=1067
// KDDockWidgets::Views::View_flutter::activateWindow()

View File

@@ -33,8 +33,8 @@ class View_flutter extends View {
return View_flutter.fromCppPointer(cppPointer, needsAutoDelete);
}
//tag=1023
//View_flutter(KDDockWidgets::Controller * controller, KDDockWidgets::Type type, KDDockWidgets::Views::View_flutter * arg__3, Qt::WindowFlags windowFlags)
View_flutter(Controller? controller, int type, View_flutter? arg__3,
//View_flutter(KDDockWidgets::Controller * controller, KDDockWidgets::Type type, KDDockWidgets::View * arg__3, Qt::WindowFlags windowFlags)
View_flutter(Controller? controller, int type, View? arg__3,
{int windowFlags = 0})
: super.init() {
//tag=1075
@@ -42,7 +42,7 @@ class View_flutter extends View {
.lookup<
ffi.NativeFunction<
voidstar_Func_voidstar_ffi_Int32_voidstar_ffi_Int32_FFI>>(
'c_KDDockWidgets__Views__View_flutter__constructor_Controller_Type_View_flutter_WindowFlags')
'c_KDDockWidgets__Views__View_flutter__constructor_Controller_Type_View_WindowFlags')
.asFunction();
thisCpp = func(controller == null ? ffi.nullptr : controller.thisCpp, type,
arg__3 == null ? ffi.nullptr : arg__3.thisCpp, windowFlags);