flutter: Renamed KDDockWidgets package to KDDockWidgetsBindings
The former is needed for the KDDW flutter frontend, which will use the latter to access the C++ API. Using two packages instead of one, since one is generated by dartagnan.
This commit is contained in:
@@ -0,0 +1,57 @@
|
||||
/*
|
||||
This file is part of KDDockWidgets.
|
||||
|
||||
SPDX-FileCopyrightText: 2019-2022 Klarälvdalens Datakonsult AB, a KDAB Group company <info@kdab.com>
|
||||
Author: Sérgio Martins <sergio.martins@kdab.com>
|
||||
|
||||
SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only
|
||||
|
||||
Contact KDAB at <info@kdab.com> for commercial licensing options.
|
||||
*/
|
||||
export 'src/Platform.dart' show Platform;
|
||||
export 'src/View.dart' show View;
|
||||
export 'src/ViewFactory.dart' show ViewFactory;
|
||||
export 'src/QByteArray.dart' show QByteArray;
|
||||
export 'src/QList.dart' show QList;
|
||||
export 'src/QObject.dart' show QObject;
|
||||
export 'src/QPoint.dart' show QPoint;
|
||||
export 'src/QRect.dart' show QRect;
|
||||
export 'src/QSize.dart' show QSize;
|
||||
export 'src/QString.dart' show QString;
|
||||
import 'dart:ffi' as ffi;
|
||||
import 'dart:io' show Platform;
|
||||
|
||||
String bindingsLibraryName(String name) {
|
||||
if (Platform.isWindows) return "${name}.dll";
|
||||
if (Platform.isMacOS) return "lib${name}.dylib";
|
||||
return "lib${name}.so";
|
||||
}
|
||||
|
||||
class Library {
|
||||
var _dylib;
|
||||
|
||||
ffi.DynamicLibrary get dylib {
|
||||
return _dylib;
|
||||
}
|
||||
|
||||
static var _library = null;
|
||||
|
||||
factory Library.instance() {
|
||||
// Singleton impl.
|
||||
if (_library == null) _library = Library._();
|
||||
return _library;
|
||||
}
|
||||
|
||||
Library._() {
|
||||
// DYLD_LIBRARY_PATH doesn't work by default on newer macOS. Instead
|
||||
// introduce our own env variable for the same use case
|
||||
var bindingsPath = Platform.environment["DARTAGNAN_BINDINGSLIB_PATH"] ?? "";
|
||||
|
||||
var libraryPath = bindingsLibraryName("kddockwidgets");
|
||||
if (!bindingsPath.isEmpty) {
|
||||
libraryPath = bindingsPath + "/" + libraryPath;
|
||||
}
|
||||
|
||||
_dylib = ffi.DynamicLibrary.open(libraryPath);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,88 @@
|
||||
/*
|
||||
This file is part of KDDockWidgets.
|
||||
|
||||
SPDX-FileCopyrightText: 2019-2022 Klarälvdalens Datakonsult AB, a KDAB Group company <info@kdab.com>
|
||||
Author: Sérgio Martins <sergio.martins@kdab.com>
|
||||
|
||||
SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only
|
||||
|
||||
Contact KDAB at <info@kdab.com> for commercial licensing options.
|
||||
*/
|
||||
/*
|
||||
Copyright 2020, the Dart project authors.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without
|
||||
modification, are permitted provided that the following conditions are
|
||||
met:
|
||||
* Redistributions of source code must retain the above copyright
|
||||
notice, this list of conditions and the following disclaimer.
|
||||
* Redistributions in binary form must reproduce the above
|
||||
copyright notice, this list of conditions and the following
|
||||
disclaimer in the documentation and/or other materials provided
|
||||
with the distribution.
|
||||
* Neither the name of Google Inc. nor the names of its
|
||||
contributors may be used to endorse or promote products derived
|
||||
from this software without specific prior written permission.
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
// File copied from https://github.com/mraleph/dartvm_api_vs_ffi.git
|
||||
// commit d634ca401ced4a
|
||||
|
||||
// Adjusted for null safety
|
||||
|
||||
import 'dart:ffi' as ffi;
|
||||
import 'package:ffi/ffi.dart';
|
||||
|
||||
typedef Dart_WeakPersistentHandleFinalizer_Type = ffi.Void Function(
|
||||
ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>);
|
||||
typedef Dart_NewWeakPersistentHandle_Type = ffi.Pointer<ffi.Void> Function(
|
||||
ffi.Handle,
|
||||
ffi.Pointer<ffi.Void>,
|
||||
ffi.IntPtr,
|
||||
ffi.Pointer<ffi.NativeFunction<Dart_WeakPersistentHandleFinalizer_Type>>);
|
||||
typedef Dart_NewWeakPersistentHandle_DartType = ffi.Pointer<ffi.Void> Function(
|
||||
Object,
|
||||
ffi.Pointer<ffi.Void>,
|
||||
int,
|
||||
ffi.Pointer<ffi.NativeFunction<Dart_WeakPersistentHandleFinalizer_Type>>);
|
||||
|
||||
class _DartEntry extends ffi.Struct {
|
||||
ffi.Pointer<ffi.Int8>? name;
|
||||
ffi.Pointer<ffi.Void>? function;
|
||||
}
|
||||
|
||||
class _DartApi extends ffi.Struct {
|
||||
@ffi.Int32()
|
||||
int? major;
|
||||
@ffi.Int32()
|
||||
int? minor;
|
||||
ffi.Pointer<_DartEntry>? functions;
|
||||
}
|
||||
|
||||
final newWeakPersistentHandle = () {
|
||||
final ffi.Pointer<_DartApi> dlapi = ffi.NativeApi.initializeApiDLData.cast();
|
||||
for (int i = 0;
|
||||
dlapi.ref.functions?.elementAt(i).ref.name != ffi.nullptr;
|
||||
i++) {
|
||||
final name = dlapi.ref.functions?.elementAt(i).ref.name?.cast<Utf8>();
|
||||
|
||||
if (name?.toDartString() == 'Dart_NewWeakPersistentHandle') {
|
||||
var func = dlapi.ref.functions?.elementAt(i).ref.function;
|
||||
if (func != null)
|
||||
return func
|
||||
.cast<ffi.NativeFunction<Dart_NewWeakPersistentHandle_Type>>()
|
||||
.asFunction<Dart_NewWeakPersistentHandle_DartType>();
|
||||
}
|
||||
}
|
||||
}();
|
||||
@@ -0,0 +1,20 @@
|
||||
/*
|
||||
This file is part of KDDockWidgets.
|
||||
|
||||
SPDX-FileCopyrightText: 2019-2022 Klarälvdalens Datakonsult AB, a KDAB Group company <info@kdab.com>
|
||||
Author: Sérgio Martins <sergio.martins@kdab.com>
|
||||
|
||||
SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only
|
||||
|
||||
Contact KDAB at <info@kdab.com> for commercial licensing options.
|
||||
*/
|
||||
|
||||
//tag=1052
|
||||
import 'dart:ffi' as ffi;
|
||||
import 'package:ffi/ffi.dart';
|
||||
import 'TypeHelpers.dart';
|
||||
import '../Bindings.dart';
|
||||
import '../FinalizerHelpers.dart';
|
||||
|
||||
//tag=1051
|
||||
var _dylib = Library.instance().dylib;
|
||||
@@ -0,0 +1,650 @@
|
||||
/*
|
||||
This file is part of KDDockWidgets.
|
||||
|
||||
SPDX-FileCopyrightText: 2019-2022 Klarälvdalens Datakonsult AB, a KDAB Group company <info@kdab.com>
|
||||
Author: Sérgio Martins <sergio.martins@kdab.com>
|
||||
|
||||
SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only
|
||||
|
||||
Contact KDAB at <info@kdab.com> for commercial licensing options.
|
||||
*/
|
||||
|
||||
//tag=1052
|
||||
import 'dart:ffi' as ffi;
|
||||
import 'package:ffi/ffi.dart';
|
||||
import 'TypeHelpers.dart';
|
||||
import '../Bindings.dart';
|
||||
import '../FinalizerHelpers.dart';
|
||||
|
||||
//tag=1051
|
||||
var _dylib = Library.instance().dylib;
|
||||
final _finalizer =
|
||||
_dylib.lookup<ffi.NativeFunction<Dart_WeakPersistentHandleFinalizer_Type>>(
|
||||
'c_KDDockWidgets__Platform_Finalizer');
|
||||
|
||||
class Platform {
|
||||
//tag=1060
|
||||
static var s_dartInstanceByCppPtr = Map<int, Platform>();
|
||||
var _thisCpp = null;
|
||||
bool _needsAutoDelete = false;
|
||||
get thisCpp => _thisCpp;
|
||||
set thisCpp(var ptr) {
|
||||
_thisCpp = ptr;
|
||||
ffi.Pointer<ffi.Void> ptrvoid = ptr.cast<ffi.Void>();
|
||||
if (_needsAutoDelete)
|
||||
newWeakPersistentHandle?.call(this, ptrvoid, 0, _finalizer);
|
||||
}
|
||||
|
||||
static bool isCached(var cppPointer) {
|
||||
//tag=1024
|
||||
return s_dartInstanceByCppPtr.containsKey(cppPointer.address);
|
||||
}
|
||||
|
||||
//tag=1061
|
||||
factory Platform.fromCache(var cppPointer, [needsAutoDelete = false]) {
|
||||
return (s_dartInstanceByCppPtr[cppPointer.address] ??
|
||||
Platform.fromCppPointer(cppPointer, needsAutoDelete)) as Platform;
|
||||
}
|
||||
Platform.fromCppPointer(var cppPointer, [this._needsAutoDelete = false]) {
|
||||
//tag=1024
|
||||
thisCpp = cppPointer;
|
||||
}
|
||||
//tag=1025
|
||||
Platform.init() {}
|
||||
//tag=1023
|
||||
//Platform()
|
||||
Platform() {
|
||||
//tag=1075
|
||||
final voidstar_Func_void func = _dylib
|
||||
.lookup<ffi.NativeFunction<voidstar_Func_void_FFI>>(
|
||||
'c_KDDockWidgets__Platform__constructor')
|
||||
.asFunction();
|
||||
thisCpp = func();
|
||||
Platform.s_dartInstanceByCppPtr[thisCpp.address] = this;
|
||||
registerCallbacks();
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// applicationName() const
|
||||
QString applicationName() {
|
||||
//tag=1028
|
||||
final voidstar_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<voidstar_Func_voidstar_FFI>>(
|
||||
cFunctionSymbolName(680))
|
||||
.asFunction();
|
||||
//tag=1033
|
||||
ffi.Pointer<void> result = func(thisCpp);
|
||||
return QString.fromCppPointer(result, true);
|
||||
}
|
||||
|
||||
//tag=1035
|
||||
static ffi.Pointer<void> applicationName_calledFromC(
|
||||
ffi.Pointer<void> thisCpp) {
|
||||
var dartInstance = Platform.s_dartInstanceByCppPtr[thisCpp.address];
|
||||
if (dartInstance == null) {
|
||||
print(
|
||||
"Dart instance not found for Platform::applicationName() const! (${thisCpp.address})");
|
||||
throw Error();
|
||||
}
|
||||
//tag=1037
|
||||
final result = dartInstance.applicationName();
|
||||
return result.thisCpp;
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// createDefaultViewFactory()
|
||||
ViewFactory createDefaultViewFactory() {
|
||||
//tag=1028
|
||||
final voidstar_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<voidstar_Func_voidstar_FFI>>(
|
||||
cFunctionSymbolName(681))
|
||||
.asFunction();
|
||||
//tag=1033
|
||||
ffi.Pointer<void> result = func(thisCpp);
|
||||
return ViewFactory.fromCppPointer(result, false);
|
||||
}
|
||||
|
||||
//tag=1035
|
||||
static ffi.Pointer<void> createDefaultViewFactory_calledFromC(
|
||||
ffi.Pointer<void> thisCpp) {
|
||||
var dartInstance = Platform.s_dartInstanceByCppPtr[thisCpp.address];
|
||||
if (dartInstance == null) {
|
||||
print(
|
||||
"Dart instance not found for Platform::createDefaultViewFactory()! (${thisCpp.address})");
|
||||
throw Error();
|
||||
}
|
||||
//tag=1037
|
||||
final result = dartInstance.createDefaultViewFactory();
|
||||
return result.thisCpp;
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// hasActivePopup() const
|
||||
bool hasActivePopup() {
|
||||
//tag=1028
|
||||
final bool_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<bool_Func_voidstar_FFI>>(
|
||||
cFunctionSymbolName(682))
|
||||
.asFunction();
|
||||
//tag=1029
|
||||
return func(thisCpp) != 0;
|
||||
}
|
||||
|
||||
//tag=1035
|
||||
static int hasActivePopup_calledFromC(ffi.Pointer<void> thisCpp) {
|
||||
var dartInstance = Platform.s_dartInstanceByCppPtr[thisCpp.address];
|
||||
if (dartInstance == null) {
|
||||
print(
|
||||
"Dart instance not found for Platform::hasActivePopup() const! (${thisCpp.address})");
|
||||
throw Error();
|
||||
}
|
||||
//tag=1037
|
||||
final result = dartInstance.hasActivePopup();
|
||||
return result ? 1 : 0;
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// inDisallowedDragView(QPoint globalPos) const
|
||||
bool inDisallowedDragView(QPoint globalPos) {
|
||||
//tag=1028
|
||||
final bool_Func_voidstar_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<bool_Func_voidstar_voidstar_FFI>>(
|
||||
cFunctionSymbolName(683))
|
||||
.asFunction();
|
||||
//tag=1029
|
||||
return func(thisCpp, globalPos == null ? ffi.nullptr : globalPos.thisCpp) !=
|
||||
0;
|
||||
}
|
||||
|
||||
//tag=1035
|
||||
static int inDisallowedDragView_calledFromC(
|
||||
ffi.Pointer<void> thisCpp, ffi.Pointer<void> globalPos) {
|
||||
var dartInstance = Platform.s_dartInstanceByCppPtr[thisCpp.address];
|
||||
if (dartInstance == null) {
|
||||
print(
|
||||
"Dart instance not found for Platform::inDisallowedDragView(QPoint globalPos) const! (${thisCpp.address})");
|
||||
throw Error();
|
||||
}
|
||||
//tag=1037
|
||||
final result =
|
||||
dartInstance.inDisallowedDragView(QPoint.fromCppPointer(globalPos));
|
||||
return result ? 1 : 0;
|
||||
}
|
||||
|
||||
//tag=1024
|
||||
static
|
||||
//tag=1027
|
||||
// instance()
|
||||
Platform instance() {
|
||||
//tag=1028
|
||||
final voidstar_Func_void func = _dylib
|
||||
.lookup<ffi.NativeFunction<voidstar_Func_void_FFI>>(
|
||||
'c_static_KDDockWidgets__Platform__instance')
|
||||
.asFunction();
|
||||
//tag=1033
|
||||
ffi.Pointer<void> result = func();
|
||||
return Platform.fromCppPointer(result, false);
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// isLeftMouseButtonPressed() const
|
||||
bool isLeftMouseButtonPressed() {
|
||||
//tag=1028
|
||||
final bool_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<bool_Func_voidstar_FFI>>(
|
||||
cFunctionSymbolName(685))
|
||||
.asFunction();
|
||||
//tag=1029
|
||||
return func(thisCpp) != 0;
|
||||
}
|
||||
|
||||
//tag=1035
|
||||
static int isLeftMouseButtonPressed_calledFromC(ffi.Pointer<void> thisCpp) {
|
||||
var dartInstance = Platform.s_dartInstanceByCppPtr[thisCpp.address];
|
||||
if (dartInstance == null) {
|
||||
print(
|
||||
"Dart instance not found for Platform::isLeftMouseButtonPressed() const! (${thisCpp.address})");
|
||||
throw Error();
|
||||
}
|
||||
//tag=1037
|
||||
final result = dartInstance.isLeftMouseButtonPressed();
|
||||
return result ? 1 : 0;
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// isProcessingAppQuitEvent() const
|
||||
bool isProcessingAppQuitEvent() {
|
||||
//tag=1028
|
||||
final bool_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<bool_Func_voidstar_FFI>>(
|
||||
cFunctionSymbolName(686))
|
||||
.asFunction();
|
||||
//tag=1029
|
||||
return func(thisCpp) != 0;
|
||||
}
|
||||
|
||||
//tag=1035
|
||||
static int isProcessingAppQuitEvent_calledFromC(ffi.Pointer<void> thisCpp) {
|
||||
var dartInstance = Platform.s_dartInstanceByCppPtr[thisCpp.address];
|
||||
if (dartInstance == null) {
|
||||
print(
|
||||
"Dart instance not found for Platform::isProcessingAppQuitEvent() const! (${thisCpp.address})");
|
||||
throw Error();
|
||||
}
|
||||
//tag=1037
|
||||
final result = dartInstance.isProcessingAppQuitEvent();
|
||||
return result ? 1 : 0;
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// isQtQuick() const
|
||||
bool isQtQuick() {
|
||||
//tag=1028
|
||||
final bool_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<bool_Func_voidstar_FFI>>(
|
||||
'c_KDDockWidgets__Platform__isQtQuick')
|
||||
.asFunction();
|
||||
//tag=1029
|
||||
return func(thisCpp) != 0;
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// isQtWidgets() const
|
||||
bool isQtWidgets() {
|
||||
//tag=1028
|
||||
final bool_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<bool_Func_voidstar_FFI>>(
|
||||
'c_KDDockWidgets__Platform__isQtWidgets')
|
||||
.asFunction();
|
||||
//tag=1029
|
||||
return func(thisCpp) != 0;
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// name() const
|
||||
String name() {
|
||||
//tag=1028
|
||||
final string_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<string_Func_voidstar_FFI>>(
|
||||
cFunctionSymbolName(689))
|
||||
.asFunction();
|
||||
//tag=1032
|
||||
ffi.Pointer<Utf8> result = func(thisCpp);
|
||||
return result.toDartString();
|
||||
}
|
||||
|
||||
//tag=1035
|
||||
static ffi.Pointer<Utf8> name_calledFromC(ffi.Pointer<void> thisCpp) {
|
||||
var dartInstance = Platform.s_dartInstanceByCppPtr[thisCpp.address];
|
||||
if (dartInstance == null) {
|
||||
print(
|
||||
"Dart instance not found for Platform::name() const! (${thisCpp.address})");
|
||||
throw Error();
|
||||
}
|
||||
//tag=1037
|
||||
final result = dartInstance.name();
|
||||
return result.toNativeUtf8();
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// organizationName() const
|
||||
QString organizationName() {
|
||||
//tag=1028
|
||||
final voidstar_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<voidstar_Func_voidstar_FFI>>(
|
||||
cFunctionSymbolName(690))
|
||||
.asFunction();
|
||||
//tag=1033
|
||||
ffi.Pointer<void> result = func(thisCpp);
|
||||
return QString.fromCppPointer(result, true);
|
||||
}
|
||||
|
||||
//tag=1035
|
||||
static ffi.Pointer<void> organizationName_calledFromC(
|
||||
ffi.Pointer<void> thisCpp) {
|
||||
var dartInstance = Platform.s_dartInstanceByCppPtr[thisCpp.address];
|
||||
if (dartInstance == null) {
|
||||
print(
|
||||
"Dart instance not found for Platform::organizationName() const! (${thisCpp.address})");
|
||||
throw Error();
|
||||
}
|
||||
//tag=1037
|
||||
final result = dartInstance.organizationName();
|
||||
return result.thisCpp;
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// restoreMouseCursor()
|
||||
restoreMouseCursor() {
|
||||
//tag=1028
|
||||
final void_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<void_Func_voidstar_FFI>>(
|
||||
cFunctionSymbolName(691))
|
||||
.asFunction();
|
||||
//tag=1030
|
||||
func(thisCpp);
|
||||
}
|
||||
|
||||
//tag=1035
|
||||
static void restoreMouseCursor_calledFromC(ffi.Pointer<void> thisCpp) {
|
||||
var dartInstance = Platform.s_dartInstanceByCppPtr[thisCpp.address];
|
||||
if (dartInstance == null) {
|
||||
print(
|
||||
"Dart instance not found for Platform::restoreMouseCursor()! (${thisCpp.address})");
|
||||
throw Error();
|
||||
}
|
||||
//tag=1036
|
||||
dartInstance.restoreMouseCursor();
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// screenNumberFor(KDDockWidgets::View * arg__1) const
|
||||
int screenNumberFor(View? arg__1) {
|
||||
//tag=1028
|
||||
final int_Func_voidstar_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<int_Func_voidstar_voidstar_FFI>>(
|
||||
cFunctionSymbolName(692))
|
||||
.asFunction();
|
||||
//tag=1031
|
||||
return func(thisCpp, arg__1 == null ? ffi.nullptr : arg__1.thisCpp);
|
||||
}
|
||||
|
||||
//tag=1035
|
||||
static int screenNumberFor_calledFromC(
|
||||
ffi.Pointer<void> thisCpp, ffi.Pointer<void>? arg__1) {
|
||||
var dartInstance = Platform.s_dartInstanceByCppPtr[thisCpp.address];
|
||||
if (dartInstance == null) {
|
||||
print(
|
||||
"Dart instance not found for Platform::screenNumberFor(KDDockWidgets::View * arg__1) const! (${thisCpp.address})");
|
||||
throw Error();
|
||||
}
|
||||
//tag=1037
|
||||
final result = dartInstance.screenNumberFor(View.fromCppPointer(arg__1));
|
||||
return result;
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// screenSizeFor(KDDockWidgets::View * arg__1) const
|
||||
QSize screenSizeFor(View? arg__1) {
|
||||
//tag=1028
|
||||
final voidstar_Func_voidstar_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<voidstar_Func_voidstar_voidstar_FFI>>(
|
||||
cFunctionSymbolName(693))
|
||||
.asFunction();
|
||||
//tag=1033
|
||||
ffi.Pointer<void> result =
|
||||
func(thisCpp, arg__1 == null ? ffi.nullptr : arg__1.thisCpp);
|
||||
return QSize.fromCppPointer(result, true);
|
||||
}
|
||||
|
||||
//tag=1035
|
||||
static ffi.Pointer<void> screenSizeFor_calledFromC(
|
||||
ffi.Pointer<void> thisCpp, ffi.Pointer<void>? arg__1) {
|
||||
var dartInstance = Platform.s_dartInstanceByCppPtr[thisCpp.address];
|
||||
if (dartInstance == null) {
|
||||
print(
|
||||
"Dart instance not found for Platform::screenSizeFor(KDDockWidgets::View * arg__1) const! (${thisCpp.address})");
|
||||
throw Error();
|
||||
}
|
||||
//tag=1037
|
||||
final result = dartInstance.screenSizeFor(View.fromCppPointer(arg__1));
|
||||
return result.thisCpp;
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// startDragDistance() const
|
||||
int startDragDistance() {
|
||||
//tag=1028
|
||||
final int_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<int_Func_voidstar_FFI>>(
|
||||
'c_KDDockWidgets__Platform__startDragDistance')
|
||||
.asFunction();
|
||||
//tag=1031
|
||||
return func(thisCpp);
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// startDragDistance_impl() const
|
||||
int startDragDistance_impl() {
|
||||
//tag=1028
|
||||
final int_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<int_Func_voidstar_FFI>>(
|
||||
cFunctionSymbolName(695))
|
||||
.asFunction();
|
||||
//tag=1031
|
||||
return func(thisCpp);
|
||||
}
|
||||
|
||||
//tag=1035
|
||||
static int startDragDistance_impl_calledFromC(ffi.Pointer<void> thisCpp) {
|
||||
var dartInstance = Platform.s_dartInstanceByCppPtr[thisCpp.address];
|
||||
if (dartInstance == null) {
|
||||
print(
|
||||
"Dart instance not found for Platform::startDragDistance_impl() const! (${thisCpp.address})");
|
||||
throw Error();
|
||||
}
|
||||
//tag=1037
|
||||
final result = dartInstance.startDragDistance_impl();
|
||||
return result;
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// ungrabMouse()
|
||||
ungrabMouse() {
|
||||
//tag=1028
|
||||
final void_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<void_Func_voidstar_FFI>>(
|
||||
cFunctionSymbolName(696))
|
||||
.asFunction();
|
||||
//tag=1030
|
||||
func(thisCpp);
|
||||
}
|
||||
|
||||
//tag=1035
|
||||
static void ungrabMouse_calledFromC(ffi.Pointer<void> thisCpp) {
|
||||
var dartInstance = Platform.s_dartInstanceByCppPtr[thisCpp.address];
|
||||
if (dartInstance == null) {
|
||||
print(
|
||||
"Dart instance not found for Platform::ungrabMouse()! (${thisCpp.address})");
|
||||
throw Error();
|
||||
}
|
||||
//tag=1036
|
||||
dartInstance.ungrabMouse();
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// usesFallbackMouseGrabber() const
|
||||
bool usesFallbackMouseGrabber() {
|
||||
//tag=1028
|
||||
final bool_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<bool_Func_voidstar_FFI>>(
|
||||
cFunctionSymbolName(697))
|
||||
.asFunction();
|
||||
//tag=1029
|
||||
return func(thisCpp) != 0;
|
||||
}
|
||||
|
||||
//tag=1035
|
||||
static int usesFallbackMouseGrabber_calledFromC(ffi.Pointer<void> thisCpp) {
|
||||
var dartInstance = Platform.s_dartInstanceByCppPtr[thisCpp.address];
|
||||
if (dartInstance == null) {
|
||||
print(
|
||||
"Dart instance not found for Platform::usesFallbackMouseGrabber() const! (${thisCpp.address})");
|
||||
throw Error();
|
||||
}
|
||||
//tag=1037
|
||||
final result = dartInstance.usesFallbackMouseGrabber();
|
||||
return result ? 1 : 0;
|
||||
}
|
||||
|
||||
//tag=1022
|
||||
void release() {
|
||||
final void_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<void_Func_voidstar_FFI>>(
|
||||
'c_KDDockWidgets__Platform__destructor')
|
||||
.asFunction();
|
||||
func(thisCpp);
|
||||
}
|
||||
|
||||
//tag=1019
|
||||
String cFunctionSymbolName(int methodId) {
|
||||
switch (methodId) {
|
||||
case 680:
|
||||
return "c_KDDockWidgets__Platform__applicationName";
|
||||
case 681:
|
||||
return "c_KDDockWidgets__Platform__createDefaultViewFactory";
|
||||
case 682:
|
||||
return "c_KDDockWidgets__Platform__hasActivePopup";
|
||||
case 683:
|
||||
return "c_KDDockWidgets__Platform__inDisallowedDragView_QPoint";
|
||||
case 685:
|
||||
return "c_KDDockWidgets__Platform__isLeftMouseButtonPressed";
|
||||
case 686:
|
||||
return "c_KDDockWidgets__Platform__isProcessingAppQuitEvent";
|
||||
case 689:
|
||||
return "c_KDDockWidgets__Platform__name";
|
||||
case 690:
|
||||
return "c_KDDockWidgets__Platform__organizationName";
|
||||
case 691:
|
||||
return "c_KDDockWidgets__Platform__restoreMouseCursor";
|
||||
case 692:
|
||||
return "c_KDDockWidgets__Platform__screenNumberFor_View";
|
||||
case 693:
|
||||
return "c_KDDockWidgets__Platform__screenSizeFor_View";
|
||||
case 695:
|
||||
return "c_KDDockWidgets__Platform__startDragDistance_impl";
|
||||
case 696:
|
||||
return "c_KDDockWidgets__Platform__ungrabMouse";
|
||||
case 697:
|
||||
return "c_KDDockWidgets__Platform__usesFallbackMouseGrabber";
|
||||
}
|
||||
return "";
|
||||
}
|
||||
|
||||
static String methodNameFromId(int methodId) {
|
||||
switch (methodId) {
|
||||
case 680:
|
||||
return "applicationName";
|
||||
case 681:
|
||||
return "createDefaultViewFactory";
|
||||
case 682:
|
||||
return "hasActivePopup";
|
||||
case 683:
|
||||
return "inDisallowedDragView";
|
||||
case 685:
|
||||
return "isLeftMouseButtonPressed";
|
||||
case 686:
|
||||
return "isProcessingAppQuitEvent";
|
||||
case 689:
|
||||
return "name";
|
||||
case 690:
|
||||
return "organizationName";
|
||||
case 691:
|
||||
return "restoreMouseCursor";
|
||||
case 692:
|
||||
return "screenNumberFor";
|
||||
case 693:
|
||||
return "screenSizeFor";
|
||||
case 695:
|
||||
return "startDragDistance_impl";
|
||||
case 696:
|
||||
return "ungrabMouse";
|
||||
case 697:
|
||||
return "usesFallbackMouseGrabber";
|
||||
}
|
||||
throw Error();
|
||||
}
|
||||
|
||||
//tag=1020
|
||||
void registerCallbacks() {
|
||||
assert(thisCpp != null);
|
||||
final RegisterMethodIsReimplementedCallback registerCallback = _dylib
|
||||
.lookup<ffi.NativeFunction<RegisterMethodIsReimplementedCallback_FFI>>(
|
||||
'c_KDDockWidgets__Platform__registerVirtualMethodCallback')
|
||||
.asFunction();
|
||||
|
||||
//tag=1021
|
||||
final callback680 = ffi.Pointer.fromFunction<voidstar_Func_voidstar_FFI>(
|
||||
Platform.applicationName_calledFromC);
|
||||
registerCallback(thisCpp, callback680, 680);
|
||||
//tag=1021
|
||||
final callback681 = ffi.Pointer.fromFunction<voidstar_Func_voidstar_FFI>(
|
||||
Platform.createDefaultViewFactory_calledFromC);
|
||||
registerCallback(thisCpp, callback681, 681);
|
||||
const callbackExcept682 = 0;
|
||||
//tag=1021
|
||||
final callback682 = ffi.Pointer.fromFunction<bool_Func_voidstar_FFI>(
|
||||
Platform.hasActivePopup_calledFromC, callbackExcept682);
|
||||
registerCallback(thisCpp, callback682, 682);
|
||||
const callbackExcept683 = 0;
|
||||
//tag=1021
|
||||
final callback683 =
|
||||
ffi.Pointer.fromFunction<bool_Func_voidstar_voidstar_FFI>(
|
||||
Platform.inDisallowedDragView_calledFromC, callbackExcept683);
|
||||
registerCallback(thisCpp, callback683, 683);
|
||||
const callbackExcept685 = 0;
|
||||
//tag=1021
|
||||
final callback685 = ffi.Pointer.fromFunction<bool_Func_voidstar_FFI>(
|
||||
Platform.isLeftMouseButtonPressed_calledFromC, callbackExcept685);
|
||||
registerCallback(thisCpp, callback685, 685);
|
||||
const callbackExcept686 = 0;
|
||||
//tag=1021
|
||||
final callback686 = ffi.Pointer.fromFunction<bool_Func_voidstar_FFI>(
|
||||
Platform.isProcessingAppQuitEvent_calledFromC, callbackExcept686);
|
||||
registerCallback(thisCpp, callback686, 686);
|
||||
//tag=1021
|
||||
final callback689 = ffi.Pointer.fromFunction<string_Func_voidstar_FFI>(
|
||||
Platform.name_calledFromC);
|
||||
registerCallback(thisCpp, callback689, 689);
|
||||
//tag=1021
|
||||
final callback690 = ffi.Pointer.fromFunction<voidstar_Func_voidstar_FFI>(
|
||||
Platform.organizationName_calledFromC);
|
||||
registerCallback(thisCpp, callback690, 690);
|
||||
//tag=1021
|
||||
final callback691 = ffi.Pointer.fromFunction<void_Func_voidstar_FFI>(
|
||||
Platform.restoreMouseCursor_calledFromC);
|
||||
registerCallback(thisCpp, callback691, 691);
|
||||
const callbackExcept692 = 0;
|
||||
//tag=1021
|
||||
final callback692 =
|
||||
ffi.Pointer.fromFunction<int_Func_voidstar_voidstar_FFI>(
|
||||
Platform.screenNumberFor_calledFromC, callbackExcept692);
|
||||
registerCallback(thisCpp, callback692, 692);
|
||||
//tag=1021
|
||||
final callback693 =
|
||||
ffi.Pointer.fromFunction<voidstar_Func_voidstar_voidstar_FFI>(
|
||||
Platform.screenSizeFor_calledFromC);
|
||||
registerCallback(thisCpp, callback693, 693);
|
||||
const callbackExcept695 = 0;
|
||||
//tag=1021
|
||||
final callback695 = ffi.Pointer.fromFunction<int_Func_voidstar_FFI>(
|
||||
Platform.startDragDistance_impl_calledFromC, callbackExcept695);
|
||||
registerCallback(thisCpp, callback695, 695);
|
||||
//tag=1021
|
||||
final callback696 = ffi.Pointer.fromFunction<void_Func_voidstar_FFI>(
|
||||
Platform.ungrabMouse_calledFromC);
|
||||
registerCallback(thisCpp, callback696, 696);
|
||||
const callbackExcept697 = 0;
|
||||
//tag=1021
|
||||
final callback697 = ffi.Pointer.fromFunction<bool_Func_voidstar_FFI>(
|
||||
Platform.usesFallbackMouseGrabber_calledFromC, callbackExcept697);
|
||||
registerCallback(thisCpp, callback697, 697);
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
1481
src/flutter/generated/KDDockWidgetsBindings/dart/lib/src/QList.dart
Normal file
1481
src/flutter/generated/KDDockWidgetsBindings/dart/lib/src/QList.dart
Normal file
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,492 @@
|
||||
/*
|
||||
This file is part of KDDockWidgets.
|
||||
|
||||
SPDX-FileCopyrightText: 2019-2022 Klarälvdalens Datakonsult AB, a KDAB Group company <info@kdab.com>
|
||||
Author: Sérgio Martins <sergio.martins@kdab.com>
|
||||
|
||||
SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only
|
||||
|
||||
Contact KDAB at <info@kdab.com> for commercial licensing options.
|
||||
*/
|
||||
|
||||
//tag=1052
|
||||
import 'dart:ffi' as ffi;
|
||||
import 'package:ffi/ffi.dart';
|
||||
import 'TypeHelpers.dart';
|
||||
import '../Bindings.dart';
|
||||
import '../FinalizerHelpers.dart';
|
||||
|
||||
//tag=1051
|
||||
var _dylib = Library.instance().dylib;
|
||||
final _finalizer =
|
||||
_dylib.lookup<ffi.NativeFunction<Dart_WeakPersistentHandleFinalizer_Type>>(
|
||||
'c_QObject_Finalizer');
|
||||
|
||||
class QObject {
|
||||
Map<Function, List<Function>> signalHandlerersBySignal = {};
|
||||
|
||||
//tag=1060
|
||||
static var s_dartInstanceByCppPtr = Map<int, QObject>();
|
||||
var _thisCpp = null;
|
||||
bool _needsAutoDelete = false;
|
||||
get thisCpp => _thisCpp;
|
||||
set thisCpp(var ptr) {
|
||||
_thisCpp = ptr;
|
||||
ffi.Pointer<ffi.Void> ptrvoid = ptr.cast<ffi.Void>();
|
||||
if (_needsAutoDelete)
|
||||
newWeakPersistentHandle?.call(this, ptrvoid, 0, _finalizer);
|
||||
}
|
||||
|
||||
static bool isCached(var cppPointer) {
|
||||
//tag=1024
|
||||
return s_dartInstanceByCppPtr.containsKey(cppPointer.address);
|
||||
}
|
||||
|
||||
//tag=1061
|
||||
factory QObject.fromCache(var cppPointer, [needsAutoDelete = false]) {
|
||||
return (s_dartInstanceByCppPtr[cppPointer.address] ??
|
||||
QObject.fromCppPointer(cppPointer, needsAutoDelete)) as QObject;
|
||||
}
|
||||
QObject.fromCppPointer(var cppPointer, [this._needsAutoDelete = false]) {
|
||||
//tag=1024
|
||||
thisCpp = cppPointer;
|
||||
}
|
||||
//tag=1025
|
||||
QObject.init() {}
|
||||
//tag=1023
|
||||
//QObject(QObject * parent)
|
||||
QObject({required QObject? parent}) {
|
||||
//tag=1075
|
||||
final voidstar_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<voidstar_Func_voidstar_FFI>>(
|
||||
'c_QObject__constructor_QObject')
|
||||
.asFunction();
|
||||
thisCpp = func(parent == null ? ffi.nullptr : parent.thisCpp);
|
||||
QObject.s_dartInstanceByCppPtr[thisCpp.address] = this;
|
||||
registerCallbacks();
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// blockSignals(bool b)
|
||||
bool blockSignals(bool b) {
|
||||
//tag=1028
|
||||
final bool_Func_voidstar_bool func = _dylib
|
||||
.lookup<ffi.NativeFunction<bool_Func_voidstar_ffi_Int8_FFI>>(
|
||||
'c_QObject__blockSignals_bool')
|
||||
.asFunction();
|
||||
//tag=1029
|
||||
return func(thisCpp, b ? 1 : 0) != 0;
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// children() const
|
||||
QList children() {
|
||||
//tag=1028
|
||||
final voidstar_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<voidstar_Func_voidstar_FFI>>(
|
||||
'c_QObject__children')
|
||||
.asFunction();
|
||||
//tag=1033
|
||||
ffi.Pointer<void> result = func(thisCpp);
|
||||
return QList<QObject>.fromCppPointer(result, false);
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// deleteLater()
|
||||
deleteLater() {
|
||||
//tag=1028
|
||||
final void_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<void_Func_voidstar_FFI>>(
|
||||
'c_QObject__deleteLater')
|
||||
.asFunction();
|
||||
//tag=1030
|
||||
func(thisCpp);
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// destroyed(QObject * arg__1)
|
||||
destroyed({required QObject? arg__1}) {
|
||||
//tag=1028
|
||||
final void_Func_voidstar_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<void_Func_voidstar_voidstar_FFI>>(
|
||||
'c_QObject__destroyed_QObject')
|
||||
.asFunction();
|
||||
//tag=1030
|
||||
func(thisCpp, arg__1 == null ? ffi.nullptr : arg__1.thisCpp);
|
||||
}
|
||||
|
||||
//tag=1077
|
||||
void onDestroyed(Function callback, {QObject? context}) {
|
||||
final SignalHandler func = _dylib
|
||||
.lookup<ffi.NativeFunction<SignalHandler_FFI>>(
|
||||
'c_QObject__onDestroyed_QObject')
|
||||
.asFunction();
|
||||
final dartCallback =
|
||||
ffi.Pointer.fromFunction<ffi.Void Function(ffi.Pointer<void>)>(
|
||||
onDestroyed_callback);
|
||||
final callbackMethod = onDestroyed_callback;
|
||||
var handlers = signalHandlerersBySignal[callbackMethod] ?? [];
|
||||
handlers.add(callback);
|
||||
signalHandlerersBySignal[callbackMethod] = handlers;
|
||||
ffi.Pointer<void> contextPtr =
|
||||
context == null ? ffi.nullptr : context.thisCpp;
|
||||
func(thisCpp, contextPtr, dartCallback);
|
||||
}
|
||||
|
||||
static void onDestroyed_callback(ffi.Pointer<void> thisCpp) {
|
||||
var dartInstance =
|
||||
QObject.s_dartInstanceByCppPtr[thisCpp.address] as QObject;
|
||||
final signalHandlers =
|
||||
dartInstance.signalHandlerersBySignal[onDestroyed_callback] ?? [];
|
||||
for (var signalHandler in signalHandlers) {
|
||||
signalHandler();
|
||||
}
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// disconnect(const QObject * receiver, const char * member) const
|
||||
bool disconnect(QObject? receiver, {String? member}) {
|
||||
//tag=1028
|
||||
final bool_Func_voidstar_voidstar_string func = _dylib
|
||||
.lookup<ffi.NativeFunction<bool_Func_voidstar_voidstar_string_FFI>>(
|
||||
'c_QObject__disconnect_QObject_char')
|
||||
.asFunction();
|
||||
//tag=1029
|
||||
return func(thisCpp, receiver == null ? ffi.nullptr : receiver.thisCpp,
|
||||
member?.toNativeUtf8() ?? ffi.nullptr) !=
|
||||
0;
|
||||
}
|
||||
|
||||
//tag=1024
|
||||
static
|
||||
//tag=1027
|
||||
// disconnect(const QObject * sender, const char * signal, const QObject * receiver, const char * member)
|
||||
bool disconnect_2(
|
||||
QObject? sender, String? signal, QObject? receiver, String? member) {
|
||||
//tag=1028
|
||||
final bool_Func_voidstar_string_voidstar_string func = _dylib
|
||||
.lookup<
|
||||
ffi.NativeFunction<
|
||||
bool_Func_voidstar_string_voidstar_string_FFI>>(
|
||||
'c_static_QObject__disconnect_QObject_char_QObject_char')
|
||||
.asFunction();
|
||||
//tag=1029
|
||||
return func(
|
||||
sender == null ? ffi.nullptr : sender.thisCpp,
|
||||
signal?.toNativeUtf8() ?? ffi.nullptr,
|
||||
receiver == null ? ffi.nullptr : receiver.thisCpp,
|
||||
member?.toNativeUtf8() ?? ffi.nullptr) !=
|
||||
0;
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// disconnect(const char * signal, const QObject * receiver, const char * member) const
|
||||
bool disconnect_3(
|
||||
{String? signal, required QObject? receiver, String? member}) {
|
||||
//tag=1028
|
||||
final bool_Func_voidstar_string_voidstar_string func = _dylib
|
||||
.lookup<
|
||||
ffi.NativeFunction<
|
||||
bool_Func_voidstar_string_voidstar_string_FFI>>(
|
||||
'c_QObject__disconnect_char_QObject_char')
|
||||
.asFunction();
|
||||
//tag=1029
|
||||
return func(
|
||||
thisCpp,
|
||||
signal?.toNativeUtf8() ?? ffi.nullptr,
|
||||
receiver == null ? ffi.nullptr : receiver.thisCpp,
|
||||
member?.toNativeUtf8() ?? ffi.nullptr) !=
|
||||
0;
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// dumpObjectInfo()
|
||||
dumpObjectInfo() {
|
||||
//tag=1028
|
||||
final void_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<void_Func_voidstar_FFI>>(
|
||||
'c_QObject__dumpObjectInfo')
|
||||
.asFunction();
|
||||
//tag=1030
|
||||
func(thisCpp);
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// dumpObjectTree()
|
||||
dumpObjectTree() {
|
||||
//tag=1028
|
||||
final void_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<void_Func_voidstar_FFI>>(
|
||||
'c_QObject__dumpObjectTree')
|
||||
.asFunction();
|
||||
//tag=1030
|
||||
func(thisCpp);
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// dynamicPropertyNames() const
|
||||
QList dynamicPropertyNames() {
|
||||
//tag=1028
|
||||
final voidstar_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<voidstar_Func_voidstar_FFI>>(
|
||||
'c_QObject__dynamicPropertyNames')
|
||||
.asFunction();
|
||||
//tag=1033
|
||||
ffi.Pointer<void> result = func(thisCpp);
|
||||
return QList<QByteArray>.fromCppPointer(result, true);
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// inherits(const char * classname) const
|
||||
bool inherits(String? classname) {
|
||||
//tag=1028
|
||||
final bool_Func_voidstar_string func = _dylib
|
||||
.lookup<ffi.NativeFunction<bool_Func_voidstar_string_FFI>>(
|
||||
'c_QObject__inherits_char')
|
||||
.asFunction();
|
||||
//tag=1029
|
||||
return func(thisCpp, classname?.toNativeUtf8() ?? ffi.nullptr) != 0;
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// installEventFilter(QObject * filterObj)
|
||||
installEventFilter(QObject? filterObj) {
|
||||
//tag=1028
|
||||
final void_Func_voidstar_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<void_Func_voidstar_voidstar_FFI>>(
|
||||
'c_QObject__installEventFilter_QObject')
|
||||
.asFunction();
|
||||
//tag=1030
|
||||
func(thisCpp, filterObj == null ? ffi.nullptr : filterObj.thisCpp);
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// isWidgetType() const
|
||||
bool isWidgetType() {
|
||||
//tag=1028
|
||||
final bool_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<bool_Func_voidstar_FFI>>(
|
||||
'c_QObject__isWidgetType')
|
||||
.asFunction();
|
||||
//tag=1029
|
||||
return func(thisCpp) != 0;
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// isWindowType() const
|
||||
bool isWindowType() {
|
||||
//tag=1028
|
||||
final bool_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<bool_Func_voidstar_FFI>>(
|
||||
'c_QObject__isWindowType')
|
||||
.asFunction();
|
||||
//tag=1029
|
||||
return func(thisCpp) != 0;
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// killTimer(int id)
|
||||
killTimer(int id) {
|
||||
//tag=1028
|
||||
final void_Func_voidstar_int func = _dylib
|
||||
.lookup<ffi.NativeFunction<void_Func_voidstar_ffi_Int32_FFI>>(
|
||||
'c_QObject__killTimer_int')
|
||||
.asFunction();
|
||||
//tag=1030
|
||||
func(thisCpp, id);
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// objectName() const
|
||||
QString objectName() {
|
||||
//tag=1028
|
||||
final voidstar_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<voidstar_Func_voidstar_FFI>>(
|
||||
'c_QObject__objectName')
|
||||
.asFunction();
|
||||
//tag=1033
|
||||
ffi.Pointer<void> result = func(thisCpp);
|
||||
return QString.fromCppPointer(result, true);
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// parent() const
|
||||
QObject parent() {
|
||||
//tag=1028
|
||||
final voidstar_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<voidstar_Func_voidstar_FFI>>(
|
||||
'c_QObject__parent')
|
||||
.asFunction();
|
||||
//tag=1033
|
||||
ffi.Pointer<void> result = func(thisCpp);
|
||||
return QObject.fromCppPointer(result, false);
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// receivers(const char * signal) const
|
||||
int receivers(String? signal) {
|
||||
//tag=1028
|
||||
final int_Func_voidstar_string func = _dylib
|
||||
.lookup<ffi.NativeFunction<int_Func_voidstar_string_FFI>>(
|
||||
'c_QObject__receivers_char')
|
||||
.asFunction();
|
||||
//tag=1031
|
||||
return func(thisCpp, signal?.toNativeUtf8() ?? ffi.nullptr);
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// removeEventFilter(QObject * obj)
|
||||
removeEventFilter(QObject? obj) {
|
||||
//tag=1028
|
||||
final void_Func_voidstar_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<void_Func_voidstar_voidstar_FFI>>(
|
||||
'c_QObject__removeEventFilter_QObject')
|
||||
.asFunction();
|
||||
//tag=1030
|
||||
func(thisCpp, obj == null ? ffi.nullptr : obj.thisCpp);
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// sender() const
|
||||
QObject sender() {
|
||||
//tag=1028
|
||||
final voidstar_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<voidstar_Func_voidstar_FFI>>(
|
||||
'c_QObject__sender')
|
||||
.asFunction();
|
||||
//tag=1033
|
||||
ffi.Pointer<void> result = func(thisCpp);
|
||||
return QObject.fromCppPointer(result, false);
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// senderSignalIndex() const
|
||||
int senderSignalIndex() {
|
||||
//tag=1028
|
||||
final int_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<int_Func_voidstar_FFI>>(
|
||||
'c_QObject__senderSignalIndex')
|
||||
.asFunction();
|
||||
//tag=1031
|
||||
return func(thisCpp);
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// setObjectName(const QString & name)
|
||||
setObjectName(String? name) {
|
||||
//tag=1028
|
||||
final void_Func_voidstar_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<void_Func_voidstar_voidstar_FFI>>(
|
||||
'c_QObject__setObjectName_QString')
|
||||
.asFunction();
|
||||
//tag=1030
|
||||
func(thisCpp, name?.toNativeUtf8() ?? ffi.nullptr);
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// setParent(QObject * parent)
|
||||
setParent(QObject? parent) {
|
||||
//tag=1028
|
||||
final void_Func_voidstar_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<void_Func_voidstar_voidstar_FFI>>(
|
||||
'c_QObject__setParent_QObject')
|
||||
.asFunction();
|
||||
//tag=1030
|
||||
func(thisCpp, parent == null ? ffi.nullptr : parent.thisCpp);
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// signalsBlocked() const
|
||||
bool signalsBlocked() {
|
||||
//tag=1028
|
||||
final bool_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<bool_Func_voidstar_FFI>>(
|
||||
'c_QObject__signalsBlocked')
|
||||
.asFunction();
|
||||
//tag=1029
|
||||
return func(thisCpp) != 0;
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// startTimer(int interval)
|
||||
int startTimer(int interval) {
|
||||
//tag=1028
|
||||
final int_Func_voidstar_int func = _dylib
|
||||
.lookup<ffi.NativeFunction<int_Func_voidstar_ffi_Int32_FFI>>(
|
||||
'c_QObject__startTimer_int')
|
||||
.asFunction();
|
||||
//tag=1031
|
||||
return func(thisCpp, interval);
|
||||
}
|
||||
|
||||
//tag=1024
|
||||
static
|
||||
//tag=1027
|
||||
// tr(const char * s, const char * c, int n)
|
||||
QString tr(String? s, String? c, int n) {
|
||||
//tag=1028
|
||||
final voidstar_Func_string_string_int func = _dylib
|
||||
.lookup<ffi.NativeFunction<voidstar_Func_string_string_ffi_Int32_FFI>>(
|
||||
'c_static_QObject__tr_char_char_int')
|
||||
.asFunction();
|
||||
//tag=1033
|
||||
ffi.Pointer<void> result = func(
|
||||
s?.toNativeUtf8() ?? ffi.nullptr, c?.toNativeUtf8() ?? ffi.nullptr, n);
|
||||
return QString.fromCppPointer(result, true);
|
||||
}
|
||||
|
||||
//tag=1022
|
||||
void release() {
|
||||
final void_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<void_Func_voidstar_FFI>>(
|
||||
'c_QObject__destructor')
|
||||
.asFunction();
|
||||
func(thisCpp);
|
||||
}
|
||||
|
||||
//tag=1019
|
||||
String cFunctionSymbolName(int methodId) {
|
||||
switch (methodId) {
|
||||
}
|
||||
return "";
|
||||
}
|
||||
|
||||
static String methodNameFromId(int methodId) {
|
||||
switch (methodId) {
|
||||
}
|
||||
throw Error();
|
||||
}
|
||||
|
||||
//tag=1020
|
||||
void registerCallbacks() {
|
||||
assert(thisCpp != null);
|
||||
final RegisterMethodIsReimplementedCallback registerCallback = _dylib
|
||||
.lookup<ffi.NativeFunction<RegisterMethodIsReimplementedCallback_FFI>>(
|
||||
'c_QObject__registerVirtualMethodCallback')
|
||||
.asFunction();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,188 @@
|
||||
/*
|
||||
This file is part of KDDockWidgets.
|
||||
|
||||
SPDX-FileCopyrightText: 2019-2022 Klarälvdalens Datakonsult AB, a KDAB Group company <info@kdab.com>
|
||||
Author: Sérgio Martins <sergio.martins@kdab.com>
|
||||
|
||||
SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only
|
||||
|
||||
Contact KDAB at <info@kdab.com> for commercial licensing options.
|
||||
*/
|
||||
|
||||
//tag=1052
|
||||
import 'dart:ffi' as ffi;
|
||||
import 'package:ffi/ffi.dart';
|
||||
import 'TypeHelpers.dart';
|
||||
import '../Bindings.dart';
|
||||
import '../FinalizerHelpers.dart';
|
||||
|
||||
//tag=1051
|
||||
var _dylib = Library.instance().dylib;
|
||||
final _finalizer =
|
||||
_dylib.lookup<ffi.NativeFunction<Dart_WeakPersistentHandleFinalizer_Type>>(
|
||||
'c_QPoint_Finalizer');
|
||||
|
||||
class QPoint {
|
||||
//tag=1060
|
||||
static var s_dartInstanceByCppPtr = Map<int, QPoint>();
|
||||
var _thisCpp = null;
|
||||
bool _needsAutoDelete = true;
|
||||
get thisCpp => _thisCpp;
|
||||
set thisCpp(var ptr) {
|
||||
_thisCpp = ptr;
|
||||
ffi.Pointer<ffi.Void> ptrvoid = ptr.cast<ffi.Void>();
|
||||
if (_needsAutoDelete)
|
||||
newWeakPersistentHandle?.call(this, ptrvoid, 0, _finalizer);
|
||||
}
|
||||
|
||||
static bool isCached(var cppPointer) {
|
||||
//tag=1024
|
||||
return s_dartInstanceByCppPtr.containsKey(cppPointer.address);
|
||||
}
|
||||
|
||||
//tag=1061
|
||||
factory QPoint.fromCache(var cppPointer, [needsAutoDelete = false]) {
|
||||
return (s_dartInstanceByCppPtr[cppPointer.address] ??
|
||||
QPoint.fromCppPointer(cppPointer, needsAutoDelete)) as QPoint;
|
||||
}
|
||||
QPoint.fromCppPointer(var cppPointer, [this._needsAutoDelete = false]) {
|
||||
//tag=1024
|
||||
thisCpp = cppPointer;
|
||||
}
|
||||
//tag=1025
|
||||
QPoint.init() {}
|
||||
//tag=1023
|
||||
//QPoint()
|
||||
QPoint() {
|
||||
//tag=1075
|
||||
final voidstar_Func_void func = _dylib
|
||||
.lookup<ffi.NativeFunction<voidstar_Func_void_FFI>>(
|
||||
'c_QPoint__constructor')
|
||||
.asFunction();
|
||||
thisCpp = func();
|
||||
QPoint.s_dartInstanceByCppPtr[thisCpp.address] = this;
|
||||
}
|
||||
//tag=1023
|
||||
//QPoint(int xpos, int ypos)
|
||||
QPoint.ctor2(int xpos, int ypos) {
|
||||
//tag=1075
|
||||
final voidstar_Func_int_int func = _dylib
|
||||
.lookup<ffi.NativeFunction<voidstar_Func_ffi_Int32_ffi_Int32_FFI>>(
|
||||
'c_QPoint__constructor_int_int')
|
||||
.asFunction();
|
||||
thisCpp = func(xpos, ypos);
|
||||
QPoint.s_dartInstanceByCppPtr[thisCpp.address] = this;
|
||||
}
|
||||
//tag=1024
|
||||
static
|
||||
//tag=1027
|
||||
// dotProduct(const QPoint & p1, const QPoint & p2)
|
||||
int dotProduct(QPoint? p1, QPoint? p2) {
|
||||
//tag=1028
|
||||
final int_Func_voidstar_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<int_Func_voidstar_voidstar_FFI>>(
|
||||
'c_static_QPoint__dotProduct_QPoint_QPoint')
|
||||
.asFunction();
|
||||
//tag=1031
|
||||
return func(p1 == null ? ffi.nullptr : p1.thisCpp,
|
||||
p2 == null ? ffi.nullptr : p2.thisCpp);
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// isNull() const
|
||||
bool isNull() {
|
||||
//tag=1028
|
||||
final bool_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<bool_Func_voidstar_FFI>>('c_QPoint__isNull')
|
||||
.asFunction();
|
||||
//tag=1029
|
||||
return func(thisCpp) != 0;
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// manhattanLength() const
|
||||
int manhattanLength() {
|
||||
//tag=1028
|
||||
final int_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<int_Func_voidstar_FFI>>(
|
||||
'c_QPoint__manhattanLength')
|
||||
.asFunction();
|
||||
//tag=1031
|
||||
return func(thisCpp);
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// setX(int x)
|
||||
setX(int x) {
|
||||
//tag=1028
|
||||
final void_Func_voidstar_int func = _dylib
|
||||
.lookup<ffi.NativeFunction<void_Func_voidstar_ffi_Int32_FFI>>(
|
||||
'c_QPoint__setX_int')
|
||||
.asFunction();
|
||||
//tag=1030
|
||||
func(thisCpp, x);
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// setY(int y)
|
||||
setY(int y) {
|
||||
//tag=1028
|
||||
final void_Func_voidstar_int func = _dylib
|
||||
.lookup<ffi.NativeFunction<void_Func_voidstar_ffi_Int32_FFI>>(
|
||||
'c_QPoint__setY_int')
|
||||
.asFunction();
|
||||
//tag=1030
|
||||
func(thisCpp, y);
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// transposed() const
|
||||
QPoint transposed() {
|
||||
//tag=1028
|
||||
final voidstar_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<voidstar_Func_voidstar_FFI>>(
|
||||
'c_QPoint__transposed')
|
||||
.asFunction();
|
||||
//tag=1033
|
||||
ffi.Pointer<void> result = func(thisCpp);
|
||||
return QPoint.fromCppPointer(result, true);
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// x() const
|
||||
int x() {
|
||||
//tag=1028
|
||||
final int_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<int_Func_voidstar_FFI>>('c_QPoint__x')
|
||||
.asFunction();
|
||||
//tag=1031
|
||||
return func(thisCpp);
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// y() const
|
||||
int y() {
|
||||
//tag=1028
|
||||
final int_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<int_Func_voidstar_FFI>>('c_QPoint__y')
|
||||
.asFunction();
|
||||
//tag=1031
|
||||
return func(thisCpp);
|
||||
}
|
||||
|
||||
//tag=1022
|
||||
void release() {
|
||||
final void_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<void_Func_voidstar_FFI>>(
|
||||
'c_QPoint__destructor')
|
||||
.asFunction();
|
||||
func(thisCpp);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,883 @@
|
||||
/*
|
||||
This file is part of KDDockWidgets.
|
||||
|
||||
SPDX-FileCopyrightText: 2019-2022 Klarälvdalens Datakonsult AB, a KDAB Group company <info@kdab.com>
|
||||
Author: Sérgio Martins <sergio.martins@kdab.com>
|
||||
|
||||
SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only
|
||||
|
||||
Contact KDAB at <info@kdab.com> for commercial licensing options.
|
||||
*/
|
||||
|
||||
//tag=1052
|
||||
import 'dart:ffi' as ffi;
|
||||
import 'package:ffi/ffi.dart';
|
||||
import 'TypeHelpers.dart';
|
||||
import '../Bindings.dart';
|
||||
import '../FinalizerHelpers.dart';
|
||||
|
||||
//tag=1051
|
||||
var _dylib = Library.instance().dylib;
|
||||
final _finalizer =
|
||||
_dylib.lookup<ffi.NativeFunction<Dart_WeakPersistentHandleFinalizer_Type>>(
|
||||
'c_QRect_Finalizer');
|
||||
|
||||
class QRect {
|
||||
//tag=1060
|
||||
static var s_dartInstanceByCppPtr = Map<int, QRect>();
|
||||
var _thisCpp = null;
|
||||
bool _needsAutoDelete = true;
|
||||
get thisCpp => _thisCpp;
|
||||
set thisCpp(var ptr) {
|
||||
_thisCpp = ptr;
|
||||
ffi.Pointer<ffi.Void> ptrvoid = ptr.cast<ffi.Void>();
|
||||
if (_needsAutoDelete)
|
||||
newWeakPersistentHandle?.call(this, ptrvoid, 0, _finalizer);
|
||||
}
|
||||
|
||||
static bool isCached(var cppPointer) {
|
||||
//tag=1024
|
||||
return s_dartInstanceByCppPtr.containsKey(cppPointer.address);
|
||||
}
|
||||
|
||||
//tag=1061
|
||||
factory QRect.fromCache(var cppPointer, [needsAutoDelete = false]) {
|
||||
return (s_dartInstanceByCppPtr[cppPointer.address] ??
|
||||
QRect.fromCppPointer(cppPointer, needsAutoDelete)) as QRect;
|
||||
}
|
||||
QRect.fromCppPointer(var cppPointer, [this._needsAutoDelete = false]) {
|
||||
//tag=1024
|
||||
thisCpp = cppPointer;
|
||||
}
|
||||
//tag=1025
|
||||
QRect.init() {}
|
||||
//tag=1023
|
||||
//QRect()
|
||||
QRect() {
|
||||
//tag=1075
|
||||
final voidstar_Func_void func = _dylib
|
||||
.lookup<ffi.NativeFunction<voidstar_Func_void_FFI>>(
|
||||
'c_QRect__constructor')
|
||||
.asFunction();
|
||||
thisCpp = func();
|
||||
QRect.s_dartInstanceByCppPtr[thisCpp.address] = this;
|
||||
}
|
||||
//tag=1023
|
||||
//QRect(const QPoint & topleft, const QPoint & bottomright)
|
||||
QRect.ctor2(QPoint? topleft, QPoint? bottomright) {
|
||||
//tag=1075
|
||||
final voidstar_Func_voidstar_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<voidstar_Func_voidstar_voidstar_FFI>>(
|
||||
'c_QRect__constructor_QPoint_QPoint')
|
||||
.asFunction();
|
||||
thisCpp = func(topleft == null ? ffi.nullptr : topleft.thisCpp,
|
||||
bottomright == null ? ffi.nullptr : bottomright.thisCpp);
|
||||
QRect.s_dartInstanceByCppPtr[thisCpp.address] = this;
|
||||
}
|
||||
//tag=1023
|
||||
//QRect(const QPoint & topleft, const QSize & size)
|
||||
QRect.ctor3(QPoint? topleft, QSize? size) {
|
||||
//tag=1075
|
||||
final voidstar_Func_voidstar_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<voidstar_Func_voidstar_voidstar_FFI>>(
|
||||
'c_QRect__constructor_QPoint_QSize')
|
||||
.asFunction();
|
||||
thisCpp = func(topleft == null ? ffi.nullptr : topleft.thisCpp,
|
||||
size == null ? ffi.nullptr : size.thisCpp);
|
||||
QRect.s_dartInstanceByCppPtr[thisCpp.address] = this;
|
||||
}
|
||||
//tag=1023
|
||||
//QRect(int left, int top, int width, int height)
|
||||
QRect.ctor4(int left, int top, int width, int height) {
|
||||
//tag=1075
|
||||
final voidstar_Func_int_int_int_int func = _dylib
|
||||
.lookup<
|
||||
ffi.NativeFunction<
|
||||
voidstar_Func_ffi_Int32_ffi_Int32_ffi_Int32_ffi_Int32_FFI>>(
|
||||
'c_QRect__constructor_int_int_int_int')
|
||||
.asFunction();
|
||||
thisCpp = func(left, top, width, height);
|
||||
QRect.s_dartInstanceByCppPtr[thisCpp.address] = this;
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// adjust(int x1, int y1, int x2, int y2)
|
||||
adjust(int x1, int y1, int x2, int y2) {
|
||||
//tag=1028
|
||||
final void_Func_voidstar_int_int_int_int func = _dylib
|
||||
.lookup<
|
||||
ffi.NativeFunction<
|
||||
void_Func_voidstar_ffi_Int32_ffi_Int32_ffi_Int32_ffi_Int32_FFI>>(
|
||||
'c_QRect__adjust_int_int_int_int')
|
||||
.asFunction();
|
||||
//tag=1030
|
||||
func(thisCpp, x1, y1, x2, y2);
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// adjusted(int x1, int y1, int x2, int y2) const
|
||||
QRect adjusted(int x1, int y1, int x2, int y2) {
|
||||
//tag=1028
|
||||
final voidstar_Func_voidstar_int_int_int_int func = _dylib
|
||||
.lookup<
|
||||
ffi.NativeFunction<
|
||||
voidstar_Func_voidstar_ffi_Int32_ffi_Int32_ffi_Int32_ffi_Int32_FFI>>(
|
||||
'c_QRect__adjusted_int_int_int_int')
|
||||
.asFunction();
|
||||
//tag=1033
|
||||
ffi.Pointer<void> result = func(thisCpp, x1, y1, x2, y2);
|
||||
return QRect.fromCppPointer(result, true);
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// bottom() const
|
||||
int bottom() {
|
||||
//tag=1028
|
||||
final int_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<int_Func_voidstar_FFI>>('c_QRect__bottom')
|
||||
.asFunction();
|
||||
//tag=1031
|
||||
return func(thisCpp);
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// bottomLeft() const
|
||||
QPoint bottomLeft() {
|
||||
//tag=1028
|
||||
final voidstar_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<voidstar_Func_voidstar_FFI>>(
|
||||
'c_QRect__bottomLeft')
|
||||
.asFunction();
|
||||
//tag=1033
|
||||
ffi.Pointer<void> result = func(thisCpp);
|
||||
return QPoint.fromCppPointer(result, true);
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// bottomRight() const
|
||||
QPoint bottomRight() {
|
||||
//tag=1028
|
||||
final voidstar_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<voidstar_Func_voidstar_FFI>>(
|
||||
'c_QRect__bottomRight')
|
||||
.asFunction();
|
||||
//tag=1033
|
||||
ffi.Pointer<void> result = func(thisCpp);
|
||||
return QPoint.fromCppPointer(result, true);
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// center() const
|
||||
QPoint center() {
|
||||
//tag=1028
|
||||
final voidstar_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<voidstar_Func_voidstar_FFI>>(
|
||||
'c_QRect__center')
|
||||
.asFunction();
|
||||
//tag=1033
|
||||
ffi.Pointer<void> result = func(thisCpp);
|
||||
return QPoint.fromCppPointer(result, true);
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// contains(const QPoint & p, bool proper) const
|
||||
bool contains(QPoint? p, {bool proper = false}) {
|
||||
//tag=1028
|
||||
final bool_Func_voidstar_voidstar_bool func = _dylib
|
||||
.lookup<ffi.NativeFunction<bool_Func_voidstar_voidstar_ffi_Int8_FFI>>(
|
||||
'c_QRect__contains_QPoint_bool')
|
||||
.asFunction();
|
||||
//tag=1029
|
||||
return func(thisCpp, p == null ? ffi.nullptr : p.thisCpp, proper ? 1 : 0) !=
|
||||
0;
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// contains(const QRect & r, bool proper) const
|
||||
bool contains_2(QRect? r, {bool proper = false}) {
|
||||
//tag=1028
|
||||
final bool_Func_voidstar_voidstar_bool func = _dylib
|
||||
.lookup<ffi.NativeFunction<bool_Func_voidstar_voidstar_ffi_Int8_FFI>>(
|
||||
'c_QRect__contains_QRect_bool')
|
||||
.asFunction();
|
||||
//tag=1029
|
||||
return func(thisCpp, r == null ? ffi.nullptr : r.thisCpp, proper ? 1 : 0) !=
|
||||
0;
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// contains(int x, int y) const
|
||||
bool contains_3(int x, int y) {
|
||||
//tag=1028
|
||||
final bool_Func_voidstar_int_int func = _dylib
|
||||
.lookup<ffi.NativeFunction<bool_Func_voidstar_ffi_Int32_ffi_Int32_FFI>>(
|
||||
'c_QRect__contains_int_int')
|
||||
.asFunction();
|
||||
//tag=1029
|
||||
return func(thisCpp, x, y) != 0;
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// contains(int x, int y, bool proper) const
|
||||
bool contains_4(int x, int y, bool proper) {
|
||||
//tag=1028
|
||||
final bool_Func_voidstar_int_int_bool func = _dylib
|
||||
.lookup<
|
||||
ffi.NativeFunction<
|
||||
bool_Func_voidstar_ffi_Int32_ffi_Int32_ffi_Int8_FFI>>(
|
||||
'c_QRect__contains_int_int_bool')
|
||||
.asFunction();
|
||||
//tag=1029
|
||||
return func(thisCpp, x, y, proper ? 1 : 0) != 0;
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// height() const
|
||||
int height() {
|
||||
//tag=1028
|
||||
final int_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<int_Func_voidstar_FFI>>('c_QRect__height')
|
||||
.asFunction();
|
||||
//tag=1031
|
||||
return func(thisCpp);
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// intersected(const QRect & other) const
|
||||
QRect intersected(QRect? other) {
|
||||
//tag=1028
|
||||
final voidstar_Func_voidstar_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<voidstar_Func_voidstar_voidstar_FFI>>(
|
||||
'c_QRect__intersected_QRect')
|
||||
.asFunction();
|
||||
//tag=1033
|
||||
ffi.Pointer<void> result =
|
||||
func(thisCpp, other == null ? ffi.nullptr : other.thisCpp);
|
||||
return QRect.fromCppPointer(result, true);
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// intersects(const QRect & r) const
|
||||
bool intersects(QRect? r) {
|
||||
//tag=1028
|
||||
final bool_Func_voidstar_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<bool_Func_voidstar_voidstar_FFI>>(
|
||||
'c_QRect__intersects_QRect')
|
||||
.asFunction();
|
||||
//tag=1029
|
||||
return func(thisCpp, r == null ? ffi.nullptr : r.thisCpp) != 0;
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// isEmpty() const
|
||||
bool isEmpty() {
|
||||
//tag=1028
|
||||
final bool_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<bool_Func_voidstar_FFI>>('c_QRect__isEmpty')
|
||||
.asFunction();
|
||||
//tag=1029
|
||||
return func(thisCpp) != 0;
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// isNull() const
|
||||
bool isNull() {
|
||||
//tag=1028
|
||||
final bool_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<bool_Func_voidstar_FFI>>('c_QRect__isNull')
|
||||
.asFunction();
|
||||
//tag=1029
|
||||
return func(thisCpp) != 0;
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// isValid() const
|
||||
bool isValid() {
|
||||
//tag=1028
|
||||
final bool_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<bool_Func_voidstar_FFI>>('c_QRect__isValid')
|
||||
.asFunction();
|
||||
//tag=1029
|
||||
return func(thisCpp) != 0;
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// left() const
|
||||
int left() {
|
||||
//tag=1028
|
||||
final int_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<int_Func_voidstar_FFI>>('c_QRect__left')
|
||||
.asFunction();
|
||||
//tag=1031
|
||||
return func(thisCpp);
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// moveBottom(int pos)
|
||||
moveBottom(int pos) {
|
||||
//tag=1028
|
||||
final void_Func_voidstar_int func = _dylib
|
||||
.lookup<ffi.NativeFunction<void_Func_voidstar_ffi_Int32_FFI>>(
|
||||
'c_QRect__moveBottom_int')
|
||||
.asFunction();
|
||||
//tag=1030
|
||||
func(thisCpp, pos);
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// moveBottomLeft(const QPoint & p)
|
||||
moveBottomLeft(QPoint? p) {
|
||||
//tag=1028
|
||||
final void_Func_voidstar_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<void_Func_voidstar_voidstar_FFI>>(
|
||||
'c_QRect__moveBottomLeft_QPoint')
|
||||
.asFunction();
|
||||
//tag=1030
|
||||
func(thisCpp, p == null ? ffi.nullptr : p.thisCpp);
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// moveBottomRight(const QPoint & p)
|
||||
moveBottomRight(QPoint? p) {
|
||||
//tag=1028
|
||||
final void_Func_voidstar_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<void_Func_voidstar_voidstar_FFI>>(
|
||||
'c_QRect__moveBottomRight_QPoint')
|
||||
.asFunction();
|
||||
//tag=1030
|
||||
func(thisCpp, p == null ? ffi.nullptr : p.thisCpp);
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// moveCenter(const QPoint & p)
|
||||
moveCenter(QPoint? p) {
|
||||
//tag=1028
|
||||
final void_Func_voidstar_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<void_Func_voidstar_voidstar_FFI>>(
|
||||
'c_QRect__moveCenter_QPoint')
|
||||
.asFunction();
|
||||
//tag=1030
|
||||
func(thisCpp, p == null ? ffi.nullptr : p.thisCpp);
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// moveLeft(int pos)
|
||||
moveLeft(int pos) {
|
||||
//tag=1028
|
||||
final void_Func_voidstar_int func = _dylib
|
||||
.lookup<ffi.NativeFunction<void_Func_voidstar_ffi_Int32_FFI>>(
|
||||
'c_QRect__moveLeft_int')
|
||||
.asFunction();
|
||||
//tag=1030
|
||||
func(thisCpp, pos);
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// moveRight(int pos)
|
||||
moveRight(int pos) {
|
||||
//tag=1028
|
||||
final void_Func_voidstar_int func = _dylib
|
||||
.lookup<ffi.NativeFunction<void_Func_voidstar_ffi_Int32_FFI>>(
|
||||
'c_QRect__moveRight_int')
|
||||
.asFunction();
|
||||
//tag=1030
|
||||
func(thisCpp, pos);
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// moveTo(const QPoint & p)
|
||||
moveTo(QPoint? p) {
|
||||
//tag=1028
|
||||
final void_Func_voidstar_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<void_Func_voidstar_voidstar_FFI>>(
|
||||
'c_QRect__moveTo_QPoint')
|
||||
.asFunction();
|
||||
//tag=1030
|
||||
func(thisCpp, p == null ? ffi.nullptr : p.thisCpp);
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// moveTo(int x, int t)
|
||||
moveTo_2(int x, int t) {
|
||||
//tag=1028
|
||||
final void_Func_voidstar_int_int func = _dylib
|
||||
.lookup<ffi.NativeFunction<void_Func_voidstar_ffi_Int32_ffi_Int32_FFI>>(
|
||||
'c_QRect__moveTo_int_int')
|
||||
.asFunction();
|
||||
//tag=1030
|
||||
func(thisCpp, x, t);
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// moveTop(int pos)
|
||||
moveTop(int pos) {
|
||||
//tag=1028
|
||||
final void_Func_voidstar_int func = _dylib
|
||||
.lookup<ffi.NativeFunction<void_Func_voidstar_ffi_Int32_FFI>>(
|
||||
'c_QRect__moveTop_int')
|
||||
.asFunction();
|
||||
//tag=1030
|
||||
func(thisCpp, pos);
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// moveTopLeft(const QPoint & p)
|
||||
moveTopLeft(QPoint? p) {
|
||||
//tag=1028
|
||||
final void_Func_voidstar_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<void_Func_voidstar_voidstar_FFI>>(
|
||||
'c_QRect__moveTopLeft_QPoint')
|
||||
.asFunction();
|
||||
//tag=1030
|
||||
func(thisCpp, p == null ? ffi.nullptr : p.thisCpp);
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// moveTopRight(const QPoint & p)
|
||||
moveTopRight(QPoint? p) {
|
||||
//tag=1028
|
||||
final void_Func_voidstar_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<void_Func_voidstar_voidstar_FFI>>(
|
||||
'c_QRect__moveTopRight_QPoint')
|
||||
.asFunction();
|
||||
//tag=1030
|
||||
func(thisCpp, p == null ? ffi.nullptr : p.thisCpp);
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// normalized() const
|
||||
QRect normalized() {
|
||||
//tag=1028
|
||||
final voidstar_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<voidstar_Func_voidstar_FFI>>(
|
||||
'c_QRect__normalized')
|
||||
.asFunction();
|
||||
//tag=1033
|
||||
ffi.Pointer<void> result = func(thisCpp);
|
||||
return QRect.fromCppPointer(result, true);
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// right() const
|
||||
int right() {
|
||||
//tag=1028
|
||||
final int_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<int_Func_voidstar_FFI>>('c_QRect__right')
|
||||
.asFunction();
|
||||
//tag=1031
|
||||
return func(thisCpp);
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// setBottom(int pos)
|
||||
setBottom(int pos) {
|
||||
//tag=1028
|
||||
final void_Func_voidstar_int func = _dylib
|
||||
.lookup<ffi.NativeFunction<void_Func_voidstar_ffi_Int32_FFI>>(
|
||||
'c_QRect__setBottom_int')
|
||||
.asFunction();
|
||||
//tag=1030
|
||||
func(thisCpp, pos);
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// setBottomLeft(const QPoint & p)
|
||||
setBottomLeft(QPoint? p) {
|
||||
//tag=1028
|
||||
final void_Func_voidstar_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<void_Func_voidstar_voidstar_FFI>>(
|
||||
'c_QRect__setBottomLeft_QPoint')
|
||||
.asFunction();
|
||||
//tag=1030
|
||||
func(thisCpp, p == null ? ffi.nullptr : p.thisCpp);
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// setBottomRight(const QPoint & p)
|
||||
setBottomRight(QPoint? p) {
|
||||
//tag=1028
|
||||
final void_Func_voidstar_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<void_Func_voidstar_voidstar_FFI>>(
|
||||
'c_QRect__setBottomRight_QPoint')
|
||||
.asFunction();
|
||||
//tag=1030
|
||||
func(thisCpp, p == null ? ffi.nullptr : p.thisCpp);
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// setCoords(int x1, int y1, int x2, int y2)
|
||||
setCoords(int x1, int y1, int x2, int y2) {
|
||||
//tag=1028
|
||||
final void_Func_voidstar_int_int_int_int func = _dylib
|
||||
.lookup<
|
||||
ffi.NativeFunction<
|
||||
void_Func_voidstar_ffi_Int32_ffi_Int32_ffi_Int32_ffi_Int32_FFI>>(
|
||||
'c_QRect__setCoords_int_int_int_int')
|
||||
.asFunction();
|
||||
//tag=1030
|
||||
func(thisCpp, x1, y1, x2, y2);
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// setHeight(int h)
|
||||
setHeight(int h) {
|
||||
//tag=1028
|
||||
final void_Func_voidstar_int func = _dylib
|
||||
.lookup<ffi.NativeFunction<void_Func_voidstar_ffi_Int32_FFI>>(
|
||||
'c_QRect__setHeight_int')
|
||||
.asFunction();
|
||||
//tag=1030
|
||||
func(thisCpp, h);
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// setLeft(int pos)
|
||||
setLeft(int pos) {
|
||||
//tag=1028
|
||||
final void_Func_voidstar_int func = _dylib
|
||||
.lookup<ffi.NativeFunction<void_Func_voidstar_ffi_Int32_FFI>>(
|
||||
'c_QRect__setLeft_int')
|
||||
.asFunction();
|
||||
//tag=1030
|
||||
func(thisCpp, pos);
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// setRect(int x, int y, int w, int h)
|
||||
setRect(int x, int y, int w, int h) {
|
||||
//tag=1028
|
||||
final void_Func_voidstar_int_int_int_int func = _dylib
|
||||
.lookup<
|
||||
ffi.NativeFunction<
|
||||
void_Func_voidstar_ffi_Int32_ffi_Int32_ffi_Int32_ffi_Int32_FFI>>(
|
||||
'c_QRect__setRect_int_int_int_int')
|
||||
.asFunction();
|
||||
//tag=1030
|
||||
func(thisCpp, x, y, w, h);
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// setRight(int pos)
|
||||
setRight(int pos) {
|
||||
//tag=1028
|
||||
final void_Func_voidstar_int func = _dylib
|
||||
.lookup<ffi.NativeFunction<void_Func_voidstar_ffi_Int32_FFI>>(
|
||||
'c_QRect__setRight_int')
|
||||
.asFunction();
|
||||
//tag=1030
|
||||
func(thisCpp, pos);
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// setSize(const QSize & s)
|
||||
setSize(QSize? s) {
|
||||
//tag=1028
|
||||
final void_Func_voidstar_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<void_Func_voidstar_voidstar_FFI>>(
|
||||
'c_QRect__setSize_QSize')
|
||||
.asFunction();
|
||||
//tag=1030
|
||||
func(thisCpp, s == null ? ffi.nullptr : s.thisCpp);
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// setTop(int pos)
|
||||
setTop(int pos) {
|
||||
//tag=1028
|
||||
final void_Func_voidstar_int func = _dylib
|
||||
.lookup<ffi.NativeFunction<void_Func_voidstar_ffi_Int32_FFI>>(
|
||||
'c_QRect__setTop_int')
|
||||
.asFunction();
|
||||
//tag=1030
|
||||
func(thisCpp, pos);
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// setTopLeft(const QPoint & p)
|
||||
setTopLeft(QPoint? p) {
|
||||
//tag=1028
|
||||
final void_Func_voidstar_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<void_Func_voidstar_voidstar_FFI>>(
|
||||
'c_QRect__setTopLeft_QPoint')
|
||||
.asFunction();
|
||||
//tag=1030
|
||||
func(thisCpp, p == null ? ffi.nullptr : p.thisCpp);
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// setTopRight(const QPoint & p)
|
||||
setTopRight(QPoint? p) {
|
||||
//tag=1028
|
||||
final void_Func_voidstar_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<void_Func_voidstar_voidstar_FFI>>(
|
||||
'c_QRect__setTopRight_QPoint')
|
||||
.asFunction();
|
||||
//tag=1030
|
||||
func(thisCpp, p == null ? ffi.nullptr : p.thisCpp);
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// setWidth(int w)
|
||||
setWidth(int w) {
|
||||
//tag=1028
|
||||
final void_Func_voidstar_int func = _dylib
|
||||
.lookup<ffi.NativeFunction<void_Func_voidstar_ffi_Int32_FFI>>(
|
||||
'c_QRect__setWidth_int')
|
||||
.asFunction();
|
||||
//tag=1030
|
||||
func(thisCpp, w);
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// setX(int x)
|
||||
setX(int x) {
|
||||
//tag=1028
|
||||
final void_Func_voidstar_int func = _dylib
|
||||
.lookup<ffi.NativeFunction<void_Func_voidstar_ffi_Int32_FFI>>(
|
||||
'c_QRect__setX_int')
|
||||
.asFunction();
|
||||
//tag=1030
|
||||
func(thisCpp, x);
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// setY(int y)
|
||||
setY(int y) {
|
||||
//tag=1028
|
||||
final void_Func_voidstar_int func = _dylib
|
||||
.lookup<ffi.NativeFunction<void_Func_voidstar_ffi_Int32_FFI>>(
|
||||
'c_QRect__setY_int')
|
||||
.asFunction();
|
||||
//tag=1030
|
||||
func(thisCpp, y);
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// size() const
|
||||
QSize size() {
|
||||
//tag=1028
|
||||
final voidstar_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<voidstar_Func_voidstar_FFI>>('c_QRect__size')
|
||||
.asFunction();
|
||||
//tag=1033
|
||||
ffi.Pointer<void> result = func(thisCpp);
|
||||
return QSize.fromCppPointer(result, true);
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// top() const
|
||||
int top() {
|
||||
//tag=1028
|
||||
final int_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<int_Func_voidstar_FFI>>('c_QRect__top')
|
||||
.asFunction();
|
||||
//tag=1031
|
||||
return func(thisCpp);
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// topLeft() const
|
||||
QPoint topLeft() {
|
||||
//tag=1028
|
||||
final voidstar_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<voidstar_Func_voidstar_FFI>>(
|
||||
'c_QRect__topLeft')
|
||||
.asFunction();
|
||||
//tag=1033
|
||||
ffi.Pointer<void> result = func(thisCpp);
|
||||
return QPoint.fromCppPointer(result, true);
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// topRight() const
|
||||
QPoint topRight() {
|
||||
//tag=1028
|
||||
final voidstar_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<voidstar_Func_voidstar_FFI>>(
|
||||
'c_QRect__topRight')
|
||||
.asFunction();
|
||||
//tag=1033
|
||||
ffi.Pointer<void> result = func(thisCpp);
|
||||
return QPoint.fromCppPointer(result, true);
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// translate(const QPoint & p)
|
||||
translate(QPoint? p) {
|
||||
//tag=1028
|
||||
final void_Func_voidstar_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<void_Func_voidstar_voidstar_FFI>>(
|
||||
'c_QRect__translate_QPoint')
|
||||
.asFunction();
|
||||
//tag=1030
|
||||
func(thisCpp, p == null ? ffi.nullptr : p.thisCpp);
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// translate(int dx, int dy)
|
||||
translate_2(int dx, int dy) {
|
||||
//tag=1028
|
||||
final void_Func_voidstar_int_int func = _dylib
|
||||
.lookup<ffi.NativeFunction<void_Func_voidstar_ffi_Int32_ffi_Int32_FFI>>(
|
||||
'c_QRect__translate_int_int')
|
||||
.asFunction();
|
||||
//tag=1030
|
||||
func(thisCpp, dx, dy);
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// translated(const QPoint & p) const
|
||||
QRect translated(QPoint? p) {
|
||||
//tag=1028
|
||||
final voidstar_Func_voidstar_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<voidstar_Func_voidstar_voidstar_FFI>>(
|
||||
'c_QRect__translated_QPoint')
|
||||
.asFunction();
|
||||
//tag=1033
|
||||
ffi.Pointer<void> result =
|
||||
func(thisCpp, p == null ? ffi.nullptr : p.thisCpp);
|
||||
return QRect.fromCppPointer(result, true);
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// translated(int dx, int dy) const
|
||||
QRect translated_2(int dx, int dy) {
|
||||
//tag=1028
|
||||
final voidstar_Func_voidstar_int_int func = _dylib
|
||||
.lookup<
|
||||
ffi.NativeFunction<
|
||||
voidstar_Func_voidstar_ffi_Int32_ffi_Int32_FFI>>(
|
||||
'c_QRect__translated_int_int')
|
||||
.asFunction();
|
||||
//tag=1033
|
||||
ffi.Pointer<void> result = func(thisCpp, dx, dy);
|
||||
return QRect.fromCppPointer(result, true);
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// transposed() const
|
||||
QRect transposed() {
|
||||
//tag=1028
|
||||
final voidstar_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<voidstar_Func_voidstar_FFI>>(
|
||||
'c_QRect__transposed')
|
||||
.asFunction();
|
||||
//tag=1033
|
||||
ffi.Pointer<void> result = func(thisCpp);
|
||||
return QRect.fromCppPointer(result, true);
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// united(const QRect & other) const
|
||||
QRect united(QRect? other) {
|
||||
//tag=1028
|
||||
final voidstar_Func_voidstar_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<voidstar_Func_voidstar_voidstar_FFI>>(
|
||||
'c_QRect__united_QRect')
|
||||
.asFunction();
|
||||
//tag=1033
|
||||
ffi.Pointer<void> result =
|
||||
func(thisCpp, other == null ? ffi.nullptr : other.thisCpp);
|
||||
return QRect.fromCppPointer(result, true);
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// width() const
|
||||
int width() {
|
||||
//tag=1028
|
||||
final int_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<int_Func_voidstar_FFI>>('c_QRect__width')
|
||||
.asFunction();
|
||||
//tag=1031
|
||||
return func(thisCpp);
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// x() const
|
||||
int x() {
|
||||
//tag=1028
|
||||
final int_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<int_Func_voidstar_FFI>>('c_QRect__x')
|
||||
.asFunction();
|
||||
//tag=1031
|
||||
return func(thisCpp);
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// y() const
|
||||
int y() {
|
||||
//tag=1028
|
||||
final int_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<int_Func_voidstar_FFI>>('c_QRect__y')
|
||||
.asFunction();
|
||||
//tag=1031
|
||||
return func(thisCpp);
|
||||
}
|
||||
|
||||
//tag=1022
|
||||
void release() {
|
||||
final void_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<void_Func_voidstar_FFI>>(
|
||||
'c_QRect__destructor')
|
||||
.asFunction();
|
||||
func(thisCpp);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,228 @@
|
||||
/*
|
||||
This file is part of KDDockWidgets.
|
||||
|
||||
SPDX-FileCopyrightText: 2019-2022 Klarälvdalens Datakonsult AB, a KDAB Group company <info@kdab.com>
|
||||
Author: Sérgio Martins <sergio.martins@kdab.com>
|
||||
|
||||
SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only
|
||||
|
||||
Contact KDAB at <info@kdab.com> for commercial licensing options.
|
||||
*/
|
||||
|
||||
//tag=1052
|
||||
import 'dart:ffi' as ffi;
|
||||
import 'package:ffi/ffi.dart';
|
||||
import 'TypeHelpers.dart';
|
||||
import '../Bindings.dart';
|
||||
import '../FinalizerHelpers.dart';
|
||||
|
||||
//tag=1051
|
||||
var _dylib = Library.instance().dylib;
|
||||
final _finalizer =
|
||||
_dylib.lookup<ffi.NativeFunction<Dart_WeakPersistentHandleFinalizer_Type>>(
|
||||
'c_QSize_Finalizer');
|
||||
|
||||
class QSize {
|
||||
//tag=1060
|
||||
static var s_dartInstanceByCppPtr = Map<int, QSize>();
|
||||
var _thisCpp = null;
|
||||
bool _needsAutoDelete = true;
|
||||
get thisCpp => _thisCpp;
|
||||
set thisCpp(var ptr) {
|
||||
_thisCpp = ptr;
|
||||
ffi.Pointer<ffi.Void> ptrvoid = ptr.cast<ffi.Void>();
|
||||
if (_needsAutoDelete)
|
||||
newWeakPersistentHandle?.call(this, ptrvoid, 0, _finalizer);
|
||||
}
|
||||
|
||||
static bool isCached(var cppPointer) {
|
||||
//tag=1024
|
||||
return s_dartInstanceByCppPtr.containsKey(cppPointer.address);
|
||||
}
|
||||
|
||||
//tag=1061
|
||||
factory QSize.fromCache(var cppPointer, [needsAutoDelete = false]) {
|
||||
return (s_dartInstanceByCppPtr[cppPointer.address] ??
|
||||
QSize.fromCppPointer(cppPointer, needsAutoDelete)) as QSize;
|
||||
}
|
||||
QSize.fromCppPointer(var cppPointer, [this._needsAutoDelete = false]) {
|
||||
//tag=1024
|
||||
thisCpp = cppPointer;
|
||||
}
|
||||
//tag=1025
|
||||
QSize.init() {}
|
||||
//tag=1023
|
||||
//QSize()
|
||||
QSize() {
|
||||
//tag=1075
|
||||
final voidstar_Func_void func = _dylib
|
||||
.lookup<ffi.NativeFunction<voidstar_Func_void_FFI>>(
|
||||
'c_QSize__constructor')
|
||||
.asFunction();
|
||||
thisCpp = func();
|
||||
QSize.s_dartInstanceByCppPtr[thisCpp.address] = this;
|
||||
}
|
||||
//tag=1023
|
||||
//QSize(int w, int h)
|
||||
QSize.ctor2(int w, int h) {
|
||||
//tag=1075
|
||||
final voidstar_Func_int_int func = _dylib
|
||||
.lookup<ffi.NativeFunction<voidstar_Func_ffi_Int32_ffi_Int32_FFI>>(
|
||||
'c_QSize__constructor_int_int')
|
||||
.asFunction();
|
||||
thisCpp = func(w, h);
|
||||
QSize.s_dartInstanceByCppPtr[thisCpp.address] = this;
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// boundedTo(const QSize & arg__1) const
|
||||
QSize boundedTo(QSize? arg__1) {
|
||||
//tag=1028
|
||||
final voidstar_Func_voidstar_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<voidstar_Func_voidstar_voidstar_FFI>>(
|
||||
'c_QSize__boundedTo_QSize')
|
||||
.asFunction();
|
||||
//tag=1033
|
||||
ffi.Pointer<void> result =
|
||||
func(thisCpp, arg__1 == null ? ffi.nullptr : arg__1.thisCpp);
|
||||
return QSize.fromCppPointer(result, true);
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// expandedTo(const QSize & arg__1) const
|
||||
QSize expandedTo(QSize? arg__1) {
|
||||
//tag=1028
|
||||
final voidstar_Func_voidstar_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<voidstar_Func_voidstar_voidstar_FFI>>(
|
||||
'c_QSize__expandedTo_QSize')
|
||||
.asFunction();
|
||||
//tag=1033
|
||||
ffi.Pointer<void> result =
|
||||
func(thisCpp, arg__1 == null ? ffi.nullptr : arg__1.thisCpp);
|
||||
return QSize.fromCppPointer(result, true);
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// height() const
|
||||
int height() {
|
||||
//tag=1028
|
||||
final int_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<int_Func_voidstar_FFI>>('c_QSize__height')
|
||||
.asFunction();
|
||||
//tag=1031
|
||||
return func(thisCpp);
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// isEmpty() const
|
||||
bool isEmpty() {
|
||||
//tag=1028
|
||||
final bool_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<bool_Func_voidstar_FFI>>('c_QSize__isEmpty')
|
||||
.asFunction();
|
||||
//tag=1029
|
||||
return func(thisCpp) != 0;
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// isNull() const
|
||||
bool isNull() {
|
||||
//tag=1028
|
||||
final bool_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<bool_Func_voidstar_FFI>>('c_QSize__isNull')
|
||||
.asFunction();
|
||||
//tag=1029
|
||||
return func(thisCpp) != 0;
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// isValid() const
|
||||
bool isValid() {
|
||||
//tag=1028
|
||||
final bool_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<bool_Func_voidstar_FFI>>('c_QSize__isValid')
|
||||
.asFunction();
|
||||
//tag=1029
|
||||
return func(thisCpp) != 0;
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// setHeight(int h)
|
||||
setHeight(int h) {
|
||||
//tag=1028
|
||||
final void_Func_voidstar_int func = _dylib
|
||||
.lookup<ffi.NativeFunction<void_Func_voidstar_ffi_Int32_FFI>>(
|
||||
'c_QSize__setHeight_int')
|
||||
.asFunction();
|
||||
//tag=1030
|
||||
func(thisCpp, h);
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// setWidth(int w)
|
||||
setWidth(int w) {
|
||||
//tag=1028
|
||||
final void_Func_voidstar_int func = _dylib
|
||||
.lookup<ffi.NativeFunction<void_Func_voidstar_ffi_Int32_FFI>>(
|
||||
'c_QSize__setWidth_int')
|
||||
.asFunction();
|
||||
//tag=1030
|
||||
func(thisCpp, w);
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// transpose()
|
||||
transpose() {
|
||||
//tag=1028
|
||||
final void_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<void_Func_voidstar_FFI>>(
|
||||
'c_QSize__transpose')
|
||||
.asFunction();
|
||||
//tag=1030
|
||||
func(thisCpp);
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// transposed() const
|
||||
QSize transposed() {
|
||||
//tag=1028
|
||||
final voidstar_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<voidstar_Func_voidstar_FFI>>(
|
||||
'c_QSize__transposed')
|
||||
.asFunction();
|
||||
//tag=1033
|
||||
ffi.Pointer<void> result = func(thisCpp);
|
||||
return QSize.fromCppPointer(result, true);
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// width() const
|
||||
int width() {
|
||||
//tag=1028
|
||||
final int_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<int_Func_voidstar_FFI>>('c_QSize__width')
|
||||
.asFunction();
|
||||
//tag=1031
|
||||
return func(thisCpp);
|
||||
}
|
||||
|
||||
//tag=1022
|
||||
void release() {
|
||||
final void_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<void_Func_voidstar_FFI>>(
|
||||
'c_QSize__destructor')
|
||||
.asFunction();
|
||||
func(thisCpp);
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,337 @@
|
||||
/*
|
||||
This file is part of KDDockWidgets.
|
||||
|
||||
SPDX-FileCopyrightText: 2019-2022 Klarälvdalens Datakonsult AB, a KDAB Group company <info@kdab.com>
|
||||
Author: Sérgio Martins <sergio.martins@kdab.com>
|
||||
|
||||
SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only
|
||||
|
||||
Contact KDAB at <info@kdab.com> for commercial licensing options.
|
||||
*/
|
||||
import 'dart:ffi' as ffi;
|
||||
import 'package:ffi/ffi.dart';
|
||||
// tag=1053
|
||||
|
||||
typedef void_Func_voidstar = void Function(ffi.Pointer<void>);
|
||||
typedef void_Func_voidstar_FFI = ffi.Void Function(ffi.Pointer<void>);
|
||||
typedef RegisterMethodIsReimplementedCallback = void Function(
|
||||
ffi.Pointer<void>, ffi.Pointer<void>, int);
|
||||
typedef RegisterMethodIsReimplementedCallback_FFI = ffi.Void Function(
|
||||
ffi.Pointer<void>, ffi.Pointer<void>, ffi.Int32);
|
||||
typedef SignalHandler = void Function(
|
||||
ffi.Pointer<void>, ffi.Pointer<void>, ffi.Pointer<void>);
|
||||
typedef SignalHandler_FFI = ffi.Void Function(
|
||||
ffi.Pointer<void>, ffi.Pointer<void>, ffi.Pointer<void>);
|
||||
typedef voidstar_Func_void = ffi.Pointer<void> Function();
|
||||
typedef voidstar_Func_void_FFI = ffi.Pointer<void> Function();
|
||||
typedef voidstar_Func_voidstar_voidstar = ffi.Pointer<void> Function(
|
||||
ffi.Pointer<void>, ffi.Pointer<void>);
|
||||
typedef voidstar_Func_voidstar_voidstar_FFI = ffi.Pointer<void> Function(
|
||||
ffi.Pointer<void>, ffi.Pointer<void>);
|
||||
typedef voidstar_Func_voidstar_voidstar_int = ffi.Pointer<void> Function(
|
||||
ffi.Pointer<void>, ffi.Pointer<void>, int);
|
||||
typedef voidstar_Func_voidstar_voidstar_ffi_Int32_FFI = ffi.Pointer<void>
|
||||
Function(ffi.Pointer<void>, ffi.Pointer<void>, ffi.Int32);
|
||||
typedef voidstar_Func_voidstar_voidstar_voidstar = ffi.Pointer<void> Function(
|
||||
ffi.Pointer<void>, ffi.Pointer<void>, ffi.Pointer<void>);
|
||||
typedef voidstar_Func_voidstar_voidstar_voidstar_FFI = ffi.Pointer<void>
|
||||
Function(ffi.Pointer<void>, ffi.Pointer<void>, ffi.Pointer<void>);
|
||||
typedef voidstar_Func_voidstar_voidstar_voidstar_voidstar
|
||||
= ffi.Pointer<void> Function(ffi.Pointer<void>, ffi.Pointer<void>,
|
||||
ffi.Pointer<void>, ffi.Pointer<void>);
|
||||
typedef voidstar_Func_voidstar_voidstar_voidstar_voidstar_FFI
|
||||
= ffi.Pointer<void> Function(ffi.Pointer<void>, ffi.Pointer<void>,
|
||||
ffi.Pointer<void>, ffi.Pointer<void>);
|
||||
typedef voidstar_Func_voidstar_voidstar_voidstar_voidstar_voidstar
|
||||
= ffi.Pointer<void> Function(ffi.Pointer<void>, ffi.Pointer<void>,
|
||||
ffi.Pointer<void>, ffi.Pointer<void>, ffi.Pointer<void>);
|
||||
typedef voidstar_Func_voidstar_voidstar_voidstar_voidstar_voidstar_FFI
|
||||
= ffi.Pointer<void> Function(ffi.Pointer<void>, ffi.Pointer<void>,
|
||||
ffi.Pointer<void>, ffi.Pointer<void>, ffi.Pointer<void>);
|
||||
typedef voidstar_Func_voidstar_voidstar_voidstar_voidstar_voidstar_voidstar
|
||||
= ffi.Pointer<void> Function(
|
||||
ffi.Pointer<void>,
|
||||
ffi.Pointer<void>,
|
||||
ffi.Pointer<void>,
|
||||
ffi.Pointer<void>,
|
||||
ffi.Pointer<void>,
|
||||
ffi.Pointer<void>);
|
||||
typedef voidstar_Func_voidstar_voidstar_voidstar_voidstar_voidstar_voidstar_FFI
|
||||
= ffi.Pointer<void> Function(
|
||||
ffi.Pointer<void>,
|
||||
ffi.Pointer<void>,
|
||||
ffi.Pointer<void>,
|
||||
ffi.Pointer<void>,
|
||||
ffi.Pointer<void>,
|
||||
ffi.Pointer<void>);
|
||||
typedef voidstar_Func_voidstar_voidstar_voidstar_voidstar_voidstar_voidstar_voidstar
|
||||
= ffi.Pointer<void> Function(
|
||||
ffi.Pointer<void>,
|
||||
ffi.Pointer<void>,
|
||||
ffi.Pointer<void>,
|
||||
ffi.Pointer<void>,
|
||||
ffi.Pointer<void>,
|
||||
ffi.Pointer<void>,
|
||||
ffi.Pointer<void>);
|
||||
typedef voidstar_Func_voidstar_voidstar_voidstar_voidstar_voidstar_voidstar_voidstar_FFI
|
||||
= ffi.Pointer<void> Function(
|
||||
ffi.Pointer<void>,
|
||||
ffi.Pointer<void>,
|
||||
ffi.Pointer<void>,
|
||||
ffi.Pointer<void>,
|
||||
ffi.Pointer<void>,
|
||||
ffi.Pointer<void>,
|
||||
ffi.Pointer<void>);
|
||||
typedef voidstar_Func_voidstar_voidstar_voidstar_voidstar_voidstar_voidstar_voidstar_voidstar
|
||||
= ffi.Pointer<void> Function(
|
||||
ffi.Pointer<void>,
|
||||
ffi.Pointer<void>,
|
||||
ffi.Pointer<void>,
|
||||
ffi.Pointer<void>,
|
||||
ffi.Pointer<void>,
|
||||
ffi.Pointer<void>,
|
||||
ffi.Pointer<void>,
|
||||
ffi.Pointer<void>);
|
||||
typedef voidstar_Func_voidstar_voidstar_voidstar_voidstar_voidstar_voidstar_voidstar_voidstar_FFI
|
||||
= ffi.Pointer<void> Function(
|
||||
ffi.Pointer<void>,
|
||||
ffi.Pointer<void>,
|
||||
ffi.Pointer<void>,
|
||||
ffi.Pointer<void>,
|
||||
ffi.Pointer<void>,
|
||||
ffi.Pointer<void>,
|
||||
ffi.Pointer<void>,
|
||||
ffi.Pointer<void>);
|
||||
typedef voidstar_Func_voidstar_voidstar_voidstar_voidstar_voidstar_voidstar_voidstar_voidstar_voidstar
|
||||
= ffi.Pointer<void> Function(
|
||||
ffi.Pointer<void>,
|
||||
ffi.Pointer<void>,
|
||||
ffi.Pointer<void>,
|
||||
ffi.Pointer<void>,
|
||||
ffi.Pointer<void>,
|
||||
ffi.Pointer<void>,
|
||||
ffi.Pointer<void>,
|
||||
ffi.Pointer<void>,
|
||||
ffi.Pointer<void>);
|
||||
typedef voidstar_Func_voidstar_voidstar_voidstar_voidstar_voidstar_voidstar_voidstar_voidstar_voidstar_FFI
|
||||
= ffi.Pointer<void> Function(
|
||||
ffi.Pointer<void>,
|
||||
ffi.Pointer<void>,
|
||||
ffi.Pointer<void>,
|
||||
ffi.Pointer<void>,
|
||||
ffi.Pointer<void>,
|
||||
ffi.Pointer<void>,
|
||||
ffi.Pointer<void>,
|
||||
ffi.Pointer<void>,
|
||||
ffi.Pointer<void>);
|
||||
typedef voidstar_Func_voidstar_voidstar_voidstar_voidstar_voidstar_voidstar_voidstar_voidstar_voidstar_voidstar
|
||||
= ffi.Pointer<void> Function(
|
||||
ffi.Pointer<void>,
|
||||
ffi.Pointer<void>,
|
||||
ffi.Pointer<void>,
|
||||
ffi.Pointer<void>,
|
||||
ffi.Pointer<void>,
|
||||
ffi.Pointer<void>,
|
||||
ffi.Pointer<void>,
|
||||
ffi.Pointer<void>,
|
||||
ffi.Pointer<void>,
|
||||
ffi.Pointer<void>);
|
||||
typedef voidstar_Func_voidstar_voidstar_voidstar_voidstar_voidstar_voidstar_voidstar_voidstar_voidstar_voidstar_FFI
|
||||
= ffi.Pointer<void> Function(
|
||||
ffi.Pointer<void>,
|
||||
ffi.Pointer<void>,
|
||||
ffi.Pointer<void>,
|
||||
ffi.Pointer<void>,
|
||||
ffi.Pointer<void>,
|
||||
ffi.Pointer<void>,
|
||||
ffi.Pointer<void>,
|
||||
ffi.Pointer<void>,
|
||||
ffi.Pointer<void>,
|
||||
ffi.Pointer<void>);
|
||||
typedef voidstar_Func_voidstar_int_int_int = ffi.Pointer<void> Function(
|
||||
ffi.Pointer<void>, int, int, int);
|
||||
typedef voidstar_Func_voidstar_ffi_Int32_ffi_Int32_ffi_Int32_FFI
|
||||
= ffi.Pointer<void> Function(
|
||||
ffi.Pointer<void>, ffi.Int32, ffi.Int32, ffi.Int32);
|
||||
typedef voidstar_Func_string = ffi.Pointer<void> Function(ffi.Pointer<Utf8>);
|
||||
typedef voidstar_Func_string_FFI = ffi.Pointer<void> Function(
|
||||
ffi.Pointer<Utf8>);
|
||||
typedef int_Func_voidstar = int Function(ffi.Pointer<void>);
|
||||
typedef int_Func_voidstar_FFI = ffi.Int32 Function(ffi.Pointer<void>);
|
||||
typedef void_Func_voidstar_int = void Function(ffi.Pointer<void>, int);
|
||||
typedef void_Func_voidstar_ffi_Int32_FFI = ffi.Void Function(
|
||||
ffi.Pointer<void>, ffi.Int32);
|
||||
typedef voidstar_Func_voidstar_int = ffi.Pointer<void> Function(
|
||||
ffi.Pointer<void>, int);
|
||||
typedef voidstar_Func_voidstar_ffi_Int32_FFI = ffi.Pointer<void> Function(
|
||||
ffi.Pointer<void>, ffi.Int32);
|
||||
typedef int_Func_voidstar_voidstar = int Function(
|
||||
ffi.Pointer<void>, ffi.Pointer<void>);
|
||||
typedef int_Func_voidstar_voidstar_FFI = ffi.Int32 Function(
|
||||
ffi.Pointer<void>, ffi.Pointer<void>);
|
||||
typedef bool_Func_voidstar_voidstar = int Function(
|
||||
ffi.Pointer<void>, ffi.Pointer<void>);
|
||||
typedef bool_Func_voidstar_voidstar_FFI = ffi.Int8 Function(
|
||||
ffi.Pointer<void>, ffi.Pointer<void>);
|
||||
typedef voidstar_Func_voidstar = ffi.Pointer<void> Function(ffi.Pointer<void>);
|
||||
typedef voidstar_Func_voidstar_FFI = ffi.Pointer<void> Function(
|
||||
ffi.Pointer<void>);
|
||||
typedef voidstar_Func_string_int = ffi.Pointer<void> Function(
|
||||
ffi.Pointer<Utf8>, int);
|
||||
typedef voidstar_Func_string_ffi_Int32_FFI = ffi.Pointer<void> Function(
|
||||
ffi.Pointer<Utf8>, ffi.Int32);
|
||||
typedef int_Func_voidstar_voidstar_int = int Function(
|
||||
ffi.Pointer<void>, ffi.Pointer<void>, int);
|
||||
typedef int_Func_voidstar_voidstar_ffi_Int32_FFI = ffi.Int32 Function(
|
||||
ffi.Pointer<void>, ffi.Pointer<void>, ffi.Int32);
|
||||
typedef voidstar_Func_voidstar_int_voidstar = ffi.Pointer<void> Function(
|
||||
ffi.Pointer<void>, int, ffi.Pointer<void>);
|
||||
typedef voidstar_Func_voidstar_ffi_Int32_voidstar_FFI = ffi.Pointer<void>
|
||||
Function(ffi.Pointer<void>, ffi.Int32, ffi.Pointer<void>);
|
||||
typedef bool_Func_voidstar = int Function(ffi.Pointer<void>);
|
||||
typedef bool_Func_voidstar_FFI = ffi.Int8 Function(ffi.Pointer<void>);
|
||||
typedef voidstar_Func_voidstar_int_int = ffi.Pointer<void> Function(
|
||||
ffi.Pointer<void>, int, int);
|
||||
typedef voidstar_Func_voidstar_ffi_Int32_ffi_Int32_FFI = ffi.Pointer<void>
|
||||
Function(ffi.Pointer<void>, ffi.Int32, ffi.Int32);
|
||||
typedef voidstar_Func_int_int = ffi.Pointer<void> Function(int, int);
|
||||
typedef voidstar_Func_ffi_Int32_ffi_Int32_FFI = ffi.Pointer<void> Function(
|
||||
ffi.Int32, ffi.Int32);
|
||||
typedef void_Func_voidstar_voidstar = void Function(
|
||||
ffi.Pointer<void>, ffi.Pointer<void>);
|
||||
typedef void_Func_voidstar_voidstar_FFI = ffi.Void Function(
|
||||
ffi.Pointer<void>, ffi.Pointer<void>);
|
||||
typedef voidstar_Func_voidstar_int_int_voidstar = ffi.Pointer<void> Function(
|
||||
ffi.Pointer<void>, int, int, ffi.Pointer<void>);
|
||||
typedef voidstar_Func_voidstar_ffi_Int32_ffi_Int32_voidstar_FFI
|
||||
= ffi.Pointer<void> Function(
|
||||
ffi.Pointer<void>, ffi.Int32, ffi.Int32, ffi.Pointer<void>);
|
||||
typedef voidstar_Func_voidstar_voidstar_int_int = ffi.Pointer<void> Function(
|
||||
ffi.Pointer<void>, ffi.Pointer<void>, int, int);
|
||||
typedef voidstar_Func_voidstar_voidstar_ffi_Int32_ffi_Int32_FFI
|
||||
= ffi.Pointer<void> Function(
|
||||
ffi.Pointer<void>, ffi.Pointer<void>, ffi.Int32, ffi.Int32);
|
||||
typedef voidstar_Func_int_int_int_int = ffi.Pointer<void> Function(
|
||||
int, int, int, int);
|
||||
typedef voidstar_Func_ffi_Int32_ffi_Int32_ffi_Int32_ffi_Int32_FFI
|
||||
= ffi.Pointer<void> Function(ffi.Int32, ffi.Int32, ffi.Int32, ffi.Int32);
|
||||
typedef void_Func_voidstar_int_int_int_int = void Function(
|
||||
ffi.Pointer<void>, int, int, int, int);
|
||||
typedef void_Func_voidstar_ffi_Int32_ffi_Int32_ffi_Int32_ffi_Int32_FFI
|
||||
= ffi.Void Function(
|
||||
ffi.Pointer<void>, ffi.Int32, ffi.Int32, ffi.Int32, ffi.Int32);
|
||||
typedef voidstar_Func_voidstar_int_int_int_int = ffi.Pointer<void> Function(
|
||||
ffi.Pointer<void>, int, int, int, int);
|
||||
typedef voidstar_Func_voidstar_ffi_Int32_ffi_Int32_ffi_Int32_ffi_Int32_FFI
|
||||
= ffi.Pointer<void> Function(
|
||||
ffi.Pointer<void>, ffi.Int32, ffi.Int32, ffi.Int32, ffi.Int32);
|
||||
typedef bool_Func_voidstar_voidstar_bool = int Function(
|
||||
ffi.Pointer<void>, ffi.Pointer<void>, int);
|
||||
typedef bool_Func_voidstar_voidstar_ffi_Int8_FFI = ffi.Int8 Function(
|
||||
ffi.Pointer<void>, ffi.Pointer<void>, ffi.Int8);
|
||||
typedef bool_Func_voidstar_int_int = int Function(ffi.Pointer<void>, int, int);
|
||||
typedef bool_Func_voidstar_ffi_Int32_ffi_Int32_FFI = ffi.Int8 Function(
|
||||
ffi.Pointer<void>, ffi.Int32, ffi.Int32);
|
||||
typedef bool_Func_voidstar_int_int_bool = int Function(
|
||||
ffi.Pointer<void>, int, int, int);
|
||||
typedef bool_Func_voidstar_ffi_Int32_ffi_Int32_ffi_Int8_FFI = ffi.Int8 Function(
|
||||
ffi.Pointer<void>, ffi.Int32, ffi.Int32, ffi.Int8);
|
||||
typedef void_Func_voidstar_int_int = void Function(ffi.Pointer<void>, int, int);
|
||||
typedef void_Func_voidstar_ffi_Int32_ffi_Int32_FFI = ffi.Void Function(
|
||||
ffi.Pointer<void>, ffi.Int32, ffi.Int32);
|
||||
typedef bool_Func_voidstar_bool = int Function(ffi.Pointer<void>, int);
|
||||
typedef bool_Func_voidstar_ffi_Int8_FFI = ffi.Int8 Function(
|
||||
ffi.Pointer<void>, ffi.Int8);
|
||||
typedef bool_Func_voidstar_voidstar_string = int Function(
|
||||
ffi.Pointer<void>, ffi.Pointer<void>, ffi.Pointer<Utf8>);
|
||||
typedef bool_Func_voidstar_voidstar_string_FFI = ffi.Int8 Function(
|
||||
ffi.Pointer<void>, ffi.Pointer<void>, ffi.Pointer<Utf8>);
|
||||
typedef bool_Func_voidstar_string_voidstar_string = int Function(
|
||||
ffi.Pointer<void>, ffi.Pointer<Utf8>, ffi.Pointer<void>, ffi.Pointer<Utf8>);
|
||||
typedef bool_Func_voidstar_string_voidstar_string_FFI = ffi.Int8 Function(
|
||||
ffi.Pointer<void>, ffi.Pointer<Utf8>, ffi.Pointer<void>, ffi.Pointer<Utf8>);
|
||||
typedef bool_Func_voidstar_string = int Function(
|
||||
ffi.Pointer<void>, ffi.Pointer<Utf8>);
|
||||
typedef bool_Func_voidstar_string_FFI = ffi.Int8 Function(
|
||||
ffi.Pointer<void>, ffi.Pointer<Utf8>);
|
||||
typedef int_Func_voidstar_string = int Function(
|
||||
ffi.Pointer<void>, ffi.Pointer<Utf8>);
|
||||
typedef int_Func_voidstar_string_FFI = ffi.Int32 Function(
|
||||
ffi.Pointer<void>, ffi.Pointer<Utf8>);
|
||||
typedef int_Func_voidstar_int = int Function(ffi.Pointer<void>, int);
|
||||
typedef int_Func_voidstar_ffi_Int32_FFI = ffi.Int32 Function(
|
||||
ffi.Pointer<void>, ffi.Int32);
|
||||
typedef voidstar_Func_string_string_int = ffi.Pointer<void> Function(
|
||||
ffi.Pointer<Utf8>, ffi.Pointer<Utf8>, int);
|
||||
typedef voidstar_Func_string_string_ffi_Int32_FFI = ffi.Pointer<void> Function(
|
||||
ffi.Pointer<Utf8>, ffi.Pointer<Utf8>, ffi.Int32);
|
||||
typedef void_Func_voidstar_int_voidstar = void Function(
|
||||
ffi.Pointer<void>, int, ffi.Pointer<void>);
|
||||
typedef void_Func_voidstar_ffi_Int32_voidstar_FFI = ffi.Void Function(
|
||||
ffi.Pointer<void>, ffi.Int32, ffi.Pointer<void>);
|
||||
typedef void_Func_voidstar_bool = void Function(ffi.Pointer<void>, int);
|
||||
typedef void_Func_voidstar_ffi_Int8_FFI = ffi.Void Function(
|
||||
ffi.Pointer<void>, ffi.Int8);
|
||||
typedef voidstar_Func_voidstar_string = ffi.Pointer<void> Function(
|
||||
ffi.Pointer<void>, ffi.Pointer<Utf8>);
|
||||
typedef voidstar_Func_voidstar_string_FFI = ffi.Pointer<void> Function(
|
||||
ffi.Pointer<void>, ffi.Pointer<Utf8>);
|
||||
typedef voidstar_Func_voidstar_string_int = ffi.Pointer<void> Function(
|
||||
ffi.Pointer<void>, ffi.Pointer<Utf8>, int);
|
||||
typedef voidstar_Func_voidstar_string_ffi_Int32_FFI = ffi.Pointer<void>
|
||||
Function(ffi.Pointer<void>, ffi.Pointer<Utf8>, ffi.Int32);
|
||||
typedef char_Func_voidstar_int = int Function(ffi.Pointer<void>, int);
|
||||
typedef char_Func_voidstar_ffi_Int32_FFI = ffi.Int8 Function(
|
||||
ffi.Pointer<void>, ffi.Int32);
|
||||
typedef char_Func_voidstar = int Function(ffi.Pointer<void>);
|
||||
typedef char_Func_voidstar_FFI = ffi.Int8 Function(ffi.Pointer<void>);
|
||||
typedef string_Func_voidstar = ffi.Pointer<Utf8> Function(ffi.Pointer<void>);
|
||||
typedef string_Func_voidstar_FFI = ffi.Pointer<Utf8> Function(
|
||||
ffi.Pointer<void>);
|
||||
typedef int_Func_voidstar_string_int = int Function(
|
||||
ffi.Pointer<void>, ffi.Pointer<Utf8>, int);
|
||||
typedef int_Func_voidstar_string_ffi_Int32_FFI = ffi.Int32 Function(
|
||||
ffi.Pointer<void>, ffi.Pointer<Utf8>, ffi.Int32);
|
||||
typedef voidstar_Func_voidstar_int_string = ffi.Pointer<void> Function(
|
||||
ffi.Pointer<void>, int, ffi.Pointer<Utf8>);
|
||||
typedef voidstar_Func_voidstar_ffi_Int32_string_FFI = ffi.Pointer<void>
|
||||
Function(ffi.Pointer<void>, ffi.Int32, ffi.Pointer<Utf8>);
|
||||
typedef voidstar_Func_voidstar_int_string_int = ffi.Pointer<void> Function(
|
||||
ffi.Pointer<void>, int, ffi.Pointer<Utf8>, int);
|
||||
typedef voidstar_Func_voidstar_ffi_Int32_string_ffi_Int32_FFI
|
||||
= ffi.Pointer<void> Function(
|
||||
ffi.Pointer<void>, ffi.Int32, ffi.Pointer<Utf8>, ffi.Int32);
|
||||
typedef void_Func_voidstar_string = void Function(
|
||||
ffi.Pointer<void>, ffi.Pointer<Utf8>);
|
||||
typedef void_Func_voidstar_string_FFI = ffi.Void Function(
|
||||
ffi.Pointer<void>, ffi.Pointer<Utf8>);
|
||||
typedef voidstar_Func_voidstar_voidstar_string = ffi.Pointer<void> Function(
|
||||
ffi.Pointer<void>, ffi.Pointer<void>, ffi.Pointer<Utf8>);
|
||||
typedef voidstar_Func_voidstar_voidstar_string_FFI = ffi.Pointer<void> Function(
|
||||
ffi.Pointer<void>, ffi.Pointer<void>, ffi.Pointer<Utf8>);
|
||||
typedef voidstar_Func_voidstar_string_voidstar = ffi.Pointer<void> Function(
|
||||
ffi.Pointer<void>, ffi.Pointer<Utf8>, ffi.Pointer<void>);
|
||||
typedef voidstar_Func_voidstar_string_voidstar_FFI = ffi.Pointer<void> Function(
|
||||
ffi.Pointer<void>, ffi.Pointer<Utf8>, ffi.Pointer<void>);
|
||||
typedef voidstar_Func_voidstar_string_string = ffi.Pointer<void> Function(
|
||||
ffi.Pointer<void>, ffi.Pointer<Utf8>, ffi.Pointer<Utf8>);
|
||||
typedef voidstar_Func_voidstar_string_string_FFI = ffi.Pointer<void> Function(
|
||||
ffi.Pointer<void>, ffi.Pointer<Utf8>, ffi.Pointer<Utf8>);
|
||||
typedef voidstar_Func_voidstar_string_int_string_int = ffi.Pointer<void>
|
||||
Function(ffi.Pointer<void>, ffi.Pointer<Utf8>, int, ffi.Pointer<Utf8>, int);
|
||||
typedef voidstar_Func_voidstar_string_ffi_Int32_string_ffi_Int32_FFI
|
||||
= ffi.Pointer<void> Function(ffi.Pointer<void>, ffi.Pointer<Utf8>,
|
||||
ffi.Int32, ffi.Pointer<Utf8>, ffi.Int32);
|
||||
typedef voidstar_Func_voidstar_int_int_string = ffi.Pointer<void> Function(
|
||||
ffi.Pointer<void>, int, int, ffi.Pointer<Utf8>);
|
||||
typedef voidstar_Func_voidstar_ffi_Int32_ffi_Int32_string_FFI
|
||||
= ffi.Pointer<void> Function(
|
||||
ffi.Pointer<void>, ffi.Int32, ffi.Int32, ffi.Pointer<Utf8>);
|
||||
typedef voidstar_Func_voidstar_int_int_string_int = ffi.Pointer<void> Function(
|
||||
ffi.Pointer<void>, int, int, ffi.Pointer<Utf8>, int);
|
||||
typedef voidstar_Func_voidstar_ffi_Int32_ffi_Int32_string_ffi_Int32_FFI
|
||||
= ffi.Pointer<void> Function(
|
||||
ffi.Pointer<void>, ffi.Int32, ffi.Int32, ffi.Pointer<Utf8>, ffi.Int32);
|
||||
typedef void_Func_voidstar_double = void Function(ffi.Pointer<void>, double);
|
||||
typedef void_Func_voidstar_ffi_Double_FFI = ffi.Void Function(
|
||||
ffi.Pointer<void>, ffi.Double);
|
||||
2221
src/flutter/generated/KDDockWidgetsBindings/dart/lib/src/View.dart
Normal file
2221
src/flutter/generated/KDDockWidgetsBindings/dart/lib/src/View.dart
Normal file
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,134 @@
|
||||
/*
|
||||
This file is part of KDDockWidgets.
|
||||
|
||||
SPDX-FileCopyrightText: 2019-2022 Klarälvdalens Datakonsult AB, a KDAB Group company <info@kdab.com>
|
||||
Author: Sérgio Martins <sergio.martins@kdab.com>
|
||||
|
||||
SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only
|
||||
|
||||
Contact KDAB at <info@kdab.com> for commercial licensing options.
|
||||
*/
|
||||
|
||||
//tag=1052
|
||||
import 'dart:ffi' as ffi;
|
||||
import 'package:ffi/ffi.dart';
|
||||
import 'TypeHelpers.dart';
|
||||
import '../Bindings.dart';
|
||||
import '../FinalizerHelpers.dart';
|
||||
|
||||
//tag=1051
|
||||
var _dylib = Library.instance().dylib;
|
||||
|
||||
class ViewFactory extends QObject {
|
||||
//tag=1064
|
||||
ViewFactory.fromCppPointer(var cppPointer, [var needsAutoDelete = false])
|
||||
: super.fromCppPointer(cppPointer, needsAutoDelete) {}
|
||||
ViewFactory.init() : super.init() {}
|
||||
//tag=1062
|
||||
factory ViewFactory.fromCache(var cppPointer, [needsAutoDelete = false]) {
|
||||
if (QObject.isCached(cppPointer)) {
|
||||
var instance = QObject.s_dartInstanceByCppPtr[cppPointer.address];
|
||||
if (instance != null) return instance as ViewFactory;
|
||||
}
|
||||
return ViewFactory.fromCppPointer(cppPointer, needsAutoDelete);
|
||||
}
|
||||
//tag=1023
|
||||
//ViewFactory()
|
||||
ViewFactory() : super.init() {
|
||||
//tag=1075
|
||||
final voidstar_Func_void func = _dylib
|
||||
.lookup<ffi.NativeFunction<voidstar_Func_void_FFI>>(
|
||||
'c_KDDockWidgets__ViewFactory__constructor')
|
||||
.asFunction();
|
||||
thisCpp = func();
|
||||
QObject.s_dartInstanceByCppPtr[thisCpp.address] = this;
|
||||
registerCallbacks();
|
||||
}
|
||||
//tag=1024
|
||||
|
||||
//tag=1027
|
||||
// createRubberBand(KDDockWidgets::View * parent) const
|
||||
View createRubberBand(View? parent) {
|
||||
//tag=1028
|
||||
final voidstar_Func_voidstar_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<voidstar_Func_voidstar_voidstar_FFI>>(
|
||||
cFunctionSymbolName(574))
|
||||
.asFunction();
|
||||
//tag=1033
|
||||
ffi.Pointer<void> result =
|
||||
func(thisCpp, parent == null ? ffi.nullptr : parent.thisCpp);
|
||||
return View.fromCppPointer(result, false);
|
||||
}
|
||||
|
||||
//tag=1035
|
||||
static ffi.Pointer<void> createRubberBand_calledFromC(
|
||||
ffi.Pointer<void> thisCpp, ffi.Pointer<void>? parent) {
|
||||
var dartInstance =
|
||||
QObject.s_dartInstanceByCppPtr[thisCpp.address] as ViewFactory;
|
||||
if (dartInstance == null) {
|
||||
print(
|
||||
"Dart instance not found for ViewFactory::createRubberBand(KDDockWidgets::View * parent) const! (${thisCpp.address})");
|
||||
throw Error();
|
||||
}
|
||||
//tag=1037
|
||||
final result = dartInstance.createRubberBand(View.fromCppPointer(parent));
|
||||
return result.thisCpp;
|
||||
}
|
||||
|
||||
//tag=1024
|
||||
static
|
||||
//tag=1027
|
||||
// tr(const char * s, const char * c, int n)
|
||||
QString tr(String? s, String? c, int n) {
|
||||
//tag=1028
|
||||
final voidstar_Func_string_string_int func = _dylib
|
||||
.lookup<ffi.NativeFunction<voidstar_Func_string_string_ffi_Int32_FFI>>(
|
||||
'c_static_KDDockWidgets__ViewFactory__tr_char_char_int')
|
||||
.asFunction();
|
||||
//tag=1033
|
||||
ffi.Pointer<void> result = func(
|
||||
s?.toNativeUtf8() ?? ffi.nullptr, c?.toNativeUtf8() ?? ffi.nullptr, n);
|
||||
return QString.fromCppPointer(result, true);
|
||||
}
|
||||
|
||||
//tag=1022
|
||||
void release() {
|
||||
final void_Func_voidstar func = _dylib
|
||||
.lookup<ffi.NativeFunction<void_Func_voidstar_FFI>>(
|
||||
'c_KDDockWidgets__ViewFactory__destructor')
|
||||
.asFunction();
|
||||
func(thisCpp);
|
||||
}
|
||||
|
||||
//tag=1019
|
||||
String cFunctionSymbolName(int methodId) {
|
||||
switch (methodId) {
|
||||
case 574:
|
||||
return "c_KDDockWidgets__ViewFactory__createRubberBand_View";
|
||||
}
|
||||
return super.cFunctionSymbolName(methodId);
|
||||
}
|
||||
|
||||
static String methodNameFromId(int methodId) {
|
||||
switch (methodId) {
|
||||
case 574:
|
||||
return "createRubberBand";
|
||||
}
|
||||
throw Error();
|
||||
}
|
||||
|
||||
//tag=1020
|
||||
void registerCallbacks() {
|
||||
assert(thisCpp != null);
|
||||
final RegisterMethodIsReimplementedCallback registerCallback = _dylib
|
||||
.lookup<ffi.NativeFunction<RegisterMethodIsReimplementedCallback_FFI>>(
|
||||
'c_KDDockWidgets__ViewFactory__registerVirtualMethodCallback')
|
||||
.asFunction();
|
||||
|
||||
//tag=1021
|
||||
final callback574 =
|
||||
ffi.Pointer.fromFunction<voidstar_Func_voidstar_voidstar_FFI>(
|
||||
ViewFactory.createRubberBand_calledFromC);
|
||||
registerCallback(thisCpp, callback574, 574);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user