flutter: Add Platform_dart and regenerate bindings
This commit is contained in:
@@ -8,16 +8,19 @@
|
||||
|
||||
Contact KDAB at <info@kdab.com> for commercial licensing options.
|
||||
*/
|
||||
export 'src/Platform.dart' show Platform;
|
||||
export 'src/View.dart' show View;
|
||||
export 'src/Controller.dart' show Controller;
|
||||
export 'src/Platform_flutter.dart' show Platform_flutter;
|
||||
export 'src/ViewFactory.dart' show ViewFactory;
|
||||
export 'src/QByteArray.dart' show QByteArray;
|
||||
export 'src/QEvent.dart' show QEvent, QEvent_Type;
|
||||
export 'src/QList.dart' show QList;
|
||||
export 'src/QObject.dart' show QObject;
|
||||
export 'src/QPoint.dart' show QPoint;
|
||||
export 'src/QRect.dart' show QRect;
|
||||
export 'src/QSize.dart' show QSize;
|
||||
export 'src/QString.dart' show QString;
|
||||
export 'src/Qt.dart' show qt_getEnumName, Qt_CursorShape;
|
||||
import 'dart:ffi' as ffi;
|
||||
import 'dart:io' show Platform;
|
||||
|
||||
|
||||
@@ -0,0 +1,453 @@
|
||||
/*
|
||||
This file is part of KDDockWidgets.
|
||||
|
||||
SPDX-FileCopyrightText: 2019-2022 Klarälvdalens Datakonsult AB, a KDAB Group company <info@kdab.com>
|
||||
Author: Sérgio Martins <sergio.martins@kdab.com>
|
||||
|
||||
SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only
|
||||
|
||||
Contact KDAB at <info@kdab.com> for commercial licensing options.
|
||||
*/
|
||||
|
||||
//tag=1052
|
||||
import 'dart:ffi' as ffi;
|
||||
import 'package:ffi/ffi.dart';
|
||||
import 'TypeHelpers.dart';
|
||||
import '../Bindings.dart';
|
||||
import '../FinalizerHelpers.dart';
|
||||
|
||||
//tag=1051
|
||||
var _dylib = Library.instance().dylib;
|
||||
|
||||
class Controller extends QObject {
|
||||
//tag=1064
|
||||
Controller.fromCppPointer(var cppPointer, [var needsAutoDelete = false])
|
||||
: super.fromCppPointer(cppPointer, needsAutoDelete) {}
|
||||
Controller.init() : super.init() {}
|
||||
//tag=1062
|
||||
factory Controller.fromCache(var cppPointer, [needsAutoDelete = false]) {
|
||||
if (QObject.isCached(cppPointer)) {
|
||||
var instance = QObject.s_dartInstanceByCppPtr[cppPointer.address];
|
||||
if (instance != null) return instance as Controller;
|
||||
}
|
||||
return Controller.fromCppPointer(cppPointer, needsAutoDelete);
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// close()
|
||||
bool close() {
|
||||
//tag=1028
|
||||
final bool_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<bool_Func_voidstar_FFI>>(
|
||||
'c_KDDockWidgets__Controller__close')
|
||||
.asFunction();
|
||||
//tag=1029
|
||||
return func(thisCpp) != 0;
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1035
|
||||
static void customEvent_calledFromC(
|
||||
ffi.Pointer<void> thisCpp, ffi.Pointer<void>? event) {
|
||||
var dartInstance =
|
||||
QObject.s_dartInstanceByCppPtr[thisCpp.address] as Controller;
|
||||
if (dartInstance == null) {
|
||||
print(
|
||||
"Dart instance not found for Controller::customEvent(QEvent * event)! (${thisCpp.address})");
|
||||
throw Error();
|
||||
}
|
||||
//tag=1036
|
||||
dartInstance.customEvent(QEvent.fromCppPointer(event));
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1035
|
||||
static int event_calledFromC(
|
||||
ffi.Pointer<void> thisCpp, ffi.Pointer<void>? event) {
|
||||
var dartInstance =
|
||||
QObject.s_dartInstanceByCppPtr[thisCpp.address] as Controller;
|
||||
if (dartInstance == null) {
|
||||
print(
|
||||
"Dart instance not found for Controller::event(QEvent * event)! (${thisCpp.address})");
|
||||
throw Error();
|
||||
}
|
||||
//tag=1037
|
||||
final result = dartInstance.event(QEvent.fromCppPointer(event));
|
||||
return result ? 1 : 0;
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1035
|
||||
static int eventFilter_calledFromC(ffi.Pointer<void> thisCpp,
|
||||
ffi.Pointer<void>? watched, ffi.Pointer<void>? event) {
|
||||
var dartInstance =
|
||||
QObject.s_dartInstanceByCppPtr[thisCpp.address] as Controller;
|
||||
if (dartInstance == null) {
|
||||
print(
|
||||
"Dart instance not found for Controller::eventFilter(QObject * watched, QEvent * event)! (${thisCpp.address})");
|
||||
throw Error();
|
||||
}
|
||||
//tag=1037
|
||||
final result = dartInstance.eventFilter(
|
||||
QObject.fromCppPointer(watched), QEvent.fromCppPointer(event));
|
||||
return result ? 1 : 0;
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// geometry() const
|
||||
QRect geometry() {
|
||||
//tag=1028
|
||||
final voidstar_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<voidstar_Func_voidstar_FFI>>(
|
||||
'c_KDDockWidgets__Controller__geometry')
|
||||
.asFunction();
|
||||
//tag=1033
|
||||
ffi.Pointer<void> result = func(thisCpp);
|
||||
return QRect.fromCppPointer(result, true);
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// height() const
|
||||
int height() {
|
||||
//tag=1028
|
||||
final int_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<int_Func_voidstar_FFI>>(
|
||||
'c_KDDockWidgets__Controller__height')
|
||||
.asFunction();
|
||||
//tag=1031
|
||||
return func(thisCpp);
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// inDtor() const
|
||||
bool inDtor() {
|
||||
//tag=1028
|
||||
final bool_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<bool_Func_voidstar_FFI>>(
|
||||
'c_KDDockWidgets__Controller__inDtor')
|
||||
.asFunction();
|
||||
//tag=1029
|
||||
return func(thisCpp) != 0;
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// isVisible() const
|
||||
bool isVisible() {
|
||||
//tag=1028
|
||||
final bool_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<bool_Func_voidstar_FFI>>(
|
||||
'c_KDDockWidgets__Controller__isVisible')
|
||||
.asFunction();
|
||||
//tag=1029
|
||||
return func(thisCpp) != 0;
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// mapToGlobal(QPoint arg__1) const
|
||||
QPoint mapToGlobal(QPoint arg__1) {
|
||||
//tag=1028
|
||||
final voidstar_Func_voidstar_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<voidstar_Func_voidstar_voidstar_FFI>>(
|
||||
'c_KDDockWidgets__Controller__mapToGlobal_QPoint')
|
||||
.asFunction();
|
||||
//tag=1033
|
||||
ffi.Pointer<void> result =
|
||||
func(thisCpp, arg__1 == null ? ffi.nullptr : arg__1.thisCpp);
|
||||
return QPoint.fromCppPointer(result, true);
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// parentViewChanged(KDDockWidgets::View * parent)
|
||||
parentViewChanged(View? parent) {
|
||||
//tag=1028
|
||||
final void_Func_voidstar_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<void_Func_voidstar_voidstar_FFI>>(
|
||||
'c_KDDockWidgets__Controller__parentViewChanged_View')
|
||||
.asFunction();
|
||||
//tag=1030
|
||||
func(thisCpp, parent == null ? ffi.nullptr : parent.thisCpp);
|
||||
}
|
||||
|
||||
//tag=1077
|
||||
void onParentViewChanged(Function callback, {QObject? context}) {
|
||||
final SignalHandler func = _dylib
|
||||
.lookup<ffi.NativeFunction<SignalHandler_FFI>>(
|
||||
'c_KDDockWidgets__Controller__onParentViewChanged_View')
|
||||
.asFunction();
|
||||
final dartCallback =
|
||||
ffi.Pointer.fromFunction<ffi.Void Function(ffi.Pointer<void>)>(
|
||||
onParentViewChanged_callback);
|
||||
final callbackMethod = onParentViewChanged_callback;
|
||||
var handlers = signalHandlerersBySignal[callbackMethod] ?? [];
|
||||
handlers.add(callback);
|
||||
signalHandlerersBySignal[callbackMethod] = handlers;
|
||||
ffi.Pointer<void> contextPtr =
|
||||
context == null ? ffi.nullptr : context.thisCpp;
|
||||
func(thisCpp, contextPtr, dartCallback);
|
||||
}
|
||||
|
||||
static void onParentViewChanged_callback(ffi.Pointer<void> thisCpp) {
|
||||
var dartInstance =
|
||||
QObject.s_dartInstanceByCppPtr[thisCpp.address] as Controller;
|
||||
final signalHandlers =
|
||||
dartInstance.signalHandlerersBySignal[onParentViewChanged_callback] ??
|
||||
[];
|
||||
for (var signalHandler in signalHandlers) {
|
||||
signalHandler();
|
||||
}
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// pos() const
|
||||
QPoint pos() {
|
||||
//tag=1028
|
||||
final voidstar_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<voidstar_Func_voidstar_FFI>>(
|
||||
'c_KDDockWidgets__Controller__pos')
|
||||
.asFunction();
|
||||
//tag=1033
|
||||
ffi.Pointer<void> result = func(thisCpp);
|
||||
return QPoint.fromCppPointer(result, true);
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// rect() const
|
||||
QRect rect() {
|
||||
//tag=1028
|
||||
final voidstar_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<voidstar_Func_voidstar_FFI>>(
|
||||
'c_KDDockWidgets__Controller__rect')
|
||||
.asFunction();
|
||||
//tag=1033
|
||||
ffi.Pointer<void> result = func(thisCpp);
|
||||
return QRect.fromCppPointer(result, true);
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// setParentView(KDDockWidgets::View * parent)
|
||||
setParentView(View? parent) {
|
||||
//tag=1028
|
||||
final void_Func_voidstar_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<void_Func_voidstar_voidstar_FFI>>(
|
||||
'c_KDDockWidgets__Controller__setParentView_View')
|
||||
.asFunction();
|
||||
//tag=1030
|
||||
func(thisCpp, parent == null ? ffi.nullptr : parent.thisCpp);
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// setParentView_impl(KDDockWidgets::View * parent)
|
||||
setParentView_impl(View? parent) {
|
||||
//tag=1028
|
||||
final void_Func_voidstar_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<void_Func_voidstar_voidstar_FFI>>(
|
||||
cFunctionSymbolName(682))
|
||||
.asFunction();
|
||||
//tag=1030
|
||||
func(thisCpp, parent == null ? ffi.nullptr : parent.thisCpp);
|
||||
}
|
||||
|
||||
//tag=1035
|
||||
static void setParentView_impl_calledFromC(
|
||||
ffi.Pointer<void> thisCpp, ffi.Pointer<void>? parent) {
|
||||
var dartInstance =
|
||||
QObject.s_dartInstanceByCppPtr[thisCpp.address] as Controller;
|
||||
if (dartInstance == null) {
|
||||
print(
|
||||
"Dart instance not found for Controller::setParentView_impl(KDDockWidgets::View * parent)! (${thisCpp.address})");
|
||||
throw Error();
|
||||
}
|
||||
//tag=1036
|
||||
dartInstance.setParentView_impl(View.fromCppPointer(parent));
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// setVisible(bool arg__1)
|
||||
setVisible(bool arg__1) {
|
||||
//tag=1028
|
||||
final void_Func_voidstar_bool func = _dylib
|
||||
.lookup<ffi.NativeFunction<void_Func_voidstar_ffi_Int8_FFI>>(
|
||||
'c_KDDockWidgets__Controller__setVisible_bool')
|
||||
.asFunction();
|
||||
//tag=1030
|
||||
func(thisCpp, arg__1 ? 1 : 0);
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// show() const
|
||||
show() {
|
||||
//tag=1028
|
||||
final void_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<void_Func_voidstar_FFI>>(
|
||||
'c_KDDockWidgets__Controller__show')
|
||||
.asFunction();
|
||||
//tag=1030
|
||||
func(thisCpp);
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// size() const
|
||||
QSize size() {
|
||||
//tag=1028
|
||||
final voidstar_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<voidstar_Func_voidstar_FFI>>(
|
||||
'c_KDDockWidgets__Controller__size')
|
||||
.asFunction();
|
||||
//tag=1033
|
||||
ffi.Pointer<void> result = func(thisCpp);
|
||||
return QSize.fromCppPointer(result, true);
|
||||
}
|
||||
|
||||
//tag=1024
|
||||
static
|
||||
//tag=1027
|
||||
// tr(const char * s, const char * c, int n)
|
||||
QString tr(String? s, String? c, int n) {
|
||||
//tag=1028
|
||||
final voidstar_Func_string_string_int func = _dylib
|
||||
.lookup<ffi.NativeFunction<voidstar_Func_string_string_ffi_Int32_FFI>>(
|
||||
'c_static_KDDockWidgets__Controller__tr_char_char_int')
|
||||
.asFunction();
|
||||
//tag=1033
|
||||
ffi.Pointer<void> result = func(
|
||||
s?.toNativeUtf8() ?? ffi.nullptr, c?.toNativeUtf8() ?? ffi.nullptr, n);
|
||||
return QString.fromCppPointer(result, true);
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// view() const
|
||||
View view() {
|
||||
//tag=1028
|
||||
final voidstar_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<voidstar_Func_voidstar_FFI>>(
|
||||
'c_KDDockWidgets__Controller__view')
|
||||
.asFunction();
|
||||
//tag=1033
|
||||
ffi.Pointer<void> result = func(thisCpp);
|
||||
return View.fromCppPointer(result, false);
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// width() const
|
||||
int width() {
|
||||
//tag=1028
|
||||
final int_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<int_Func_voidstar_FFI>>(
|
||||
'c_KDDockWidgets__Controller__width')
|
||||
.asFunction();
|
||||
//tag=1031
|
||||
return func(thisCpp);
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// x() const
|
||||
int x() {
|
||||
//tag=1028
|
||||
final int_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<int_Func_voidstar_FFI>>(
|
||||
'c_KDDockWidgets__Controller__x')
|
||||
.asFunction();
|
||||
//tag=1031
|
||||
return func(thisCpp);
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// y() const
|
||||
int y() {
|
||||
//tag=1028
|
||||
final int_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<int_Func_voidstar_FFI>>(
|
||||
'c_KDDockWidgets__Controller__y')
|
||||
.asFunction();
|
||||
//tag=1031
|
||||
return func(thisCpp);
|
||||
}
|
||||
|
||||
//tag=1022
|
||||
void release() {
|
||||
final void_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<void_Func_voidstar_FFI>>(
|
||||
'c_KDDockWidgets__Controller__destructor')
|
||||
.asFunction();
|
||||
func(thisCpp);
|
||||
}
|
||||
|
||||
//tag=1019
|
||||
String cFunctionSymbolName(int methodId) {
|
||||
switch (methodId) {
|
||||
case 294:
|
||||
return "c_KDDockWidgets__Controller__customEvent_QEvent";
|
||||
case 305:
|
||||
return "c_KDDockWidgets__Controller__event_QEvent";
|
||||
case 306:
|
||||
return "c_KDDockWidgets__Controller__eventFilter_QObject_QEvent";
|
||||
case 682:
|
||||
return "c_KDDockWidgets__Controller__setParentView_impl_View";
|
||||
}
|
||||
return super.cFunctionSymbolName(methodId);
|
||||
}
|
||||
|
||||
static String methodNameFromId(int methodId) {
|
||||
switch (methodId) {
|
||||
case 294:
|
||||
return "customEvent";
|
||||
case 305:
|
||||
return "event";
|
||||
case 306:
|
||||
return "eventFilter";
|
||||
case 682:
|
||||
return "setParentView_impl";
|
||||
}
|
||||
throw Error();
|
||||
}
|
||||
|
||||
//tag=1020
|
||||
void registerCallbacks() {
|
||||
assert(thisCpp != null);
|
||||
final RegisterMethodIsReimplementedCallback registerCallback = _dylib
|
||||
.lookup<ffi.NativeFunction<RegisterMethodIsReimplementedCallback_FFI>>(
|
||||
'c_KDDockWidgets__Controller__registerVirtualMethodCallback')
|
||||
.asFunction();
|
||||
|
||||
//tag=1021
|
||||
final callback294 =
|
||||
ffi.Pointer.fromFunction<void_Func_voidstar_voidstar_FFI>(
|
||||
QObject.customEvent_calledFromC);
|
||||
registerCallback(thisCpp, callback294, 294);
|
||||
const callbackExcept305 = 0;
|
||||
//tag=1021
|
||||
final callback305 =
|
||||
ffi.Pointer.fromFunction<bool_Func_voidstar_voidstar_FFI>(
|
||||
QObject.event_calledFromC, callbackExcept305);
|
||||
registerCallback(thisCpp, callback305, 305);
|
||||
const callbackExcept306 = 0;
|
||||
//tag=1021
|
||||
final callback306 =
|
||||
ffi.Pointer.fromFunction<bool_Func_voidstar_voidstar_voidstar_FFI>(
|
||||
QObject.eventFilter_calledFromC, callbackExcept306);
|
||||
registerCallback(thisCpp, callback306, 306);
|
||||
//tag=1021
|
||||
final callback682 =
|
||||
ffi.Pointer.fromFunction<void_Func_voidstar_voidstar_FFI>(
|
||||
Controller.setParentView_impl_calledFromC);
|
||||
registerCallback(thisCpp, callback682, 682);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
/*
|
||||
This file is part of KDDockWidgets.
|
||||
|
||||
SPDX-FileCopyrightText: 2019-2022 Klarälvdalens Datakonsult AB, a KDAB Group company <info@kdab.com>
|
||||
Author: Sérgio Martins <sergio.martins@kdab.com>
|
||||
|
||||
SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only
|
||||
|
||||
Contact KDAB at <info@kdab.com> for commercial licensing options.
|
||||
*/
|
||||
|
||||
//tag=1052
|
||||
import 'dart:ffi' as ffi;
|
||||
import 'package:ffi/ffi.dart';
|
||||
import 'TypeHelpers.dart';
|
||||
import '../Bindings.dart';
|
||||
import '../FinalizerHelpers.dart';
|
||||
|
||||
//tag=1051
|
||||
var _dylib = Library.instance().dylib;
|
||||
@@ -22,6 +22,16 @@ final _finalizer =
|
||||
_dylib.lookup<ffi.NativeFunction<Dart_WeakPersistentHandleFinalizer_Type>>(
|
||||
'c_KDDockWidgets__Platform_Finalizer');
|
||||
|
||||
//tag=1038
|
||||
class Platform_DisplayType {
|
||||
static const Other = 0;
|
||||
static const X11 = 1;
|
||||
static const Wayland = 2;
|
||||
static const QtOffscreen = 3;
|
||||
static const QtEGLFS = 4;
|
||||
static const Windows = 5;
|
||||
}
|
||||
|
||||
class Platform {
|
||||
//tag=1060
|
||||
static var s_dartInstanceByCppPtr = Map<int, Platform>();
|
||||
@@ -96,7 +106,7 @@ class Platform {
|
||||
//tag=1028
|
||||
final voidstar_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<voidstar_Func_voidstar_FFI>>(
|
||||
cFunctionSymbolName(680))
|
||||
cFunctionSymbolName(626))
|
||||
.asFunction();
|
||||
//tag=1033
|
||||
ffi.Pointer<void> result = func(thisCpp);
|
||||
@@ -124,7 +134,7 @@ class Platform {
|
||||
//tag=1028
|
||||
final voidstar_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<voidstar_Func_voidstar_FFI>>(
|
||||
cFunctionSymbolName(681))
|
||||
cFunctionSymbolName(627))
|
||||
.asFunction();
|
||||
//tag=1033
|
||||
ffi.Pointer<void> result = func(thisCpp);
|
||||
@@ -146,13 +156,73 @@ class Platform {
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// createView(KDDockWidgets::Controller * arg__1, KDDockWidgets::View * parent) const
|
||||
View createView(Controller? arg__1, {required View? parent}) {
|
||||
//tag=1028
|
||||
final voidstar_Func_voidstar_voidstar_voidstar func = _dylib
|
||||
.lookup<
|
||||
ffi.NativeFunction<
|
||||
voidstar_Func_voidstar_voidstar_voidstar_FFI>>(
|
||||
cFunctionSymbolName(628))
|
||||
.asFunction();
|
||||
//tag=1033
|
||||
ffi.Pointer<void> result = func(
|
||||
thisCpp,
|
||||
arg__1 == null ? ffi.nullptr : arg__1.thisCpp,
|
||||
parent == null ? ffi.nullptr : parent.thisCpp);
|
||||
return View.fromCppPointer(result, false);
|
||||
}
|
||||
|
||||
//tag=1035
|
||||
static ffi.Pointer<void> createView_calledFromC(ffi.Pointer<void> thisCpp,
|
||||
ffi.Pointer<void>? arg__1, ffi.Pointer<void>? parent) {
|
||||
var dartInstance = Platform.s_dartInstanceByCppPtr[thisCpp.address];
|
||||
if (dartInstance == null) {
|
||||
print(
|
||||
"Dart instance not found for Platform::createView(KDDockWidgets::Controller * arg__1, KDDockWidgets::View * parent) const! (${thisCpp.address})");
|
||||
throw Error();
|
||||
}
|
||||
//tag=1037
|
||||
final result = dartInstance.createView(Controller.fromCppPointer(arg__1),
|
||||
parent: View.fromCppPointer(parent));
|
||||
return result.thisCpp;
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// displayType() const
|
||||
int displayType() {
|
||||
//tag=1028
|
||||
final int_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<int_Func_voidstar_FFI>>(
|
||||
cFunctionSymbolName(629))
|
||||
.asFunction();
|
||||
//tag=1031
|
||||
return func(thisCpp);
|
||||
}
|
||||
|
||||
//tag=1035
|
||||
static int displayType_calledFromC(ffi.Pointer<void> thisCpp) {
|
||||
var dartInstance = Platform.s_dartInstanceByCppPtr[thisCpp.address];
|
||||
if (dartInstance == null) {
|
||||
print(
|
||||
"Dart instance not found for Platform::displayType() const! (${thisCpp.address})");
|
||||
throw Error();
|
||||
}
|
||||
//tag=1037
|
||||
final result = dartInstance.displayType();
|
||||
return result;
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// hasActivePopup() const
|
||||
bool hasActivePopup() {
|
||||
//tag=1028
|
||||
final bool_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<bool_Func_voidstar_FFI>>(
|
||||
cFunctionSymbolName(682))
|
||||
cFunctionSymbolName(630))
|
||||
.asFunction();
|
||||
//tag=1029
|
||||
return func(thisCpp) != 0;
|
||||
@@ -178,7 +248,7 @@ class Platform {
|
||||
//tag=1028
|
||||
final bool_Func_voidstar_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<bool_Func_voidstar_voidstar_FFI>>(
|
||||
cFunctionSymbolName(683))
|
||||
cFunctionSymbolName(631))
|
||||
.asFunction();
|
||||
//tag=1029
|
||||
return func(thisCpp, globalPos == null ? ffi.nullptr : globalPos.thisCpp) !=
|
||||
@@ -207,7 +277,7 @@ class Platform {
|
||||
//tag=1028
|
||||
final void_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<void_Func_voidstar_FFI>>(
|
||||
cFunctionSymbolName(684))
|
||||
cFunctionSymbolName(632))
|
||||
.asFunction();
|
||||
//tag=1030
|
||||
func(thisCpp);
|
||||
@@ -247,7 +317,7 @@ class Platform {
|
||||
//tag=1028
|
||||
final bool_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<bool_Func_voidstar_FFI>>(
|
||||
cFunctionSymbolName(686))
|
||||
cFunctionSymbolName(634))
|
||||
.asFunction();
|
||||
//tag=1029
|
||||
return func(thisCpp) != 0;
|
||||
@@ -273,7 +343,7 @@ class Platform {
|
||||
//tag=1028
|
||||
final bool_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<bool_Func_voidstar_FFI>>(
|
||||
cFunctionSymbolName(687))
|
||||
cFunctionSymbolName(635))
|
||||
.asFunction();
|
||||
//tag=1029
|
||||
return func(thisCpp) != 0;
|
||||
@@ -325,7 +395,7 @@ class Platform {
|
||||
//tag=1028
|
||||
final string_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<string_Func_voidstar_FFI>>(
|
||||
cFunctionSymbolName(690))
|
||||
cFunctionSymbolName(638))
|
||||
.asFunction();
|
||||
//tag=1032
|
||||
ffi.Pointer<Utf8> result = func(thisCpp);
|
||||
@@ -352,7 +422,7 @@ class Platform {
|
||||
//tag=1028
|
||||
final voidstar_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<voidstar_Func_voidstar_FFI>>(
|
||||
cFunctionSymbolName(691))
|
||||
cFunctionSymbolName(639))
|
||||
.asFunction();
|
||||
//tag=1033
|
||||
ffi.Pointer<void> result = func(thisCpp);
|
||||
@@ -380,7 +450,7 @@ class Platform {
|
||||
//tag=1028
|
||||
final void_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<void_Func_voidstar_FFI>>(
|
||||
cFunctionSymbolName(692))
|
||||
cFunctionSymbolName(640))
|
||||
.asFunction();
|
||||
//tag=1030
|
||||
func(thisCpp);
|
||||
@@ -405,7 +475,7 @@ class Platform {
|
||||
//tag=1028
|
||||
final int_Func_voidstar_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<int_Func_voidstar_voidstar_FFI>>(
|
||||
cFunctionSymbolName(693))
|
||||
cFunctionSymbolName(641))
|
||||
.asFunction();
|
||||
//tag=1031
|
||||
return func(thisCpp, arg__1 == null ? ffi.nullptr : arg__1.thisCpp);
|
||||
@@ -432,7 +502,7 @@ class Platform {
|
||||
//tag=1028
|
||||
final voidstar_Func_voidstar_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<voidstar_Func_voidstar_voidstar_FFI>>(
|
||||
cFunctionSymbolName(694))
|
||||
cFunctionSymbolName(642))
|
||||
.asFunction();
|
||||
//tag=1033
|
||||
ffi.Pointer<void> result =
|
||||
@@ -455,6 +525,60 @@ class Platform {
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// sendEvent(KDDockWidgets::View * arg__1, QEvent * arg__2) const
|
||||
sendEvent(View? arg__1, QEvent? arg__2) {
|
||||
//tag=1028
|
||||
final void_Func_voidstar_voidstar_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<void_Func_voidstar_voidstar_voidstar_FFI>>(
|
||||
cFunctionSymbolName(643))
|
||||
.asFunction();
|
||||
//tag=1030
|
||||
func(thisCpp, arg__1 == null ? ffi.nullptr : arg__1.thisCpp,
|
||||
arg__2 == null ? ffi.nullptr : arg__2.thisCpp);
|
||||
}
|
||||
|
||||
//tag=1035
|
||||
static void sendEvent_calledFromC(ffi.Pointer<void> thisCpp,
|
||||
ffi.Pointer<void>? arg__1, ffi.Pointer<void>? arg__2) {
|
||||
var dartInstance = Platform.s_dartInstanceByCppPtr[thisCpp.address];
|
||||
if (dartInstance == null) {
|
||||
print(
|
||||
"Dart instance not found for Platform::sendEvent(KDDockWidgets::View * arg__1, QEvent * arg__2) const! (${thisCpp.address})");
|
||||
throw Error();
|
||||
}
|
||||
//tag=1036
|
||||
dartInstance.sendEvent(
|
||||
View.fromCppPointer(arg__1), QEvent.fromCppPointer(arg__2));
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// setMouseCursor(Qt::CursorShape arg__1)
|
||||
setMouseCursor(int arg__1) {
|
||||
//tag=1028
|
||||
final void_Func_voidstar_int func = _dylib
|
||||
.lookup<ffi.NativeFunction<void_Func_voidstar_ffi_Int32_FFI>>(
|
||||
cFunctionSymbolName(644))
|
||||
.asFunction();
|
||||
//tag=1030
|
||||
func(thisCpp, arg__1);
|
||||
}
|
||||
|
||||
//tag=1035
|
||||
static void setMouseCursor_calledFromC(
|
||||
ffi.Pointer<void> thisCpp, int arg__1) {
|
||||
var dartInstance = Platform.s_dartInstanceByCppPtr[thisCpp.address];
|
||||
if (dartInstance == null) {
|
||||
print(
|
||||
"Dart instance not found for Platform::setMouseCursor(Qt::CursorShape arg__1)! (${thisCpp.address})");
|
||||
throw Error();
|
||||
}
|
||||
//tag=1036
|
||||
dartInstance.setMouseCursor(arg__1);
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// startDragDistance() const
|
||||
int startDragDistance() {
|
||||
@@ -474,7 +598,7 @@ class Platform {
|
||||
//tag=1028
|
||||
final int_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<int_Func_voidstar_FFI>>(
|
||||
cFunctionSymbolName(696))
|
||||
cFunctionSymbolName(646))
|
||||
.asFunction();
|
||||
//tag=1031
|
||||
return func(thisCpp);
|
||||
@@ -500,7 +624,7 @@ class Platform {
|
||||
//tag=1028
|
||||
final voidstar_Func_voidstar_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<voidstar_Func_voidstar_voidstar_FFI>>(
|
||||
cFunctionSymbolName(697))
|
||||
cFunctionSymbolName(647))
|
||||
.asFunction();
|
||||
//tag=1033
|
||||
ffi.Pointer<void> result =
|
||||
@@ -544,7 +668,7 @@ class Platform {
|
||||
//tag=1028
|
||||
final void_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<void_Func_voidstar_FFI>>(
|
||||
cFunctionSymbolName(699))
|
||||
cFunctionSymbolName(649))
|
||||
.asFunction();
|
||||
//tag=1030
|
||||
func(thisCpp);
|
||||
@@ -569,7 +693,7 @@ class Platform {
|
||||
//tag=1028
|
||||
final void_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<void_Func_voidstar_FFI>>(
|
||||
cFunctionSymbolName(700))
|
||||
cFunctionSymbolName(650))
|
||||
.asFunction();
|
||||
//tag=1030
|
||||
func(thisCpp);
|
||||
@@ -594,7 +718,7 @@ class Platform {
|
||||
//tag=1028
|
||||
final void_Func_voidstar_int func = _dylib
|
||||
.lookup<ffi.NativeFunction<void_Func_voidstar_ffi_Int32_FFI>>(
|
||||
cFunctionSymbolName(701))
|
||||
cFunctionSymbolName(651))
|
||||
.asFunction();
|
||||
//tag=1030
|
||||
func(thisCpp, ms);
|
||||
@@ -619,7 +743,7 @@ class Platform {
|
||||
//tag=1028
|
||||
final bool_Func_voidstar_voidstar_int func = _dylib
|
||||
.lookup<ffi.NativeFunction<bool_Func_voidstar_voidstar_ffi_Int32_FFI>>(
|
||||
cFunctionSymbolName(702))
|
||||
cFunctionSymbolName(652))
|
||||
.asFunction();
|
||||
//tag=1029
|
||||
return func(
|
||||
@@ -649,7 +773,7 @@ class Platform {
|
||||
//tag=1028
|
||||
final bool_Func_voidstar_voidstar_int func = _dylib
|
||||
.lookup<ffi.NativeFunction<bool_Func_voidstar_voidstar_ffi_Int32_FFI>>(
|
||||
cFunctionSymbolName(703))
|
||||
cFunctionSymbolName(653))
|
||||
.asFunction();
|
||||
//tag=1029
|
||||
return func(
|
||||
@@ -675,12 +799,77 @@ class Platform {
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// tests_waitForResize(KDDockWidgets::View * arg__1, int timeout) const
|
||||
bool tests_waitForResize(View? arg__1, {int timeout = 2000}) {
|
||||
// tests_waitForEvent(KDDockWidgets::View * arg__1, QEvent::Type type, int timeout) const
|
||||
bool tests_waitForEvent(View? arg__1, int type, {int timeout = 5000}) {
|
||||
//tag=1028
|
||||
final bool_Func_voidstar_voidstar_int_int func = _dylib
|
||||
.lookup<
|
||||
ffi.NativeFunction<
|
||||
bool_Func_voidstar_voidstar_ffi_Int32_ffi_Int32_FFI>>(
|
||||
cFunctionSymbolName(654))
|
||||
.asFunction();
|
||||
//tag=1029
|
||||
return func(thisCpp, arg__1 == null ? ffi.nullptr : arg__1.thisCpp, type,
|
||||
timeout) !=
|
||||
0;
|
||||
}
|
||||
|
||||
//tag=1035
|
||||
static int tests_waitForEvent_calledFromC(ffi.Pointer<void> thisCpp,
|
||||
ffi.Pointer<void>? arg__1, int type, int timeout) {
|
||||
var dartInstance = Platform.s_dartInstanceByCppPtr[thisCpp.address];
|
||||
if (dartInstance == null) {
|
||||
print(
|
||||
"Dart instance not found for Platform::tests_waitForEvent(KDDockWidgets::View * arg__1, QEvent::Type type, int timeout) const! (${thisCpp.address})");
|
||||
throw Error();
|
||||
}
|
||||
//tag=1037
|
||||
final result = dartInstance.tests_waitForEvent(
|
||||
View.fromCppPointer(arg__1), type,
|
||||
timeout: timeout);
|
||||
return result ? 1 : 0;
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// tests_waitForEvent(QObject * w, QEvent::Type type, int timeout) const
|
||||
bool tests_waitForEvent_2(QObject? w, int type, {int timeout = 5000}) {
|
||||
//tag=1028
|
||||
final bool_Func_voidstar_voidstar_int_int func = _dylib
|
||||
.lookup<
|
||||
ffi.NativeFunction<
|
||||
bool_Func_voidstar_voidstar_ffi_Int32_ffi_Int32_FFI>>(
|
||||
cFunctionSymbolName(655))
|
||||
.asFunction();
|
||||
//tag=1029
|
||||
return func(thisCpp, w == null ? ffi.nullptr : w.thisCpp, type, timeout) !=
|
||||
0;
|
||||
}
|
||||
|
||||
//tag=1035
|
||||
static int tests_waitForEvent_2_calledFromC(
|
||||
ffi.Pointer<void> thisCpp, ffi.Pointer<void>? w, int type, int timeout) {
|
||||
var dartInstance = Platform.s_dartInstanceByCppPtr[thisCpp.address];
|
||||
if (dartInstance == null) {
|
||||
print(
|
||||
"Dart instance not found for Platform::tests_waitForEvent(QObject * w, QEvent::Type type, int timeout) const! (${thisCpp.address})");
|
||||
throw Error();
|
||||
}
|
||||
//tag=1037
|
||||
final result = dartInstance.tests_waitForEvent_2(
|
||||
QObject.fromCppPointer(w), type,
|
||||
timeout: timeout);
|
||||
return result ? 1 : 0;
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// tests_waitForResize(KDDockWidgets::Controller * arg__1, int timeout) const
|
||||
bool tests_waitForResize(Controller? arg__1, {int timeout = 2000}) {
|
||||
//tag=1028
|
||||
final bool_Func_voidstar_voidstar_int func = _dylib
|
||||
.lookup<ffi.NativeFunction<bool_Func_voidstar_voidstar_ffi_Int32_FFI>>(
|
||||
cFunctionSymbolName(704))
|
||||
cFunctionSymbolName(656))
|
||||
.asFunction();
|
||||
//tag=1029
|
||||
return func(
|
||||
@@ -692,14 +881,45 @@ class Platform {
|
||||
static int tests_waitForResize_calledFromC(
|
||||
ffi.Pointer<void> thisCpp, ffi.Pointer<void>? arg__1, int timeout) {
|
||||
var dartInstance = Platform.s_dartInstanceByCppPtr[thisCpp.address];
|
||||
if (dartInstance == null) {
|
||||
print(
|
||||
"Dart instance not found for Platform::tests_waitForResize(KDDockWidgets::Controller * arg__1, int timeout) const! (${thisCpp.address})");
|
||||
throw Error();
|
||||
}
|
||||
//tag=1037
|
||||
final result = dartInstance.tests_waitForResize(
|
||||
Controller.fromCppPointer(arg__1),
|
||||
timeout: timeout);
|
||||
return result ? 1 : 0;
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// tests_waitForResize(KDDockWidgets::View * arg__1, int timeout) const
|
||||
bool tests_waitForResize_2(View? arg__1, {int timeout = 2000}) {
|
||||
//tag=1028
|
||||
final bool_Func_voidstar_voidstar_int func = _dylib
|
||||
.lookup<ffi.NativeFunction<bool_Func_voidstar_voidstar_ffi_Int32_FFI>>(
|
||||
cFunctionSymbolName(657))
|
||||
.asFunction();
|
||||
//tag=1029
|
||||
return func(
|
||||
thisCpp, arg__1 == null ? ffi.nullptr : arg__1.thisCpp, timeout) !=
|
||||
0;
|
||||
}
|
||||
|
||||
//tag=1035
|
||||
static int tests_waitForResize_2_calledFromC(
|
||||
ffi.Pointer<void> thisCpp, ffi.Pointer<void>? arg__1, int timeout) {
|
||||
var dartInstance = Platform.s_dartInstanceByCppPtr[thisCpp.address];
|
||||
if (dartInstance == null) {
|
||||
print(
|
||||
"Dart instance not found for Platform::tests_waitForResize(KDDockWidgets::View * arg__1, int timeout) const! (${thisCpp.address})");
|
||||
throw Error();
|
||||
}
|
||||
//tag=1037
|
||||
final result = dartInstance.tests_waitForResize(View.fromCppPointer(arg__1),
|
||||
timeout: timeout);
|
||||
final result = dartInstance
|
||||
.tests_waitForResize_2(View.fromCppPointer(arg__1), timeout: timeout);
|
||||
return result ? 1 : 0;
|
||||
}
|
||||
//tag=1024
|
||||
@@ -710,7 +930,7 @@ class Platform {
|
||||
//tag=1028
|
||||
final void_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<void_Func_voidstar_FFI>>(
|
||||
cFunctionSymbolName(705))
|
||||
cFunctionSymbolName(658))
|
||||
.asFunction();
|
||||
//tag=1030
|
||||
func(thisCpp);
|
||||
@@ -735,7 +955,7 @@ class Platform {
|
||||
//tag=1028
|
||||
final void_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<void_Func_voidstar_FFI>>(
|
||||
cFunctionSymbolName(706))
|
||||
cFunctionSymbolName(659))
|
||||
.asFunction();
|
||||
//tag=1030
|
||||
func(thisCpp);
|
||||
@@ -760,7 +980,7 @@ class Platform {
|
||||
//tag=1028
|
||||
final bool_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<bool_Func_voidstar_FFI>>(
|
||||
cFunctionSymbolName(707))
|
||||
cFunctionSymbolName(660))
|
||||
.asFunction();
|
||||
//tag=1029
|
||||
return func(thisCpp) != 0;
|
||||
@@ -791,51 +1011,65 @@ class Platform {
|
||||
//tag=1019
|
||||
String cFunctionSymbolName(int methodId) {
|
||||
switch (methodId) {
|
||||
case 680:
|
||||
case 626:
|
||||
return "c_KDDockWidgets__Platform__applicationName";
|
||||
case 681:
|
||||
case 627:
|
||||
return "c_KDDockWidgets__Platform__createDefaultViewFactory";
|
||||
case 682:
|
||||
case 628:
|
||||
return "c_KDDockWidgets__Platform__createView_Controller_View";
|
||||
case 629:
|
||||
return "c_KDDockWidgets__Platform__displayType";
|
||||
case 630:
|
||||
return "c_KDDockWidgets__Platform__hasActivePopup";
|
||||
case 683:
|
||||
case 631:
|
||||
return "c_KDDockWidgets__Platform__inDisallowedDragView_QPoint";
|
||||
case 684:
|
||||
case 632:
|
||||
return "c_KDDockWidgets__Platform__installMessageHandler";
|
||||
case 686:
|
||||
case 634:
|
||||
return "c_KDDockWidgets__Platform__isLeftMouseButtonPressed";
|
||||
case 687:
|
||||
case 635:
|
||||
return "c_KDDockWidgets__Platform__isProcessingAppQuitEvent";
|
||||
case 690:
|
||||
case 638:
|
||||
return "c_KDDockWidgets__Platform__name";
|
||||
case 691:
|
||||
case 639:
|
||||
return "c_KDDockWidgets__Platform__organizationName";
|
||||
case 692:
|
||||
case 640:
|
||||
return "c_KDDockWidgets__Platform__restoreMouseCursor";
|
||||
case 693:
|
||||
case 641:
|
||||
return "c_KDDockWidgets__Platform__screenNumberFor_View";
|
||||
case 694:
|
||||
case 642:
|
||||
return "c_KDDockWidgets__Platform__screenSizeFor_View";
|
||||
case 696:
|
||||
case 643:
|
||||
return "c_KDDockWidgets__Platform__sendEvent_View_QEvent";
|
||||
case 644:
|
||||
return "c_KDDockWidgets__Platform__setMouseCursor_CursorShape";
|
||||
case 646:
|
||||
return "c_KDDockWidgets__Platform__startDragDistance_impl";
|
||||
case 697:
|
||||
case 647:
|
||||
return "c_KDDockWidgets__Platform__tests_createNonClosableView_View";
|
||||
case 699:
|
||||
case 649:
|
||||
return "c_KDDockWidgets__Platform__tests_deinitPlatform_impl";
|
||||
case 700:
|
||||
case 650:
|
||||
return "c_KDDockWidgets__Platform__tests_initPlatform_impl";
|
||||
case 701:
|
||||
case 651:
|
||||
return "c_KDDockWidgets__Platform__tests_wait_int";
|
||||
case 702:
|
||||
case 652:
|
||||
return "c_KDDockWidgets__Platform__tests_waitForDeleted_View_int";
|
||||
case 703:
|
||||
case 653:
|
||||
return "c_KDDockWidgets__Platform__tests_waitForDeleted_QObject_int";
|
||||
case 704:
|
||||
case 654:
|
||||
return "c_KDDockWidgets__Platform__tests_waitForEvent_View_Type_int";
|
||||
case 655:
|
||||
return "c_KDDockWidgets__Platform__tests_waitForEvent_QObject_Type_int";
|
||||
case 656:
|
||||
return "c_KDDockWidgets__Platform__tests_waitForResize_Controller_int";
|
||||
case 657:
|
||||
return "c_KDDockWidgets__Platform__tests_waitForResize_View_int";
|
||||
case 705:
|
||||
case 658:
|
||||
return "c_KDDockWidgets__Platform__ungrabMouse";
|
||||
case 706:
|
||||
case 659:
|
||||
return "c_KDDockWidgets__Platform__uninstallMessageHandler";
|
||||
case 707:
|
||||
case 660:
|
||||
return "c_KDDockWidgets__Platform__usesFallbackMouseGrabber";
|
||||
}
|
||||
return "";
|
||||
@@ -843,51 +1077,65 @@ class Platform {
|
||||
|
||||
static String methodNameFromId(int methodId) {
|
||||
switch (methodId) {
|
||||
case 680:
|
||||
case 626:
|
||||
return "applicationName";
|
||||
case 681:
|
||||
case 627:
|
||||
return "createDefaultViewFactory";
|
||||
case 682:
|
||||
case 628:
|
||||
return "createView";
|
||||
case 629:
|
||||
return "displayType";
|
||||
case 630:
|
||||
return "hasActivePopup";
|
||||
case 683:
|
||||
case 631:
|
||||
return "inDisallowedDragView";
|
||||
case 684:
|
||||
case 632:
|
||||
return "installMessageHandler";
|
||||
case 686:
|
||||
case 634:
|
||||
return "isLeftMouseButtonPressed";
|
||||
case 687:
|
||||
case 635:
|
||||
return "isProcessingAppQuitEvent";
|
||||
case 690:
|
||||
case 638:
|
||||
return "name";
|
||||
case 691:
|
||||
case 639:
|
||||
return "organizationName";
|
||||
case 692:
|
||||
case 640:
|
||||
return "restoreMouseCursor";
|
||||
case 693:
|
||||
case 641:
|
||||
return "screenNumberFor";
|
||||
case 694:
|
||||
case 642:
|
||||
return "screenSizeFor";
|
||||
case 696:
|
||||
case 643:
|
||||
return "sendEvent";
|
||||
case 644:
|
||||
return "setMouseCursor";
|
||||
case 646:
|
||||
return "startDragDistance_impl";
|
||||
case 697:
|
||||
case 647:
|
||||
return "tests_createNonClosableView";
|
||||
case 699:
|
||||
case 649:
|
||||
return "tests_deinitPlatform_impl";
|
||||
case 700:
|
||||
case 650:
|
||||
return "tests_initPlatform_impl";
|
||||
case 701:
|
||||
case 651:
|
||||
return "tests_wait";
|
||||
case 702:
|
||||
case 652:
|
||||
return "tests_waitForDeleted";
|
||||
case 703:
|
||||
case 653:
|
||||
return "tests_waitForDeleted_2";
|
||||
case 704:
|
||||
case 654:
|
||||
return "tests_waitForEvent";
|
||||
case 655:
|
||||
return "tests_waitForEvent_2";
|
||||
case 656:
|
||||
return "tests_waitForResize";
|
||||
case 705:
|
||||
case 657:
|
||||
return "tests_waitForResize_2";
|
||||
case 658:
|
||||
return "ungrabMouse";
|
||||
case 706:
|
||||
case 659:
|
||||
return "uninstallMessageHandler";
|
||||
case 707:
|
||||
case 660:
|
||||
return "usesFallbackMouseGrabber";
|
||||
}
|
||||
throw Error();
|
||||
@@ -902,114 +1150,152 @@ class Platform {
|
||||
.asFunction();
|
||||
|
||||
//tag=1021
|
||||
final callback680 = ffi.Pointer.fromFunction<voidstar_Func_voidstar_FFI>(
|
||||
final callback626 = ffi.Pointer.fromFunction<voidstar_Func_voidstar_FFI>(
|
||||
Platform.applicationName_calledFromC);
|
||||
registerCallback(thisCpp, callback680, 680);
|
||||
registerCallback(thisCpp, callback626, 626);
|
||||
//tag=1021
|
||||
final callback681 = ffi.Pointer.fromFunction<voidstar_Func_voidstar_FFI>(
|
||||
final callback627 = ffi.Pointer.fromFunction<voidstar_Func_voidstar_FFI>(
|
||||
Platform.createDefaultViewFactory_calledFromC);
|
||||
registerCallback(thisCpp, callback681, 681);
|
||||
const callbackExcept682 = 0;
|
||||
registerCallback(thisCpp, callback627, 627);
|
||||
//tag=1021
|
||||
final callback682 = ffi.Pointer.fromFunction<bool_Func_voidstar_FFI>(
|
||||
Platform.hasActivePopup_calledFromC, callbackExcept682);
|
||||
registerCallback(thisCpp, callback682, 682);
|
||||
const callbackExcept683 = 0;
|
||||
final callback628 =
|
||||
ffi.Pointer.fromFunction<voidstar_Func_voidstar_voidstar_voidstar_FFI>(
|
||||
Platform.createView_calledFromC);
|
||||
registerCallback(thisCpp, callback628, 628);
|
||||
const callbackExcept629 = 0;
|
||||
//tag=1021
|
||||
final callback683 =
|
||||
final callback629 = ffi.Pointer.fromFunction<int_Func_voidstar_FFI>(
|
||||
Platform.displayType_calledFromC, callbackExcept629);
|
||||
registerCallback(thisCpp, callback629, 629);
|
||||
const callbackExcept630 = 0;
|
||||
//tag=1021
|
||||
final callback630 = ffi.Pointer.fromFunction<bool_Func_voidstar_FFI>(
|
||||
Platform.hasActivePopup_calledFromC, callbackExcept630);
|
||||
registerCallback(thisCpp, callback630, 630);
|
||||
const callbackExcept631 = 0;
|
||||
//tag=1021
|
||||
final callback631 =
|
||||
ffi.Pointer.fromFunction<bool_Func_voidstar_voidstar_FFI>(
|
||||
Platform.inDisallowedDragView_calledFromC, callbackExcept683);
|
||||
registerCallback(thisCpp, callback683, 683);
|
||||
Platform.inDisallowedDragView_calledFromC, callbackExcept631);
|
||||
registerCallback(thisCpp, callback631, 631);
|
||||
//tag=1021
|
||||
final callback684 = ffi.Pointer.fromFunction<void_Func_voidstar_FFI>(
|
||||
final callback632 = ffi.Pointer.fromFunction<void_Func_voidstar_FFI>(
|
||||
Platform.installMessageHandler_calledFromC);
|
||||
registerCallback(thisCpp, callback684, 684);
|
||||
const callbackExcept686 = 0;
|
||||
registerCallback(thisCpp, callback632, 632);
|
||||
const callbackExcept634 = 0;
|
||||
//tag=1021
|
||||
final callback686 = ffi.Pointer.fromFunction<bool_Func_voidstar_FFI>(
|
||||
Platform.isLeftMouseButtonPressed_calledFromC, callbackExcept686);
|
||||
registerCallback(thisCpp, callback686, 686);
|
||||
const callbackExcept687 = 0;
|
||||
final callback634 = ffi.Pointer.fromFunction<bool_Func_voidstar_FFI>(
|
||||
Platform.isLeftMouseButtonPressed_calledFromC, callbackExcept634);
|
||||
registerCallback(thisCpp, callback634, 634);
|
||||
const callbackExcept635 = 0;
|
||||
//tag=1021
|
||||
final callback687 = ffi.Pointer.fromFunction<bool_Func_voidstar_FFI>(
|
||||
Platform.isProcessingAppQuitEvent_calledFromC, callbackExcept687);
|
||||
registerCallback(thisCpp, callback687, 687);
|
||||
final callback635 = ffi.Pointer.fromFunction<bool_Func_voidstar_FFI>(
|
||||
Platform.isProcessingAppQuitEvent_calledFromC, callbackExcept635);
|
||||
registerCallback(thisCpp, callback635, 635);
|
||||
//tag=1021
|
||||
final callback690 = ffi.Pointer.fromFunction<string_Func_voidstar_FFI>(
|
||||
final callback638 = ffi.Pointer.fromFunction<string_Func_voidstar_FFI>(
|
||||
Platform.name_calledFromC);
|
||||
registerCallback(thisCpp, callback690, 690);
|
||||
registerCallback(thisCpp, callback638, 638);
|
||||
//tag=1021
|
||||
final callback691 = ffi.Pointer.fromFunction<voidstar_Func_voidstar_FFI>(
|
||||
final callback639 = ffi.Pointer.fromFunction<voidstar_Func_voidstar_FFI>(
|
||||
Platform.organizationName_calledFromC);
|
||||
registerCallback(thisCpp, callback691, 691);
|
||||
registerCallback(thisCpp, callback639, 639);
|
||||
//tag=1021
|
||||
final callback692 = ffi.Pointer.fromFunction<void_Func_voidstar_FFI>(
|
||||
final callback640 = ffi.Pointer.fromFunction<void_Func_voidstar_FFI>(
|
||||
Platform.restoreMouseCursor_calledFromC);
|
||||
registerCallback(thisCpp, callback692, 692);
|
||||
const callbackExcept693 = 0;
|
||||
registerCallback(thisCpp, callback640, 640);
|
||||
const callbackExcept641 = 0;
|
||||
//tag=1021
|
||||
final callback693 =
|
||||
final callback641 =
|
||||
ffi.Pointer.fromFunction<int_Func_voidstar_voidstar_FFI>(
|
||||
Platform.screenNumberFor_calledFromC, callbackExcept693);
|
||||
registerCallback(thisCpp, callback693, 693);
|
||||
Platform.screenNumberFor_calledFromC, callbackExcept641);
|
||||
registerCallback(thisCpp, callback641, 641);
|
||||
//tag=1021
|
||||
final callback694 =
|
||||
final callback642 =
|
||||
ffi.Pointer.fromFunction<voidstar_Func_voidstar_voidstar_FFI>(
|
||||
Platform.screenSizeFor_calledFromC);
|
||||
registerCallback(thisCpp, callback694, 694);
|
||||
const callbackExcept696 = 0;
|
||||
registerCallback(thisCpp, callback642, 642);
|
||||
//tag=1021
|
||||
final callback696 = ffi.Pointer.fromFunction<int_Func_voidstar_FFI>(
|
||||
Platform.startDragDistance_impl_calledFromC, callbackExcept696);
|
||||
registerCallback(thisCpp, callback696, 696);
|
||||
final callback643 =
|
||||
ffi.Pointer.fromFunction<void_Func_voidstar_voidstar_voidstar_FFI>(
|
||||
Platform.sendEvent_calledFromC);
|
||||
registerCallback(thisCpp, callback643, 643);
|
||||
//tag=1021
|
||||
final callback697 =
|
||||
final callback644 =
|
||||
ffi.Pointer.fromFunction<void_Func_voidstar_ffi_Int32_FFI>(
|
||||
Platform.setMouseCursor_calledFromC);
|
||||
registerCallback(thisCpp, callback644, 644);
|
||||
const callbackExcept646 = 0;
|
||||
//tag=1021
|
||||
final callback646 = ffi.Pointer.fromFunction<int_Func_voidstar_FFI>(
|
||||
Platform.startDragDistance_impl_calledFromC, callbackExcept646);
|
||||
registerCallback(thisCpp, callback646, 646);
|
||||
//tag=1021
|
||||
final callback647 =
|
||||
ffi.Pointer.fromFunction<voidstar_Func_voidstar_voidstar_FFI>(
|
||||
Platform.tests_createNonClosableView_calledFromC);
|
||||
registerCallback(thisCpp, callback697, 697);
|
||||
registerCallback(thisCpp, callback647, 647);
|
||||
//tag=1021
|
||||
final callback699 = ffi.Pointer.fromFunction<void_Func_voidstar_FFI>(
|
||||
final callback649 = ffi.Pointer.fromFunction<void_Func_voidstar_FFI>(
|
||||
Platform.tests_deinitPlatform_impl_calledFromC);
|
||||
registerCallback(thisCpp, callback699, 699);
|
||||
registerCallback(thisCpp, callback649, 649);
|
||||
//tag=1021
|
||||
final callback700 = ffi.Pointer.fromFunction<void_Func_voidstar_FFI>(
|
||||
final callback650 = ffi.Pointer.fromFunction<void_Func_voidstar_FFI>(
|
||||
Platform.tests_initPlatform_impl_calledFromC);
|
||||
registerCallback(thisCpp, callback700, 700);
|
||||
registerCallback(thisCpp, callback650, 650);
|
||||
//tag=1021
|
||||
final callback701 =
|
||||
final callback651 =
|
||||
ffi.Pointer.fromFunction<void_Func_voidstar_ffi_Int32_FFI>(
|
||||
Platform.tests_wait_calledFromC);
|
||||
registerCallback(thisCpp, callback701, 701);
|
||||
const callbackExcept702 = 0;
|
||||
registerCallback(thisCpp, callback651, 651);
|
||||
const callbackExcept652 = 0;
|
||||
//tag=1021
|
||||
final callback702 =
|
||||
final callback652 =
|
||||
ffi.Pointer.fromFunction<bool_Func_voidstar_voidstar_ffi_Int32_FFI>(
|
||||
Platform.tests_waitForDeleted_calledFromC, callbackExcept702);
|
||||
registerCallback(thisCpp, callback702, 702);
|
||||
const callbackExcept703 = 0;
|
||||
Platform.tests_waitForDeleted_calledFromC, callbackExcept652);
|
||||
registerCallback(thisCpp, callback652, 652);
|
||||
const callbackExcept653 = 0;
|
||||
//tag=1021
|
||||
final callback703 =
|
||||
final callback653 =
|
||||
ffi.Pointer.fromFunction<bool_Func_voidstar_voidstar_ffi_Int32_FFI>(
|
||||
Platform.tests_waitForDeleted_2_calledFromC, callbackExcept703);
|
||||
registerCallback(thisCpp, callback703, 703);
|
||||
const callbackExcept704 = 0;
|
||||
Platform.tests_waitForDeleted_2_calledFromC, callbackExcept653);
|
||||
registerCallback(thisCpp, callback653, 653);
|
||||
const callbackExcept654 = 0;
|
||||
//tag=1021
|
||||
final callback704 =
|
||||
final callback654 = ffi.Pointer.fromFunction<
|
||||
bool_Func_voidstar_voidstar_ffi_Int32_ffi_Int32_FFI>(
|
||||
Platform.tests_waitForEvent_calledFromC, callbackExcept654);
|
||||
registerCallback(thisCpp, callback654, 654);
|
||||
const callbackExcept655 = 0;
|
||||
//tag=1021
|
||||
final callback655 = ffi.Pointer.fromFunction<
|
||||
bool_Func_voidstar_voidstar_ffi_Int32_ffi_Int32_FFI>(
|
||||
Platform.tests_waitForEvent_2_calledFromC, callbackExcept655);
|
||||
registerCallback(thisCpp, callback655, 655);
|
||||
const callbackExcept656 = 0;
|
||||
//tag=1021
|
||||
final callback656 =
|
||||
ffi.Pointer.fromFunction<bool_Func_voidstar_voidstar_ffi_Int32_FFI>(
|
||||
Platform.tests_waitForResize_calledFromC, callbackExcept704);
|
||||
registerCallback(thisCpp, callback704, 704);
|
||||
Platform.tests_waitForResize_calledFromC, callbackExcept656);
|
||||
registerCallback(thisCpp, callback656, 656);
|
||||
const callbackExcept657 = 0;
|
||||
//tag=1021
|
||||
final callback705 = ffi.Pointer.fromFunction<void_Func_voidstar_FFI>(
|
||||
final callback657 =
|
||||
ffi.Pointer.fromFunction<bool_Func_voidstar_voidstar_ffi_Int32_FFI>(
|
||||
Platform.tests_waitForResize_2_calledFromC, callbackExcept657);
|
||||
registerCallback(thisCpp, callback657, 657);
|
||||
//tag=1021
|
||||
final callback658 = ffi.Pointer.fromFunction<void_Func_voidstar_FFI>(
|
||||
Platform.ungrabMouse_calledFromC);
|
||||
registerCallback(thisCpp, callback705, 705);
|
||||
registerCallback(thisCpp, callback658, 658);
|
||||
//tag=1021
|
||||
final callback706 = ffi.Pointer.fromFunction<void_Func_voidstar_FFI>(
|
||||
final callback659 = ffi.Pointer.fromFunction<void_Func_voidstar_FFI>(
|
||||
Platform.uninstallMessageHandler_calledFromC);
|
||||
registerCallback(thisCpp, callback706, 706);
|
||||
const callbackExcept707 = 0;
|
||||
registerCallback(thisCpp, callback659, 659);
|
||||
const callbackExcept660 = 0;
|
||||
//tag=1021
|
||||
final callback707 = ffi.Pointer.fromFunction<bool_Func_voidstar_FFI>(
|
||||
Platform.usesFallbackMouseGrabber_calledFromC, callbackExcept707);
|
||||
registerCallback(thisCpp, callback707, 707);
|
||||
final callback660 = ffi.Pointer.fromFunction<bool_Func_voidstar_FFI>(
|
||||
Platform.usesFallbackMouseGrabber_calledFromC, callbackExcept660);
|
||||
registerCallback(thisCpp, callback660, 660);
|
||||
}
|
||||
}
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -77,7 +77,7 @@ class QByteArray {
|
||||
|
||||
//tag=1027
|
||||
// append(const QByteArray & a)
|
||||
QByteArray append_1(QByteArray? a) {
|
||||
QByteArray append(QByteArray? a) {
|
||||
//tag=1028
|
||||
final voidstar_Func_voidstar_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<voidstar_Func_voidstar_voidstar_FFI>>(
|
||||
@@ -298,7 +298,7 @@ class QByteArray {
|
||||
|
||||
//tag=1027
|
||||
// contains(const QByteArray & a) const
|
||||
bool contains_1(QByteArray? a) {
|
||||
bool contains(QByteArray? a) {
|
||||
//tag=1028
|
||||
final bool_Func_voidstar_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<bool_Func_voidstar_voidstar_FFI>>(
|
||||
@@ -376,7 +376,7 @@ class QByteArray {
|
||||
|
||||
//tag=1027
|
||||
// endsWith(const QByteArray & a) const
|
||||
bool endsWith_1(QByteArray? a) {
|
||||
bool endsWith(QByteArray? a) {
|
||||
//tag=1028
|
||||
final bool_Func_voidstar_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<bool_Func_voidstar_voidstar_FFI>>(
|
||||
@@ -476,7 +476,7 @@ class QByteArray {
|
||||
|
||||
//tag=1027
|
||||
// indexOf(const QByteArray & a, int from) const
|
||||
int indexOf_1(QByteArray? a, {int from = 0}) {
|
||||
int indexOf(QByteArray? a, {int from = 0}) {
|
||||
//tag=1028
|
||||
final int_Func_voidstar_voidstar_int func = _dylib
|
||||
.lookup<ffi.NativeFunction<int_Func_voidstar_voidstar_ffi_Int32_FFI>>(
|
||||
@@ -502,7 +502,7 @@ class QByteArray {
|
||||
|
||||
//tag=1027
|
||||
// insert(int i, const QByteArray & a)
|
||||
QByteArray insert_1(int i, QByteArray? a) {
|
||||
QByteArray insert(int i, QByteArray? a) {
|
||||
//tag=1028
|
||||
final voidstar_Func_voidstar_int_voidstar func = _dylib
|
||||
.lookup<
|
||||
@@ -631,7 +631,7 @@ class QByteArray {
|
||||
|
||||
//tag=1027
|
||||
// lastIndexOf(const QByteArray & a, int from) const
|
||||
int lastIndexOf_1(QByteArray? a, {int from = -1}) {
|
||||
int lastIndexOf(QByteArray? a, {int from = -1}) {
|
||||
//tag=1028
|
||||
final int_Func_voidstar_voidstar_int func = _dylib
|
||||
.lookup<ffi.NativeFunction<int_Func_voidstar_voidstar_ffi_Int32_FFI>>(
|
||||
@@ -715,7 +715,7 @@ class QByteArray {
|
||||
static
|
||||
//tag=1027
|
||||
// number(int arg__1, int base)
|
||||
QByteArray number_1(int arg__1, {int base = 10}) {
|
||||
QByteArray number(int arg__1, {int base = 10}) {
|
||||
//tag=1028
|
||||
final voidstar_Func_int_int func = _dylib
|
||||
.lookup<ffi.NativeFunction<voidstar_Func_ffi_Int32_ffi_Int32_FFI>>(
|
||||
@@ -729,7 +729,7 @@ class QByteArray {
|
||||
|
||||
//tag=1027
|
||||
// prepend(const QByteArray & a)
|
||||
QByteArray prepend_1(QByteArray? a) {
|
||||
QByteArray prepend(QByteArray? a) {
|
||||
//tag=1028
|
||||
final voidstar_Func_voidstar_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<voidstar_Func_voidstar_voidstar_FFI>>(
|
||||
@@ -775,7 +775,7 @@ class QByteArray {
|
||||
|
||||
//tag=1027
|
||||
// push_back(const QByteArray & a)
|
||||
push_back_1(QByteArray? a) {
|
||||
push_back(QByteArray? a) {
|
||||
//tag=1028
|
||||
final void_Func_voidstar_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<void_Func_voidstar_voidstar_FFI>>(
|
||||
@@ -801,7 +801,7 @@ class QByteArray {
|
||||
|
||||
//tag=1027
|
||||
// push_front(const QByteArray & a)
|
||||
push_front_1(QByteArray? a) {
|
||||
push_front(QByteArray? a) {
|
||||
//tag=1028
|
||||
final void_Func_voidstar_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<void_Func_voidstar_voidstar_FFI>>(
|
||||
@@ -855,6 +855,25 @@ class QByteArray {
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// replace(const QByteArray & before, const QByteArray & after)
|
||||
QByteArray replace(QByteArray? before, QByteArray? after) {
|
||||
//tag=1028
|
||||
final voidstar_Func_voidstar_voidstar_voidstar func = _dylib
|
||||
.lookup<
|
||||
ffi.NativeFunction<
|
||||
voidstar_Func_voidstar_voidstar_voidstar_FFI>>(
|
||||
'c_QByteArray__replace_QByteArray_QByteArray')
|
||||
.asFunction();
|
||||
//tag=1033
|
||||
ffi.Pointer<void> result = func(
|
||||
thisCpp,
|
||||
before == null ? ffi.nullptr : before.thisCpp,
|
||||
after == null ? ffi.nullptr : after.thisCpp);
|
||||
return QByteArray.fromCppPointer(result, false);
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// replace(const QByteArray & before, const char * after)
|
||||
QByteArray replace_2(QByteArray? before, String? after) {
|
||||
@@ -1020,7 +1039,7 @@ class QByteArray {
|
||||
|
||||
//tag=1027
|
||||
// setNum(int arg__1, int base)
|
||||
QByteArray setNum_2(int arg__1, {int base = 10}) {
|
||||
QByteArray setNum(int arg__1, {int base = 10}) {
|
||||
//tag=1028
|
||||
final voidstar_Func_voidstar_int_int func = _dylib
|
||||
.lookup<
|
||||
@@ -1118,7 +1137,7 @@ class QByteArray {
|
||||
|
||||
//tag=1027
|
||||
// startsWith(const QByteArray & a) const
|
||||
bool startsWith_1(QByteArray? a) {
|
||||
bool startsWith(QByteArray? a) {
|
||||
//tag=1028
|
||||
final bool_Func_voidstar_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<bool_Func_voidstar_voidstar_FFI>>(
|
||||
|
||||
@@ -0,0 +1,375 @@
|
||||
/*
|
||||
This file is part of KDDockWidgets.
|
||||
|
||||
SPDX-FileCopyrightText: 2019-2022 Klarälvdalens Datakonsult AB, a KDAB Group company <info@kdab.com>
|
||||
Author: Sérgio Martins <sergio.martins@kdab.com>
|
||||
|
||||
SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only
|
||||
|
||||
Contact KDAB at <info@kdab.com> for commercial licensing options.
|
||||
*/
|
||||
|
||||
//tag=1052
|
||||
import 'dart:ffi' as ffi;
|
||||
import 'package:ffi/ffi.dart';
|
||||
import 'TypeHelpers.dart';
|
||||
import '../Bindings.dart';
|
||||
import '../FinalizerHelpers.dart';
|
||||
|
||||
//tag=1051
|
||||
var _dylib = Library.instance().dylib;
|
||||
final _finalizer =
|
||||
_dylib.lookup<ffi.NativeFunction<Dart_WeakPersistentHandleFinalizer_Type>>(
|
||||
'c_QEvent_Finalizer');
|
||||
|
||||
//tag=1038
|
||||
class QEvent_Type {
|
||||
static const None = 0;
|
||||
static const Timer = 1;
|
||||
static const MouseButtonPress = 2;
|
||||
static const MouseButtonRelease = 3;
|
||||
static const MouseButtonDblClick = 4;
|
||||
static const MouseMove = 5;
|
||||
static const KeyPress = 6;
|
||||
static const KeyRelease = 7;
|
||||
static const FocusIn = 8;
|
||||
static const FocusOut = 9;
|
||||
static const FocusAboutToChange = 23;
|
||||
static const Enter = 10;
|
||||
static const Leave = 11;
|
||||
static const Paint = 12;
|
||||
static const Move = 13;
|
||||
static const Resize = 14;
|
||||
static const Create = 15;
|
||||
static const Destroy = 16;
|
||||
static const Show = 17;
|
||||
static const Hide = 18;
|
||||
static const Close = 19;
|
||||
static const Quit = 20;
|
||||
static const ParentChange = 21;
|
||||
static const ParentAboutToChange = 131;
|
||||
static const ThreadChange = 22;
|
||||
static const WindowActivate = 24;
|
||||
static const WindowDeactivate = 25;
|
||||
static const ShowToParent = 26;
|
||||
static const HideToParent = 27;
|
||||
static const Wheel = 31;
|
||||
static const WindowTitleChange = 33;
|
||||
static const WindowIconChange = 34;
|
||||
static const ApplicationWindowIconChange = 35;
|
||||
static const ApplicationFontChange = 36;
|
||||
static const ApplicationLayoutDirectionChange = 37;
|
||||
static const ApplicationPaletteChange = 38;
|
||||
static const PaletteChange = 39;
|
||||
static const Clipboard = 40;
|
||||
static const Speech = 42;
|
||||
static const MetaCall = 43;
|
||||
static const SockAct = 50;
|
||||
static const WinEventAct = 132;
|
||||
static const DeferredDelete = 52;
|
||||
static const DragEnter = 60;
|
||||
static const DragMove = 61;
|
||||
static const DragLeave = 62;
|
||||
static const Drop = 63;
|
||||
static const DragResponse = 64;
|
||||
static const ChildAdded = 68;
|
||||
static const ChildPolished = 69;
|
||||
static const ChildRemoved = 71;
|
||||
static const ShowWindowRequest = 73;
|
||||
static const PolishRequest = 74;
|
||||
static const Polish = 75;
|
||||
static const LayoutRequest = 76;
|
||||
static const UpdateRequest = 77;
|
||||
static const UpdateLater = 78;
|
||||
static const EmbeddingControl = 79;
|
||||
static const ActivateControl = 80;
|
||||
static const DeactivateControl = 81;
|
||||
static const ContextMenu = 82;
|
||||
static const InputMethod = 83;
|
||||
static const TabletMove = 87;
|
||||
static const LocaleChange = 88;
|
||||
static const LanguageChange = 89;
|
||||
static const LayoutDirectionChange = 90;
|
||||
static const Style = 91;
|
||||
static const TabletPress = 92;
|
||||
static const TabletRelease = 93;
|
||||
static const OkRequest = 94;
|
||||
static const HelpRequest = 95;
|
||||
static const IconDrag = 96;
|
||||
static const FontChange = 97;
|
||||
static const EnabledChange = 98;
|
||||
static const ActivationChange = 99;
|
||||
static const StyleChange = 100;
|
||||
static const IconTextChange = 101;
|
||||
static const ModifiedChange = 102;
|
||||
static const MouseTrackingChange = 109;
|
||||
static const WindowBlocked = 103;
|
||||
static const WindowUnblocked = 104;
|
||||
static const WindowStateChange = 105;
|
||||
static const ReadOnlyChange = 106;
|
||||
static const ToolTip = 110;
|
||||
static const WhatsThis = 111;
|
||||
static const StatusTip = 112;
|
||||
static const ActionChanged = 113;
|
||||
static const ActionAdded = 114;
|
||||
static const ActionRemoved = 115;
|
||||
static const FileOpen = 116;
|
||||
static const Shortcut = 117;
|
||||
static const ShortcutOverride = 51;
|
||||
static const WhatsThisClicked = 118;
|
||||
static const ToolBarChange = 120;
|
||||
static const ApplicationActivate = 121;
|
||||
static const ApplicationActivated = 121;
|
||||
static const ApplicationDeactivate = 122;
|
||||
static const ApplicationDeactivated = 122;
|
||||
static const QueryWhatsThis = 123;
|
||||
static const EnterWhatsThisMode = 124;
|
||||
static const LeaveWhatsThisMode = 125;
|
||||
static const ZOrderChange = 126;
|
||||
static const HoverEnter = 127;
|
||||
static const HoverLeave = 128;
|
||||
static const HoverMove = 129;
|
||||
static const AcceptDropsChange = 152;
|
||||
static const ZeroTimerEvent = 154;
|
||||
static const GraphicsSceneMouseMove = 155;
|
||||
static const GraphicsSceneMousePress = 156;
|
||||
static const GraphicsSceneMouseRelease = 157;
|
||||
static const GraphicsSceneMouseDoubleClick = 158;
|
||||
static const GraphicsSceneContextMenu = 159;
|
||||
static const GraphicsSceneHoverEnter = 160;
|
||||
static const GraphicsSceneHoverMove = 161;
|
||||
static const GraphicsSceneHoverLeave = 162;
|
||||
static const GraphicsSceneHelp = 163;
|
||||
static const GraphicsSceneDragEnter = 164;
|
||||
static const GraphicsSceneDragMove = 165;
|
||||
static const GraphicsSceneDragLeave = 166;
|
||||
static const GraphicsSceneDrop = 167;
|
||||
static const GraphicsSceneWheel = 168;
|
||||
static const KeyboardLayoutChange = 169;
|
||||
static const DynamicPropertyChange = 170;
|
||||
static const TabletEnterProximity = 171;
|
||||
static const TabletLeaveProximity = 172;
|
||||
static const NonClientAreaMouseMove = 173;
|
||||
static const NonClientAreaMouseButtonPress = 174;
|
||||
static const NonClientAreaMouseButtonRelease = 175;
|
||||
static const NonClientAreaMouseButtonDblClick = 176;
|
||||
static const MacSizeChange = 177;
|
||||
static const ContentsRectChange = 178;
|
||||
static const MacGLWindowChange = 179;
|
||||
static const FutureCallOut = 180;
|
||||
static const GraphicsSceneResize = 181;
|
||||
static const GraphicsSceneMove = 182;
|
||||
static const CursorChange = 183;
|
||||
static const ToolTipChange = 184;
|
||||
static const NetworkReplyUpdated = 185;
|
||||
static const GrabMouse = 186;
|
||||
static const UngrabMouse = 187;
|
||||
static const GrabKeyboard = 188;
|
||||
static const UngrabKeyboard = 189;
|
||||
static const MacGLClearDrawable = 191;
|
||||
static const StateMachineSignal = 192;
|
||||
static const StateMachineWrapped = 193;
|
||||
static const TouchBegin = 194;
|
||||
static const TouchUpdate = 195;
|
||||
static const TouchEnd = 196;
|
||||
static const NativeGesture = 197;
|
||||
static const RequestSoftwareInputPanel = 199;
|
||||
static const CloseSoftwareInputPanel = 200;
|
||||
static const WinIdChange = 203;
|
||||
static const Gesture = 198;
|
||||
static const GestureOverride = 202;
|
||||
static const ScrollPrepare = 204;
|
||||
static const Scroll = 205;
|
||||
static const Expose = 206;
|
||||
static const InputMethodQuery = 207;
|
||||
static const OrientationChange = 208;
|
||||
static const TouchCancel = 209;
|
||||
static const ThemeChange = 210;
|
||||
static const SockClose = 211;
|
||||
static const PlatformPanel = 212;
|
||||
static const StyleAnimationUpdate = 213;
|
||||
static const ApplicationStateChange = 214;
|
||||
static const WindowChangeInternal = 215;
|
||||
static const ScreenChangeInternal = 216;
|
||||
static const PlatformSurface = 217;
|
||||
static const Pointer = 218;
|
||||
static const TabletTrackingChange = 219;
|
||||
static const User = 1000;
|
||||
static const MaxUser = 65535;
|
||||
}
|
||||
|
||||
class QEvent {
|
||||
//tag=1060
|
||||
static var s_dartInstanceByCppPtr = Map<int, QEvent>();
|
||||
var _thisCpp = null;
|
||||
bool _needsAutoDelete = false;
|
||||
get thisCpp => _thisCpp;
|
||||
set thisCpp(var ptr) {
|
||||
_thisCpp = ptr;
|
||||
ffi.Pointer<ffi.Void> ptrvoid = ptr.cast<ffi.Void>();
|
||||
if (_needsAutoDelete)
|
||||
newWeakPersistentHandle?.call(this, ptrvoid, 0, _finalizer);
|
||||
}
|
||||
|
||||
static bool isCached(var cppPointer) {
|
||||
//tag=1024
|
||||
return s_dartInstanceByCppPtr.containsKey(cppPointer.address);
|
||||
}
|
||||
|
||||
//tag=1061
|
||||
factory QEvent.fromCache(var cppPointer, [needsAutoDelete = false]) {
|
||||
return (s_dartInstanceByCppPtr[cppPointer.address] ??
|
||||
QEvent.fromCppPointer(cppPointer, needsAutoDelete)) as QEvent;
|
||||
}
|
||||
QEvent.fromCppPointer(var cppPointer, [this._needsAutoDelete = false]) {
|
||||
//tag=1024
|
||||
thisCpp = cppPointer;
|
||||
}
|
||||
//tag=1025
|
||||
QEvent.init() {}
|
||||
//tag=1023
|
||||
//QEvent(QEvent::Type type)
|
||||
QEvent(int type) {
|
||||
//tag=1075
|
||||
final voidstar_Func_int func = _dylib
|
||||
.lookup<ffi.NativeFunction<voidstar_Func_ffi_Int32_FFI>>(
|
||||
'c_QEvent__constructor_Type')
|
||||
.asFunction();
|
||||
thisCpp = func(type);
|
||||
QEvent.s_dartInstanceByCppPtr[thisCpp.address] = this;
|
||||
registerCallbacks();
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// accept()
|
||||
accept() {
|
||||
//tag=1028
|
||||
final void_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<void_Func_voidstar_FFI>>('c_QEvent__accept')
|
||||
.asFunction();
|
||||
//tag=1030
|
||||
func(thisCpp);
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// ignore()
|
||||
ignore() {
|
||||
//tag=1028
|
||||
final void_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<void_Func_voidstar_FFI>>('c_QEvent__ignore')
|
||||
.asFunction();
|
||||
//tag=1030
|
||||
func(thisCpp);
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// isAccepted() const
|
||||
bool isAccepted() {
|
||||
//tag=1028
|
||||
final bool_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<bool_Func_voidstar_FFI>>(
|
||||
'c_QEvent__isAccepted')
|
||||
.asFunction();
|
||||
//tag=1029
|
||||
return func(thisCpp) != 0;
|
||||
}
|
||||
|
||||
//tag=1024
|
||||
static
|
||||
//tag=1027
|
||||
// registerEventType(int hint)
|
||||
int registerEventType({int hint = -1}) {
|
||||
//tag=1028
|
||||
final int_Func_int func = _dylib
|
||||
.lookup<ffi.NativeFunction<int_Func_ffi_Int32_FFI>>(
|
||||
'c_static_QEvent__registerEventType_int')
|
||||
.asFunction();
|
||||
//tag=1031
|
||||
return func(hint);
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// setAccepted(bool accepted)
|
||||
setAccepted(bool accepted) {
|
||||
//tag=1028
|
||||
final void_Func_voidstar_bool func = _dylib
|
||||
.lookup<ffi.NativeFunction<void_Func_voidstar_ffi_Int8_FFI>>(
|
||||
'c_QEvent__setAccepted_bool')
|
||||
.asFunction();
|
||||
//tag=1030
|
||||
func(thisCpp, accepted ? 1 : 0);
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// setSpontaneous()
|
||||
setSpontaneous() {
|
||||
//tag=1028
|
||||
final void_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<void_Func_voidstar_FFI>>(
|
||||
'c_QEvent__setSpontaneous')
|
||||
.asFunction();
|
||||
//tag=1030
|
||||
func(thisCpp);
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// spontaneous() const
|
||||
bool spontaneous() {
|
||||
//tag=1028
|
||||
final bool_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<bool_Func_voidstar_FFI>>(
|
||||
'c_QEvent__spontaneous')
|
||||
.asFunction();
|
||||
//tag=1029
|
||||
return func(thisCpp) != 0;
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// type() const
|
||||
int type() {
|
||||
//tag=1028
|
||||
final int_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<int_Func_voidstar_FFI>>('c_QEvent__type')
|
||||
.asFunction();
|
||||
//tag=1031
|
||||
return func(thisCpp);
|
||||
}
|
||||
|
||||
//tag=1022
|
||||
void release() {
|
||||
final void_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<void_Func_voidstar_FFI>>(
|
||||
'c_QEvent__destructor')
|
||||
.asFunction();
|
||||
func(thisCpp);
|
||||
}
|
||||
|
||||
//tag=1019
|
||||
String cFunctionSymbolName(int methodId) {
|
||||
switch (methodId) {
|
||||
}
|
||||
return "";
|
||||
}
|
||||
|
||||
static String methodNameFromId(int methodId) {
|
||||
switch (methodId) {
|
||||
}
|
||||
throw Error();
|
||||
}
|
||||
|
||||
//tag=1020
|
||||
void registerCallbacks() {
|
||||
assert(thisCpp != null);
|
||||
final RegisterMethodIsReimplementedCallback registerCallback = _dylib
|
||||
.lookup<ffi.NativeFunction<RegisterMethodIsReimplementedCallback_FFI>>(
|
||||
'c_QEvent__registerVirtualMethodCallback')
|
||||
.asFunction();
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@@ -94,6 +94,32 @@ class QObject {
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// customEvent(QEvent * event)
|
||||
customEvent(QEvent? event) {
|
||||
//tag=1028
|
||||
final void_Func_voidstar_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<void_Func_voidstar_voidstar_FFI>>(
|
||||
cFunctionSymbolName(294))
|
||||
.asFunction();
|
||||
//tag=1030
|
||||
func(thisCpp, event == null ? ffi.nullptr : event.thisCpp);
|
||||
}
|
||||
|
||||
//tag=1035
|
||||
static void customEvent_calledFromC(
|
||||
ffi.Pointer<void> thisCpp, ffi.Pointer<void>? event) {
|
||||
var dartInstance = QObject.s_dartInstanceByCppPtr[thisCpp.address];
|
||||
if (dartInstance == null) {
|
||||
print(
|
||||
"Dart instance not found for QObject::customEvent(QEvent * event)! (${thisCpp.address})");
|
||||
throw Error();
|
||||
}
|
||||
//tag=1036
|
||||
dartInstance.customEvent(QEvent.fromCppPointer(event));
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// deleteLater()
|
||||
deleteLater() {
|
||||
@@ -246,6 +272,63 @@ class QObject {
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// event(QEvent * event)
|
||||
bool event(QEvent? event) {
|
||||
//tag=1028
|
||||
final bool_Func_voidstar_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<bool_Func_voidstar_voidstar_FFI>>(
|
||||
cFunctionSymbolName(305))
|
||||
.asFunction();
|
||||
//tag=1029
|
||||
return func(thisCpp, event == null ? ffi.nullptr : event.thisCpp) != 0;
|
||||
}
|
||||
|
||||
//tag=1035
|
||||
static int event_calledFromC(
|
||||
ffi.Pointer<void> thisCpp, ffi.Pointer<void>? event) {
|
||||
var dartInstance = QObject.s_dartInstanceByCppPtr[thisCpp.address];
|
||||
if (dartInstance == null) {
|
||||
print(
|
||||
"Dart instance not found for QObject::event(QEvent * event)! (${thisCpp.address})");
|
||||
throw Error();
|
||||
}
|
||||
//tag=1037
|
||||
final result = dartInstance.event(QEvent.fromCppPointer(event));
|
||||
return result ? 1 : 0;
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// eventFilter(QObject * watched, QEvent * event)
|
||||
bool eventFilter(QObject? watched, QEvent? event) {
|
||||
//tag=1028
|
||||
final bool_Func_voidstar_voidstar_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<bool_Func_voidstar_voidstar_voidstar_FFI>>(
|
||||
cFunctionSymbolName(306))
|
||||
.asFunction();
|
||||
//tag=1029
|
||||
return func(thisCpp, watched == null ? ffi.nullptr : watched.thisCpp,
|
||||
event == null ? ffi.nullptr : event.thisCpp) !=
|
||||
0;
|
||||
}
|
||||
|
||||
//tag=1035
|
||||
static int eventFilter_calledFromC(ffi.Pointer<void> thisCpp,
|
||||
ffi.Pointer<void>? watched, ffi.Pointer<void>? event) {
|
||||
var dartInstance = QObject.s_dartInstanceByCppPtr[thisCpp.address];
|
||||
if (dartInstance == null) {
|
||||
print(
|
||||
"Dart instance not found for QObject::eventFilter(QObject * watched, QEvent * event)! (${thisCpp.address})");
|
||||
throw Error();
|
||||
}
|
||||
//tag=1037
|
||||
final result = dartInstance.eventFilter(
|
||||
QObject.fromCppPointer(watched), QEvent.fromCppPointer(event));
|
||||
return result ? 1 : 0;
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// inherits(const char * classname) const
|
||||
bool inherits(String? classname) {
|
||||
@@ -471,12 +554,24 @@ class QObject {
|
||||
//tag=1019
|
||||
String cFunctionSymbolName(int methodId) {
|
||||
switch (methodId) {
|
||||
case 294:
|
||||
return "c_QObject__customEvent_QEvent";
|
||||
case 305:
|
||||
return "c_QObject__event_QEvent";
|
||||
case 306:
|
||||
return "c_QObject__eventFilter_QObject_QEvent";
|
||||
}
|
||||
return "";
|
||||
}
|
||||
|
||||
static String methodNameFromId(int methodId) {
|
||||
switch (methodId) {
|
||||
case 294:
|
||||
return "customEvent";
|
||||
case 305:
|
||||
return "event";
|
||||
case 306:
|
||||
return "eventFilter";
|
||||
}
|
||||
throw Error();
|
||||
}
|
||||
@@ -488,5 +583,23 @@ class QObject {
|
||||
.lookup<ffi.NativeFunction<RegisterMethodIsReimplementedCallback_FFI>>(
|
||||
'c_QObject__registerVirtualMethodCallback')
|
||||
.asFunction();
|
||||
|
||||
//tag=1021
|
||||
final callback294 =
|
||||
ffi.Pointer.fromFunction<void_Func_voidstar_voidstar_FFI>(
|
||||
QObject.customEvent_calledFromC);
|
||||
registerCallback(thisCpp, callback294, 294);
|
||||
const callbackExcept305 = 0;
|
||||
//tag=1021
|
||||
final callback305 =
|
||||
ffi.Pointer.fromFunction<bool_Func_voidstar_voidstar_FFI>(
|
||||
QObject.event_calledFromC, callbackExcept305);
|
||||
registerCallback(thisCpp, callback305, 305);
|
||||
const callbackExcept306 = 0;
|
||||
//tag=1021
|
||||
final callback306 =
|
||||
ffi.Pointer.fromFunction<bool_Func_voidstar_voidstar_voidstar_FFI>(
|
||||
QObject.eventFilter_calledFromC, callbackExcept306);
|
||||
registerCallback(thisCpp, callback306, 306);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -80,7 +80,7 @@ class QString {
|
||||
|
||||
//tag=1027
|
||||
// arg(const QString & a, int fieldWidth) const
|
||||
QString arg_1(String? a, {int fieldWidth = 0}) {
|
||||
QString arg(String? a, {int fieldWidth = 0}) {
|
||||
//tag=1028
|
||||
final voidstar_Func_voidstar_voidstar_int func = _dylib
|
||||
.lookup<
|
||||
@@ -833,7 +833,7 @@ class QString {
|
||||
static
|
||||
//tag=1027
|
||||
// number(int arg__1, int base)
|
||||
QString number_1(int arg__1, {int base = 10}) {
|
||||
QString number(int arg__1, {int base = 10}) {
|
||||
//tag=1028
|
||||
final voidstar_Func_int_int func = _dylib
|
||||
.lookup<ffi.NativeFunction<voidstar_Func_ffi_Int32_ffi_Int32_FFI>>(
|
||||
@@ -1038,7 +1038,7 @@ class QString {
|
||||
|
||||
//tag=1027
|
||||
// setNum(int arg__1, int base)
|
||||
QString setNum_2(int arg__1, {int base = 10}) {
|
||||
QString setNum(int arg__1, {int base = 10}) {
|
||||
//tag=1028
|
||||
final voidstar_Func_voidstar_int_int func = _dylib
|
||||
.lookup<
|
||||
|
||||
@@ -0,0 +1,63 @@
|
||||
/*
|
||||
This file is part of KDDockWidgets.
|
||||
|
||||
SPDX-FileCopyrightText: 2019-2022 Klarälvdalens Datakonsult AB, a KDAB Group company <info@kdab.com>
|
||||
Author: Sérgio Martins <sergio.martins@kdab.com>
|
||||
|
||||
SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only
|
||||
|
||||
Contact KDAB at <info@kdab.com> for commercial licensing options.
|
||||
*/
|
||||
|
||||
//tag=1052
|
||||
import 'dart:ffi' as ffi;
|
||||
import 'package:ffi/ffi.dart';
|
||||
import 'TypeHelpers.dart';
|
||||
import '../Bindings.dart';
|
||||
import '../FinalizerHelpers.dart';
|
||||
|
||||
//tag=1051
|
||||
var _dylib = Library.instance().dylib;
|
||||
|
||||
//tag=1038
|
||||
class Qt_CursorShape {
|
||||
static const ArrowCursor = 0;
|
||||
static const UpArrowCursor = 1;
|
||||
static const CrossCursor = 2;
|
||||
static const WaitCursor = 3;
|
||||
static const IBeamCursor = 4;
|
||||
static const SizeVerCursor = 5;
|
||||
static const SizeHorCursor = 6;
|
||||
static const SizeBDiagCursor = 7;
|
||||
static const SizeFDiagCursor = 8;
|
||||
static const SizeAllCursor = 9;
|
||||
static const BlankCursor = 10;
|
||||
static const SplitVCursor = 11;
|
||||
static const SplitHCursor = 12;
|
||||
static const PointingHandCursor = 13;
|
||||
static const ForbiddenCursor = 14;
|
||||
static const WhatsThisCursor = 15;
|
||||
static const BusyCursor = 16;
|
||||
static const OpenHandCursor = 17;
|
||||
static const ClosedHandCursor = 18;
|
||||
static const DragCopyCursor = 19;
|
||||
static const DragMoveCursor = 20;
|
||||
static const DragLinkCursor = 21;
|
||||
static const LastCursor = 21;
|
||||
static const BitmapCursor = 24;
|
||||
static const CustomCursor = 25;
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// qt_getEnumName(Qt::CursorShape arg__1)
|
||||
String qt_getEnumName(int arg__1) {
|
||||
//tag=1028
|
||||
final string_Func_int func = _dylib
|
||||
.lookup<ffi.NativeFunction<string_Func_ffi_Int32_FFI>>(
|
||||
'c_static_Qt__qt_getEnumName_CursorShape')
|
||||
.asFunction();
|
||||
//tag=1032
|
||||
ffi.Pointer<Utf8> result = func(arg__1);
|
||||
return result.toDartString();
|
||||
}
|
||||
@@ -0,0 +1,380 @@
|
||||
/*
|
||||
This file is part of KDDockWidgets.
|
||||
|
||||
SPDX-FileCopyrightText: 2019-2022 Klarälvdalens Datakonsult AB, a KDAB Group company <info@kdab.com>
|
||||
Author: Sérgio Martins <sergio.martins@kdab.com>
|
||||
|
||||
SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only
|
||||
|
||||
Contact KDAB at <info@kdab.com> for commercial licensing options.
|
||||
*/
|
||||
|
||||
//tag=1052
|
||||
import 'dart:ffi' as ffi;
|
||||
import 'package:ffi/ffi.dart';
|
||||
import 'TypeHelpers.dart';
|
||||
import '../Bindings.dart';
|
||||
import '../FinalizerHelpers.dart';
|
||||
|
||||
//tag=1051
|
||||
var _dylib = Library.instance().dylib;
|
||||
final _finalizer =
|
||||
_dylib.lookup<ffi.NativeFunction<Dart_WeakPersistentHandleFinalizer_Type>>(
|
||||
'c_KDDockWidgets__Screen_Finalizer');
|
||||
|
||||
class Screen {
|
||||
//tag=1060
|
||||
static var s_dartInstanceByCppPtr = Map<int, Screen>();
|
||||
var _thisCpp = null;
|
||||
bool _needsAutoDelete = false;
|
||||
get thisCpp => _thisCpp;
|
||||
set thisCpp(var ptr) {
|
||||
_thisCpp = ptr;
|
||||
ffi.Pointer<ffi.Void> ptrvoid = ptr.cast<ffi.Void>();
|
||||
if (_needsAutoDelete)
|
||||
newWeakPersistentHandle?.call(this, ptrvoid, 0, _finalizer);
|
||||
}
|
||||
|
||||
static bool isCached(var cppPointer) {
|
||||
//tag=1024
|
||||
return s_dartInstanceByCppPtr.containsKey(cppPointer.address);
|
||||
}
|
||||
|
||||
//tag=1061
|
||||
factory Screen.fromCache(var cppPointer, [needsAutoDelete = false]) {
|
||||
return (s_dartInstanceByCppPtr[cppPointer.address] ??
|
||||
Screen.fromCppPointer(cppPointer, needsAutoDelete)) as Screen;
|
||||
}
|
||||
Screen.fromCppPointer(var cppPointer, [this._needsAutoDelete = false]) {
|
||||
//tag=1024
|
||||
thisCpp = cppPointer;
|
||||
}
|
||||
//tag=1025
|
||||
Screen.init() {}
|
||||
//tag=1023
|
||||
//Screen()
|
||||
Screen() {
|
||||
//tag=1075
|
||||
final voidstar_Func_void func = _dylib
|
||||
.lookup<ffi.NativeFunction<voidstar_Func_void_FFI>>(
|
||||
'c_KDDockWidgets__Screen__constructor')
|
||||
.asFunction();
|
||||
thisCpp = func();
|
||||
Screen.s_dartInstanceByCppPtr[thisCpp.address] = this;
|
||||
registerCallbacks();
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// availableGeometry() const
|
||||
QRect availableGeometry() {
|
||||
//tag=1028
|
||||
final voidstar_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<voidstar_Func_voidstar_FFI>>(
|
||||
cFunctionSymbolName(617))
|
||||
.asFunction();
|
||||
//tag=1033
|
||||
ffi.Pointer<void> result = func(thisCpp);
|
||||
return QRect.fromCppPointer(result, true);
|
||||
}
|
||||
|
||||
//tag=1035
|
||||
static ffi.Pointer<void> availableGeometry_calledFromC(
|
||||
ffi.Pointer<void> thisCpp) {
|
||||
var dartInstance = Screen.s_dartInstanceByCppPtr[thisCpp.address];
|
||||
if (dartInstance == null) {
|
||||
print(
|
||||
"Dart instance not found for Screen::availableGeometry() const! (${thisCpp.address})");
|
||||
throw Error();
|
||||
}
|
||||
//tag=1037
|
||||
final result = dartInstance.availableGeometry();
|
||||
return result.thisCpp;
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// availableSize() const
|
||||
QSize availableSize() {
|
||||
//tag=1028
|
||||
final voidstar_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<voidstar_Func_voidstar_FFI>>(
|
||||
cFunctionSymbolName(618))
|
||||
.asFunction();
|
||||
//tag=1033
|
||||
ffi.Pointer<void> result = func(thisCpp);
|
||||
return QSize.fromCppPointer(result, true);
|
||||
}
|
||||
|
||||
//tag=1035
|
||||
static ffi.Pointer<void> availableSize_calledFromC(
|
||||
ffi.Pointer<void> thisCpp) {
|
||||
var dartInstance = Screen.s_dartInstanceByCppPtr[thisCpp.address];
|
||||
if (dartInstance == null) {
|
||||
print(
|
||||
"Dart instance not found for Screen::availableSize() const! (${thisCpp.address})");
|
||||
throw Error();
|
||||
}
|
||||
//tag=1037
|
||||
final result = dartInstance.availableSize();
|
||||
return result.thisCpp;
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// devicePixelRatio() const
|
||||
double devicePixelRatio() {
|
||||
//tag=1028
|
||||
final double_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<double_Func_voidstar_FFI>>(
|
||||
cFunctionSymbolName(619))
|
||||
.asFunction();
|
||||
//tag=1031
|
||||
return func(thisCpp);
|
||||
}
|
||||
|
||||
//tag=1035
|
||||
static double devicePixelRatio_calledFromC(ffi.Pointer<void> thisCpp) {
|
||||
var dartInstance = Screen.s_dartInstanceByCppPtr[thisCpp.address];
|
||||
if (dartInstance == null) {
|
||||
print(
|
||||
"Dart instance not found for Screen::devicePixelRatio() const! (${thisCpp.address})");
|
||||
throw Error();
|
||||
}
|
||||
//tag=1037
|
||||
final result = dartInstance.devicePixelRatio();
|
||||
return result;
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// geometry() const
|
||||
QRect geometry() {
|
||||
//tag=1028
|
||||
final voidstar_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<voidstar_Func_voidstar_FFI>>(
|
||||
cFunctionSymbolName(620))
|
||||
.asFunction();
|
||||
//tag=1033
|
||||
ffi.Pointer<void> result = func(thisCpp);
|
||||
return QRect.fromCppPointer(result, true);
|
||||
}
|
||||
|
||||
//tag=1035
|
||||
static ffi.Pointer<void> geometry_calledFromC(ffi.Pointer<void> thisCpp) {
|
||||
var dartInstance = Screen.s_dartInstanceByCppPtr[thisCpp.address];
|
||||
if (dartInstance == null) {
|
||||
print(
|
||||
"Dart instance not found for Screen::geometry() const! (${thisCpp.address})");
|
||||
throw Error();
|
||||
}
|
||||
//tag=1037
|
||||
final result = dartInstance.geometry();
|
||||
return result.thisCpp;
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// name() const
|
||||
QString name() {
|
||||
//tag=1028
|
||||
final voidstar_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<voidstar_Func_voidstar_FFI>>(
|
||||
cFunctionSymbolName(621))
|
||||
.asFunction();
|
||||
//tag=1033
|
||||
ffi.Pointer<void> result = func(thisCpp);
|
||||
return QString.fromCppPointer(result, true);
|
||||
}
|
||||
|
||||
//tag=1035
|
||||
static ffi.Pointer<void> name_calledFromC(ffi.Pointer<void> thisCpp) {
|
||||
var dartInstance = Screen.s_dartInstanceByCppPtr[thisCpp.address];
|
||||
if (dartInstance == null) {
|
||||
print(
|
||||
"Dart instance not found for Screen::name() const! (${thisCpp.address})");
|
||||
throw Error();
|
||||
}
|
||||
//tag=1037
|
||||
final result = dartInstance.name();
|
||||
return result.thisCpp;
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// size() const
|
||||
QSize size() {
|
||||
//tag=1028
|
||||
final voidstar_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<voidstar_Func_voidstar_FFI>>(
|
||||
cFunctionSymbolName(622))
|
||||
.asFunction();
|
||||
//tag=1033
|
||||
ffi.Pointer<void> result = func(thisCpp);
|
||||
return QSize.fromCppPointer(result, true);
|
||||
}
|
||||
|
||||
//tag=1035
|
||||
static ffi.Pointer<void> size_calledFromC(ffi.Pointer<void> thisCpp) {
|
||||
var dartInstance = Screen.s_dartInstanceByCppPtr[thisCpp.address];
|
||||
if (dartInstance == null) {
|
||||
print(
|
||||
"Dart instance not found for Screen::size() const! (${thisCpp.address})");
|
||||
throw Error();
|
||||
}
|
||||
//tag=1037
|
||||
final result = dartInstance.size();
|
||||
return result.thisCpp;
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// virtualGeometry() const
|
||||
QRect virtualGeometry() {
|
||||
//tag=1028
|
||||
final voidstar_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<voidstar_Func_voidstar_FFI>>(
|
||||
cFunctionSymbolName(623))
|
||||
.asFunction();
|
||||
//tag=1033
|
||||
ffi.Pointer<void> result = func(thisCpp);
|
||||
return QRect.fromCppPointer(result, true);
|
||||
}
|
||||
|
||||
//tag=1035
|
||||
static ffi.Pointer<void> virtualGeometry_calledFromC(
|
||||
ffi.Pointer<void> thisCpp) {
|
||||
var dartInstance = Screen.s_dartInstanceByCppPtr[thisCpp.address];
|
||||
if (dartInstance == null) {
|
||||
print(
|
||||
"Dart instance not found for Screen::virtualGeometry() const! (${thisCpp.address})");
|
||||
throw Error();
|
||||
}
|
||||
//tag=1037
|
||||
final result = dartInstance.virtualGeometry();
|
||||
return result.thisCpp;
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// virtualSize() const
|
||||
QSize virtualSize() {
|
||||
//tag=1028
|
||||
final voidstar_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<voidstar_Func_voidstar_FFI>>(
|
||||
cFunctionSymbolName(624))
|
||||
.asFunction();
|
||||
//tag=1033
|
||||
ffi.Pointer<void> result = func(thisCpp);
|
||||
return QSize.fromCppPointer(result, true);
|
||||
}
|
||||
|
||||
//tag=1035
|
||||
static ffi.Pointer<void> virtualSize_calledFromC(ffi.Pointer<void> thisCpp) {
|
||||
var dartInstance = Screen.s_dartInstanceByCppPtr[thisCpp.address];
|
||||
if (dartInstance == null) {
|
||||
print(
|
||||
"Dart instance not found for Screen::virtualSize() const! (${thisCpp.address})");
|
||||
throw Error();
|
||||
}
|
||||
//tag=1037
|
||||
final result = dartInstance.virtualSize();
|
||||
return result.thisCpp;
|
||||
}
|
||||
|
||||
//tag=1022
|
||||
void release() {
|
||||
final void_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<void_Func_voidstar_FFI>>(
|
||||
'c_KDDockWidgets__Screen__destructor')
|
||||
.asFunction();
|
||||
func(thisCpp);
|
||||
}
|
||||
|
||||
//tag=1019
|
||||
String cFunctionSymbolName(int methodId) {
|
||||
switch (methodId) {
|
||||
case 617:
|
||||
return "c_KDDockWidgets__Screen__availableGeometry";
|
||||
case 618:
|
||||
return "c_KDDockWidgets__Screen__availableSize";
|
||||
case 619:
|
||||
return "c_KDDockWidgets__Screen__devicePixelRatio";
|
||||
case 620:
|
||||
return "c_KDDockWidgets__Screen__geometry";
|
||||
case 621:
|
||||
return "c_KDDockWidgets__Screen__name";
|
||||
case 622:
|
||||
return "c_KDDockWidgets__Screen__size";
|
||||
case 623:
|
||||
return "c_KDDockWidgets__Screen__virtualGeometry";
|
||||
case 624:
|
||||
return "c_KDDockWidgets__Screen__virtualSize";
|
||||
}
|
||||
return "";
|
||||
}
|
||||
|
||||
static String methodNameFromId(int methodId) {
|
||||
switch (methodId) {
|
||||
case 617:
|
||||
return "availableGeometry";
|
||||
case 618:
|
||||
return "availableSize";
|
||||
case 619:
|
||||
return "devicePixelRatio";
|
||||
case 620:
|
||||
return "geometry";
|
||||
case 621:
|
||||
return "name";
|
||||
case 622:
|
||||
return "size";
|
||||
case 623:
|
||||
return "virtualGeometry";
|
||||
case 624:
|
||||
return "virtualSize";
|
||||
}
|
||||
throw Error();
|
||||
}
|
||||
|
||||
//tag=1020
|
||||
void registerCallbacks() {
|
||||
assert(thisCpp != null);
|
||||
final RegisterMethodIsReimplementedCallback registerCallback = _dylib
|
||||
.lookup<ffi.NativeFunction<RegisterMethodIsReimplementedCallback_FFI>>(
|
||||
'c_KDDockWidgets__Screen__registerVirtualMethodCallback')
|
||||
.asFunction();
|
||||
|
||||
//tag=1021
|
||||
final callback617 = ffi.Pointer.fromFunction<voidstar_Func_voidstar_FFI>(
|
||||
Screen.availableGeometry_calledFromC);
|
||||
registerCallback(thisCpp, callback617, 617);
|
||||
//tag=1021
|
||||
final callback618 = ffi.Pointer.fromFunction<voidstar_Func_voidstar_FFI>(
|
||||
Screen.availableSize_calledFromC);
|
||||
registerCallback(thisCpp, callback618, 618);
|
||||
//tag=1021
|
||||
final callback619 = ffi.Pointer.fromFunction<double_Func_voidstar_FFI>(
|
||||
Screen.devicePixelRatio_calledFromC);
|
||||
registerCallback(thisCpp, callback619, 619);
|
||||
//tag=1021
|
||||
final callback620 = ffi.Pointer.fromFunction<voidstar_Func_voidstar_FFI>(
|
||||
Screen.geometry_calledFromC);
|
||||
registerCallback(thisCpp, callback620, 620);
|
||||
//tag=1021
|
||||
final callback621 = ffi.Pointer.fromFunction<voidstar_Func_voidstar_FFI>(
|
||||
Screen.name_calledFromC);
|
||||
registerCallback(thisCpp, callback621, 621);
|
||||
//tag=1021
|
||||
final callback622 = ffi.Pointer.fromFunction<voidstar_Func_voidstar_FFI>(
|
||||
Screen.size_calledFromC);
|
||||
registerCallback(thisCpp, callback622, 622);
|
||||
//tag=1021
|
||||
final callback623 = ffi.Pointer.fromFunction<voidstar_Func_voidstar_FFI>(
|
||||
Screen.virtualGeometry_calledFromC);
|
||||
registerCallback(thisCpp, callback623, 623);
|
||||
//tag=1021
|
||||
final callback624 = ffi.Pointer.fromFunction<voidstar_Func_voidstar_FFI>(
|
||||
Screen.virtualSize_calledFromC);
|
||||
registerCallback(thisCpp, callback624, 624);
|
||||
}
|
||||
}
|
||||
@@ -22,6 +22,8 @@ typedef SignalHandler = void Function(
|
||||
ffi.Pointer<void>, ffi.Pointer<void>, ffi.Pointer<void>);
|
||||
typedef SignalHandler_FFI = ffi.Void Function(
|
||||
ffi.Pointer<void>, ffi.Pointer<void>, ffi.Pointer<void>);
|
||||
typedef string_Func_int = ffi.Pointer<Utf8> Function(int);
|
||||
typedef string_Func_ffi_Int32_FFI = ffi.Pointer<Utf8> Function(ffi.Int32);
|
||||
typedef voidstar_Func_void = ffi.Pointer<void> Function();
|
||||
typedef voidstar_Func_void_FFI = ffi.Pointer<void> Function();
|
||||
typedef voidstar_Func_voidstar_voidstar = ffi.Pointer<void> Function(
|
||||
@@ -250,6 +252,10 @@ typedef bool_Func_voidstar_string_voidstar_string = int Function(
|
||||
ffi.Pointer<void>, ffi.Pointer<Utf8>, ffi.Pointer<void>, ffi.Pointer<Utf8>);
|
||||
typedef bool_Func_voidstar_string_voidstar_string_FFI = ffi.Int8 Function(
|
||||
ffi.Pointer<void>, ffi.Pointer<Utf8>, ffi.Pointer<void>, ffi.Pointer<Utf8>);
|
||||
typedef bool_Func_voidstar_voidstar_voidstar = int Function(
|
||||
ffi.Pointer<void>, ffi.Pointer<void>, ffi.Pointer<void>);
|
||||
typedef bool_Func_voidstar_voidstar_voidstar_FFI = ffi.Int8 Function(
|
||||
ffi.Pointer<void>, ffi.Pointer<void>, ffi.Pointer<void>);
|
||||
typedef bool_Func_voidstar_string = int Function(
|
||||
ffi.Pointer<void>, ffi.Pointer<Utf8>);
|
||||
typedef bool_Func_voidstar_string_FFI = ffi.Int8 Function(
|
||||
@@ -272,6 +278,10 @@ typedef void_Func_voidstar_ffi_Int32_voidstar_FFI = ffi.Void Function(
|
||||
typedef void_Func_voidstar_bool = void Function(ffi.Pointer<void>, int);
|
||||
typedef void_Func_voidstar_ffi_Int8_FFI = ffi.Void Function(
|
||||
ffi.Pointer<void>, ffi.Int8);
|
||||
typedef voidstar_Func_int = ffi.Pointer<void> Function(int);
|
||||
typedef voidstar_Func_ffi_Int32_FFI = ffi.Pointer<void> Function(ffi.Int32);
|
||||
typedef int_Func_int = int Function(int);
|
||||
typedef int_Func_ffi_Int32_FFI = ffi.Int32 Function(ffi.Int32);
|
||||
typedef voidstar_Func_voidstar_string = ffi.Pointer<void> Function(
|
||||
ffi.Pointer<void>, ffi.Pointer<Utf8>);
|
||||
typedef voidstar_Func_voidstar_string_FFI = ffi.Pointer<void> Function(
|
||||
@@ -332,12 +342,18 @@ typedef voidstar_Func_voidstar_int_int_string_int = ffi.Pointer<void> Function(
|
||||
typedef voidstar_Func_voidstar_ffi_Int32_ffi_Int32_string_ffi_Int32_FFI
|
||||
= ffi.Pointer<void> Function(
|
||||
ffi.Pointer<void>, ffi.Int32, ffi.Int32, ffi.Pointer<Utf8>, ffi.Int32);
|
||||
typedef void_Func_voidstar_double = void Function(ffi.Pointer<void>, double);
|
||||
typedef void_Func_voidstar_ffi_Double_FFI = ffi.Void Function(
|
||||
ffi.Pointer<void>, ffi.Double);
|
||||
typedef void_Func_void = void Function();
|
||||
typedef void_Func_void_FFI = ffi.Void Function();
|
||||
typedef void_Func_voidstar_voidstar_voidstar = void Function(
|
||||
ffi.Pointer<void>, ffi.Pointer<void>, ffi.Pointer<void>);
|
||||
typedef void_Func_voidstar_voidstar_voidstar_FFI = ffi.Void Function(
|
||||
ffi.Pointer<void>, ffi.Pointer<void>, ffi.Pointer<void>);
|
||||
typedef bool_Func_voidstar_voidstar_int = int Function(
|
||||
ffi.Pointer<void>, ffi.Pointer<void>, int);
|
||||
typedef bool_Func_voidstar_voidstar_ffi_Int32_FFI = ffi.Int8 Function(
|
||||
ffi.Pointer<void>, ffi.Pointer<void>, ffi.Int32);
|
||||
typedef bool_Func_voidstar_voidstar_int_int = int Function(
|
||||
ffi.Pointer<void>, ffi.Pointer<void>, int, int);
|
||||
typedef bool_Func_voidstar_voidstar_ffi_Int32_ffi_Int32_FFI = ffi.Int8 Function(
|
||||
ffi.Pointer<void>, ffi.Pointer<void>, ffi.Int32, ffi.Int32);
|
||||
typedef void_Func_voidstar_double = void Function(ffi.Pointer<void>, double);
|
||||
typedef void_Func_voidstar_ffi_Double_FFI = ffi.Void Function(
|
||||
ffi.Pointer<void>, ffi.Double);
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -52,7 +52,7 @@ class ViewFactory extends QObject {
|
||||
//tag=1028
|
||||
final voidstar_Func_voidstar_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<voidstar_Func_voidstar_voidstar_FFI>>(
|
||||
cFunctionSymbolName(574))
|
||||
cFunctionSymbolName(589))
|
||||
.asFunction();
|
||||
//tag=1033
|
||||
ffi.Pointer<void> result =
|
||||
@@ -74,6 +74,54 @@ class ViewFactory extends QObject {
|
||||
final result = dartInstance.createRubberBand(View.fromCppPointer(parent));
|
||||
return result.thisCpp;
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1035
|
||||
static void customEvent_calledFromC(
|
||||
ffi.Pointer<void> thisCpp, ffi.Pointer<void>? event) {
|
||||
var dartInstance =
|
||||
QObject.s_dartInstanceByCppPtr[thisCpp.address] as ViewFactory;
|
||||
if (dartInstance == null) {
|
||||
print(
|
||||
"Dart instance not found for ViewFactory::customEvent(QEvent * event)! (${thisCpp.address})");
|
||||
throw Error();
|
||||
}
|
||||
//tag=1036
|
||||
dartInstance.customEvent(QEvent.fromCppPointer(event));
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1035
|
||||
static int event_calledFromC(
|
||||
ffi.Pointer<void> thisCpp, ffi.Pointer<void>? event) {
|
||||
var dartInstance =
|
||||
QObject.s_dartInstanceByCppPtr[thisCpp.address] as ViewFactory;
|
||||
if (dartInstance == null) {
|
||||
print(
|
||||
"Dart instance not found for ViewFactory::event(QEvent * event)! (${thisCpp.address})");
|
||||
throw Error();
|
||||
}
|
||||
//tag=1037
|
||||
final result = dartInstance.event(QEvent.fromCppPointer(event));
|
||||
return result ? 1 : 0;
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1035
|
||||
static int eventFilter_calledFromC(ffi.Pointer<void> thisCpp,
|
||||
ffi.Pointer<void>? watched, ffi.Pointer<void>? event) {
|
||||
var dartInstance =
|
||||
QObject.s_dartInstanceByCppPtr[thisCpp.address] as ViewFactory;
|
||||
if (dartInstance == null) {
|
||||
print(
|
||||
"Dart instance not found for ViewFactory::eventFilter(QObject * watched, QEvent * event)! (${thisCpp.address})");
|
||||
throw Error();
|
||||
}
|
||||
//tag=1037
|
||||
final result = dartInstance.eventFilter(
|
||||
QObject.fromCppPointer(watched), QEvent.fromCppPointer(event));
|
||||
return result ? 1 : 0;
|
||||
}
|
||||
|
||||
//tag=1024
|
||||
static
|
||||
@@ -103,16 +151,28 @@ class ViewFactory extends QObject {
|
||||
//tag=1019
|
||||
String cFunctionSymbolName(int methodId) {
|
||||
switch (methodId) {
|
||||
case 574:
|
||||
case 589:
|
||||
return "c_KDDockWidgets__ViewFactory__createRubberBand_View";
|
||||
case 294:
|
||||
return "c_KDDockWidgets__ViewFactory__customEvent_QEvent";
|
||||
case 305:
|
||||
return "c_KDDockWidgets__ViewFactory__event_QEvent";
|
||||
case 306:
|
||||
return "c_KDDockWidgets__ViewFactory__eventFilter_QObject_QEvent";
|
||||
}
|
||||
return super.cFunctionSymbolName(methodId);
|
||||
}
|
||||
|
||||
static String methodNameFromId(int methodId) {
|
||||
switch (methodId) {
|
||||
case 574:
|
||||
case 589:
|
||||
return "createRubberBand";
|
||||
case 294:
|
||||
return "customEvent";
|
||||
case 305:
|
||||
return "event";
|
||||
case 306:
|
||||
return "eventFilter";
|
||||
}
|
||||
throw Error();
|
||||
}
|
||||
@@ -126,9 +186,26 @@ class ViewFactory extends QObject {
|
||||
.asFunction();
|
||||
|
||||
//tag=1021
|
||||
final callback574 =
|
||||
final callback589 =
|
||||
ffi.Pointer.fromFunction<voidstar_Func_voidstar_voidstar_FFI>(
|
||||
ViewFactory.createRubberBand_calledFromC);
|
||||
registerCallback(thisCpp, callback574, 574);
|
||||
registerCallback(thisCpp, callback589, 589);
|
||||
//tag=1021
|
||||
final callback294 =
|
||||
ffi.Pointer.fromFunction<void_Func_voidstar_voidstar_FFI>(
|
||||
QObject.customEvent_calledFromC);
|
||||
registerCallback(thisCpp, callback294, 294);
|
||||
const callbackExcept305 = 0;
|
||||
//tag=1021
|
||||
final callback305 =
|
||||
ffi.Pointer.fromFunction<bool_Func_voidstar_voidstar_FFI>(
|
||||
QObject.event_calledFromC, callbackExcept305);
|
||||
registerCallback(thisCpp, callback305, 305);
|
||||
const callbackExcept306 = 0;
|
||||
//tag=1021
|
||||
final callback306 =
|
||||
ffi.Pointer.fromFunction<bool_Func_voidstar_voidstar_voidstar_FFI>(
|
||||
QObject.eventFilter_calledFromC, callbackExcept306);
|
||||
registerCallback(thisCpp, callback306, 306);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user