flutter: Regenerate bindings
This time without readability tags so we can reduce diff size
This commit is contained in:
@@ -8,22 +8,18 @@
|
||||
|
||||
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__Views__ClassicIndicatorWindowViewInterface_Finalizer');
|
||||
|
||||
class ClassicIndicatorWindowViewInterface {
|
||||
//tag=1060
|
||||
static var s_dartInstanceByCppPtr =
|
||||
Map<int, ClassicIndicatorWindowViewInterface>();
|
||||
var _thisCpp = null;
|
||||
@@ -37,11 +33,9 @@ class ClassicIndicatorWindowViewInterface {
|
||||
}
|
||||
|
||||
static bool isCached(var cppPointer) {
|
||||
//tag=1024
|
||||
return s_dartInstanceByCppPtr.containsKey(cppPointer.address);
|
||||
}
|
||||
|
||||
//tag=1061
|
||||
factory ClassicIndicatorWindowViewInterface.fromCache(var cppPointer,
|
||||
[needsAutoDelete = false]) {
|
||||
return (s_dartInstanceByCppPtr[cppPointer.address] ??
|
||||
@@ -51,15 +45,10 @@ class ClassicIndicatorWindowViewInterface {
|
||||
}
|
||||
ClassicIndicatorWindowViewInterface.fromCppPointer(var cppPointer,
|
||||
[this._needsAutoDelete = false]) {
|
||||
//tag=1024
|
||||
thisCpp = cppPointer;
|
||||
}
|
||||
//tag=1025
|
||||
ClassicIndicatorWindowViewInterface.init() {}
|
||||
//tag=1023
|
||||
//ClassicIndicatorWindowViewInterface()
|
||||
ClassicIndicatorWindowViewInterface.init() {} //ClassicIndicatorWindowViewInterface()
|
||||
ClassicIndicatorWindowViewInterface() {
|
||||
//tag=1075
|
||||
final voidstar_Func_void func = _dylib
|
||||
.lookup<ffi.NativeFunction<voidstar_Func_void_FFI>>(
|
||||
'c_KDDockWidgets__Views__ClassicIndicatorWindowViewInterface__constructor')
|
||||
@@ -68,22 +57,15 @@ class ClassicIndicatorWindowViewInterface {
|
||||
ClassicIndicatorWindowViewInterface
|
||||
.s_dartInstanceByCppPtr[thisCpp.address] = this;
|
||||
registerCallbacks();
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// hover(QPoint arg__1)
|
||||
} // hover(QPoint arg__1)
|
||||
int hover(QPoint arg__1) {
|
||||
//tag=1028
|
||||
final int_Func_voidstar_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<int_Func_voidstar_voidstar_FFI>>(
|
||||
cFunctionSymbolName(669))
|
||||
.asFunction();
|
||||
//tag=1031
|
||||
return func(thisCpp, arg__1 == null ? ffi.nullptr : arg__1.thisCpp);
|
||||
}
|
||||
|
||||
//tag=1035
|
||||
static int hover_calledFromC(
|
||||
ffi.Pointer<void> thisCpp, ffi.Pointer<void> arg__1) {
|
||||
var dartInstance = ClassicIndicatorWindowViewInterface
|
||||
@@ -93,25 +75,18 @@ class ClassicIndicatorWindowViewInterface {
|
||||
"Dart instance not found for ClassicIndicatorWindowViewInterface::hover(QPoint arg__1)! (${thisCpp.address})");
|
||||
throw Error();
|
||||
}
|
||||
//tag=1037
|
||||
final result = dartInstance.hover(QPoint.fromCppPointer(arg__1));
|
||||
return result;
|
||||
}
|
||||
//tag=1024
|
||||
} // isWindow() const
|
||||
|
||||
//tag=1027
|
||||
// isWindow() const
|
||||
bool isWindow() {
|
||||
//tag=1028
|
||||
final bool_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<bool_Func_voidstar_FFI>>(
|
||||
cFunctionSymbolName(670))
|
||||
.asFunction();
|
||||
//tag=1029
|
||||
return func(thisCpp) != 0;
|
||||
}
|
||||
|
||||
//tag=1035
|
||||
static int isWindow_calledFromC(ffi.Pointer<void> thisCpp) {
|
||||
var dartInstance = ClassicIndicatorWindowViewInterface
|
||||
.s_dartInstanceByCppPtr[thisCpp.address];
|
||||
@@ -120,26 +95,19 @@ class ClassicIndicatorWindowViewInterface {
|
||||
"Dart instance not found for ClassicIndicatorWindowViewInterface::isWindow() const! (${thisCpp.address})");
|
||||
throw Error();
|
||||
}
|
||||
//tag=1037
|
||||
final result = dartInstance.isWindow();
|
||||
return result ? 1 : 0;
|
||||
}
|
||||
//tag=1024
|
||||
} // posForIndicator(KDDockWidgets::DropLocation arg__1) const
|
||||
|
||||
//tag=1027
|
||||
// posForIndicator(KDDockWidgets::DropLocation arg__1) const
|
||||
QPoint posForIndicator(int arg__1) {
|
||||
//tag=1028
|
||||
final voidstar_Func_voidstar_int func = _dylib
|
||||
.lookup<ffi.NativeFunction<voidstar_Func_voidstar_ffi_Int32_FFI>>(
|
||||
cFunctionSymbolName(671))
|
||||
.asFunction();
|
||||
//tag=1033
|
||||
ffi.Pointer<void> result = func(thisCpp, arg__1);
|
||||
return QPoint.fromCppPointer(result, true);
|
||||
}
|
||||
|
||||
//tag=1035
|
||||
static ffi.Pointer<void> posForIndicator_calledFromC(
|
||||
ffi.Pointer<void> thisCpp, int arg__1) {
|
||||
var dartInstance = ClassicIndicatorWindowViewInterface
|
||||
@@ -149,25 +117,18 @@ class ClassicIndicatorWindowViewInterface {
|
||||
"Dart instance not found for ClassicIndicatorWindowViewInterface::posForIndicator(KDDockWidgets::DropLocation arg__1) const! (${thisCpp.address})");
|
||||
throw Error();
|
||||
}
|
||||
//tag=1037
|
||||
final result = dartInstance.posForIndicator(arg__1);
|
||||
return result.thisCpp;
|
||||
}
|
||||
//tag=1024
|
||||
} // raise()
|
||||
|
||||
//tag=1027
|
||||
// raise()
|
||||
raise() {
|
||||
//tag=1028
|
||||
final void_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<void_Func_voidstar_FFI>>(
|
||||
cFunctionSymbolName(672))
|
||||
.asFunction();
|
||||
//tag=1030
|
||||
func(thisCpp);
|
||||
}
|
||||
|
||||
//tag=1035
|
||||
static void raise_calledFromC(ffi.Pointer<void> thisCpp) {
|
||||
var dartInstance = ClassicIndicatorWindowViewInterface
|
||||
.s_dartInstanceByCppPtr[thisCpp.address];
|
||||
@@ -176,24 +137,17 @@ class ClassicIndicatorWindowViewInterface {
|
||||
"Dart instance not found for ClassicIndicatorWindowViewInterface::raise()! (${thisCpp.address})");
|
||||
throw Error();
|
||||
}
|
||||
//tag=1036
|
||||
dartInstance.raise();
|
||||
}
|
||||
//tag=1024
|
||||
} // resize(QSize arg__1)
|
||||
|
||||
//tag=1027
|
||||
// resize(QSize arg__1)
|
||||
resize(QSize arg__1) {
|
||||
//tag=1028
|
||||
final void_Func_voidstar_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<void_Func_voidstar_voidstar_FFI>>(
|
||||
cFunctionSymbolName(673))
|
||||
.asFunction();
|
||||
//tag=1030
|
||||
func(thisCpp, arg__1 == null ? ffi.nullptr : arg__1.thisCpp);
|
||||
}
|
||||
|
||||
//tag=1035
|
||||
static void resize_calledFromC(
|
||||
ffi.Pointer<void> thisCpp, ffi.Pointer<void> arg__1) {
|
||||
var dartInstance = ClassicIndicatorWindowViewInterface
|
||||
@@ -203,24 +157,17 @@ class ClassicIndicatorWindowViewInterface {
|
||||
"Dart instance not found for ClassicIndicatorWindowViewInterface::resize(QSize arg__1)! (${thisCpp.address})");
|
||||
throw Error();
|
||||
}
|
||||
//tag=1036
|
||||
dartInstance.resize(QSize.fromCppPointer(arg__1));
|
||||
}
|
||||
//tag=1024
|
||||
} // setGeometry(QRect arg__1)
|
||||
|
||||
//tag=1027
|
||||
// setGeometry(QRect arg__1)
|
||||
setGeometry(QRect arg__1) {
|
||||
//tag=1028
|
||||
final void_Func_voidstar_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<void_Func_voidstar_voidstar_FFI>>(
|
||||
cFunctionSymbolName(674))
|
||||
.asFunction();
|
||||
//tag=1030
|
||||
func(thisCpp, arg__1 == null ? ffi.nullptr : arg__1.thisCpp);
|
||||
}
|
||||
|
||||
//tag=1035
|
||||
static void setGeometry_calledFromC(
|
||||
ffi.Pointer<void> thisCpp, ffi.Pointer<void> arg__1) {
|
||||
var dartInstance = ClassicIndicatorWindowViewInterface
|
||||
@@ -230,24 +177,17 @@ class ClassicIndicatorWindowViewInterface {
|
||||
"Dart instance not found for ClassicIndicatorWindowViewInterface::setGeometry(QRect arg__1)! (${thisCpp.address})");
|
||||
throw Error();
|
||||
}
|
||||
//tag=1036
|
||||
dartInstance.setGeometry(QRect.fromCppPointer(arg__1));
|
||||
}
|
||||
//tag=1024
|
||||
} // setObjectName(const QString & arg__1)
|
||||
|
||||
//tag=1027
|
||||
// setObjectName(const QString & arg__1)
|
||||
setObjectName(String? arg__1) {
|
||||
//tag=1028
|
||||
final void_Func_voidstar_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<void_Func_voidstar_voidstar_FFI>>(
|
||||
cFunctionSymbolName(675))
|
||||
.asFunction();
|
||||
//tag=1030
|
||||
func(thisCpp, arg__1?.toNativeUtf8() ?? ffi.nullptr);
|
||||
}
|
||||
|
||||
//tag=1035
|
||||
static void setObjectName_calledFromC(
|
||||
ffi.Pointer<void> thisCpp, ffi.Pointer<void>? arg__1) {
|
||||
var dartInstance = ClassicIndicatorWindowViewInterface
|
||||
@@ -257,24 +197,17 @@ class ClassicIndicatorWindowViewInterface {
|
||||
"Dart instance not found for ClassicIndicatorWindowViewInterface::setObjectName(const QString & arg__1)! (${thisCpp.address})");
|
||||
throw Error();
|
||||
}
|
||||
//tag=1036
|
||||
dartInstance.setObjectName(QString.fromCppPointer(arg__1).toDartString());
|
||||
}
|
||||
//tag=1024
|
||||
} // setVisible(bool arg__1)
|
||||
|
||||
//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>>(
|
||||
cFunctionSymbolName(676))
|
||||
.asFunction();
|
||||
//tag=1030
|
||||
func(thisCpp, arg__1 ? 1 : 0);
|
||||
}
|
||||
|
||||
//tag=1035
|
||||
static void setVisible_calledFromC(ffi.Pointer<void> thisCpp, int arg__1) {
|
||||
var dartInstance = ClassicIndicatorWindowViewInterface
|
||||
.s_dartInstanceByCppPtr[thisCpp.address];
|
||||
@@ -283,24 +216,17 @@ class ClassicIndicatorWindowViewInterface {
|
||||
"Dart instance not found for ClassicIndicatorWindowViewInterface::setVisible(bool arg__1)! (${thisCpp.address})");
|
||||
throw Error();
|
||||
}
|
||||
//tag=1036
|
||||
dartInstance.setVisible(arg__1 != 0);
|
||||
}
|
||||
//tag=1024
|
||||
} // updatePositions()
|
||||
|
||||
//tag=1027
|
||||
// updatePositions()
|
||||
updatePositions() {
|
||||
//tag=1028
|
||||
final void_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<void_Func_voidstar_FFI>>(
|
||||
cFunctionSymbolName(677))
|
||||
.asFunction();
|
||||
//tag=1030
|
||||
func(thisCpp);
|
||||
}
|
||||
|
||||
//tag=1035
|
||||
static void updatePositions_calledFromC(ffi.Pointer<void> thisCpp) {
|
||||
var dartInstance = ClassicIndicatorWindowViewInterface
|
||||
.s_dartInstanceByCppPtr[thisCpp.address];
|
||||
@@ -309,11 +235,9 @@ class ClassicIndicatorWindowViewInterface {
|
||||
"Dart instance not found for ClassicIndicatorWindowViewInterface::updatePositions()! (${thisCpp.address})");
|
||||
throw Error();
|
||||
}
|
||||
//tag=1036
|
||||
dartInstance.updatePositions();
|
||||
}
|
||||
|
||||
//tag=1022
|
||||
void release() {
|
||||
final void_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<void_Func_voidstar_FFI>>(
|
||||
@@ -322,7 +246,6 @@ class ClassicIndicatorWindowViewInterface {
|
||||
func(thisCpp);
|
||||
}
|
||||
|
||||
//tag=1019
|
||||
String cFunctionSymbolName(int methodId) {
|
||||
switch (methodId) {
|
||||
case 669:
|
||||
@@ -371,7 +294,6 @@ class ClassicIndicatorWindowViewInterface {
|
||||
throw Error();
|
||||
}
|
||||
|
||||
//tag=1020
|
||||
void registerCallbacks() {
|
||||
assert(thisCpp != null);
|
||||
final RegisterMethodIsReimplementedCallback registerCallback = _dylib
|
||||
@@ -379,48 +301,39 @@ class ClassicIndicatorWindowViewInterface {
|
||||
'c_KDDockWidgets__Views__ClassicIndicatorWindowViewInterface__registerVirtualMethodCallback')
|
||||
.asFunction();
|
||||
const callbackExcept669 = 0;
|
||||
//tag=1021
|
||||
final callback669 =
|
||||
ffi.Pointer.fromFunction<int_Func_voidstar_voidstar_FFI>(
|
||||
ClassicIndicatorWindowViewInterface.hover_calledFromC,
|
||||
callbackExcept669);
|
||||
registerCallback(thisCpp, callback669, 669);
|
||||
const callbackExcept670 = 0;
|
||||
//tag=1021
|
||||
final callback670 = ffi.Pointer.fromFunction<bool_Func_voidstar_FFI>(
|
||||
ClassicIndicatorWindowViewInterface.isWindow_calledFromC,
|
||||
callbackExcept670);
|
||||
registerCallback(thisCpp, callback670, 670);
|
||||
//tag=1021
|
||||
final callback671 =
|
||||
ffi.Pointer.fromFunction<voidstar_Func_voidstar_ffi_Int32_FFI>(
|
||||
ClassicIndicatorWindowViewInterface.posForIndicator_calledFromC);
|
||||
registerCallback(thisCpp, callback671, 671);
|
||||
//tag=1021
|
||||
final callback672 = ffi.Pointer.fromFunction<void_Func_voidstar_FFI>(
|
||||
ClassicIndicatorWindowViewInterface.raise_calledFromC);
|
||||
registerCallback(thisCpp, callback672, 672);
|
||||
//tag=1021
|
||||
final callback673 =
|
||||
ffi.Pointer.fromFunction<void_Func_voidstar_voidstar_FFI>(
|
||||
ClassicIndicatorWindowViewInterface.resize_calledFromC);
|
||||
registerCallback(thisCpp, callback673, 673);
|
||||
//tag=1021
|
||||
final callback674 =
|
||||
ffi.Pointer.fromFunction<void_Func_voidstar_voidstar_FFI>(
|
||||
ClassicIndicatorWindowViewInterface.setGeometry_calledFromC);
|
||||
registerCallback(thisCpp, callback674, 674);
|
||||
//tag=1021
|
||||
final callback675 =
|
||||
ffi.Pointer.fromFunction<void_Func_voidstar_voidstar_FFI>(
|
||||
ClassicIndicatorWindowViewInterface.setObjectName_calledFromC);
|
||||
registerCallback(thisCpp, callback675, 675);
|
||||
//tag=1021
|
||||
final callback676 =
|
||||
ffi.Pointer.fromFunction<void_Func_voidstar_ffi_Int8_FFI>(
|
||||
ClassicIndicatorWindowViewInterface.setVisible_calledFromC);
|
||||
registerCallback(thisCpp, callback676, 676);
|
||||
//tag=1021
|
||||
final callback677 = ffi.Pointer.fromFunction<void_Func_voidstar_FFI>(
|
||||
ClassicIndicatorWindowViewInterface.updatePositions_calledFromC);
|
||||
registerCallback(thisCpp, callback677, 677);
|
||||
|
||||
@@ -8,22 +8,18 @@
|
||||
|
||||
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__Controllers__ClassicIndicators_Finalizer');
|
||||
|
||||
class ClassicIndicators {
|
||||
//tag=1060
|
||||
static var s_dartInstanceByCppPtr = Map<int, ClassicIndicators>();
|
||||
var _thisCpp = null;
|
||||
bool _needsAutoDelete = false;
|
||||
@@ -36,11 +32,9 @@ class ClassicIndicators {
|
||||
}
|
||||
|
||||
static bool isCached(var cppPointer) {
|
||||
//tag=1024
|
||||
return s_dartInstanceByCppPtr.containsKey(cppPointer.address);
|
||||
}
|
||||
|
||||
//tag=1061
|
||||
factory ClassicIndicators.fromCache(var cppPointer,
|
||||
[needsAutoDelete = false]) {
|
||||
return (s_dartInstanceByCppPtr[cppPointer.address] ??
|
||||
@@ -49,15 +43,10 @@ class ClassicIndicators {
|
||||
}
|
||||
ClassicIndicators.fromCppPointer(var cppPointer,
|
||||
[this._needsAutoDelete = false]) {
|
||||
//tag=1024
|
||||
thisCpp = cppPointer;
|
||||
}
|
||||
//tag=1025
|
||||
ClassicIndicators.init() {}
|
||||
//tag=1023
|
||||
//ClassicIndicators(KDDockWidgets::Controllers::DropArea * dropArea)
|
||||
ClassicIndicators.init() {} //ClassicIndicators(KDDockWidgets::Controllers::DropArea * dropArea)
|
||||
ClassicIndicators(DropArea? dropArea) {
|
||||
//tag=1075
|
||||
final voidstar_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<voidstar_Func_voidstar_FFI>>(
|
||||
'c_KDDockWidgets__Controllers__ClassicIndicators__constructor_DropArea')
|
||||
@@ -65,37 +54,25 @@ class ClassicIndicators {
|
||||
thisCpp = func(dropArea == null ? ffi.nullptr : dropArea.thisCpp);
|
||||
ClassicIndicators.s_dartInstanceByCppPtr[thisCpp.address] = this;
|
||||
registerCallbacks();
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// geometryForRubberband(QRect localRect) const
|
||||
} // geometryForRubberband(QRect localRect) const
|
||||
QRect geometryForRubberband(QRect localRect) {
|
||||
//tag=1028
|
||||
final voidstar_Func_voidstar_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<voidstar_Func_voidstar_voidstar_FFI>>(
|
||||
'c_KDDockWidgets__Controllers__ClassicIndicators__geometryForRubberband_QRect')
|
||||
.asFunction();
|
||||
//tag=1033
|
||||
ffi.Pointer<void> result =
|
||||
func(thisCpp, localRect == null ? ffi.nullptr : localRect.thisCpp);
|
||||
return QRect.fromCppPointer(result, true);
|
||||
}
|
||||
//tag=1024
|
||||
} // hover_impl(QPoint globalPos)
|
||||
|
||||
//tag=1027
|
||||
// hover_impl(QPoint globalPos)
|
||||
int hover_impl(QPoint globalPos) {
|
||||
//tag=1028
|
||||
final int_Func_voidstar_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<int_Func_voidstar_voidstar_FFI>>(
|
||||
cFunctionSymbolName(753))
|
||||
.asFunction();
|
||||
//tag=1031
|
||||
return func(thisCpp, globalPos == null ? ffi.nullptr : globalPos.thisCpp);
|
||||
}
|
||||
|
||||
//tag=1035
|
||||
static int hover_impl_calledFromC(
|
||||
ffi.Pointer<void> thisCpp, ffi.Pointer<void> globalPos) {
|
||||
var dartInstance =
|
||||
@@ -105,52 +82,35 @@ class ClassicIndicators {
|
||||
"Dart instance not found for ClassicIndicators::hover_impl(QPoint globalPos)! (${thisCpp.address})");
|
||||
throw Error();
|
||||
}
|
||||
//tag=1037
|
||||
final result = dartInstance.hover_impl(QPoint.fromCppPointer(globalPos));
|
||||
return result;
|
||||
}
|
||||
//tag=1024
|
||||
} // indicatorsVisibleChanged()
|
||||
|
||||
//tag=1027
|
||||
// indicatorsVisibleChanged()
|
||||
indicatorsVisibleChanged() {
|
||||
//tag=1028
|
||||
final void_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<void_Func_voidstar_FFI>>(
|
||||
'c_KDDockWidgets__Controllers__ClassicIndicators__indicatorsVisibleChanged')
|
||||
.asFunction();
|
||||
//tag=1030
|
||||
func(thisCpp);
|
||||
}
|
||||
//tag=1024
|
||||
} // onResize(QSize newSize)
|
||||
|
||||
//tag=1027
|
||||
// onResize(QSize newSize)
|
||||
bool onResize(QSize newSize) {
|
||||
//tag=1028
|
||||
final bool_Func_voidstar_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<bool_Func_voidstar_voidstar_FFI>>(
|
||||
'c_KDDockWidgets__Controllers__ClassicIndicators__onResize_QSize')
|
||||
.asFunction();
|
||||
//tag=1029
|
||||
return func(thisCpp, newSize == null ? ffi.nullptr : newSize.thisCpp) != 0;
|
||||
}
|
||||
//tag=1024
|
||||
} // posForIndicator(KDDockWidgets::DropLocation arg__1) const
|
||||
|
||||
//tag=1027
|
||||
// posForIndicator(KDDockWidgets::DropLocation arg__1) const
|
||||
QPoint posForIndicator(int arg__1) {
|
||||
//tag=1028
|
||||
final voidstar_Func_voidstar_int func = _dylib
|
||||
.lookup<ffi.NativeFunction<voidstar_Func_voidstar_ffi_Int32_FFI>>(
|
||||
cFunctionSymbolName(756))
|
||||
.asFunction();
|
||||
//tag=1033
|
||||
ffi.Pointer<void> result = func(thisCpp, arg__1);
|
||||
return QPoint.fromCppPointer(result, true);
|
||||
}
|
||||
|
||||
//tag=1035
|
||||
static ffi.Pointer<void> posForIndicator_calledFromC(
|
||||
ffi.Pointer<void> thisCpp, int arg__1) {
|
||||
var dartInstance =
|
||||
@@ -160,80 +120,53 @@ class ClassicIndicators {
|
||||
"Dart instance not found for ClassicIndicators::posForIndicator(KDDockWidgets::DropLocation arg__1) const! (${thisCpp.address})");
|
||||
throw Error();
|
||||
}
|
||||
//tag=1037
|
||||
final result = dartInstance.posForIndicator(arg__1);
|
||||
return result.thisCpp;
|
||||
}
|
||||
//tag=1024
|
||||
} // raiseIndicators()
|
||||
|
||||
//tag=1027
|
||||
// raiseIndicators()
|
||||
raiseIndicators() {
|
||||
//tag=1028
|
||||
final void_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<void_Func_voidstar_FFI>>(
|
||||
'c_KDDockWidgets__Controllers__ClassicIndicators__raiseIndicators')
|
||||
.asFunction();
|
||||
//tag=1030
|
||||
func(thisCpp);
|
||||
}
|
||||
//tag=1024
|
||||
} // rubberBandIsTopLevel() const
|
||||
|
||||
//tag=1027
|
||||
// rubberBandIsTopLevel() const
|
||||
bool rubberBandIsTopLevel() {
|
||||
//tag=1028
|
||||
final bool_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<bool_Func_voidstar_FFI>>(
|
||||
'c_KDDockWidgets__Controllers__ClassicIndicators__rubberBandIsTopLevel')
|
||||
.asFunction();
|
||||
//tag=1029
|
||||
return func(thisCpp) != 0;
|
||||
}
|
||||
//tag=1024
|
||||
} // setDropLocation(KDDockWidgets::DropLocation arg__1)
|
||||
|
||||
//tag=1027
|
||||
// setDropLocation(KDDockWidgets::DropLocation arg__1)
|
||||
setDropLocation(int arg__1) {
|
||||
//tag=1028
|
||||
final void_Func_voidstar_int func = _dylib
|
||||
.lookup<ffi.NativeFunction<void_Func_voidstar_ffi_Int32_FFI>>(
|
||||
'c_KDDockWidgets__Controllers__ClassicIndicators__setDropLocation_DropLocation')
|
||||
.asFunction();
|
||||
//tag=1030
|
||||
func(thisCpp, arg__1);
|
||||
}
|
||||
|
||||
//tag=1024
|
||||
static
|
||||
//tag=1027
|
||||
// tr(const char * s, const char * c, int n)
|
||||
static // 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__Controllers__ClassicIndicators__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
|
||||
} // updateVisibility()
|
||||
|
||||
//tag=1027
|
||||
// updateVisibility()
|
||||
updateVisibility() {
|
||||
//tag=1028
|
||||
final void_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<void_Func_voidstar_FFI>>(
|
||||
cFunctionSymbolName(761))
|
||||
.asFunction();
|
||||
//tag=1030
|
||||
func(thisCpp);
|
||||
}
|
||||
|
||||
//tag=1035
|
||||
static void updateVisibility_calledFromC(ffi.Pointer<void> thisCpp) {
|
||||
var dartInstance =
|
||||
ClassicIndicators.s_dartInstanceByCppPtr[thisCpp.address];
|
||||
@@ -242,24 +175,17 @@ class ClassicIndicators {
|
||||
"Dart instance not found for ClassicIndicators::updateVisibility()! (${thisCpp.address})");
|
||||
throw Error();
|
||||
}
|
||||
//tag=1036
|
||||
dartInstance.updateVisibility();
|
||||
}
|
||||
//tag=1024
|
||||
} // updateWindowPosition()
|
||||
|
||||
//tag=1027
|
||||
// updateWindowPosition()
|
||||
updateWindowPosition() {
|
||||
//tag=1028
|
||||
final void_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<void_Func_voidstar_FFI>>(
|
||||
'c_KDDockWidgets__Controllers__ClassicIndicators__updateWindowPosition')
|
||||
.asFunction();
|
||||
//tag=1030
|
||||
func(thisCpp);
|
||||
}
|
||||
|
||||
//tag=1022
|
||||
void release() {
|
||||
final void_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<void_Func_voidstar_FFI>>(
|
||||
@@ -268,7 +194,6 @@ class ClassicIndicators {
|
||||
func(thisCpp);
|
||||
}
|
||||
|
||||
//tag=1019
|
||||
String cFunctionSymbolName(int methodId) {
|
||||
switch (methodId) {
|
||||
case 753:
|
||||
@@ -293,7 +218,6 @@ class ClassicIndicators {
|
||||
throw Error();
|
||||
}
|
||||
|
||||
//tag=1020
|
||||
void registerCallbacks() {
|
||||
assert(thisCpp != null);
|
||||
final RegisterMethodIsReimplementedCallback registerCallback = _dylib
|
||||
@@ -301,17 +225,14 @@ class ClassicIndicators {
|
||||
'c_KDDockWidgets__Controllers__ClassicIndicators__registerVirtualMethodCallback')
|
||||
.asFunction();
|
||||
const callbackExcept753 = 0;
|
||||
//tag=1021
|
||||
final callback753 =
|
||||
ffi.Pointer.fromFunction<int_Func_voidstar_voidstar_FFI>(
|
||||
ClassicIndicators.hover_impl_calledFromC, callbackExcept753);
|
||||
registerCallback(thisCpp, callback753, 753);
|
||||
//tag=1021
|
||||
final callback756 =
|
||||
ffi.Pointer.fromFunction<voidstar_Func_voidstar_ffi_Int32_FFI>(
|
||||
ClassicIndicators.posForIndicator_calledFromC);
|
||||
registerCallback(thisCpp, callback756, 756);
|
||||
//tag=1021
|
||||
final callback761 = ffi.Pointer.fromFunction<void_Func_voidstar_FFI>(
|
||||
ClassicIndicators.updateVisibility_calledFromC);
|
||||
registerCallback(thisCpp, callback761, 761);
|
||||
|
||||
@@ -8,22 +8,18 @@
|
||||
|
||||
Contact KDAB at <info@kdab.com> for commercial licensing options.
|
||||
*/
|
||||
|
||||
//tag=1052
|
||||
import 'dart:ffi' as ffi;
|
||||
import 'package:ffi/ffi.dart';
|
||||
import 'TypeHelpers.dart';
|
||||
import '../Bindings.dart';
|
||||
import '../FinalizerHelpers.dart';
|
||||
|
||||
//tag=1051
|
||||
var _dylib = Library.instance().dylib;
|
||||
final _finalizer =
|
||||
_dylib.lookup<ffi.NativeFunction<Dart_WeakPersistentHandleFinalizer_Type>>(
|
||||
'c_KDDockWidgets__Config_Finalizer');
|
||||
|
||||
class Config {
|
||||
//tag=1060
|
||||
static var s_dartInstanceByCppPtr = Map<int, Config>();
|
||||
var _thisCpp = null;
|
||||
bool _needsAutoDelete = true;
|
||||
@@ -36,249 +32,158 @@ class Config {
|
||||
}
|
||||
|
||||
static bool isCached(var cppPointer) {
|
||||
//tag=1024
|
||||
return s_dartInstanceByCppPtr.containsKey(cppPointer.address);
|
||||
}
|
||||
|
||||
//tag=1061
|
||||
factory Config.fromCache(var cppPointer, [needsAutoDelete = false]) {
|
||||
return (s_dartInstanceByCppPtr[cppPointer.address] ??
|
||||
Config.fromCppPointer(cppPointer, needsAutoDelete)) as Config;
|
||||
}
|
||||
Config.fromCppPointer(var cppPointer, [this._needsAutoDelete = false]) {
|
||||
//tag=1024
|
||||
thisCpp = cppPointer;
|
||||
}
|
||||
//tag=1025
|
||||
Config.init() {}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// absoluteWidgetMaxSize() const
|
||||
Config.init() {} // absoluteWidgetMaxSize() const
|
||||
QSize absoluteWidgetMaxSize() {
|
||||
//tag=1028
|
||||
final voidstar_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<voidstar_Func_voidstar_FFI>>(
|
||||
'c_KDDockWidgets__Config__absoluteWidgetMaxSize')
|
||||
.asFunction();
|
||||
//tag=1033
|
||||
ffi.Pointer<void> result = func(thisCpp);
|
||||
return QSize.fromCppPointer(result, true);
|
||||
}
|
||||
//tag=1024
|
||||
} // absoluteWidgetMinSize() const
|
||||
|
||||
//tag=1027
|
||||
// absoluteWidgetMinSize() const
|
||||
QSize absoluteWidgetMinSize() {
|
||||
//tag=1028
|
||||
final voidstar_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<voidstar_Func_voidstar_FFI>>(
|
||||
'c_KDDockWidgets__Config__absoluteWidgetMinSize')
|
||||
.asFunction();
|
||||
//tag=1033
|
||||
ffi.Pointer<void> result = func(thisCpp);
|
||||
return QSize.fromCppPointer(result, true);
|
||||
}
|
||||
//tag=1024
|
||||
} // draggedWindowOpacity() const
|
||||
|
||||
//tag=1027
|
||||
// draggedWindowOpacity() const
|
||||
double draggedWindowOpacity() {
|
||||
//tag=1028
|
||||
final double_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<double_Func_voidstar_FFI>>(
|
||||
'c_KDDockWidgets__Config__draggedWindowOpacity')
|
||||
.asFunction();
|
||||
//tag=1031
|
||||
return func(thisCpp);
|
||||
}
|
||||
//tag=1024
|
||||
} // dropIndicatorsInhibited() const
|
||||
|
||||
//tag=1027
|
||||
// dropIndicatorsInhibited() const
|
||||
bool dropIndicatorsInhibited() {
|
||||
//tag=1028
|
||||
final bool_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<bool_Func_voidstar_FFI>>(
|
||||
'c_KDDockWidgets__Config__dropIndicatorsInhibited')
|
||||
.asFunction();
|
||||
//tag=1029
|
||||
return func(thisCpp) != 0;
|
||||
}
|
||||
//tag=1024
|
||||
} // mdiPopupThreshold() const
|
||||
|
||||
//tag=1027
|
||||
// mdiPopupThreshold() const
|
||||
int mdiPopupThreshold() {
|
||||
//tag=1028
|
||||
final int_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<int_Func_voidstar_FFI>>(
|
||||
'c_KDDockWidgets__Config__mdiPopupThreshold')
|
||||
.asFunction();
|
||||
//tag=1031
|
||||
return func(thisCpp);
|
||||
}
|
||||
|
||||
//tag=1024
|
||||
static
|
||||
//tag=1027
|
||||
// self()
|
||||
static // self()
|
||||
Config self() {
|
||||
//tag=1028
|
||||
final voidstar_Func_void func = _dylib
|
||||
.lookup<ffi.NativeFunction<voidstar_Func_void_FFI>>(
|
||||
'c_static_KDDockWidgets__Config__self')
|
||||
.asFunction();
|
||||
//tag=1033
|
||||
ffi.Pointer<void> result = func();
|
||||
return Config.fromCppPointer(result, false);
|
||||
}
|
||||
//tag=1024
|
||||
} // separatorThickness() const
|
||||
|
||||
//tag=1027
|
||||
// separatorThickness() const
|
||||
int separatorThickness() {
|
||||
//tag=1028
|
||||
final int_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<int_Func_voidstar_FFI>>(
|
||||
'c_KDDockWidgets__Config__separatorThickness')
|
||||
.asFunction();
|
||||
//tag=1031
|
||||
return func(thisCpp);
|
||||
}
|
||||
//tag=1024
|
||||
} // setAbsoluteWidgetMaxSize(QSize size)
|
||||
|
||||
//tag=1027
|
||||
// setAbsoluteWidgetMaxSize(QSize size)
|
||||
setAbsoluteWidgetMaxSize(QSize size) {
|
||||
//tag=1028
|
||||
final void_Func_voidstar_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<void_Func_voidstar_voidstar_FFI>>(
|
||||
'c_KDDockWidgets__Config__setAbsoluteWidgetMaxSize_QSize')
|
||||
.asFunction();
|
||||
//tag=1030
|
||||
func(thisCpp, size == null ? ffi.nullptr : size.thisCpp);
|
||||
}
|
||||
//tag=1024
|
||||
} // setAbsoluteWidgetMinSize(QSize size)
|
||||
|
||||
//tag=1027
|
||||
// setAbsoluteWidgetMinSize(QSize size)
|
||||
setAbsoluteWidgetMinSize(QSize size) {
|
||||
//tag=1028
|
||||
final void_Func_voidstar_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<void_Func_voidstar_voidstar_FFI>>(
|
||||
'c_KDDockWidgets__Config__setAbsoluteWidgetMinSize_QSize')
|
||||
.asFunction();
|
||||
//tag=1030
|
||||
func(thisCpp, size == null ? ffi.nullptr : size.thisCpp);
|
||||
}
|
||||
//tag=1024
|
||||
} // setDraggedWindowOpacity(qreal opacity)
|
||||
|
||||
//tag=1027
|
||||
// setDraggedWindowOpacity(qreal opacity)
|
||||
setDraggedWindowOpacity(double opacity) {
|
||||
//tag=1028
|
||||
final void_Func_voidstar_double func = _dylib
|
||||
.lookup<ffi.NativeFunction<void_Func_voidstar_ffi_Double_FFI>>(
|
||||
'c_KDDockWidgets__Config__setDraggedWindowOpacity_qreal')
|
||||
.asFunction();
|
||||
//tag=1030
|
||||
func(thisCpp, opacity);
|
||||
}
|
||||
//tag=1024
|
||||
} // setDropIndicatorsInhibited(bool inhibit) const
|
||||
|
||||
//tag=1027
|
||||
// setDropIndicatorsInhibited(bool inhibit) const
|
||||
setDropIndicatorsInhibited(bool inhibit) {
|
||||
//tag=1028
|
||||
final void_Func_voidstar_bool func = _dylib
|
||||
.lookup<ffi.NativeFunction<void_Func_voidstar_ffi_Int8_FFI>>(
|
||||
'c_KDDockWidgets__Config__setDropIndicatorsInhibited_bool')
|
||||
.asFunction();
|
||||
//tag=1030
|
||||
func(thisCpp, inhibit ? 1 : 0);
|
||||
}
|
||||
//tag=1024
|
||||
} // setMDIPopupThreshold(int arg__1)
|
||||
|
||||
//tag=1027
|
||||
// setMDIPopupThreshold(int arg__1)
|
||||
setMDIPopupThreshold(int arg__1) {
|
||||
//tag=1028
|
||||
final void_Func_voidstar_int func = _dylib
|
||||
.lookup<ffi.NativeFunction<void_Func_voidstar_ffi_Int32_FFI>>(
|
||||
'c_KDDockWidgets__Config__setMDIPopupThreshold_int')
|
||||
.asFunction();
|
||||
//tag=1030
|
||||
func(thisCpp, arg__1);
|
||||
}
|
||||
//tag=1024
|
||||
} // setSeparatorThickness(int value)
|
||||
|
||||
//tag=1027
|
||||
// setSeparatorThickness(int value)
|
||||
setSeparatorThickness(int value) {
|
||||
//tag=1028
|
||||
final void_Func_voidstar_int func = _dylib
|
||||
.lookup<ffi.NativeFunction<void_Func_voidstar_ffi_Int32_FFI>>(
|
||||
'c_KDDockWidgets__Config__setSeparatorThickness_int')
|
||||
.asFunction();
|
||||
//tag=1030
|
||||
func(thisCpp, value);
|
||||
}
|
||||
//tag=1024
|
||||
} // setStartDragDistance(int arg__1)
|
||||
|
||||
//tag=1027
|
||||
// setStartDragDistance(int arg__1)
|
||||
setStartDragDistance(int arg__1) {
|
||||
//tag=1028
|
||||
final void_Func_voidstar_int func = _dylib
|
||||
.lookup<ffi.NativeFunction<void_Func_voidstar_ffi_Int32_FFI>>(
|
||||
'c_KDDockWidgets__Config__setStartDragDistance_int')
|
||||
.asFunction();
|
||||
//tag=1030
|
||||
func(thisCpp, arg__1);
|
||||
}
|
||||
//tag=1024
|
||||
} // setViewFactory(KDDockWidgets::ViewFactory * arg__1)
|
||||
|
||||
//tag=1027
|
||||
// setViewFactory(KDDockWidgets::ViewFactory * arg__1)
|
||||
setViewFactory(ViewFactory? arg__1) {
|
||||
//tag=1028
|
||||
final void_Func_voidstar_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<void_Func_voidstar_voidstar_FFI>>(
|
||||
'c_KDDockWidgets__Config__setViewFactory_ViewFactory')
|
||||
.asFunction();
|
||||
//tag=1030
|
||||
func(thisCpp, arg__1 == null ? ffi.nullptr : arg__1.thisCpp);
|
||||
}
|
||||
//tag=1024
|
||||
} // startDragDistance() const
|
||||
|
||||
//tag=1027
|
||||
// startDragDistance() const
|
||||
int startDragDistance() {
|
||||
//tag=1028
|
||||
final int_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<int_Func_voidstar_FFI>>(
|
||||
'c_KDDockWidgets__Config__startDragDistance')
|
||||
.asFunction();
|
||||
//tag=1031
|
||||
return func(thisCpp);
|
||||
}
|
||||
//tag=1024
|
||||
} // viewFactory() const
|
||||
|
||||
//tag=1027
|
||||
// viewFactory() const
|
||||
ViewFactory viewFactory() {
|
||||
//tag=1028
|
||||
final voidstar_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<voidstar_Func_voidstar_FFI>>(
|
||||
'c_KDDockWidgets__Config__viewFactory')
|
||||
.asFunction();
|
||||
//tag=1033
|
||||
ffi.Pointer<void> result = func(thisCpp);
|
||||
return ViewFactory.fromCppPointer(result, false);
|
||||
}
|
||||
|
||||
//tag=1022
|
||||
void release() {
|
||||
final void_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<void_Func_voidstar_FFI>>(
|
||||
|
||||
@@ -8,34 +8,26 @@
|
||||
|
||||
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=1023
|
||||
//Controller(KDDockWidgets::Type type, KDDockWidgets::View * arg__2)
|
||||
} //Controller(KDDockWidgets::Type type, KDDockWidgets::View * arg__2)
|
||||
Controller(int type, View? arg__2) : super.init() {
|
||||
//tag=1075
|
||||
final voidstar_Func_int_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<voidstar_Func_ffi_Int32_voidstar_FFI>>(
|
||||
'c_KDDockWidgets__Controller__constructor_Type_View')
|
||||
@@ -43,23 +35,15 @@ class Controller extends QObject {
|
||||
thisCpp = func(type, arg__2 == null ? ffi.nullptr : arg__2.thisCpp);
|
||||
QObject.s_dartInstanceByCppPtr[thisCpp.address] = this;
|
||||
registerCallbacks();
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// close()
|
||||
} // 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 =
|
||||
@@ -69,12 +53,9 @@ class Controller extends QObject {
|
||||
"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 =
|
||||
@@ -84,13 +65,10 @@ class Controller extends QObject {
|
||||
"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 =
|
||||
@@ -100,148 +78,96 @@ class Controller extends QObject {
|
||||
"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
|
||||
} // geometry() const
|
||||
|
||||
//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
|
||||
} // height() const
|
||||
|
||||
//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
|
||||
} // inDtor() const
|
||||
|
||||
//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
|
||||
} // isVisible() const
|
||||
|
||||
//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
|
||||
} // mapToGlobal(QPoint arg__1) const
|
||||
|
||||
//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
|
||||
} // parentViewChanged(KDDockWidgets::View * parent)
|
||||
|
||||
//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=1024
|
||||
} // pos() const
|
||||
|
||||
//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
|
||||
} // rect() const
|
||||
|
||||
//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
|
||||
} // setParentView(KDDockWidgets::View * parent)
|
||||
|
||||
//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
|
||||
} // setParentView_impl(KDDockWidgets::View * parent)
|
||||
|
||||
//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(800))
|
||||
.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 =
|
||||
@@ -251,133 +177,86 @@ class Controller extends QObject {
|
||||
"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
|
||||
} // setVisible(bool arg__1)
|
||||
|
||||
//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
|
||||
} // show() const
|
||||
|
||||
//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
|
||||
} // size() const
|
||||
|
||||
//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)
|
||||
static // 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
|
||||
} // type() const
|
||||
|
||||
//tag=1027
|
||||
// type() const
|
||||
int type() {
|
||||
//tag=1028
|
||||
final int_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<int_Func_voidstar_FFI>>(
|
||||
'c_KDDockWidgets__Controller__type')
|
||||
.asFunction();
|
||||
//tag=1031
|
||||
return func(thisCpp);
|
||||
}
|
||||
//tag=1024
|
||||
} // view() const
|
||||
|
||||
//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
|
||||
} // width() const
|
||||
|
||||
//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
|
||||
} // x() const
|
||||
|
||||
//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
|
||||
} // y() const
|
||||
|
||||
//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>>(
|
||||
@@ -386,7 +265,6 @@ class Controller extends QObject {
|
||||
func(thisCpp);
|
||||
}
|
||||
|
||||
//tag=1019
|
||||
String cFunctionSymbolName(int methodId) {
|
||||
switch (methodId) {
|
||||
case 295:
|
||||
@@ -415,32 +293,26 @@ class Controller extends QObject {
|
||||
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 callback295 =
|
||||
ffi.Pointer.fromFunction<void_Func_voidstar_voidstar_FFI>(
|
||||
QObject.customEvent_calledFromC);
|
||||
registerCallback(thisCpp, callback295, 295);
|
||||
const callbackExcept306 = 0;
|
||||
//tag=1021
|
||||
final callback306 =
|
||||
ffi.Pointer.fromFunction<bool_Func_voidstar_voidstar_FFI>(
|
||||
QObject.event_calledFromC, callbackExcept306);
|
||||
registerCallback(thisCpp, callback306, 306);
|
||||
const callbackExcept307 = 0;
|
||||
//tag=1021
|
||||
final callback307 =
|
||||
ffi.Pointer.fromFunction<bool_Func_voidstar_voidstar_voidstar_FFI>(
|
||||
QObject.eventFilter_calledFromC, callbackExcept307);
|
||||
registerCallback(thisCpp, callback307, 307);
|
||||
//tag=1021
|
||||
final callback800 =
|
||||
ffi.Pointer.fromFunction<void_Func_voidstar_voidstar_FFI>(
|
||||
Controller.setParentView_impl_calledFromC);
|
||||
|
||||
@@ -8,13 +8,10 @@
|
||||
|
||||
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;
|
||||
|
||||
@@ -8,22 +8,18 @@
|
||||
|
||||
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__CreateViewOptions_Finalizer');
|
||||
|
||||
class CreateViewOptions {
|
||||
//tag=1060
|
||||
static var s_dartInstanceByCppPtr = Map<int, CreateViewOptions>();
|
||||
var _thisCpp = null;
|
||||
bool _needsAutoDelete = true;
|
||||
@@ -36,11 +32,9 @@ class CreateViewOptions {
|
||||
}
|
||||
|
||||
static bool isCached(var cppPointer) {
|
||||
//tag=1024
|
||||
return s_dartInstanceByCppPtr.containsKey(cppPointer.address);
|
||||
}
|
||||
|
||||
//tag=1061
|
||||
factory CreateViewOptions.fromCache(var cppPointer,
|
||||
[needsAutoDelete = false]) {
|
||||
return (s_dartInstanceByCppPtr[cppPointer.address] ??
|
||||
@@ -49,64 +43,42 @@ class CreateViewOptions {
|
||||
}
|
||||
CreateViewOptions.fromCppPointer(var cppPointer,
|
||||
[this._needsAutoDelete = false]) {
|
||||
//tag=1024
|
||||
thisCpp = cppPointer;
|
||||
}
|
||||
//tag=1025
|
||||
CreateViewOptions.init() {}
|
||||
//tag=1024
|
||||
|
||||
//tag=1025
|
||||
bool get isVisible {
|
||||
//tag=1028
|
||||
final bool_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<bool_Func_voidstar_FFI>>(
|
||||
'c_KDDockWidgets__CreateViewOptions___get_isVisible')
|
||||
.asFunction();
|
||||
//tag=1029
|
||||
return func(thisCpp) != 0;
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1026
|
||||
set isVisible(bool isVisible_) {
|
||||
//tag=1028
|
||||
final void_Func_voidstar_bool func = _dylib
|
||||
.lookup<ffi.NativeFunction<void_Func_voidstar_ffi_Int8_FFI>>(
|
||||
'c_KDDockWidgets__CreateViewOptions___set_isVisible_bool')
|
||||
.asFunction();
|
||||
//tag=1030
|
||||
func(thisCpp, isVisible_ ? 1 : 0);
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1025
|
||||
bool get createWindow {
|
||||
//tag=1028
|
||||
final bool_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<bool_Func_voidstar_FFI>>(
|
||||
'c_KDDockWidgets__CreateViewOptions___get_createWindow')
|
||||
.asFunction();
|
||||
//tag=1029
|
||||
return func(thisCpp) != 0;
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1026
|
||||
set createWindow(bool createWindow_) {
|
||||
//tag=1028
|
||||
final void_Func_voidstar_bool func = _dylib
|
||||
.lookup<ffi.NativeFunction<void_Func_voidstar_ffi_Int8_FFI>>(
|
||||
'c_KDDockWidgets__CreateViewOptions___set_createWindow_bool')
|
||||
.asFunction();
|
||||
//tag=1030
|
||||
func(thisCpp, createWindow_ ? 1 : 0);
|
||||
}
|
||||
} //CreateViewOptions()
|
||||
|
||||
//tag=1023
|
||||
//CreateViewOptions()
|
||||
CreateViewOptions() {
|
||||
//tag=1075
|
||||
final voidstar_Func_void func = _dylib
|
||||
.lookup<ffi.NativeFunction<voidstar_Func_void_FFI>>(
|
||||
'c_KDDockWidgets__CreateViewOptions__constructor')
|
||||
@@ -114,7 +86,6 @@ class CreateViewOptions {
|
||||
thisCpp = func();
|
||||
CreateViewOptions.s_dartInstanceByCppPtr[thisCpp.address] = this;
|
||||
}
|
||||
//tag=1022
|
||||
void release() {
|
||||
final void_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<void_Func_voidstar_FFI>>(
|
||||
|
||||
@@ -8,35 +8,27 @@
|
||||
|
||||
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 DropArea extends Layout {
|
||||
//tag=1064
|
||||
DropArea.fromCppPointer(var cppPointer, [var needsAutoDelete = false])
|
||||
: super.fromCppPointer(cppPointer, needsAutoDelete) {}
|
||||
DropArea.init() : super.init() {}
|
||||
//tag=1062
|
||||
factory DropArea.fromCache(var cppPointer, [needsAutoDelete = false]) {
|
||||
if (QObject.isCached(cppPointer)) {
|
||||
var instance = QObject.s_dartInstanceByCppPtr[cppPointer.address];
|
||||
if (instance != null) return instance as DropArea;
|
||||
}
|
||||
return DropArea.fromCppPointer(cppPointer, needsAutoDelete);
|
||||
}
|
||||
//tag=1023
|
||||
//DropArea(KDDockWidgets::View * parent, QFlags<KDDockWidgets::MainWindowOption> options, bool isMDIWrapper)
|
||||
} //DropArea(KDDockWidgets::View * parent, QFlags<KDDockWidgets::MainWindowOption> options, bool isMDIWrapper)
|
||||
DropArea(View? parent, int options, {bool isMDIWrapper = false})
|
||||
: super.init() {
|
||||
//tag=1075
|
||||
final voidstar_Func_voidstar_int_bool func = _dylib
|
||||
.lookup<
|
||||
ffi.NativeFunction<
|
||||
@@ -47,64 +39,41 @@ class DropArea extends Layout {
|
||||
isMDIWrapper ? 1 : 0);
|
||||
QObject.s_dartInstanceByCppPtr[thisCpp.address] = this;
|
||||
registerCallbacks();
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// addMultiSplitter(KDDockWidgets::Controllers::DropArea * splitter, KDDockWidgets::Location location)
|
||||
} // addMultiSplitter(KDDockWidgets::Controllers::DropArea * splitter, KDDockWidgets::Location location)
|
||||
addMultiSplitter(DropArea? splitter, int location) {
|
||||
//tag=1028
|
||||
final void_Func_voidstar_voidstar_int func = _dylib
|
||||
.lookup<ffi.NativeFunction<void_Func_voidstar_voidstar_ffi_Int32_FFI>>(
|
||||
'c_KDDockWidgets__Controllers__DropArea__addMultiSplitter_DropArea_Location')
|
||||
.asFunction();
|
||||
//tag=1030
|
||||
func(thisCpp, splitter == null ? ffi.nullptr : splitter.thisCpp, location);
|
||||
}
|
||||
//tag=1024
|
||||
} // addWidget(KDDockWidgets::View * widget, KDDockWidgets::Location location)
|
||||
|
||||
//tag=1027
|
||||
// addWidget(KDDockWidgets::View * widget, KDDockWidgets::Location location)
|
||||
addWidget(View? widget, int location) {
|
||||
//tag=1028
|
||||
final void_Func_voidstar_voidstar_int func = _dylib
|
||||
.lookup<ffi.NativeFunction<void_Func_voidstar_voidstar_ffi_Int32_FFI>>(
|
||||
'c_KDDockWidgets__Controllers__DropArea__addWidget_View_Location')
|
||||
.asFunction();
|
||||
//tag=1030
|
||||
func(thisCpp, widget == null ? ffi.nullptr : widget.thisCpp, location);
|
||||
}
|
||||
//tag=1024
|
||||
} // availableSize() const
|
||||
|
||||
//tag=1027
|
||||
// availableSize() const
|
||||
QSize availableSize() {
|
||||
//tag=1028
|
||||
final voidstar_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<voidstar_Func_voidstar_FFI>>(
|
||||
'c_KDDockWidgets__Controllers__DropArea__availableSize')
|
||||
.asFunction();
|
||||
//tag=1033
|
||||
ffi.Pointer<void> result = func(thisCpp);
|
||||
return QSize.fromCppPointer(result, true);
|
||||
}
|
||||
//tag=1024
|
||||
} // centralFrame() const
|
||||
|
||||
//tag=1027
|
||||
// centralFrame() const
|
||||
Item centralFrame() {
|
||||
//tag=1028
|
||||
final voidstar_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<voidstar_Func_voidstar_FFI>>(
|
||||
'c_KDDockWidgets__Controllers__DropArea__centralFrame')
|
||||
.asFunction();
|
||||
//tag=1033
|
||||
ffi.Pointer<void> result = func(thisCpp);
|
||||
return Item.fromCppPointer(result, false);
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1035
|
||||
static void customEvent_calledFromC(
|
||||
ffi.Pointer<void> thisCpp, ffi.Pointer<void>? event) {
|
||||
var dartInstance =
|
||||
@@ -114,12 +83,9 @@ class DropArea extends Layout {
|
||||
"Dart instance not found for DropArea::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 =
|
||||
@@ -129,13 +95,10 @@ class DropArea extends Layout {
|
||||
"Dart instance not found for DropArea::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 =
|
||||
@@ -145,79 +108,51 @@ class DropArea extends Layout {
|
||||
"Dart instance not found for DropArea::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
|
||||
} // hasSingleFloatingFrame() const
|
||||
|
||||
//tag=1027
|
||||
// hasSingleFloatingFrame() const
|
||||
bool hasSingleFloatingFrame() {
|
||||
//tag=1028
|
||||
final bool_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<bool_Func_voidstar_FFI>>(
|
||||
'c_KDDockWidgets__Controllers__DropArea__hasSingleFloatingFrame')
|
||||
.asFunction();
|
||||
//tag=1029
|
||||
return func(thisCpp) != 0;
|
||||
}
|
||||
//tag=1024
|
||||
} // hasSingleFrame() const
|
||||
|
||||
//tag=1027
|
||||
// hasSingleFrame() const
|
||||
bool hasSingleFrame() {
|
||||
//tag=1028
|
||||
final bool_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<bool_Func_voidstar_FFI>>(
|
||||
'c_KDDockWidgets__Controllers__DropArea__hasSingleFrame')
|
||||
.asFunction();
|
||||
//tag=1029
|
||||
return func(thisCpp) != 0;
|
||||
}
|
||||
//tag=1024
|
||||
} // isMDIWrapper() const
|
||||
|
||||
//tag=1027
|
||||
// isMDIWrapper() const
|
||||
bool isMDIWrapper() {
|
||||
//tag=1028
|
||||
final bool_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<bool_Func_voidstar_FFI>>(
|
||||
'c_KDDockWidgets__Controllers__DropArea__isMDIWrapper')
|
||||
.asFunction();
|
||||
//tag=1029
|
||||
return func(thisCpp) != 0;
|
||||
}
|
||||
//tag=1024
|
||||
} // layoutEqually()
|
||||
|
||||
//tag=1027
|
||||
// layoutEqually()
|
||||
layoutEqually() {
|
||||
//tag=1028
|
||||
final void_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<void_Func_voidstar_FFI>>(
|
||||
'c_KDDockWidgets__Controllers__DropArea__layoutEqually')
|
||||
.asFunction();
|
||||
//tag=1030
|
||||
func(thisCpp);
|
||||
}
|
||||
//tag=1024
|
||||
} // removeHover()
|
||||
|
||||
//tag=1027
|
||||
// removeHover()
|
||||
removeHover() {
|
||||
//tag=1028
|
||||
final void_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<void_Func_voidstar_FFI>>(
|
||||
'c_KDDockWidgets__Controllers__DropArea__removeHover')
|
||||
.asFunction();
|
||||
//tag=1030
|
||||
func(thisCpp);
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1035
|
||||
static void setParentView_impl_calledFromC(
|
||||
ffi.Pointer<void> thisCpp, ffi.Pointer<void>? parent) {
|
||||
var dartInstance =
|
||||
@@ -227,40 +162,28 @@ class DropArea extends Layout {
|
||||
"Dart instance not found for DropArea::setParentView_impl(KDDockWidgets::View * parent)! (${thisCpp.address})");
|
||||
throw Error();
|
||||
}
|
||||
//tag=1036
|
||||
dartInstance.setParentView_impl(View.fromCppPointer(parent));
|
||||
}
|
||||
|
||||
//tag=1024
|
||||
static
|
||||
//tag=1027
|
||||
// tr(const char * s, const char * c, int n)
|
||||
static // 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__Controllers__DropArea__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
|
||||
} // updateFloatingActions()
|
||||
|
||||
//tag=1027
|
||||
// updateFloatingActions()
|
||||
updateFloatingActions() {
|
||||
//tag=1028
|
||||
final void_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<void_Func_voidstar_FFI>>(
|
||||
'c_KDDockWidgets__Controllers__DropArea__updateFloatingActions')
|
||||
.asFunction();
|
||||
//tag=1030
|
||||
func(thisCpp);
|
||||
}
|
||||
|
||||
//tag=1022
|
||||
void release() {
|
||||
final void_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<void_Func_voidstar_FFI>>(
|
||||
@@ -269,7 +192,6 @@ class DropArea extends Layout {
|
||||
func(thisCpp);
|
||||
}
|
||||
|
||||
//tag=1019
|
||||
String cFunctionSymbolName(int methodId) {
|
||||
switch (methodId) {
|
||||
case 295:
|
||||
@@ -298,32 +220,26 @@ class DropArea extends Layout {
|
||||
throw Error();
|
||||
}
|
||||
|
||||
//tag=1020
|
||||
void registerCallbacks() {
|
||||
assert(thisCpp != null);
|
||||
final RegisterMethodIsReimplementedCallback registerCallback = _dylib
|
||||
.lookup<ffi.NativeFunction<RegisterMethodIsReimplementedCallback_FFI>>(
|
||||
'c_KDDockWidgets__Controllers__DropArea__registerVirtualMethodCallback')
|
||||
.asFunction();
|
||||
|
||||
//tag=1021
|
||||
final callback295 =
|
||||
ffi.Pointer.fromFunction<void_Func_voidstar_voidstar_FFI>(
|
||||
QObject.customEvent_calledFromC);
|
||||
registerCallback(thisCpp, callback295, 295);
|
||||
const callbackExcept306 = 0;
|
||||
//tag=1021
|
||||
final callback306 =
|
||||
ffi.Pointer.fromFunction<bool_Func_voidstar_voidstar_FFI>(
|
||||
QObject.event_calledFromC, callbackExcept306);
|
||||
registerCallback(thisCpp, callback306, 306);
|
||||
const callbackExcept307 = 0;
|
||||
//tag=1021
|
||||
final callback307 =
|
||||
ffi.Pointer.fromFunction<bool_Func_voidstar_voidstar_voidstar_FFI>(
|
||||
QObject.eventFilter_calledFromC, callbackExcept307);
|
||||
registerCallback(thisCpp, callback307, 307);
|
||||
//tag=1021
|
||||
final callback800 =
|
||||
ffi.Pointer.fromFunction<void_Func_voidstar_voidstar_FFI>(
|
||||
Controller.setParentView_impl_calledFromC);
|
||||
|
||||
@@ -8,22 +8,18 @@
|
||||
|
||||
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__InitialOption_Finalizer');
|
||||
|
||||
class InitialOption {
|
||||
//tag=1060
|
||||
static var s_dartInstanceByCppPtr = Map<int, InitialOption>();
|
||||
var _thisCpp = null;
|
||||
bool _needsAutoDelete = true;
|
||||
@@ -36,11 +32,9 @@ class InitialOption {
|
||||
}
|
||||
|
||||
static bool isCached(var cppPointer) {
|
||||
//tag=1024
|
||||
return s_dartInstanceByCppPtr.containsKey(cppPointer.address);
|
||||
}
|
||||
|
||||
//tag=1061
|
||||
factory InitialOption.fromCache(var cppPointer, [needsAutoDelete = false]) {
|
||||
return (s_dartInstanceByCppPtr[cppPointer.address] ??
|
||||
InitialOption.fromCppPointer(cppPointer, needsAutoDelete))
|
||||
@@ -48,61 +42,41 @@ class InitialOption {
|
||||
}
|
||||
InitialOption.fromCppPointer(var cppPointer,
|
||||
[this._needsAutoDelete = false]) {
|
||||
//tag=1024
|
||||
thisCpp = cppPointer;
|
||||
}
|
||||
//tag=1025
|
||||
InitialOption.init() {}
|
||||
//tag=1023
|
||||
//InitialOption()
|
||||
InitialOption.init() {} //InitialOption()
|
||||
InitialOption() {
|
||||
//tag=1075
|
||||
final voidstar_Func_void func = _dylib
|
||||
.lookup<ffi.NativeFunction<voidstar_Func_void_FFI>>(
|
||||
'c_KDDockWidgets__InitialOption__constructor')
|
||||
.asFunction();
|
||||
thisCpp = func();
|
||||
InitialOption.s_dartInstanceByCppPtr[thisCpp.address] = this;
|
||||
}
|
||||
//tag=1023
|
||||
//InitialOption(QSize size)
|
||||
} //InitialOption(QSize size)
|
||||
InitialOption.ctor2(QSize size) {
|
||||
//tag=1075
|
||||
final voidstar_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<voidstar_Func_voidstar_FFI>>(
|
||||
'c_KDDockWidgets__InitialOption__constructor_QSize')
|
||||
.asFunction();
|
||||
thisCpp = func(size == null ? ffi.nullptr : size.thisCpp);
|
||||
InitialOption.s_dartInstanceByCppPtr[thisCpp.address] = this;
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// preservesCurrentTab() const
|
||||
} // preservesCurrentTab() const
|
||||
bool preservesCurrentTab() {
|
||||
//tag=1028
|
||||
final bool_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<bool_Func_voidstar_FFI>>(
|
||||
'c_KDDockWidgets__InitialOption__preservesCurrentTab')
|
||||
.asFunction();
|
||||
//tag=1029
|
||||
return func(thisCpp) != 0;
|
||||
}
|
||||
//tag=1024
|
||||
} // startsHidden() const
|
||||
|
||||
//tag=1027
|
||||
// startsHidden() const
|
||||
bool startsHidden() {
|
||||
//tag=1028
|
||||
final bool_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<bool_Func_voidstar_FFI>>(
|
||||
'c_KDDockWidgets__InitialOption__startsHidden')
|
||||
.asFunction();
|
||||
//tag=1029
|
||||
return func(thisCpp) != 0;
|
||||
}
|
||||
|
||||
//tag=1022
|
||||
void release() {
|
||||
final void_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<void_Func_voidstar_FFI>>(
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -8,18 +8,14 @@
|
||||
|
||||
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 KDDockWidgets_Location {
|
||||
static const Location_None = 0;
|
||||
static const Location_OnLeft = 1;
|
||||
@@ -28,7 +24,6 @@ class KDDockWidgets_Location {
|
||||
static const Location_OnBottom = 4;
|
||||
}
|
||||
|
||||
//tag=1038
|
||||
class KDDockWidgets_MainWindowOption {
|
||||
static const MainWindowOption_None = 0;
|
||||
static const MainWindowOption_HasCentralFrame = 1;
|
||||
@@ -36,7 +31,6 @@ class KDDockWidgets_MainWindowOption {
|
||||
static const MainWindowOption_HasCentralWidget = 5;
|
||||
}
|
||||
|
||||
//tag=1038
|
||||
class KDDockWidgets_DropLocation {
|
||||
static const DropLocation_None = 0;
|
||||
static const DropLocation_Left = 1;
|
||||
@@ -54,7 +48,6 @@ class KDDockWidgets_DropLocation {
|
||||
static const DropLocation_Vertical = 330;
|
||||
}
|
||||
|
||||
//tag=1038
|
||||
class KDDockWidgets_Type {
|
||||
static const FIRST = 1;
|
||||
static const None = 0;
|
||||
@@ -75,18 +68,13 @@ class KDDockWidgets_Type {
|
||||
static const RubberBand = 16384;
|
||||
static const DropAreaIndicatorOverlay = 32768;
|
||||
static const LAST = 16384;
|
||||
}
|
||||
//tag=1024
|
||||
} // locationStr(KDDockWidgets::Location loc)
|
||||
|
||||
//tag=1027
|
||||
// locationStr(KDDockWidgets::Location loc)
|
||||
QString locationStr(int loc) {
|
||||
//tag=1028
|
||||
final voidstar_Func_int func = _dylib
|
||||
.lookup<ffi.NativeFunction<voidstar_Func_ffi_Int32_FFI>>(
|
||||
'c_static_KDDockWidgets__locationStr_Location')
|
||||
.asFunction();
|
||||
//tag=1033
|
||||
ffi.Pointer<void> result = func(loc);
|
||||
return QString.fromCppPointer(result, true);
|
||||
}
|
||||
|
||||
@@ -8,34 +8,26 @@
|
||||
|
||||
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 Layout extends Controller {
|
||||
//tag=1064
|
||||
Layout.fromCppPointer(var cppPointer, [var needsAutoDelete = false])
|
||||
: super.fromCppPointer(cppPointer, needsAutoDelete) {}
|
||||
Layout.init() : super.init() {}
|
||||
//tag=1062
|
||||
factory Layout.fromCache(var cppPointer, [needsAutoDelete = false]) {
|
||||
if (QObject.isCached(cppPointer)) {
|
||||
var instance = QObject.s_dartInstanceByCppPtr[cppPointer.address];
|
||||
if (instance != null) return instance as Layout;
|
||||
}
|
||||
return Layout.fromCppPointer(cppPointer, needsAutoDelete);
|
||||
}
|
||||
//tag=1023
|
||||
//Layout(KDDockWidgets::Type arg__1, KDDockWidgets::View * arg__2)
|
||||
} //Layout(KDDockWidgets::Type arg__1, KDDockWidgets::View * arg__2)
|
||||
Layout(int arg__1, View? arg__2) : super.init() {
|
||||
//tag=1075
|
||||
final voidstar_Func_int_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<voidstar_Func_ffi_Int32_voidstar_FFI>>(
|
||||
'c_KDDockWidgets__Controllers__Layout__constructor_Type_View')
|
||||
@@ -43,76 +35,48 @@ class Layout extends Controller {
|
||||
thisCpp = func(arg__1, arg__2 == null ? ffi.nullptr : arg__2.thisCpp);
|
||||
QObject.s_dartInstanceByCppPtr[thisCpp.address] = this;
|
||||
registerCallbacks();
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// asDropArea() const
|
||||
} // asDropArea() const
|
||||
DropArea asDropArea() {
|
||||
//tag=1028
|
||||
final voidstar_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<voidstar_Func_voidstar_FFI>>(
|
||||
'c_KDDockWidgets__Controllers__Layout__asDropArea')
|
||||
.asFunction();
|
||||
//tag=1033
|
||||
ffi.Pointer<void> result = func(thisCpp);
|
||||
return DropArea.fromCppPointer(result, false);
|
||||
}
|
||||
//tag=1024
|
||||
} // checkSanity() const
|
||||
|
||||
//tag=1027
|
||||
// checkSanity() const
|
||||
bool checkSanity() {
|
||||
//tag=1028
|
||||
final bool_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<bool_Func_voidstar_FFI>>(
|
||||
'c_KDDockWidgets__Controllers__Layout__checkSanity')
|
||||
.asFunction();
|
||||
//tag=1029
|
||||
return func(thisCpp) != 0;
|
||||
}
|
||||
//tag=1024
|
||||
} // clearLayout()
|
||||
|
||||
//tag=1027
|
||||
// clearLayout()
|
||||
clearLayout() {
|
||||
//tag=1028
|
||||
final void_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<void_Func_voidstar_FFI>>(
|
||||
'c_KDDockWidgets__Controllers__Layout__clearLayout')
|
||||
.asFunction();
|
||||
//tag=1030
|
||||
func(thisCpp);
|
||||
}
|
||||
//tag=1024
|
||||
} // containsItem(const Layouting::Item * arg__1) const
|
||||
|
||||
//tag=1027
|
||||
// containsItem(const Layouting::Item * arg__1) const
|
||||
bool containsItem(Item? arg__1) {
|
||||
//tag=1028
|
||||
final bool_Func_voidstar_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<bool_Func_voidstar_voidstar_FFI>>(
|
||||
'c_KDDockWidgets__Controllers__Layout__containsItem_Item')
|
||||
.asFunction();
|
||||
//tag=1029
|
||||
return func(thisCpp, arg__1 == null ? ffi.nullptr : arg__1.thisCpp) != 0;
|
||||
}
|
||||
//tag=1024
|
||||
} // count() const
|
||||
|
||||
//tag=1027
|
||||
// count() const
|
||||
int count() {
|
||||
//tag=1028
|
||||
final int_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<int_Func_voidstar_FFI>>(
|
||||
'c_KDDockWidgets__Controllers__Layout__count')
|
||||
.asFunction();
|
||||
//tag=1031
|
||||
return func(thisCpp);
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1035
|
||||
static void customEvent_calledFromC(
|
||||
ffi.Pointer<void> thisCpp, ffi.Pointer<void>? event) {
|
||||
var dartInstance =
|
||||
@@ -122,25 +86,17 @@ class Layout extends Controller {
|
||||
"Dart instance not found for Layout::customEvent(QEvent * event)! (${thisCpp.address})");
|
||||
throw Error();
|
||||
}
|
||||
//tag=1036
|
||||
dartInstance.customEvent(QEvent.fromCppPointer(event));
|
||||
}
|
||||
//tag=1024
|
||||
} // dumpLayout() const
|
||||
|
||||
//tag=1027
|
||||
// dumpLayout() const
|
||||
dumpLayout() {
|
||||
//tag=1028
|
||||
final void_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<void_Func_voidstar_FFI>>(
|
||||
'c_KDDockWidgets__Controllers__Layout__dumpLayout')
|
||||
.asFunction();
|
||||
//tag=1030
|
||||
func(thisCpp);
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1035
|
||||
static int event_calledFromC(
|
||||
ffi.Pointer<void> thisCpp, ffi.Pointer<void>? event) {
|
||||
var dartInstance =
|
||||
@@ -150,13 +106,10 @@ class Layout extends Controller {
|
||||
"Dart instance not found for Layout::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 =
|
||||
@@ -166,160 +119,102 @@ class Layout extends Controller {
|
||||
"Dart instance not found for Layout::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
|
||||
} // isInMainWindow(bool honourNesting) const
|
||||
|
||||
//tag=1027
|
||||
// isInMainWindow(bool honourNesting) const
|
||||
bool isInMainWindow({bool honourNesting = false}) {
|
||||
//tag=1028
|
||||
final bool_Func_voidstar_bool func = _dylib
|
||||
.lookup<ffi.NativeFunction<bool_Func_voidstar_ffi_Int8_FFI>>(
|
||||
'c_KDDockWidgets__Controllers__Layout__isInMainWindow_bool')
|
||||
.asFunction();
|
||||
//tag=1029
|
||||
return func(thisCpp, honourNesting ? 1 : 0) != 0;
|
||||
}
|
||||
//tag=1024
|
||||
} // layoutHeight() const
|
||||
|
||||
//tag=1027
|
||||
// layoutHeight() const
|
||||
int layoutHeight() {
|
||||
//tag=1028
|
||||
final int_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<int_Func_voidstar_FFI>>(
|
||||
'c_KDDockWidgets__Controllers__Layout__layoutHeight')
|
||||
.asFunction();
|
||||
//tag=1031
|
||||
return func(thisCpp);
|
||||
}
|
||||
//tag=1024
|
||||
} // layoutMaximumSizeHint() const
|
||||
|
||||
//tag=1027
|
||||
// layoutMaximumSizeHint() const
|
||||
QSize layoutMaximumSizeHint() {
|
||||
//tag=1028
|
||||
final voidstar_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<voidstar_Func_voidstar_FFI>>(
|
||||
'c_KDDockWidgets__Controllers__Layout__layoutMaximumSizeHint')
|
||||
.asFunction();
|
||||
//tag=1033
|
||||
ffi.Pointer<void> result = func(thisCpp);
|
||||
return QSize.fromCppPointer(result, true);
|
||||
}
|
||||
//tag=1024
|
||||
} // layoutMinimumSize() const
|
||||
|
||||
//tag=1027
|
||||
// layoutMinimumSize() const
|
||||
QSize layoutMinimumSize() {
|
||||
//tag=1028
|
||||
final voidstar_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<voidstar_Func_voidstar_FFI>>(
|
||||
'c_KDDockWidgets__Controllers__Layout__layoutMinimumSize')
|
||||
.asFunction();
|
||||
//tag=1033
|
||||
ffi.Pointer<void> result = func(thisCpp);
|
||||
return QSize.fromCppPointer(result, true);
|
||||
}
|
||||
//tag=1024
|
||||
} // layoutSize() const
|
||||
|
||||
//tag=1027
|
||||
// layoutSize() const
|
||||
QSize layoutSize() {
|
||||
//tag=1028
|
||||
final voidstar_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<voidstar_Func_voidstar_FFI>>(
|
||||
'c_KDDockWidgets__Controllers__Layout__layoutSize')
|
||||
.asFunction();
|
||||
//tag=1033
|
||||
ffi.Pointer<void> result = func(thisCpp);
|
||||
return QSize.fromCppPointer(result, true);
|
||||
}
|
||||
//tag=1024
|
||||
} // layoutWidth() const
|
||||
|
||||
//tag=1027
|
||||
// layoutWidth() const
|
||||
int layoutWidth() {
|
||||
//tag=1028
|
||||
final int_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<int_Func_voidstar_FFI>>(
|
||||
'c_KDDockWidgets__Controllers__Layout__layoutWidth')
|
||||
.asFunction();
|
||||
//tag=1031
|
||||
return func(thisCpp);
|
||||
}
|
||||
//tag=1024
|
||||
} // onResize(QSize newSize)
|
||||
|
||||
//tag=1027
|
||||
// onResize(QSize newSize)
|
||||
bool onResize(QSize newSize) {
|
||||
//tag=1028
|
||||
final bool_Func_voidstar_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<bool_Func_voidstar_voidstar_FFI>>(
|
||||
'c_KDDockWidgets__Controllers__Layout__onResize_QSize')
|
||||
.asFunction();
|
||||
//tag=1029
|
||||
return func(thisCpp, newSize == null ? ffi.nullptr : newSize.thisCpp) != 0;
|
||||
}
|
||||
//tag=1024
|
||||
} // placeholderCount() const
|
||||
|
||||
//tag=1027
|
||||
// placeholderCount() const
|
||||
int placeholderCount() {
|
||||
//tag=1028
|
||||
final int_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<int_Func_voidstar_FFI>>(
|
||||
'c_KDDockWidgets__Controllers__Layout__placeholderCount')
|
||||
.asFunction();
|
||||
//tag=1031
|
||||
return func(thisCpp);
|
||||
}
|
||||
//tag=1024
|
||||
} // removeItem(Layouting::Item * item)
|
||||
|
||||
//tag=1027
|
||||
// removeItem(Layouting::Item * item)
|
||||
removeItem(Item? item) {
|
||||
//tag=1028
|
||||
final void_Func_voidstar_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<void_Func_voidstar_voidstar_FFI>>(
|
||||
'c_KDDockWidgets__Controllers__Layout__removeItem_Item')
|
||||
.asFunction();
|
||||
//tag=1030
|
||||
func(thisCpp, item == null ? ffi.nullptr : item.thisCpp);
|
||||
}
|
||||
//tag=1024
|
||||
} // setLayoutMinimumSize(QSize arg__1)
|
||||
|
||||
//tag=1027
|
||||
// setLayoutMinimumSize(QSize arg__1)
|
||||
setLayoutMinimumSize(QSize arg__1) {
|
||||
//tag=1028
|
||||
final void_Func_voidstar_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<void_Func_voidstar_voidstar_FFI>>(
|
||||
'c_KDDockWidgets__Controllers__Layout__setLayoutMinimumSize_QSize')
|
||||
.asFunction();
|
||||
//tag=1030
|
||||
func(thisCpp, arg__1 == null ? ffi.nullptr : arg__1.thisCpp);
|
||||
}
|
||||
//tag=1024
|
||||
} // setLayoutSize(QSize arg__1)
|
||||
|
||||
//tag=1027
|
||||
// setLayoutSize(QSize arg__1)
|
||||
setLayoutSize(QSize arg__1) {
|
||||
//tag=1028
|
||||
final void_Func_voidstar_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<void_Func_voidstar_voidstar_FFI>>(
|
||||
'c_KDDockWidgets__Controllers__Layout__setLayoutSize_QSize')
|
||||
.asFunction();
|
||||
//tag=1030
|
||||
func(thisCpp, arg__1 == null ? ffi.nullptr : arg__1.thisCpp);
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1035
|
||||
static void setParentView_impl_calledFromC(
|
||||
ffi.Pointer<void> thisCpp, ffi.Pointer<void>? parent) {
|
||||
var dartInstance =
|
||||
@@ -329,50 +224,33 @@ class Layout extends Controller {
|
||||
"Dart instance not found for Layout::setParentView_impl(KDDockWidgets::View * parent)! (${thisCpp.address})");
|
||||
throw Error();
|
||||
}
|
||||
//tag=1036
|
||||
dartInstance.setParentView_impl(View.fromCppPointer(parent));
|
||||
}
|
||||
//tag=1024
|
||||
} // updateSizeConstraints()
|
||||
|
||||
//tag=1027
|
||||
// updateSizeConstraints()
|
||||
updateSizeConstraints() {
|
||||
//tag=1028
|
||||
final void_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<void_Func_voidstar_FFI>>(
|
||||
'c_KDDockWidgets__Controllers__Layout__updateSizeConstraints')
|
||||
.asFunction();
|
||||
//tag=1030
|
||||
func(thisCpp);
|
||||
}
|
||||
//tag=1024
|
||||
} // viewAboutToBeDeleted()
|
||||
|
||||
//tag=1027
|
||||
// viewAboutToBeDeleted()
|
||||
viewAboutToBeDeleted() {
|
||||
//tag=1028
|
||||
final void_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<void_Func_voidstar_FFI>>(
|
||||
'c_KDDockWidgets__Controllers__Layout__viewAboutToBeDeleted')
|
||||
.asFunction();
|
||||
//tag=1030
|
||||
func(thisCpp);
|
||||
}
|
||||
//tag=1024
|
||||
} // visibleCount() const
|
||||
|
||||
//tag=1027
|
||||
// visibleCount() const
|
||||
int visibleCount() {
|
||||
//tag=1028
|
||||
final int_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<int_Func_voidstar_FFI>>(
|
||||
'c_KDDockWidgets__Controllers__Layout__visibleCount')
|
||||
.asFunction();
|
||||
//tag=1031
|
||||
return func(thisCpp);
|
||||
}
|
||||
|
||||
//tag=1022
|
||||
void release() {
|
||||
final void_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<void_Func_voidstar_FFI>>(
|
||||
@@ -381,7 +259,6 @@ class Layout extends Controller {
|
||||
func(thisCpp);
|
||||
}
|
||||
|
||||
//tag=1019
|
||||
String cFunctionSymbolName(int methodId) {
|
||||
switch (methodId) {
|
||||
case 295:
|
||||
@@ -410,32 +287,26 @@ class Layout extends Controller {
|
||||
throw Error();
|
||||
}
|
||||
|
||||
//tag=1020
|
||||
void registerCallbacks() {
|
||||
assert(thisCpp != null);
|
||||
final RegisterMethodIsReimplementedCallback registerCallback = _dylib
|
||||
.lookup<ffi.NativeFunction<RegisterMethodIsReimplementedCallback_FFI>>(
|
||||
'c_KDDockWidgets__Controllers__Layout__registerVirtualMethodCallback')
|
||||
.asFunction();
|
||||
|
||||
//tag=1021
|
||||
final callback295 =
|
||||
ffi.Pointer.fromFunction<void_Func_voidstar_voidstar_FFI>(
|
||||
QObject.customEvent_calledFromC);
|
||||
registerCallback(thisCpp, callback295, 295);
|
||||
const callbackExcept306 = 0;
|
||||
//tag=1021
|
||||
final callback306 =
|
||||
ffi.Pointer.fromFunction<bool_Func_voidstar_voidstar_FFI>(
|
||||
QObject.event_calledFromC, callbackExcept306);
|
||||
registerCallback(thisCpp, callback306, 306);
|
||||
const callbackExcept307 = 0;
|
||||
//tag=1021
|
||||
final callback307 =
|
||||
ffi.Pointer.fromFunction<bool_Func_voidstar_voidstar_voidstar_FFI>(
|
||||
QObject.eventFilter_calledFromC, callbackExcept307);
|
||||
registerCallback(thisCpp, callback307, 307);
|
||||
//tag=1021
|
||||
final callback800 =
|
||||
ffi.Pointer.fromFunction<void_Func_voidstar_voidstar_FFI>(
|
||||
Controller.setParentView_impl_calledFromC);
|
||||
|
||||
@@ -8,13 +8,10 @@
|
||||
|
||||
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;
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -8,21 +8,17 @@
|
||||
|
||||
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;
|
||||
@@ -199,7 +195,6 @@ class QEvent_Type {
|
||||
}
|
||||
|
||||
class QEvent {
|
||||
//tag=1060
|
||||
static var s_dartInstanceByCppPtr = Map<int, QEvent>();
|
||||
var _thisCpp = null;
|
||||
bool _needsAutoDelete = false;
|
||||
@@ -212,25 +207,18 @@ class QEvent {
|
||||
}
|
||||
|
||||
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.init() {} //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')
|
||||
@@ -238,111 +226,69 @@ class QEvent {
|
||||
thisCpp = func(type);
|
||||
QEvent.s_dartInstanceByCppPtr[thisCpp.address] = this;
|
||||
registerCallbacks();
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// accept()
|
||||
} // 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
|
||||
} // ignore()
|
||||
|
||||
//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
|
||||
} // isAccepted() const
|
||||
|
||||
//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)
|
||||
static // 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
|
||||
} // setAccepted(bool accepted)
|
||||
|
||||
//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
|
||||
} // setSpontaneous()
|
||||
|
||||
//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
|
||||
} // spontaneous() const
|
||||
|
||||
//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
|
||||
} // type() const
|
||||
|
||||
//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>>(
|
||||
@@ -351,7 +297,6 @@ class QEvent {
|
||||
func(thisCpp);
|
||||
}
|
||||
|
||||
//tag=1019
|
||||
String cFunctionSymbolName(int methodId) {
|
||||
switch (methodId) {
|
||||
}
|
||||
@@ -364,7 +309,6 @@ class QEvent {
|
||||
throw Error();
|
||||
}
|
||||
|
||||
//tag=1020
|
||||
void registerCallbacks() {
|
||||
assert(thisCpp != null);
|
||||
final RegisterMethodIsReimplementedCallback registerCallback = _dylib
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -8,15 +8,12 @@
|
||||
|
||||
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>>(
|
||||
@@ -24,8 +21,6 @@ final _finalizer =
|
||||
|
||||
class QObject {
|
||||
Map<Function, List<Function>> signalHandlerersBySignal = {};
|
||||
|
||||
//tag=1060
|
||||
static var s_dartInstanceByCppPtr = Map<int, QObject>();
|
||||
var _thisCpp = null;
|
||||
bool _needsAutoDelete = false;
|
||||
@@ -38,25 +33,18 @@ class QObject {
|
||||
}
|
||||
|
||||
static bool isCached(var cppPointer) {
|
||||
//tag=1024
|
||||
return s_dartInstanceByCppPtr.containsKey(cppPointer.address);
|
||||
}
|
||||
|
||||
//tag=1061
|
||||
factory QObject.fromCache(var cppPointer, [needsAutoDelete = false]) {
|
||||
return (s_dartInstanceByCppPtr[cppPointer.address] ??
|
||||
QObject.fromCppPointer(cppPointer, needsAutoDelete)) as QObject;
|
||||
}
|
||||
QObject.fromCppPointer(var cppPointer, [this._needsAutoDelete = false]) {
|
||||
//tag=1024
|
||||
thisCpp = cppPointer;
|
||||
}
|
||||
//tag=1025
|
||||
QObject.init() {}
|
||||
//tag=1023
|
||||
//QObject(QObject * parent)
|
||||
QObject.init() {} //QObject(QObject * parent)
|
||||
QObject({required QObject? parent}) {
|
||||
//tag=1075
|
||||
final voidstar_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<voidstar_Func_voidstar_FFI>>(
|
||||
'c_QObject__constructor_QObject')
|
||||
@@ -64,49 +52,32 @@ class QObject {
|
||||
thisCpp = func(parent == null ? ffi.nullptr : parent.thisCpp);
|
||||
QObject.s_dartInstanceByCppPtr[thisCpp.address] = this;
|
||||
registerCallbacks();
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// blockSignals(bool b)
|
||||
} // blockSignals(bool b)
|
||||
bool blockSignals(bool b) {
|
||||
//tag=1028
|
||||
final bool_Func_voidstar_bool func = _dylib
|
||||
.lookup<ffi.NativeFunction<bool_Func_voidstar_ffi_Int8_FFI>>(
|
||||
'c_QObject__blockSignals_bool')
|
||||
.asFunction();
|
||||
//tag=1029
|
||||
return func(thisCpp, b ? 1 : 0) != 0;
|
||||
}
|
||||
//tag=1024
|
||||
} // children() const
|
||||
|
||||
//tag=1027
|
||||
// children() const
|
||||
QList children() {
|
||||
//tag=1028
|
||||
final voidstar_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<voidstar_Func_voidstar_FFI>>(
|
||||
'c_QObject__children')
|
||||
.asFunction();
|
||||
//tag=1033
|
||||
ffi.Pointer<void> result = func(thisCpp);
|
||||
return QList<QObject>.fromCppPointer(result, false);
|
||||
}
|
||||
//tag=1024
|
||||
} // customEvent(QEvent * event)
|
||||
|
||||
//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(295))
|
||||
.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];
|
||||
@@ -115,148 +86,101 @@ class QObject {
|
||||
"Dart instance not found for QObject::customEvent(QEvent * event)! (${thisCpp.address})");
|
||||
throw Error();
|
||||
}
|
||||
//tag=1036
|
||||
dartInstance.customEvent(QEvent.fromCppPointer(event));
|
||||
}
|
||||
//tag=1024
|
||||
} // deleteLater()
|
||||
|
||||
//tag=1027
|
||||
// deleteLater()
|
||||
deleteLater() {
|
||||
//tag=1028
|
||||
final void_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<void_Func_voidstar_FFI>>(
|
||||
'c_QObject__deleteLater')
|
||||
.asFunction();
|
||||
//tag=1030
|
||||
func(thisCpp);
|
||||
}
|
||||
//tag=1024
|
||||
} // destroyed(QObject * arg__1)
|
||||
|
||||
//tag=1027
|
||||
// destroyed(QObject * arg__1)
|
||||
destroyed({required QObject? arg__1}) {
|
||||
//tag=1028
|
||||
final void_Func_voidstar_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<void_Func_voidstar_voidstar_FFI>>(
|
||||
'c_QObject__destroyed_QObject')
|
||||
.asFunction();
|
||||
//tag=1030
|
||||
func(thisCpp, arg__1 == null ? ffi.nullptr : arg__1.thisCpp);
|
||||
}
|
||||
//tag=1024
|
||||
} // disconnect(const QObject * receiver, const char * member) const
|
||||
|
||||
//tag=1027
|
||||
// disconnect(const QObject * receiver, const char * member) const
|
||||
bool disconnect(QObject? receiver, {String? member}) {
|
||||
//tag=1028
|
||||
final bool_Func_voidstar_voidstar_string func = _dylib
|
||||
.lookup<ffi.NativeFunction<bool_Func_voidstar_voidstar_string_FFI>>(
|
||||
'c_QObject__disconnect_QObject_char')
|
||||
.asFunction();
|
||||
//tag=1029
|
||||
return func(thisCpp, receiver == null ? ffi.nullptr : receiver.thisCpp,
|
||||
member?.toNativeUtf8() ?? ffi.nullptr) !=
|
||||
0;
|
||||
}
|
||||
|
||||
//tag=1024
|
||||
static
|
||||
//tag=1027
|
||||
// disconnect(const QObject * sender, const char * signal, const QObject * receiver, const char * member)
|
||||
static // disconnect(const QObject * sender, const char * signal, const QObject * receiver, const char * member)
|
||||
bool disconnect_2(
|
||||
QObject? sender, String? signal, QObject? receiver, String? member) {
|
||||
//tag=1028
|
||||
final bool_Func_voidstar_string_voidstar_string func = _dylib
|
||||
.lookup<
|
||||
ffi.NativeFunction<
|
||||
bool_Func_voidstar_string_voidstar_string_FFI>>(
|
||||
'c_static_QObject__disconnect_QObject_char_QObject_char')
|
||||
.asFunction();
|
||||
//tag=1029
|
||||
return func(
|
||||
sender == null ? ffi.nullptr : sender.thisCpp,
|
||||
signal?.toNativeUtf8() ?? ffi.nullptr,
|
||||
receiver == null ? ffi.nullptr : receiver.thisCpp,
|
||||
member?.toNativeUtf8() ?? ffi.nullptr) !=
|
||||
0;
|
||||
}
|
||||
//tag=1024
|
||||
} // disconnect(const char * signal, const QObject * receiver, const char * member) const
|
||||
|
||||
//tag=1027
|
||||
// disconnect(const char * signal, const QObject * receiver, const char * member) const
|
||||
bool disconnect_3(
|
||||
{String? signal, required QObject? receiver, String? member}) {
|
||||
//tag=1028
|
||||
final bool_Func_voidstar_string_voidstar_string func = _dylib
|
||||
.lookup<
|
||||
ffi.NativeFunction<
|
||||
bool_Func_voidstar_string_voidstar_string_FFI>>(
|
||||
'c_QObject__disconnect_char_QObject_char')
|
||||
.asFunction();
|
||||
//tag=1029
|
||||
return func(
|
||||
thisCpp,
|
||||
signal?.toNativeUtf8() ?? ffi.nullptr,
|
||||
receiver == null ? ffi.nullptr : receiver.thisCpp,
|
||||
member?.toNativeUtf8() ?? ffi.nullptr) !=
|
||||
0;
|
||||
}
|
||||
//tag=1024
|
||||
} // dumpObjectInfo()
|
||||
|
||||
//tag=1027
|
||||
// dumpObjectInfo()
|
||||
dumpObjectInfo() {
|
||||
//tag=1028
|
||||
final void_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<void_Func_voidstar_FFI>>(
|
||||
'c_QObject__dumpObjectInfo')
|
||||
.asFunction();
|
||||
//tag=1030
|
||||
func(thisCpp);
|
||||
}
|
||||
//tag=1024
|
||||
} // dumpObjectTree()
|
||||
|
||||
//tag=1027
|
||||
// dumpObjectTree()
|
||||
dumpObjectTree() {
|
||||
//tag=1028
|
||||
final void_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<void_Func_voidstar_FFI>>(
|
||||
'c_QObject__dumpObjectTree')
|
||||
.asFunction();
|
||||
//tag=1030
|
||||
func(thisCpp);
|
||||
}
|
||||
//tag=1024
|
||||
} // dynamicPropertyNames() const
|
||||
|
||||
//tag=1027
|
||||
// dynamicPropertyNames() const
|
||||
QList dynamicPropertyNames() {
|
||||
//tag=1028
|
||||
final voidstar_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<voidstar_Func_voidstar_FFI>>(
|
||||
'c_QObject__dynamicPropertyNames')
|
||||
.asFunction();
|
||||
//tag=1033
|
||||
ffi.Pointer<void> result = func(thisCpp);
|
||||
return QList<QByteArray>.fromCppPointer(result, true);
|
||||
}
|
||||
//tag=1024
|
||||
} // event(QEvent * event)
|
||||
|
||||
//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(306))
|
||||
.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];
|
||||
@@ -265,27 +189,20 @@ class QObject {
|
||||
"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
|
||||
} // eventFilter(QObject * watched, QEvent * event)
|
||||
|
||||
//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(307))
|
||||
.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];
|
||||
@@ -294,227 +211,145 @@ class QObject {
|
||||
"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
|
||||
} // inherits(const char * classname) const
|
||||
|
||||
//tag=1027
|
||||
// inherits(const char * classname) const
|
||||
bool inherits(String? classname) {
|
||||
//tag=1028
|
||||
final bool_Func_voidstar_string func = _dylib
|
||||
.lookup<ffi.NativeFunction<bool_Func_voidstar_string_FFI>>(
|
||||
'c_QObject__inherits_char')
|
||||
.asFunction();
|
||||
//tag=1029
|
||||
return func(thisCpp, classname?.toNativeUtf8() ?? ffi.nullptr) != 0;
|
||||
}
|
||||
//tag=1024
|
||||
} // installEventFilter(QObject * filterObj)
|
||||
|
||||
//tag=1027
|
||||
// installEventFilter(QObject * filterObj)
|
||||
installEventFilter(QObject? filterObj) {
|
||||
//tag=1028
|
||||
final void_Func_voidstar_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<void_Func_voidstar_voidstar_FFI>>(
|
||||
'c_QObject__installEventFilter_QObject')
|
||||
.asFunction();
|
||||
//tag=1030
|
||||
func(thisCpp, filterObj == null ? ffi.nullptr : filterObj.thisCpp);
|
||||
}
|
||||
//tag=1024
|
||||
} // isWidgetType() const
|
||||
|
||||
//tag=1027
|
||||
// isWidgetType() const
|
||||
bool isWidgetType() {
|
||||
//tag=1028
|
||||
final bool_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<bool_Func_voidstar_FFI>>(
|
||||
'c_QObject__isWidgetType')
|
||||
.asFunction();
|
||||
//tag=1029
|
||||
return func(thisCpp) != 0;
|
||||
}
|
||||
//tag=1024
|
||||
} // isWindowType() const
|
||||
|
||||
//tag=1027
|
||||
// isWindowType() const
|
||||
bool isWindowType() {
|
||||
//tag=1028
|
||||
final bool_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<bool_Func_voidstar_FFI>>(
|
||||
'c_QObject__isWindowType')
|
||||
.asFunction();
|
||||
//tag=1029
|
||||
return func(thisCpp) != 0;
|
||||
}
|
||||
//tag=1024
|
||||
} // killTimer(int id)
|
||||
|
||||
//tag=1027
|
||||
// killTimer(int id)
|
||||
killTimer(int id) {
|
||||
//tag=1028
|
||||
final void_Func_voidstar_int func = _dylib
|
||||
.lookup<ffi.NativeFunction<void_Func_voidstar_ffi_Int32_FFI>>(
|
||||
'c_QObject__killTimer_int')
|
||||
.asFunction();
|
||||
//tag=1030
|
||||
func(thisCpp, id);
|
||||
}
|
||||
//tag=1024
|
||||
} // objectName() const
|
||||
|
||||
//tag=1027
|
||||
// objectName() const
|
||||
QString objectName() {
|
||||
//tag=1028
|
||||
final voidstar_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<voidstar_Func_voidstar_FFI>>(
|
||||
'c_QObject__objectName')
|
||||
.asFunction();
|
||||
//tag=1033
|
||||
ffi.Pointer<void> result = func(thisCpp);
|
||||
return QString.fromCppPointer(result, true);
|
||||
}
|
||||
//tag=1024
|
||||
} // parent() const
|
||||
|
||||
//tag=1027
|
||||
// parent() const
|
||||
QObject parent() {
|
||||
//tag=1028
|
||||
final voidstar_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<voidstar_Func_voidstar_FFI>>(
|
||||
'c_QObject__parent')
|
||||
.asFunction();
|
||||
//tag=1033
|
||||
ffi.Pointer<void> result = func(thisCpp);
|
||||
return QObject.fromCppPointer(result, false);
|
||||
}
|
||||
//tag=1024
|
||||
} // receivers(const char * signal) const
|
||||
|
||||
//tag=1027
|
||||
// receivers(const char * signal) const
|
||||
int receivers(String? signal) {
|
||||
//tag=1028
|
||||
final int_Func_voidstar_string func = _dylib
|
||||
.lookup<ffi.NativeFunction<int_Func_voidstar_string_FFI>>(
|
||||
'c_QObject__receivers_char')
|
||||
.asFunction();
|
||||
//tag=1031
|
||||
return func(thisCpp, signal?.toNativeUtf8() ?? ffi.nullptr);
|
||||
}
|
||||
//tag=1024
|
||||
} // removeEventFilter(QObject * obj)
|
||||
|
||||
//tag=1027
|
||||
// removeEventFilter(QObject * obj)
|
||||
removeEventFilter(QObject? obj) {
|
||||
//tag=1028
|
||||
final void_Func_voidstar_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<void_Func_voidstar_voidstar_FFI>>(
|
||||
'c_QObject__removeEventFilter_QObject')
|
||||
.asFunction();
|
||||
//tag=1030
|
||||
func(thisCpp, obj == null ? ffi.nullptr : obj.thisCpp);
|
||||
}
|
||||
//tag=1024
|
||||
} // sender() const
|
||||
|
||||
//tag=1027
|
||||
// sender() const
|
||||
QObject sender() {
|
||||
//tag=1028
|
||||
final voidstar_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<voidstar_Func_voidstar_FFI>>(
|
||||
'c_QObject__sender')
|
||||
.asFunction();
|
||||
//tag=1033
|
||||
ffi.Pointer<void> result = func(thisCpp);
|
||||
return QObject.fromCppPointer(result, false);
|
||||
}
|
||||
//tag=1024
|
||||
} // senderSignalIndex() const
|
||||
|
||||
//tag=1027
|
||||
// senderSignalIndex() const
|
||||
int senderSignalIndex() {
|
||||
//tag=1028
|
||||
final int_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<int_Func_voidstar_FFI>>(
|
||||
'c_QObject__senderSignalIndex')
|
||||
.asFunction();
|
||||
//tag=1031
|
||||
return func(thisCpp);
|
||||
}
|
||||
//tag=1024
|
||||
} // setObjectName(const QString & name)
|
||||
|
||||
//tag=1027
|
||||
// setObjectName(const QString & name)
|
||||
setObjectName(String? name) {
|
||||
//tag=1028
|
||||
final void_Func_voidstar_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<void_Func_voidstar_voidstar_FFI>>(
|
||||
'c_QObject__setObjectName_QString')
|
||||
.asFunction();
|
||||
//tag=1030
|
||||
func(thisCpp, name?.toNativeUtf8() ?? ffi.nullptr);
|
||||
}
|
||||
//tag=1024
|
||||
} // setParent(QObject * parent)
|
||||
|
||||
//tag=1027
|
||||
// setParent(QObject * parent)
|
||||
setParent(QObject? parent) {
|
||||
//tag=1028
|
||||
final void_Func_voidstar_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<void_Func_voidstar_voidstar_FFI>>(
|
||||
'c_QObject__setParent_QObject')
|
||||
.asFunction();
|
||||
//tag=1030
|
||||
func(thisCpp, parent == null ? ffi.nullptr : parent.thisCpp);
|
||||
}
|
||||
//tag=1024
|
||||
} // signalsBlocked() const
|
||||
|
||||
//tag=1027
|
||||
// signalsBlocked() const
|
||||
bool signalsBlocked() {
|
||||
//tag=1028
|
||||
final bool_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<bool_Func_voidstar_FFI>>(
|
||||
'c_QObject__signalsBlocked')
|
||||
.asFunction();
|
||||
//tag=1029
|
||||
return func(thisCpp) != 0;
|
||||
}
|
||||
//tag=1024
|
||||
} // startTimer(int interval)
|
||||
|
||||
//tag=1027
|
||||
// startTimer(int interval)
|
||||
int startTimer(int interval) {
|
||||
//tag=1028
|
||||
final int_Func_voidstar_int func = _dylib
|
||||
.lookup<ffi.NativeFunction<int_Func_voidstar_ffi_Int32_FFI>>(
|
||||
'c_QObject__startTimer_int')
|
||||
.asFunction();
|
||||
//tag=1031
|
||||
return func(thisCpp, interval);
|
||||
}
|
||||
|
||||
//tag=1024
|
||||
static
|
||||
//tag=1027
|
||||
// tr(const char * s, const char * c, int n)
|
||||
static // tr(const char * s, const char * c, int n)
|
||||
QString tr(String? s, String? c, int n) {
|
||||
//tag=1028
|
||||
final voidstar_Func_string_string_int func = _dylib
|
||||
.lookup<ffi.NativeFunction<voidstar_Func_string_string_ffi_Int32_FFI>>(
|
||||
'c_static_QObject__tr_char_char_int')
|
||||
.asFunction();
|
||||
//tag=1033
|
||||
ffi.Pointer<void> result = func(
|
||||
s?.toNativeUtf8() ?? ffi.nullptr, c?.toNativeUtf8() ?? ffi.nullptr, n);
|
||||
return QString.fromCppPointer(result, true);
|
||||
}
|
||||
|
||||
//tag=1022
|
||||
void release() {
|
||||
final void_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<void_Func_voidstar_FFI>>(
|
||||
@@ -523,7 +358,6 @@ class QObject {
|
||||
func(thisCpp);
|
||||
}
|
||||
|
||||
//tag=1019
|
||||
String cFunctionSymbolName(int methodId) {
|
||||
switch (methodId) {
|
||||
case 295:
|
||||
@@ -548,27 +382,22 @@ class QObject {
|
||||
throw Error();
|
||||
}
|
||||
|
||||
//tag=1020
|
||||
void registerCallbacks() {
|
||||
assert(thisCpp != null);
|
||||
final RegisterMethodIsReimplementedCallback registerCallback = _dylib
|
||||
.lookup<ffi.NativeFunction<RegisterMethodIsReimplementedCallback_FFI>>(
|
||||
'c_QObject__registerVirtualMethodCallback')
|
||||
.asFunction();
|
||||
|
||||
//tag=1021
|
||||
final callback295 =
|
||||
ffi.Pointer.fromFunction<void_Func_voidstar_voidstar_FFI>(
|
||||
QObject.customEvent_calledFromC);
|
||||
registerCallback(thisCpp, callback295, 295);
|
||||
const callbackExcept306 = 0;
|
||||
//tag=1021
|
||||
final callback306 =
|
||||
ffi.Pointer.fromFunction<bool_Func_voidstar_voidstar_FFI>(
|
||||
QObject.event_calledFromC, callbackExcept306);
|
||||
registerCallback(thisCpp, callback306, 306);
|
||||
const callbackExcept307 = 0;
|
||||
//tag=1021
|
||||
final callback307 =
|
||||
ffi.Pointer.fromFunction<bool_Func_voidstar_voidstar_voidstar_FFI>(
|
||||
QObject.eventFilter_calledFromC, callbackExcept307);
|
||||
|
||||
@@ -8,22 +8,18 @@
|
||||
|
||||
Contact KDAB at <info@kdab.com> for commercial licensing options.
|
||||
*/
|
||||
|
||||
//tag=1052
|
||||
import 'dart:ffi' as ffi;
|
||||
import 'package:ffi/ffi.dart';
|
||||
import 'TypeHelpers.dart';
|
||||
import '../Bindings.dart';
|
||||
import '../FinalizerHelpers.dart';
|
||||
|
||||
//tag=1051
|
||||
var _dylib = Library.instance().dylib;
|
||||
final _finalizer =
|
||||
_dylib.lookup<ffi.NativeFunction<Dart_WeakPersistentHandleFinalizer_Type>>(
|
||||
'c_QPoint_Finalizer');
|
||||
|
||||
class QPoint {
|
||||
//tag=1060
|
||||
static var s_dartInstanceByCppPtr = Map<int, QPoint>();
|
||||
var _thisCpp = null;
|
||||
bool _needsAutoDelete = true;
|
||||
@@ -36,36 +32,26 @@ class QPoint {
|
||||
}
|
||||
|
||||
static bool isCached(var cppPointer) {
|
||||
//tag=1024
|
||||
return s_dartInstanceByCppPtr.containsKey(cppPointer.address);
|
||||
}
|
||||
|
||||
//tag=1061
|
||||
factory QPoint.fromCache(var cppPointer, [needsAutoDelete = false]) {
|
||||
return (s_dartInstanceByCppPtr[cppPointer.address] ??
|
||||
QPoint.fromCppPointer(cppPointer, needsAutoDelete)) as QPoint;
|
||||
}
|
||||
QPoint.fromCppPointer(var cppPointer, [this._needsAutoDelete = false]) {
|
||||
//tag=1024
|
||||
thisCpp = cppPointer;
|
||||
}
|
||||
//tag=1025
|
||||
QPoint.init() {}
|
||||
//tag=1023
|
||||
//QPoint()
|
||||
QPoint.init() {} //QPoint()
|
||||
QPoint() {
|
||||
//tag=1075
|
||||
final voidstar_Func_void func = _dylib
|
||||
.lookup<ffi.NativeFunction<voidstar_Func_void_FFI>>(
|
||||
'c_QPoint__constructor')
|
||||
.asFunction();
|
||||
thisCpp = func();
|
||||
QPoint.s_dartInstanceByCppPtr[thisCpp.address] = this;
|
||||
}
|
||||
//tag=1023
|
||||
//QPoint(int xpos, int ypos)
|
||||
} //QPoint(int xpos, int ypos)
|
||||
QPoint.ctor2(int xpos, int ypos) {
|
||||
//tag=1075
|
||||
final voidstar_Func_int_int func = _dylib
|
||||
.lookup<ffi.NativeFunction<voidstar_Func_ffi_Int32_ffi_Int32_FFI>>(
|
||||
'c_QPoint__constructor_int_int')
|
||||
@@ -73,111 +59,70 @@ class QPoint {
|
||||
thisCpp = func(xpos, ypos);
|
||||
QPoint.s_dartInstanceByCppPtr[thisCpp.address] = this;
|
||||
}
|
||||
//tag=1024
|
||||
static
|
||||
//tag=1027
|
||||
// dotProduct(const QPoint & p1, const QPoint & p2)
|
||||
static // dotProduct(const QPoint & p1, const QPoint & p2)
|
||||
int dotProduct(QPoint? p1, QPoint? p2) {
|
||||
//tag=1028
|
||||
final int_Func_voidstar_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<int_Func_voidstar_voidstar_FFI>>(
|
||||
'c_static_QPoint__dotProduct_QPoint_QPoint')
|
||||
.asFunction();
|
||||
//tag=1031
|
||||
return func(p1 == null ? ffi.nullptr : p1.thisCpp,
|
||||
p2 == null ? ffi.nullptr : p2.thisCpp);
|
||||
}
|
||||
//tag=1024
|
||||
} // isNull() const
|
||||
|
||||
//tag=1027
|
||||
// isNull() const
|
||||
bool isNull() {
|
||||
//tag=1028
|
||||
final bool_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<bool_Func_voidstar_FFI>>('c_QPoint__isNull')
|
||||
.asFunction();
|
||||
//tag=1029
|
||||
return func(thisCpp) != 0;
|
||||
}
|
||||
//tag=1024
|
||||
} // manhattanLength() const
|
||||
|
||||
//tag=1027
|
||||
// manhattanLength() const
|
||||
int manhattanLength() {
|
||||
//tag=1028
|
||||
final int_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<int_Func_voidstar_FFI>>(
|
||||
'c_QPoint__manhattanLength')
|
||||
.asFunction();
|
||||
//tag=1031
|
||||
return func(thisCpp);
|
||||
}
|
||||
//tag=1024
|
||||
} // setX(int x)
|
||||
|
||||
//tag=1027
|
||||
// setX(int x)
|
||||
setX(int x) {
|
||||
//tag=1028
|
||||
final void_Func_voidstar_int func = _dylib
|
||||
.lookup<ffi.NativeFunction<void_Func_voidstar_ffi_Int32_FFI>>(
|
||||
'c_QPoint__setX_int')
|
||||
.asFunction();
|
||||
//tag=1030
|
||||
func(thisCpp, x);
|
||||
}
|
||||
//tag=1024
|
||||
} // setY(int y)
|
||||
|
||||
//tag=1027
|
||||
// setY(int y)
|
||||
setY(int y) {
|
||||
//tag=1028
|
||||
final void_Func_voidstar_int func = _dylib
|
||||
.lookup<ffi.NativeFunction<void_Func_voidstar_ffi_Int32_FFI>>(
|
||||
'c_QPoint__setY_int')
|
||||
.asFunction();
|
||||
//tag=1030
|
||||
func(thisCpp, y);
|
||||
}
|
||||
//tag=1024
|
||||
} // transposed() const
|
||||
|
||||
//tag=1027
|
||||
// transposed() const
|
||||
QPoint transposed() {
|
||||
//tag=1028
|
||||
final voidstar_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<voidstar_Func_voidstar_FFI>>(
|
||||
'c_QPoint__transposed')
|
||||
.asFunction();
|
||||
//tag=1033
|
||||
ffi.Pointer<void> result = func(thisCpp);
|
||||
return QPoint.fromCppPointer(result, true);
|
||||
}
|
||||
//tag=1024
|
||||
} // x() const
|
||||
|
||||
//tag=1027
|
||||
// x() const
|
||||
int x() {
|
||||
//tag=1028
|
||||
final int_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<int_Func_voidstar_FFI>>('c_QPoint__x')
|
||||
.asFunction();
|
||||
//tag=1031
|
||||
return func(thisCpp);
|
||||
}
|
||||
//tag=1024
|
||||
} // y() const
|
||||
|
||||
//tag=1027
|
||||
// y() const
|
||||
int y() {
|
||||
//tag=1028
|
||||
final int_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<int_Func_voidstar_FFI>>('c_QPoint__y')
|
||||
.asFunction();
|
||||
//tag=1031
|
||||
return func(thisCpp);
|
||||
}
|
||||
|
||||
//tag=1022
|
||||
void release() {
|
||||
final void_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<void_Func_voidstar_FFI>>(
|
||||
|
||||
@@ -8,22 +8,18 @@
|
||||
|
||||
Contact KDAB at <info@kdab.com> for commercial licensing options.
|
||||
*/
|
||||
|
||||
//tag=1052
|
||||
import 'dart:ffi' as ffi;
|
||||
import 'package:ffi/ffi.dart';
|
||||
import 'TypeHelpers.dart';
|
||||
import '../Bindings.dart';
|
||||
import '../FinalizerHelpers.dart';
|
||||
|
||||
//tag=1051
|
||||
var _dylib = Library.instance().dylib;
|
||||
final _finalizer =
|
||||
_dylib.lookup<ffi.NativeFunction<Dart_WeakPersistentHandleFinalizer_Type>>(
|
||||
'c_QRect_Finalizer');
|
||||
|
||||
class QRect {
|
||||
//tag=1060
|
||||
static var s_dartInstanceByCppPtr = Map<int, QRect>();
|
||||
var _thisCpp = null;
|
||||
bool _needsAutoDelete = true;
|
||||
@@ -36,36 +32,26 @@ class QRect {
|
||||
}
|
||||
|
||||
static bool isCached(var cppPointer) {
|
||||
//tag=1024
|
||||
return s_dartInstanceByCppPtr.containsKey(cppPointer.address);
|
||||
}
|
||||
|
||||
//tag=1061
|
||||
factory QRect.fromCache(var cppPointer, [needsAutoDelete = false]) {
|
||||
return (s_dartInstanceByCppPtr[cppPointer.address] ??
|
||||
QRect.fromCppPointer(cppPointer, needsAutoDelete)) as QRect;
|
||||
}
|
||||
QRect.fromCppPointer(var cppPointer, [this._needsAutoDelete = false]) {
|
||||
//tag=1024
|
||||
thisCpp = cppPointer;
|
||||
}
|
||||
//tag=1025
|
||||
QRect.init() {}
|
||||
//tag=1023
|
||||
//QRect()
|
||||
QRect.init() {} //QRect()
|
||||
QRect() {
|
||||
//tag=1075
|
||||
final voidstar_Func_void func = _dylib
|
||||
.lookup<ffi.NativeFunction<voidstar_Func_void_FFI>>(
|
||||
'c_QRect__constructor')
|
||||
.asFunction();
|
||||
thisCpp = func();
|
||||
QRect.s_dartInstanceByCppPtr[thisCpp.address] = this;
|
||||
}
|
||||
//tag=1023
|
||||
//QRect(const QPoint & topleft, const QPoint & bottomright)
|
||||
} //QRect(const QPoint & topleft, const QPoint & bottomright)
|
||||
QRect.ctor2(QPoint? topleft, QPoint? bottomright) {
|
||||
//tag=1075
|
||||
final voidstar_Func_voidstar_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<voidstar_Func_voidstar_voidstar_FFI>>(
|
||||
'c_QRect__constructor_QPoint_QPoint')
|
||||
@@ -73,11 +59,8 @@ class QRect {
|
||||
thisCpp = func(topleft == null ? ffi.nullptr : topleft.thisCpp,
|
||||
bottomright == null ? ffi.nullptr : bottomright.thisCpp);
|
||||
QRect.s_dartInstanceByCppPtr[thisCpp.address] = this;
|
||||
}
|
||||
//tag=1023
|
||||
//QRect(const QPoint & topleft, const QSize & size)
|
||||
} //QRect(const QPoint & topleft, const QSize & size)
|
||||
QRect.ctor3(QPoint? topleft, QSize? size) {
|
||||
//tag=1075
|
||||
final voidstar_Func_voidstar_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<voidstar_Func_voidstar_voidstar_FFI>>(
|
||||
'c_QRect__constructor_QPoint_QSize')
|
||||
@@ -85,11 +68,8 @@ class QRect {
|
||||
thisCpp = func(topleft == null ? ffi.nullptr : topleft.thisCpp,
|
||||
size == null ? ffi.nullptr : size.thisCpp);
|
||||
QRect.s_dartInstanceByCppPtr[thisCpp.address] = this;
|
||||
}
|
||||
//tag=1023
|
||||
//QRect(int left, int top, int width, int height)
|
||||
} //QRect(int left, int top, int width, int height)
|
||||
QRect.ctor4(int left, int top, int width, int height) {
|
||||
//tag=1075
|
||||
final voidstar_Func_int_int_int_int func = _dylib
|
||||
.lookup<
|
||||
ffi.NativeFunction<
|
||||
@@ -98,781 +78,489 @@ class QRect {
|
||||
.asFunction();
|
||||
thisCpp = func(left, top, width, height);
|
||||
QRect.s_dartInstanceByCppPtr[thisCpp.address] = this;
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// adjust(int x1, int y1, int x2, int y2)
|
||||
} // adjust(int x1, int y1, int x2, int y2)
|
||||
adjust(int x1, int y1, int x2, int y2) {
|
||||
//tag=1028
|
||||
final void_Func_voidstar_int_int_int_int func = _dylib
|
||||
.lookup<
|
||||
ffi.NativeFunction<
|
||||
void_Func_voidstar_ffi_Int32_ffi_Int32_ffi_Int32_ffi_Int32_FFI>>(
|
||||
'c_QRect__adjust_int_int_int_int')
|
||||
.asFunction();
|
||||
//tag=1030
|
||||
func(thisCpp, x1, y1, x2, y2);
|
||||
}
|
||||
//tag=1024
|
||||
} // adjusted(int x1, int y1, int x2, int y2) const
|
||||
|
||||
//tag=1027
|
||||
// adjusted(int x1, int y1, int x2, int y2) const
|
||||
QRect adjusted(int x1, int y1, int x2, int y2) {
|
||||
//tag=1028
|
||||
final voidstar_Func_voidstar_int_int_int_int func = _dylib
|
||||
.lookup<
|
||||
ffi.NativeFunction<
|
||||
voidstar_Func_voidstar_ffi_Int32_ffi_Int32_ffi_Int32_ffi_Int32_FFI>>(
|
||||
'c_QRect__adjusted_int_int_int_int')
|
||||
.asFunction();
|
||||
//tag=1033
|
||||
ffi.Pointer<void> result = func(thisCpp, x1, y1, x2, y2);
|
||||
return QRect.fromCppPointer(result, true);
|
||||
}
|
||||
//tag=1024
|
||||
} // bottom() const
|
||||
|
||||
//tag=1027
|
||||
// bottom() const
|
||||
int bottom() {
|
||||
//tag=1028
|
||||
final int_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<int_Func_voidstar_FFI>>('c_QRect__bottom')
|
||||
.asFunction();
|
||||
//tag=1031
|
||||
return func(thisCpp);
|
||||
}
|
||||
//tag=1024
|
||||
} // bottomLeft() const
|
||||
|
||||
//tag=1027
|
||||
// bottomLeft() const
|
||||
QPoint bottomLeft() {
|
||||
//tag=1028
|
||||
final voidstar_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<voidstar_Func_voidstar_FFI>>(
|
||||
'c_QRect__bottomLeft')
|
||||
.asFunction();
|
||||
//tag=1033
|
||||
ffi.Pointer<void> result = func(thisCpp);
|
||||
return QPoint.fromCppPointer(result, true);
|
||||
}
|
||||
//tag=1024
|
||||
} // bottomRight() const
|
||||
|
||||
//tag=1027
|
||||
// bottomRight() const
|
||||
QPoint bottomRight() {
|
||||
//tag=1028
|
||||
final voidstar_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<voidstar_Func_voidstar_FFI>>(
|
||||
'c_QRect__bottomRight')
|
||||
.asFunction();
|
||||
//tag=1033
|
||||
ffi.Pointer<void> result = func(thisCpp);
|
||||
return QPoint.fromCppPointer(result, true);
|
||||
}
|
||||
//tag=1024
|
||||
} // center() const
|
||||
|
||||
//tag=1027
|
||||
// center() const
|
||||
QPoint center() {
|
||||
//tag=1028
|
||||
final voidstar_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<voidstar_Func_voidstar_FFI>>(
|
||||
'c_QRect__center')
|
||||
.asFunction();
|
||||
//tag=1033
|
||||
ffi.Pointer<void> result = func(thisCpp);
|
||||
return QPoint.fromCppPointer(result, true);
|
||||
}
|
||||
//tag=1024
|
||||
} // contains(const QPoint & p, bool proper) const
|
||||
|
||||
//tag=1027
|
||||
// contains(const QPoint & p, bool proper) const
|
||||
bool contains(QPoint? p, {bool proper = false}) {
|
||||
//tag=1028
|
||||
final bool_Func_voidstar_voidstar_bool func = _dylib
|
||||
.lookup<ffi.NativeFunction<bool_Func_voidstar_voidstar_ffi_Int8_FFI>>(
|
||||
'c_QRect__contains_QPoint_bool')
|
||||
.asFunction();
|
||||
//tag=1029
|
||||
return func(thisCpp, p == null ? ffi.nullptr : p.thisCpp, proper ? 1 : 0) !=
|
||||
0;
|
||||
}
|
||||
//tag=1024
|
||||
} // contains(const QRect & r, bool proper) const
|
||||
|
||||
//tag=1027
|
||||
// contains(const QRect & r, bool proper) const
|
||||
bool contains_2(QRect? r, {bool proper = false}) {
|
||||
//tag=1028
|
||||
final bool_Func_voidstar_voidstar_bool func = _dylib
|
||||
.lookup<ffi.NativeFunction<bool_Func_voidstar_voidstar_ffi_Int8_FFI>>(
|
||||
'c_QRect__contains_QRect_bool')
|
||||
.asFunction();
|
||||
//tag=1029
|
||||
return func(thisCpp, r == null ? ffi.nullptr : r.thisCpp, proper ? 1 : 0) !=
|
||||
0;
|
||||
}
|
||||
//tag=1024
|
||||
} // contains(int x, int y) const
|
||||
|
||||
//tag=1027
|
||||
// contains(int x, int y) const
|
||||
bool contains_3(int x, int y) {
|
||||
//tag=1028
|
||||
final bool_Func_voidstar_int_int func = _dylib
|
||||
.lookup<ffi.NativeFunction<bool_Func_voidstar_ffi_Int32_ffi_Int32_FFI>>(
|
||||
'c_QRect__contains_int_int')
|
||||
.asFunction();
|
||||
//tag=1029
|
||||
return func(thisCpp, x, y) != 0;
|
||||
}
|
||||
//tag=1024
|
||||
} // contains(int x, int y, bool proper) const
|
||||
|
||||
//tag=1027
|
||||
// contains(int x, int y, bool proper) const
|
||||
bool contains_4(int x, int y, bool proper) {
|
||||
//tag=1028
|
||||
final bool_Func_voidstar_int_int_bool func = _dylib
|
||||
.lookup<
|
||||
ffi.NativeFunction<
|
||||
bool_Func_voidstar_ffi_Int32_ffi_Int32_ffi_Int8_FFI>>(
|
||||
'c_QRect__contains_int_int_bool')
|
||||
.asFunction();
|
||||
//tag=1029
|
||||
return func(thisCpp, x, y, proper ? 1 : 0) != 0;
|
||||
}
|
||||
//tag=1024
|
||||
} // height() const
|
||||
|
||||
//tag=1027
|
||||
// height() const
|
||||
int height() {
|
||||
//tag=1028
|
||||
final int_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<int_Func_voidstar_FFI>>('c_QRect__height')
|
||||
.asFunction();
|
||||
//tag=1031
|
||||
return func(thisCpp);
|
||||
}
|
||||
//tag=1024
|
||||
} // intersected(const QRect & other) const
|
||||
|
||||
//tag=1027
|
||||
// intersected(const QRect & other) const
|
||||
QRect intersected(QRect? other) {
|
||||
//tag=1028
|
||||
final voidstar_Func_voidstar_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<voidstar_Func_voidstar_voidstar_FFI>>(
|
||||
'c_QRect__intersected_QRect')
|
||||
.asFunction();
|
||||
//tag=1033
|
||||
ffi.Pointer<void> result =
|
||||
func(thisCpp, other == null ? ffi.nullptr : other.thisCpp);
|
||||
return QRect.fromCppPointer(result, true);
|
||||
}
|
||||
//tag=1024
|
||||
} // intersects(const QRect & r) const
|
||||
|
||||
//tag=1027
|
||||
// intersects(const QRect & r) const
|
||||
bool intersects(QRect? r) {
|
||||
//tag=1028
|
||||
final bool_Func_voidstar_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<bool_Func_voidstar_voidstar_FFI>>(
|
||||
'c_QRect__intersects_QRect')
|
||||
.asFunction();
|
||||
//tag=1029
|
||||
return func(thisCpp, r == null ? ffi.nullptr : r.thisCpp) != 0;
|
||||
}
|
||||
//tag=1024
|
||||
} // isEmpty() const
|
||||
|
||||
//tag=1027
|
||||
// isEmpty() const
|
||||
bool isEmpty() {
|
||||
//tag=1028
|
||||
final bool_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<bool_Func_voidstar_FFI>>('c_QRect__isEmpty')
|
||||
.asFunction();
|
||||
//tag=1029
|
||||
return func(thisCpp) != 0;
|
||||
}
|
||||
//tag=1024
|
||||
} // isNull() const
|
||||
|
||||
//tag=1027
|
||||
// isNull() const
|
||||
bool isNull() {
|
||||
//tag=1028
|
||||
final bool_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<bool_Func_voidstar_FFI>>('c_QRect__isNull')
|
||||
.asFunction();
|
||||
//tag=1029
|
||||
return func(thisCpp) != 0;
|
||||
}
|
||||
//tag=1024
|
||||
} // isValid() const
|
||||
|
||||
//tag=1027
|
||||
// isValid() const
|
||||
bool isValid() {
|
||||
//tag=1028
|
||||
final bool_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<bool_Func_voidstar_FFI>>('c_QRect__isValid')
|
||||
.asFunction();
|
||||
//tag=1029
|
||||
return func(thisCpp) != 0;
|
||||
}
|
||||
//tag=1024
|
||||
} // left() const
|
||||
|
||||
//tag=1027
|
||||
// left() const
|
||||
int left() {
|
||||
//tag=1028
|
||||
final int_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<int_Func_voidstar_FFI>>('c_QRect__left')
|
||||
.asFunction();
|
||||
//tag=1031
|
||||
return func(thisCpp);
|
||||
}
|
||||
//tag=1024
|
||||
} // moveBottom(int pos)
|
||||
|
||||
//tag=1027
|
||||
// moveBottom(int pos)
|
||||
moveBottom(int pos) {
|
||||
//tag=1028
|
||||
final void_Func_voidstar_int func = _dylib
|
||||
.lookup<ffi.NativeFunction<void_Func_voidstar_ffi_Int32_FFI>>(
|
||||
'c_QRect__moveBottom_int')
|
||||
.asFunction();
|
||||
//tag=1030
|
||||
func(thisCpp, pos);
|
||||
}
|
||||
//tag=1024
|
||||
} // moveBottomLeft(const QPoint & p)
|
||||
|
||||
//tag=1027
|
||||
// moveBottomLeft(const QPoint & p)
|
||||
moveBottomLeft(QPoint? p) {
|
||||
//tag=1028
|
||||
final void_Func_voidstar_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<void_Func_voidstar_voidstar_FFI>>(
|
||||
'c_QRect__moveBottomLeft_QPoint')
|
||||
.asFunction();
|
||||
//tag=1030
|
||||
func(thisCpp, p == null ? ffi.nullptr : p.thisCpp);
|
||||
}
|
||||
//tag=1024
|
||||
} // moveBottomRight(const QPoint & p)
|
||||
|
||||
//tag=1027
|
||||
// moveBottomRight(const QPoint & p)
|
||||
moveBottomRight(QPoint? p) {
|
||||
//tag=1028
|
||||
final void_Func_voidstar_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<void_Func_voidstar_voidstar_FFI>>(
|
||||
'c_QRect__moveBottomRight_QPoint')
|
||||
.asFunction();
|
||||
//tag=1030
|
||||
func(thisCpp, p == null ? ffi.nullptr : p.thisCpp);
|
||||
}
|
||||
//tag=1024
|
||||
} // moveCenter(const QPoint & p)
|
||||
|
||||
//tag=1027
|
||||
// moveCenter(const QPoint & p)
|
||||
moveCenter(QPoint? p) {
|
||||
//tag=1028
|
||||
final void_Func_voidstar_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<void_Func_voidstar_voidstar_FFI>>(
|
||||
'c_QRect__moveCenter_QPoint')
|
||||
.asFunction();
|
||||
//tag=1030
|
||||
func(thisCpp, p == null ? ffi.nullptr : p.thisCpp);
|
||||
}
|
||||
//tag=1024
|
||||
} // moveLeft(int pos)
|
||||
|
||||
//tag=1027
|
||||
// moveLeft(int pos)
|
||||
moveLeft(int pos) {
|
||||
//tag=1028
|
||||
final void_Func_voidstar_int func = _dylib
|
||||
.lookup<ffi.NativeFunction<void_Func_voidstar_ffi_Int32_FFI>>(
|
||||
'c_QRect__moveLeft_int')
|
||||
.asFunction();
|
||||
//tag=1030
|
||||
func(thisCpp, pos);
|
||||
}
|
||||
//tag=1024
|
||||
} // moveRight(int pos)
|
||||
|
||||
//tag=1027
|
||||
// moveRight(int pos)
|
||||
moveRight(int pos) {
|
||||
//tag=1028
|
||||
final void_Func_voidstar_int func = _dylib
|
||||
.lookup<ffi.NativeFunction<void_Func_voidstar_ffi_Int32_FFI>>(
|
||||
'c_QRect__moveRight_int')
|
||||
.asFunction();
|
||||
//tag=1030
|
||||
func(thisCpp, pos);
|
||||
}
|
||||
//tag=1024
|
||||
} // moveTo(const QPoint & p)
|
||||
|
||||
//tag=1027
|
||||
// moveTo(const QPoint & p)
|
||||
moveTo(QPoint? p) {
|
||||
//tag=1028
|
||||
final void_Func_voidstar_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<void_Func_voidstar_voidstar_FFI>>(
|
||||
'c_QRect__moveTo_QPoint')
|
||||
.asFunction();
|
||||
//tag=1030
|
||||
func(thisCpp, p == null ? ffi.nullptr : p.thisCpp);
|
||||
}
|
||||
//tag=1024
|
||||
} // moveTo(int x, int t)
|
||||
|
||||
//tag=1027
|
||||
// moveTo(int x, int t)
|
||||
moveTo_2(int x, int t) {
|
||||
//tag=1028
|
||||
final void_Func_voidstar_int_int func = _dylib
|
||||
.lookup<ffi.NativeFunction<void_Func_voidstar_ffi_Int32_ffi_Int32_FFI>>(
|
||||
'c_QRect__moveTo_int_int')
|
||||
.asFunction();
|
||||
//tag=1030
|
||||
func(thisCpp, x, t);
|
||||
}
|
||||
//tag=1024
|
||||
} // moveTop(int pos)
|
||||
|
||||
//tag=1027
|
||||
// moveTop(int pos)
|
||||
moveTop(int pos) {
|
||||
//tag=1028
|
||||
final void_Func_voidstar_int func = _dylib
|
||||
.lookup<ffi.NativeFunction<void_Func_voidstar_ffi_Int32_FFI>>(
|
||||
'c_QRect__moveTop_int')
|
||||
.asFunction();
|
||||
//tag=1030
|
||||
func(thisCpp, pos);
|
||||
}
|
||||
//tag=1024
|
||||
} // moveTopLeft(const QPoint & p)
|
||||
|
||||
//tag=1027
|
||||
// moveTopLeft(const QPoint & p)
|
||||
moveTopLeft(QPoint? p) {
|
||||
//tag=1028
|
||||
final void_Func_voidstar_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<void_Func_voidstar_voidstar_FFI>>(
|
||||
'c_QRect__moveTopLeft_QPoint')
|
||||
.asFunction();
|
||||
//tag=1030
|
||||
func(thisCpp, p == null ? ffi.nullptr : p.thisCpp);
|
||||
}
|
||||
//tag=1024
|
||||
} // moveTopRight(const QPoint & p)
|
||||
|
||||
//tag=1027
|
||||
// moveTopRight(const QPoint & p)
|
||||
moveTopRight(QPoint? p) {
|
||||
//tag=1028
|
||||
final void_Func_voidstar_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<void_Func_voidstar_voidstar_FFI>>(
|
||||
'c_QRect__moveTopRight_QPoint')
|
||||
.asFunction();
|
||||
//tag=1030
|
||||
func(thisCpp, p == null ? ffi.nullptr : p.thisCpp);
|
||||
}
|
||||
//tag=1024
|
||||
} // normalized() const
|
||||
|
||||
//tag=1027
|
||||
// normalized() const
|
||||
QRect normalized() {
|
||||
//tag=1028
|
||||
final voidstar_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<voidstar_Func_voidstar_FFI>>(
|
||||
'c_QRect__normalized')
|
||||
.asFunction();
|
||||
//tag=1033
|
||||
ffi.Pointer<void> result = func(thisCpp);
|
||||
return QRect.fromCppPointer(result, true);
|
||||
}
|
||||
//tag=1024
|
||||
} // right() const
|
||||
|
||||
//tag=1027
|
||||
// right() const
|
||||
int right() {
|
||||
//tag=1028
|
||||
final int_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<int_Func_voidstar_FFI>>('c_QRect__right')
|
||||
.asFunction();
|
||||
//tag=1031
|
||||
return func(thisCpp);
|
||||
}
|
||||
//tag=1024
|
||||
} // setBottom(int pos)
|
||||
|
||||
//tag=1027
|
||||
// setBottom(int pos)
|
||||
setBottom(int pos) {
|
||||
//tag=1028
|
||||
final void_Func_voidstar_int func = _dylib
|
||||
.lookup<ffi.NativeFunction<void_Func_voidstar_ffi_Int32_FFI>>(
|
||||
'c_QRect__setBottom_int')
|
||||
.asFunction();
|
||||
//tag=1030
|
||||
func(thisCpp, pos);
|
||||
}
|
||||
//tag=1024
|
||||
} // setBottomLeft(const QPoint & p)
|
||||
|
||||
//tag=1027
|
||||
// setBottomLeft(const QPoint & p)
|
||||
setBottomLeft(QPoint? p) {
|
||||
//tag=1028
|
||||
final void_Func_voidstar_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<void_Func_voidstar_voidstar_FFI>>(
|
||||
'c_QRect__setBottomLeft_QPoint')
|
||||
.asFunction();
|
||||
//tag=1030
|
||||
func(thisCpp, p == null ? ffi.nullptr : p.thisCpp);
|
||||
}
|
||||
//tag=1024
|
||||
} // setBottomRight(const QPoint & p)
|
||||
|
||||
//tag=1027
|
||||
// setBottomRight(const QPoint & p)
|
||||
setBottomRight(QPoint? p) {
|
||||
//tag=1028
|
||||
final void_Func_voidstar_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<void_Func_voidstar_voidstar_FFI>>(
|
||||
'c_QRect__setBottomRight_QPoint')
|
||||
.asFunction();
|
||||
//tag=1030
|
||||
func(thisCpp, p == null ? ffi.nullptr : p.thisCpp);
|
||||
}
|
||||
//tag=1024
|
||||
} // setCoords(int x1, int y1, int x2, int y2)
|
||||
|
||||
//tag=1027
|
||||
// setCoords(int x1, int y1, int x2, int y2)
|
||||
setCoords(int x1, int y1, int x2, int y2) {
|
||||
//tag=1028
|
||||
final void_Func_voidstar_int_int_int_int func = _dylib
|
||||
.lookup<
|
||||
ffi.NativeFunction<
|
||||
void_Func_voidstar_ffi_Int32_ffi_Int32_ffi_Int32_ffi_Int32_FFI>>(
|
||||
'c_QRect__setCoords_int_int_int_int')
|
||||
.asFunction();
|
||||
//tag=1030
|
||||
func(thisCpp, x1, y1, x2, y2);
|
||||
}
|
||||
//tag=1024
|
||||
} // setHeight(int h)
|
||||
|
||||
//tag=1027
|
||||
// setHeight(int h)
|
||||
setHeight(int h) {
|
||||
//tag=1028
|
||||
final void_Func_voidstar_int func = _dylib
|
||||
.lookup<ffi.NativeFunction<void_Func_voidstar_ffi_Int32_FFI>>(
|
||||
'c_QRect__setHeight_int')
|
||||
.asFunction();
|
||||
//tag=1030
|
||||
func(thisCpp, h);
|
||||
}
|
||||
//tag=1024
|
||||
} // setLeft(int pos)
|
||||
|
||||
//tag=1027
|
||||
// setLeft(int pos)
|
||||
setLeft(int pos) {
|
||||
//tag=1028
|
||||
final void_Func_voidstar_int func = _dylib
|
||||
.lookup<ffi.NativeFunction<void_Func_voidstar_ffi_Int32_FFI>>(
|
||||
'c_QRect__setLeft_int')
|
||||
.asFunction();
|
||||
//tag=1030
|
||||
func(thisCpp, pos);
|
||||
}
|
||||
//tag=1024
|
||||
} // setRect(int x, int y, int w, int h)
|
||||
|
||||
//tag=1027
|
||||
// setRect(int x, int y, int w, int h)
|
||||
setRect(int x, int y, int w, int h) {
|
||||
//tag=1028
|
||||
final void_Func_voidstar_int_int_int_int func = _dylib
|
||||
.lookup<
|
||||
ffi.NativeFunction<
|
||||
void_Func_voidstar_ffi_Int32_ffi_Int32_ffi_Int32_ffi_Int32_FFI>>(
|
||||
'c_QRect__setRect_int_int_int_int')
|
||||
.asFunction();
|
||||
//tag=1030
|
||||
func(thisCpp, x, y, w, h);
|
||||
}
|
||||
//tag=1024
|
||||
} // setRight(int pos)
|
||||
|
||||
//tag=1027
|
||||
// setRight(int pos)
|
||||
setRight(int pos) {
|
||||
//tag=1028
|
||||
final void_Func_voidstar_int func = _dylib
|
||||
.lookup<ffi.NativeFunction<void_Func_voidstar_ffi_Int32_FFI>>(
|
||||
'c_QRect__setRight_int')
|
||||
.asFunction();
|
||||
//tag=1030
|
||||
func(thisCpp, pos);
|
||||
}
|
||||
//tag=1024
|
||||
} // setSize(const QSize & s)
|
||||
|
||||
//tag=1027
|
||||
// setSize(const QSize & s)
|
||||
setSize(QSize? s) {
|
||||
//tag=1028
|
||||
final void_Func_voidstar_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<void_Func_voidstar_voidstar_FFI>>(
|
||||
'c_QRect__setSize_QSize')
|
||||
.asFunction();
|
||||
//tag=1030
|
||||
func(thisCpp, s == null ? ffi.nullptr : s.thisCpp);
|
||||
}
|
||||
//tag=1024
|
||||
} // setTop(int pos)
|
||||
|
||||
//tag=1027
|
||||
// setTop(int pos)
|
||||
setTop(int pos) {
|
||||
//tag=1028
|
||||
final void_Func_voidstar_int func = _dylib
|
||||
.lookup<ffi.NativeFunction<void_Func_voidstar_ffi_Int32_FFI>>(
|
||||
'c_QRect__setTop_int')
|
||||
.asFunction();
|
||||
//tag=1030
|
||||
func(thisCpp, pos);
|
||||
}
|
||||
//tag=1024
|
||||
} // setTopLeft(const QPoint & p)
|
||||
|
||||
//tag=1027
|
||||
// setTopLeft(const QPoint & p)
|
||||
setTopLeft(QPoint? p) {
|
||||
//tag=1028
|
||||
final void_Func_voidstar_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<void_Func_voidstar_voidstar_FFI>>(
|
||||
'c_QRect__setTopLeft_QPoint')
|
||||
.asFunction();
|
||||
//tag=1030
|
||||
func(thisCpp, p == null ? ffi.nullptr : p.thisCpp);
|
||||
}
|
||||
//tag=1024
|
||||
} // setTopRight(const QPoint & p)
|
||||
|
||||
//tag=1027
|
||||
// setTopRight(const QPoint & p)
|
||||
setTopRight(QPoint? p) {
|
||||
//tag=1028
|
||||
final void_Func_voidstar_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<void_Func_voidstar_voidstar_FFI>>(
|
||||
'c_QRect__setTopRight_QPoint')
|
||||
.asFunction();
|
||||
//tag=1030
|
||||
func(thisCpp, p == null ? ffi.nullptr : p.thisCpp);
|
||||
}
|
||||
//tag=1024
|
||||
} // setWidth(int w)
|
||||
|
||||
//tag=1027
|
||||
// setWidth(int w)
|
||||
setWidth(int w) {
|
||||
//tag=1028
|
||||
final void_Func_voidstar_int func = _dylib
|
||||
.lookup<ffi.NativeFunction<void_Func_voidstar_ffi_Int32_FFI>>(
|
||||
'c_QRect__setWidth_int')
|
||||
.asFunction();
|
||||
//tag=1030
|
||||
func(thisCpp, w);
|
||||
}
|
||||
//tag=1024
|
||||
} // setX(int x)
|
||||
|
||||
//tag=1027
|
||||
// setX(int x)
|
||||
setX(int x) {
|
||||
//tag=1028
|
||||
final void_Func_voidstar_int func = _dylib
|
||||
.lookup<ffi.NativeFunction<void_Func_voidstar_ffi_Int32_FFI>>(
|
||||
'c_QRect__setX_int')
|
||||
.asFunction();
|
||||
//tag=1030
|
||||
func(thisCpp, x);
|
||||
}
|
||||
//tag=1024
|
||||
} // setY(int y)
|
||||
|
||||
//tag=1027
|
||||
// setY(int y)
|
||||
setY(int y) {
|
||||
//tag=1028
|
||||
final void_Func_voidstar_int func = _dylib
|
||||
.lookup<ffi.NativeFunction<void_Func_voidstar_ffi_Int32_FFI>>(
|
||||
'c_QRect__setY_int')
|
||||
.asFunction();
|
||||
//tag=1030
|
||||
func(thisCpp, y);
|
||||
}
|
||||
//tag=1024
|
||||
} // size() const
|
||||
|
||||
//tag=1027
|
||||
// size() const
|
||||
QSize size() {
|
||||
//tag=1028
|
||||
final voidstar_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<voidstar_Func_voidstar_FFI>>('c_QRect__size')
|
||||
.asFunction();
|
||||
//tag=1033
|
||||
ffi.Pointer<void> result = func(thisCpp);
|
||||
return QSize.fromCppPointer(result, true);
|
||||
}
|
||||
//tag=1024
|
||||
} // top() const
|
||||
|
||||
//tag=1027
|
||||
// top() const
|
||||
int top() {
|
||||
//tag=1028
|
||||
final int_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<int_Func_voidstar_FFI>>('c_QRect__top')
|
||||
.asFunction();
|
||||
//tag=1031
|
||||
return func(thisCpp);
|
||||
}
|
||||
//tag=1024
|
||||
} // topLeft() const
|
||||
|
||||
//tag=1027
|
||||
// topLeft() const
|
||||
QPoint topLeft() {
|
||||
//tag=1028
|
||||
final voidstar_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<voidstar_Func_voidstar_FFI>>(
|
||||
'c_QRect__topLeft')
|
||||
.asFunction();
|
||||
//tag=1033
|
||||
ffi.Pointer<void> result = func(thisCpp);
|
||||
return QPoint.fromCppPointer(result, true);
|
||||
}
|
||||
//tag=1024
|
||||
} // topRight() const
|
||||
|
||||
//tag=1027
|
||||
// topRight() const
|
||||
QPoint topRight() {
|
||||
//tag=1028
|
||||
final voidstar_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<voidstar_Func_voidstar_FFI>>(
|
||||
'c_QRect__topRight')
|
||||
.asFunction();
|
||||
//tag=1033
|
||||
ffi.Pointer<void> result = func(thisCpp);
|
||||
return QPoint.fromCppPointer(result, true);
|
||||
}
|
||||
//tag=1024
|
||||
} // translate(const QPoint & p)
|
||||
|
||||
//tag=1027
|
||||
// translate(const QPoint & p)
|
||||
translate(QPoint? p) {
|
||||
//tag=1028
|
||||
final void_Func_voidstar_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<void_Func_voidstar_voidstar_FFI>>(
|
||||
'c_QRect__translate_QPoint')
|
||||
.asFunction();
|
||||
//tag=1030
|
||||
func(thisCpp, p == null ? ffi.nullptr : p.thisCpp);
|
||||
}
|
||||
//tag=1024
|
||||
} // translate(int dx, int dy)
|
||||
|
||||
//tag=1027
|
||||
// translate(int dx, int dy)
|
||||
translate_2(int dx, int dy) {
|
||||
//tag=1028
|
||||
final void_Func_voidstar_int_int func = _dylib
|
||||
.lookup<ffi.NativeFunction<void_Func_voidstar_ffi_Int32_ffi_Int32_FFI>>(
|
||||
'c_QRect__translate_int_int')
|
||||
.asFunction();
|
||||
//tag=1030
|
||||
func(thisCpp, dx, dy);
|
||||
}
|
||||
//tag=1024
|
||||
} // translated(const QPoint & p) const
|
||||
|
||||
//tag=1027
|
||||
// translated(const QPoint & p) const
|
||||
QRect translated(QPoint? p) {
|
||||
//tag=1028
|
||||
final voidstar_Func_voidstar_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<voidstar_Func_voidstar_voidstar_FFI>>(
|
||||
'c_QRect__translated_QPoint')
|
||||
.asFunction();
|
||||
//tag=1033
|
||||
ffi.Pointer<void> result =
|
||||
func(thisCpp, p == null ? ffi.nullptr : p.thisCpp);
|
||||
return QRect.fromCppPointer(result, true);
|
||||
}
|
||||
//tag=1024
|
||||
} // translated(int dx, int dy) const
|
||||
|
||||
//tag=1027
|
||||
// translated(int dx, int dy) const
|
||||
QRect translated_2(int dx, int dy) {
|
||||
//tag=1028
|
||||
final voidstar_Func_voidstar_int_int func = _dylib
|
||||
.lookup<
|
||||
ffi.NativeFunction<
|
||||
voidstar_Func_voidstar_ffi_Int32_ffi_Int32_FFI>>(
|
||||
'c_QRect__translated_int_int')
|
||||
.asFunction();
|
||||
//tag=1033
|
||||
ffi.Pointer<void> result = func(thisCpp, dx, dy);
|
||||
return QRect.fromCppPointer(result, true);
|
||||
}
|
||||
//tag=1024
|
||||
} // transposed() const
|
||||
|
||||
//tag=1027
|
||||
// transposed() const
|
||||
QRect transposed() {
|
||||
//tag=1028
|
||||
final voidstar_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<voidstar_Func_voidstar_FFI>>(
|
||||
'c_QRect__transposed')
|
||||
.asFunction();
|
||||
//tag=1033
|
||||
ffi.Pointer<void> result = func(thisCpp);
|
||||
return QRect.fromCppPointer(result, true);
|
||||
}
|
||||
//tag=1024
|
||||
} // united(const QRect & other) const
|
||||
|
||||
//tag=1027
|
||||
// united(const QRect & other) const
|
||||
QRect united(QRect? other) {
|
||||
//tag=1028
|
||||
final voidstar_Func_voidstar_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<voidstar_Func_voidstar_voidstar_FFI>>(
|
||||
'c_QRect__united_QRect')
|
||||
.asFunction();
|
||||
//tag=1033
|
||||
ffi.Pointer<void> result =
|
||||
func(thisCpp, other == null ? ffi.nullptr : other.thisCpp);
|
||||
return QRect.fromCppPointer(result, true);
|
||||
}
|
||||
//tag=1024
|
||||
} // width() const
|
||||
|
||||
//tag=1027
|
||||
// width() const
|
||||
int width() {
|
||||
//tag=1028
|
||||
final int_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<int_Func_voidstar_FFI>>('c_QRect__width')
|
||||
.asFunction();
|
||||
//tag=1031
|
||||
return func(thisCpp);
|
||||
}
|
||||
//tag=1024
|
||||
} // x() const
|
||||
|
||||
//tag=1027
|
||||
// x() const
|
||||
int x() {
|
||||
//tag=1028
|
||||
final int_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<int_Func_voidstar_FFI>>('c_QRect__x')
|
||||
.asFunction();
|
||||
//tag=1031
|
||||
return func(thisCpp);
|
||||
}
|
||||
//tag=1024
|
||||
} // y() const
|
||||
|
||||
//tag=1027
|
||||
// y() const
|
||||
int y() {
|
||||
//tag=1028
|
||||
final int_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<int_Func_voidstar_FFI>>('c_QRect__y')
|
||||
.asFunction();
|
||||
//tag=1031
|
||||
return func(thisCpp);
|
||||
}
|
||||
|
||||
//tag=1022
|
||||
void release() {
|
||||
final void_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<void_Func_voidstar_FFI>>(
|
||||
|
||||
@@ -8,22 +8,18 @@
|
||||
|
||||
Contact KDAB at <info@kdab.com> for commercial licensing options.
|
||||
*/
|
||||
|
||||
//tag=1052
|
||||
import 'dart:ffi' as ffi;
|
||||
import 'package:ffi/ffi.dart';
|
||||
import 'TypeHelpers.dart';
|
||||
import '../Bindings.dart';
|
||||
import '../FinalizerHelpers.dart';
|
||||
|
||||
//tag=1051
|
||||
var _dylib = Library.instance().dylib;
|
||||
final _finalizer =
|
||||
_dylib.lookup<ffi.NativeFunction<Dart_WeakPersistentHandleFinalizer_Type>>(
|
||||
'c_QSize_Finalizer');
|
||||
|
||||
class QSize {
|
||||
//tag=1060
|
||||
static var s_dartInstanceByCppPtr = Map<int, QSize>();
|
||||
var _thisCpp = null;
|
||||
bool _needsAutoDelete = true;
|
||||
@@ -36,188 +32,121 @@ class QSize {
|
||||
}
|
||||
|
||||
static bool isCached(var cppPointer) {
|
||||
//tag=1024
|
||||
return s_dartInstanceByCppPtr.containsKey(cppPointer.address);
|
||||
}
|
||||
|
||||
//tag=1061
|
||||
factory QSize.fromCache(var cppPointer, [needsAutoDelete = false]) {
|
||||
return (s_dartInstanceByCppPtr[cppPointer.address] ??
|
||||
QSize.fromCppPointer(cppPointer, needsAutoDelete)) as QSize;
|
||||
}
|
||||
QSize.fromCppPointer(var cppPointer, [this._needsAutoDelete = false]) {
|
||||
//tag=1024
|
||||
thisCpp = cppPointer;
|
||||
}
|
||||
//tag=1025
|
||||
QSize.init() {}
|
||||
//tag=1023
|
||||
//QSize()
|
||||
QSize.init() {} //QSize()
|
||||
QSize() {
|
||||
//tag=1075
|
||||
final voidstar_Func_void func = _dylib
|
||||
.lookup<ffi.NativeFunction<voidstar_Func_void_FFI>>(
|
||||
'c_QSize__constructor')
|
||||
.asFunction();
|
||||
thisCpp = func();
|
||||
QSize.s_dartInstanceByCppPtr[thisCpp.address] = this;
|
||||
}
|
||||
//tag=1023
|
||||
//QSize(int w, int h)
|
||||
} //QSize(int w, int h)
|
||||
QSize.ctor2(int w, int h) {
|
||||
//tag=1075
|
||||
final voidstar_Func_int_int func = _dylib
|
||||
.lookup<ffi.NativeFunction<voidstar_Func_ffi_Int32_ffi_Int32_FFI>>(
|
||||
'c_QSize__constructor_int_int')
|
||||
.asFunction();
|
||||
thisCpp = func(w, h);
|
||||
QSize.s_dartInstanceByCppPtr[thisCpp.address] = this;
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// boundedTo(const QSize & arg__1) const
|
||||
} // boundedTo(const QSize & arg__1) const
|
||||
QSize boundedTo(QSize? arg__1) {
|
||||
//tag=1028
|
||||
final voidstar_Func_voidstar_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<voidstar_Func_voidstar_voidstar_FFI>>(
|
||||
'c_QSize__boundedTo_QSize')
|
||||
.asFunction();
|
||||
//tag=1033
|
||||
ffi.Pointer<void> result =
|
||||
func(thisCpp, arg__1 == null ? ffi.nullptr : arg__1.thisCpp);
|
||||
return QSize.fromCppPointer(result, true);
|
||||
}
|
||||
//tag=1024
|
||||
} // expandedTo(const QSize & arg__1) const
|
||||
|
||||
//tag=1027
|
||||
// expandedTo(const QSize & arg__1) const
|
||||
QSize expandedTo(QSize? arg__1) {
|
||||
//tag=1028
|
||||
final voidstar_Func_voidstar_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<voidstar_Func_voidstar_voidstar_FFI>>(
|
||||
'c_QSize__expandedTo_QSize')
|
||||
.asFunction();
|
||||
//tag=1033
|
||||
ffi.Pointer<void> result =
|
||||
func(thisCpp, arg__1 == null ? ffi.nullptr : arg__1.thisCpp);
|
||||
return QSize.fromCppPointer(result, true);
|
||||
}
|
||||
//tag=1024
|
||||
} // height() const
|
||||
|
||||
//tag=1027
|
||||
// height() const
|
||||
int height() {
|
||||
//tag=1028
|
||||
final int_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<int_Func_voidstar_FFI>>('c_QSize__height')
|
||||
.asFunction();
|
||||
//tag=1031
|
||||
return func(thisCpp);
|
||||
}
|
||||
//tag=1024
|
||||
} // isEmpty() const
|
||||
|
||||
//tag=1027
|
||||
// isEmpty() const
|
||||
bool isEmpty() {
|
||||
//tag=1028
|
||||
final bool_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<bool_Func_voidstar_FFI>>('c_QSize__isEmpty')
|
||||
.asFunction();
|
||||
//tag=1029
|
||||
return func(thisCpp) != 0;
|
||||
}
|
||||
//tag=1024
|
||||
} // isNull() const
|
||||
|
||||
//tag=1027
|
||||
// isNull() const
|
||||
bool isNull() {
|
||||
//tag=1028
|
||||
final bool_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<bool_Func_voidstar_FFI>>('c_QSize__isNull')
|
||||
.asFunction();
|
||||
//tag=1029
|
||||
return func(thisCpp) != 0;
|
||||
}
|
||||
//tag=1024
|
||||
} // isValid() const
|
||||
|
||||
//tag=1027
|
||||
// isValid() const
|
||||
bool isValid() {
|
||||
//tag=1028
|
||||
final bool_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<bool_Func_voidstar_FFI>>('c_QSize__isValid')
|
||||
.asFunction();
|
||||
//tag=1029
|
||||
return func(thisCpp) != 0;
|
||||
}
|
||||
//tag=1024
|
||||
} // setHeight(int h)
|
||||
|
||||
//tag=1027
|
||||
// setHeight(int h)
|
||||
setHeight(int h) {
|
||||
//tag=1028
|
||||
final void_Func_voidstar_int func = _dylib
|
||||
.lookup<ffi.NativeFunction<void_Func_voidstar_ffi_Int32_FFI>>(
|
||||
'c_QSize__setHeight_int')
|
||||
.asFunction();
|
||||
//tag=1030
|
||||
func(thisCpp, h);
|
||||
}
|
||||
//tag=1024
|
||||
} // setWidth(int w)
|
||||
|
||||
//tag=1027
|
||||
// setWidth(int w)
|
||||
setWidth(int w) {
|
||||
//tag=1028
|
||||
final void_Func_voidstar_int func = _dylib
|
||||
.lookup<ffi.NativeFunction<void_Func_voidstar_ffi_Int32_FFI>>(
|
||||
'c_QSize__setWidth_int')
|
||||
.asFunction();
|
||||
//tag=1030
|
||||
func(thisCpp, w);
|
||||
}
|
||||
//tag=1024
|
||||
} // transpose()
|
||||
|
||||
//tag=1027
|
||||
// transpose()
|
||||
transpose() {
|
||||
//tag=1028
|
||||
final void_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<void_Func_voidstar_FFI>>(
|
||||
'c_QSize__transpose')
|
||||
.asFunction();
|
||||
//tag=1030
|
||||
func(thisCpp);
|
||||
}
|
||||
//tag=1024
|
||||
} // transposed() const
|
||||
|
||||
//tag=1027
|
||||
// transposed() const
|
||||
QSize transposed() {
|
||||
//tag=1028
|
||||
final voidstar_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<voidstar_Func_voidstar_FFI>>(
|
||||
'c_QSize__transposed')
|
||||
.asFunction();
|
||||
//tag=1033
|
||||
ffi.Pointer<void> result = func(thisCpp);
|
||||
return QSize.fromCppPointer(result, true);
|
||||
}
|
||||
//tag=1024
|
||||
} // width() const
|
||||
|
||||
//tag=1027
|
||||
// width() const
|
||||
int width() {
|
||||
//tag=1028
|
||||
final int_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<int_Func_voidstar_FFI>>('c_QSize__width')
|
||||
.asFunction();
|
||||
//tag=1031
|
||||
return func(thisCpp);
|
||||
}
|
||||
|
||||
//tag=1022
|
||||
void release() {
|
||||
final void_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<void_Func_voidstar_FFI>>(
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -8,18 +8,14 @@
|
||||
|
||||
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;
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -8,34 +8,26 @@
|
||||
|
||||
Contact KDAB at <info@kdab.com> for commercial licensing options.
|
||||
*/
|
||||
|
||||
//tag=1052
|
||||
import 'dart:ffi' as ffi;
|
||||
import 'package:ffi/ffi.dart';
|
||||
import 'TypeHelpers.dart';
|
||||
import '../Bindings.dart';
|
||||
import '../FinalizerHelpers.dart';
|
||||
|
||||
//tag=1051
|
||||
var _dylib = Library.instance().dylib;
|
||||
|
||||
class ViewFactory extends QObject {
|
||||
//tag=1064
|
||||
ViewFactory.fromCppPointer(var cppPointer, [var needsAutoDelete = false])
|
||||
: super.fromCppPointer(cppPointer, needsAutoDelete) {}
|
||||
ViewFactory.init() : super.init() {}
|
||||
//tag=1062
|
||||
factory ViewFactory.fromCache(var cppPointer, [needsAutoDelete = false]) {
|
||||
if (QObject.isCached(cppPointer)) {
|
||||
var instance = QObject.s_dartInstanceByCppPtr[cppPointer.address];
|
||||
if (instance != null) return instance as ViewFactory;
|
||||
}
|
||||
return ViewFactory.fromCppPointer(cppPointer, needsAutoDelete);
|
||||
}
|
||||
//tag=1023
|
||||
//ViewFactory()
|
||||
} //ViewFactory()
|
||||
ViewFactory() : super.init() {
|
||||
//tag=1075
|
||||
final voidstar_Func_void func = _dylib
|
||||
.lookup<ffi.NativeFunction<voidstar_Func_void_FFI>>(
|
||||
'c_KDDockWidgets__ViewFactory__constructor')
|
||||
@@ -43,25 +35,18 @@ class ViewFactory extends QObject {
|
||||
thisCpp = func();
|
||||
QObject.s_dartInstanceByCppPtr[thisCpp.address] = this;
|
||||
registerCallbacks();
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// createClassicIndicatorWindow(KDDockWidgets::Controllers::ClassicIndicators * arg__1) const
|
||||
} // createClassicIndicatorWindow(KDDockWidgets::Controllers::ClassicIndicators * arg__1) const
|
||||
ClassicIndicatorWindowViewInterface createClassicIndicatorWindow(
|
||||
ClassicIndicators? arg__1) {
|
||||
//tag=1028
|
||||
final voidstar_Func_voidstar_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<voidstar_Func_voidstar_voidstar_FFI>>(
|
||||
cFunctionSymbolName(681))
|
||||
.asFunction();
|
||||
//tag=1033
|
||||
ffi.Pointer<void> result =
|
||||
func(thisCpp, arg__1 == null ? ffi.nullptr : arg__1.thisCpp);
|
||||
return ClassicIndicatorWindowViewInterface.fromCppPointer(result, false);
|
||||
}
|
||||
|
||||
//tag=1035
|
||||
static ffi.Pointer<void> createClassicIndicatorWindow_calledFromC(
|
||||
ffi.Pointer<void> thisCpp, ffi.Pointer<void>? arg__1) {
|
||||
var dartInstance =
|
||||
@@ -71,24 +56,18 @@ class ViewFactory extends QObject {
|
||||
"Dart instance not found for ViewFactory::createClassicIndicatorWindow(KDDockWidgets::Controllers::ClassicIndicators * arg__1) const! (${thisCpp.address})");
|
||||
throw Error();
|
||||
}
|
||||
//tag=1037
|
||||
final result = dartInstance
|
||||
.createClassicIndicatorWindow(ClassicIndicators.fromCppPointer(arg__1));
|
||||
return result.thisCpp;
|
||||
}
|
||||
//tag=1024
|
||||
} // createDropArea(KDDockWidgets::Controllers::DropArea * arg__1, KDDockWidgets::View * parent) const
|
||||
|
||||
//tag=1027
|
||||
// createDropArea(KDDockWidgets::Controllers::DropArea * arg__1, KDDockWidgets::View * parent) const
|
||||
View createDropArea(DropArea? arg__1, View? parent) {
|
||||
//tag=1028
|
||||
final voidstar_Func_voidstar_voidstar_voidstar func = _dylib
|
||||
.lookup<
|
||||
ffi.NativeFunction<
|
||||
voidstar_Func_voidstar_voidstar_voidstar_FFI>>(
|
||||
cFunctionSymbolName(682))
|
||||
.asFunction();
|
||||
//tag=1033
|
||||
ffi.Pointer<void> result = func(
|
||||
thisCpp,
|
||||
arg__1 == null ? ffi.nullptr : arg__1.thisCpp,
|
||||
@@ -96,7 +75,6 @@ class ViewFactory extends QObject {
|
||||
return View.fromCppPointer(result, false);
|
||||
}
|
||||
|
||||
//tag=1035
|
||||
static ffi.Pointer<void> createDropArea_calledFromC(ffi.Pointer<void> thisCpp,
|
||||
ffi.Pointer<void>? arg__1, ffi.Pointer<void>? parent) {
|
||||
var dartInstance =
|
||||
@@ -106,28 +84,21 @@ class ViewFactory extends QObject {
|
||||
"Dart instance not found for ViewFactory::createDropArea(KDDockWidgets::Controllers::DropArea * arg__1, KDDockWidgets::View * parent) const! (${thisCpp.address})");
|
||||
throw Error();
|
||||
}
|
||||
//tag=1037
|
||||
final result = dartInstance.createDropArea(
|
||||
DropArea.fromCppPointer(arg__1), View.fromCppPointer(parent));
|
||||
return result.thisCpp;
|
||||
}
|
||||
//tag=1024
|
||||
} // createRubberBand(KDDockWidgets::View * parent) const
|
||||
|
||||
//tag=1027
|
||||
// createRubberBand(KDDockWidgets::View * parent) const
|
||||
View createRubberBand(View? parent) {
|
||||
//tag=1028
|
||||
final voidstar_Func_voidstar_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<voidstar_Func_voidstar_voidstar_FFI>>(
|
||||
cFunctionSymbolName(683))
|
||||
.asFunction();
|
||||
//tag=1033
|
||||
ffi.Pointer<void> result =
|
||||
func(thisCpp, parent == null ? ffi.nullptr : parent.thisCpp);
|
||||
return View.fromCppPointer(result, false);
|
||||
}
|
||||
|
||||
//tag=1035
|
||||
static ffi.Pointer<void> createRubberBand_calledFromC(
|
||||
ffi.Pointer<void> thisCpp, ffi.Pointer<void>? parent) {
|
||||
var dartInstance =
|
||||
@@ -137,13 +108,10 @@ class ViewFactory extends QObject {
|
||||
"Dart instance not found for ViewFactory::createRubberBand(KDDockWidgets::View * parent) const! (${thisCpp.address})");
|
||||
throw Error();
|
||||
}
|
||||
//tag=1037
|
||||
final result = dartInstance.createRubberBand(View.fromCppPointer(parent));
|
||||
return result.thisCpp;
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1035
|
||||
static void customEvent_calledFromC(
|
||||
ffi.Pointer<void> thisCpp, ffi.Pointer<void>? event) {
|
||||
var dartInstance =
|
||||
@@ -153,12 +121,9 @@ class ViewFactory extends QObject {
|
||||
"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 =
|
||||
@@ -168,13 +133,10 @@ class ViewFactory extends QObject {
|
||||
"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 =
|
||||
@@ -184,29 +146,22 @@ class ViewFactory extends QObject {
|
||||
"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
|
||||
//tag=1027
|
||||
// tr(const char * s, const char * c, int n)
|
||||
static // tr(const char * s, const char * c, int n)
|
||||
QString tr(String? s, String? c, int n) {
|
||||
//tag=1028
|
||||
final voidstar_Func_string_string_int func = _dylib
|
||||
.lookup<ffi.NativeFunction<voidstar_Func_string_string_ffi_Int32_FFI>>(
|
||||
'c_static_KDDockWidgets__ViewFactory__tr_char_char_int')
|
||||
.asFunction();
|
||||
//tag=1033
|
||||
ffi.Pointer<void> result = func(
|
||||
s?.toNativeUtf8() ?? ffi.nullptr, c?.toNativeUtf8() ?? ffi.nullptr, n);
|
||||
return QString.fromCppPointer(result, true);
|
||||
}
|
||||
|
||||
//tag=1022
|
||||
void release() {
|
||||
final void_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<void_Func_voidstar_FFI>>(
|
||||
@@ -215,7 +170,6 @@ class ViewFactory extends QObject {
|
||||
func(thisCpp);
|
||||
}
|
||||
|
||||
//tag=1019
|
||||
String cFunctionSymbolName(int methodId) {
|
||||
switch (methodId) {
|
||||
case 681:
|
||||
@@ -252,42 +206,34 @@ class ViewFactory extends QObject {
|
||||
throw Error();
|
||||
}
|
||||
|
||||
//tag=1020
|
||||
void registerCallbacks() {
|
||||
assert(thisCpp != null);
|
||||
final RegisterMethodIsReimplementedCallback registerCallback = _dylib
|
||||
.lookup<ffi.NativeFunction<RegisterMethodIsReimplementedCallback_FFI>>(
|
||||
'c_KDDockWidgets__ViewFactory__registerVirtualMethodCallback')
|
||||
.asFunction();
|
||||
|
||||
//tag=1021
|
||||
final callback681 =
|
||||
ffi.Pointer.fromFunction<voidstar_Func_voidstar_voidstar_FFI>(
|
||||
ViewFactory.createClassicIndicatorWindow_calledFromC);
|
||||
registerCallback(thisCpp, callback681, 681);
|
||||
//tag=1021
|
||||
final callback682 =
|
||||
ffi.Pointer.fromFunction<voidstar_Func_voidstar_voidstar_voidstar_FFI>(
|
||||
ViewFactory.createDropArea_calledFromC);
|
||||
registerCallback(thisCpp, callback682, 682);
|
||||
//tag=1021
|
||||
final callback683 =
|
||||
ffi.Pointer.fromFunction<voidstar_Func_voidstar_voidstar_FFI>(
|
||||
ViewFactory.createRubberBand_calledFromC);
|
||||
registerCallback(thisCpp, callback683, 683);
|
||||
//tag=1021
|
||||
final callback295 =
|
||||
ffi.Pointer.fromFunction<void_Func_voidstar_voidstar_FFI>(
|
||||
QObject.customEvent_calledFromC);
|
||||
registerCallback(thisCpp, callback295, 295);
|
||||
const callbackExcept306 = 0;
|
||||
//tag=1021
|
||||
final callback306 =
|
||||
ffi.Pointer.fromFunction<bool_Func_voidstar_voidstar_FFI>(
|
||||
QObject.event_calledFromC, callbackExcept306);
|
||||
registerCallback(thisCpp, callback306, 306);
|
||||
const callbackExcept307 = 0;
|
||||
//tag=1021
|
||||
final callback307 =
|
||||
ffi.Pointer.fromFunction<bool_Func_voidstar_voidstar_voidstar_FFI>(
|
||||
QObject.eventFilter_calledFromC, callbackExcept307);
|
||||
|
||||
@@ -8,24 +8,19 @@
|
||||
|
||||
Contact KDAB at <info@kdab.com> for commercial licensing options.
|
||||
*/
|
||||
|
||||
//tag=1052
|
||||
import 'dart:ffi' as ffi;
|
||||
import 'package:ffi/ffi.dart';
|
||||
import 'TypeHelpers.dart';
|
||||
import '../Bindings.dart';
|
||||
import '../FinalizerHelpers.dart';
|
||||
|
||||
//tag=1051
|
||||
var _dylib = Library.instance().dylib;
|
||||
|
||||
class ViewFactory_flutter extends ViewFactory {
|
||||
//tag=1064
|
||||
ViewFactory_flutter.fromCppPointer(var cppPointer,
|
||||
[var needsAutoDelete = false])
|
||||
: super.fromCppPointer(cppPointer, needsAutoDelete) {}
|
||||
ViewFactory_flutter.init() : super.init() {}
|
||||
//tag=1062
|
||||
factory ViewFactory_flutter.fromCache(var cppPointer,
|
||||
[needsAutoDelete = false]) {
|
||||
if (QObject.isCached(cppPointer)) {
|
||||
@@ -33,11 +28,8 @@ class ViewFactory_flutter extends ViewFactory {
|
||||
if (instance != null) return instance as ViewFactory_flutter;
|
||||
}
|
||||
return ViewFactory_flutter.fromCppPointer(cppPointer, needsAutoDelete);
|
||||
}
|
||||
//tag=1023
|
||||
//ViewFactory_flutter()
|
||||
} //ViewFactory_flutter()
|
||||
ViewFactory_flutter() : super.init() {
|
||||
//tag=1075
|
||||
final voidstar_Func_void func = _dylib
|
||||
.lookup<ffi.NativeFunction<voidstar_Func_void_FFI>>(
|
||||
'c_KDDockWidgets__ViewFactory_flutter__constructor')
|
||||
@@ -46,9 +38,6 @@ class ViewFactory_flutter extends ViewFactory {
|
||||
QObject.s_dartInstanceByCppPtr[thisCpp.address] = this;
|
||||
registerCallbacks();
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1035
|
||||
static ffi.Pointer<void> createClassicIndicatorWindow_calledFromC(
|
||||
ffi.Pointer<void> thisCpp, ffi.Pointer<void>? arg__1) {
|
||||
var dartInstance =
|
||||
@@ -58,14 +47,11 @@ class ViewFactory_flutter extends ViewFactory {
|
||||
"Dart instance not found for ViewFactory_flutter::createClassicIndicatorWindow(KDDockWidgets::Controllers::ClassicIndicators * arg__1) const! (${thisCpp.address})");
|
||||
throw Error();
|
||||
}
|
||||
//tag=1037
|
||||
final result = dartInstance
|
||||
.createClassicIndicatorWindow(ClassicIndicators.fromCppPointer(arg__1));
|
||||
return result.thisCpp;
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1035
|
||||
static ffi.Pointer<void> createDropArea_calledFromC(ffi.Pointer<void> thisCpp,
|
||||
ffi.Pointer<void>? arg__1, ffi.Pointer<void>? parent) {
|
||||
var dartInstance =
|
||||
@@ -75,14 +61,11 @@ class ViewFactory_flutter extends ViewFactory {
|
||||
"Dart instance not found for ViewFactory_flutter::createDropArea(KDDockWidgets::Controllers::DropArea * arg__1, KDDockWidgets::View * parent) const! (${thisCpp.address})");
|
||||
throw Error();
|
||||
}
|
||||
//tag=1037
|
||||
final result = dartInstance.createDropArea(
|
||||
DropArea.fromCppPointer(arg__1), View.fromCppPointer(parent));
|
||||
return result.thisCpp;
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1035
|
||||
static ffi.Pointer<void> createRubberBand_calledFromC(
|
||||
ffi.Pointer<void> thisCpp, ffi.Pointer<void>? parent) {
|
||||
var dartInstance =
|
||||
@@ -92,13 +75,10 @@ class ViewFactory_flutter extends ViewFactory {
|
||||
"Dart instance not found for ViewFactory_flutter::createRubberBand(KDDockWidgets::View * parent) const! (${thisCpp.address})");
|
||||
throw Error();
|
||||
}
|
||||
//tag=1037
|
||||
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 =
|
||||
@@ -108,12 +88,9 @@ class ViewFactory_flutter extends ViewFactory {
|
||||
"Dart instance not found for ViewFactory_flutter::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 =
|
||||
@@ -123,13 +100,10 @@ class ViewFactory_flutter extends ViewFactory {
|
||||
"Dart instance not found for ViewFactory_flutter::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 =
|
||||
@@ -139,29 +113,22 @@ class ViewFactory_flutter extends ViewFactory {
|
||||
"Dart instance not found for ViewFactory_flutter::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
|
||||
//tag=1027
|
||||
// tr(const char * s, const char * c, int n)
|
||||
static // tr(const char * s, const char * c, int n)
|
||||
QString tr(String? s, String? c, int n) {
|
||||
//tag=1028
|
||||
final voidstar_Func_string_string_int func = _dylib
|
||||
.lookup<ffi.NativeFunction<voidstar_Func_string_string_ffi_Int32_FFI>>(
|
||||
'c_static_KDDockWidgets__ViewFactory_flutter__tr_char_char_int')
|
||||
.asFunction();
|
||||
//tag=1033
|
||||
ffi.Pointer<void> result = func(
|
||||
s?.toNativeUtf8() ?? ffi.nullptr, c?.toNativeUtf8() ?? ffi.nullptr, n);
|
||||
return QString.fromCppPointer(result, true);
|
||||
}
|
||||
|
||||
//tag=1022
|
||||
void release() {
|
||||
final void_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<void_Func_voidstar_FFI>>(
|
||||
@@ -170,7 +137,6 @@ class ViewFactory_flutter extends ViewFactory {
|
||||
func(thisCpp);
|
||||
}
|
||||
|
||||
//tag=1019
|
||||
String cFunctionSymbolName(int methodId) {
|
||||
switch (methodId) {
|
||||
case 681:
|
||||
@@ -207,42 +173,34 @@ class ViewFactory_flutter extends ViewFactory {
|
||||
throw Error();
|
||||
}
|
||||
|
||||
//tag=1020
|
||||
void registerCallbacks() {
|
||||
assert(thisCpp != null);
|
||||
final RegisterMethodIsReimplementedCallback registerCallback = _dylib
|
||||
.lookup<ffi.NativeFunction<RegisterMethodIsReimplementedCallback_FFI>>(
|
||||
'c_KDDockWidgets__ViewFactory_flutter__registerVirtualMethodCallback')
|
||||
.asFunction();
|
||||
|
||||
//tag=1021
|
||||
final callback681 =
|
||||
ffi.Pointer.fromFunction<voidstar_Func_voidstar_voidstar_FFI>(
|
||||
ViewFactory_flutter.createClassicIndicatorWindow_calledFromC);
|
||||
registerCallback(thisCpp, callback681, 681);
|
||||
//tag=1021
|
||||
final callback682 =
|
||||
ffi.Pointer.fromFunction<voidstar_Func_voidstar_voidstar_voidstar_FFI>(
|
||||
ViewFactory_flutter.createDropArea_calledFromC);
|
||||
registerCallback(thisCpp, callback682, 682);
|
||||
//tag=1021
|
||||
final callback683 =
|
||||
ffi.Pointer.fromFunction<voidstar_Func_voidstar_voidstar_FFI>(
|
||||
ViewFactory_flutter.createRubberBand_calledFromC);
|
||||
registerCallback(thisCpp, callback683, 683);
|
||||
//tag=1021
|
||||
final callback295 =
|
||||
ffi.Pointer.fromFunction<void_Func_voidstar_voidstar_FFI>(
|
||||
QObject.customEvent_calledFromC);
|
||||
registerCallback(thisCpp, callback295, 295);
|
||||
const callbackExcept306 = 0;
|
||||
//tag=1021
|
||||
final callback306 =
|
||||
ffi.Pointer.fromFunction<bool_Func_voidstar_voidstar_FFI>(
|
||||
QObject.event_calledFromC, callbackExcept306);
|
||||
registerCallback(thisCpp, callback306, 306);
|
||||
const callbackExcept307 = 0;
|
||||
//tag=1021
|
||||
final callback307 =
|
||||
ffi.Pointer.fromFunction<bool_Func_voidstar_voidstar_voidstar_FFI>(
|
||||
QObject.eventFilter_calledFromC, callbackExcept307);
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -8,42 +8,29 @@
|
||||
|
||||
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=1024
|
||||
|
||||
//tag=1027
|
||||
// asView_flutter(KDDockWidgets::Controller * controller)
|
||||
var _dylib = Library.instance()
|
||||
.dylib; // asView_flutter(KDDockWidgets::Controller * controller)
|
||||
View_flutter asView_flutter(Controller? controller) {
|
||||
//tag=1028
|
||||
final voidstar_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<voidstar_Func_voidstar_FFI>>(
|
||||
'c_static_KDDockWidgets__Views__asView_flutter_Controller')
|
||||
.asFunction();
|
||||
//tag=1033
|
||||
ffi.Pointer<void> result =
|
||||
func(controller == null ? ffi.nullptr : controller.thisCpp);
|
||||
return View_flutter.fromCppPointer(result, false);
|
||||
}
|
||||
//tag=1024
|
||||
} // asView_flutter(KDDockWidgets::View * view)
|
||||
|
||||
//tag=1027
|
||||
// asView_flutter(KDDockWidgets::View * view)
|
||||
View_flutter asView_flutter_2(View? view) {
|
||||
//tag=1028
|
||||
final voidstar_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<voidstar_Func_voidstar_FFI>>(
|
||||
'c_static_KDDockWidgets__Views__asView_flutter_View')
|
||||
.asFunction();
|
||||
//tag=1033
|
||||
ffi.Pointer<void> result = func(view == null ? ffi.nullptr : view.thisCpp);
|
||||
return View_flutter.fromCppPointer(result, false);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user