From a7a1b3fd2b27c1785043f0abf08acb630df860f4 Mon Sep 17 00:00:00 2001 From: therecipe Date: Mon, 25 Jun 2018 18:32:27 +0200 Subject: [PATCH] update to Qt 5.11.1 + split js docker image --- bluetooth/bluetooth.cpp | 16 - bluetooth/bluetooth.go | 19 - bluetooth/bluetooth.h | 3 - core/core.cpp | 175 ++ core/core.go | 377 ++- core/core.h | 27 + dbus/dbus.go | 5 - gui/gui.cpp | 676 +++++ gui/gui.go | 1253 ++++++++ gui/gui.h | 112 + help/help.cpp | 56 + help/help.go | 127 + help/help.h | 11 + internal/binding/converter/output.go | 12 +- internal/binding/parser/class.go | 29 +- internal/binding/parser/class_fix.go | 7 + internal/binding/parser/class_remove.go | 74 + internal/binding/parser/function.go | 49 +- internal/binding/parser/function_fix.go | 63 +- internal/binding/parser/module_remove.go | 4 +- internal/binding/templater/template_cpp.go | 3 +- internal/ci/darwin.sh | 2 +- internal/ci/iscript.qs | 30 +- internal/ci/linux.sh | 8 - internal/docker/js/Dockerfile | 44 +- internal/docker/js_base/Dockerfile | 19 + internal/docker/linux/Dockerfile | 2 +- internal/docker/sailfish/Dockerfile | 4 +- internal/docker/trigger/Dockerfile | 4 +- internal/docker/ubports_64_vivid/Dockerfile | 2 +- internal/docker/ubports_64_xenial/Dockerfile | 2 +- internal/docker/ubports_arm_vivid/Dockerfile | 2 +- internal/docker/ubports_arm_xenial/Dockerfile | 2 +- internal/examples/3rdparty/fluid/init.go | 6 +- internal/examples/3rdparty/kirigami/init.go | 6 +- .../examples/3rdparty/printslides/init.go | 6 +- .../examples/3rdparty/qml-material/init.go | 6 +- internal/examples/3rdparty/quickflux/init.go | 6 +- .../android-emulator/AndroidManifest.xml | 2 +- .../webchannel/shared/websockettransport.go | 2 +- internal/examples/widgets/textedit/main.go | 2 +- internal/utils/env.go | 2 +- internal/vagrant/darwin/Vagrantfile | 2 +- internal/vagrant/linux/Vagrantfile | 4 +- internal/vagrant/pre.bat | 2 +- internal/vagrant/pre.sh | 6 +- internal/vagrant/windows/Vagrantfile | 2 +- qml/qml.go | 14 +- quick/quick.cpp | 143 + quick/quick.go | 251 ++ quick/quick.h | 23 + serialbus/serialbus.cpp | 12 + serialbus/serialbus.go | 105 +- serialbus/serialbus.h | 1 + svg/svg.cpp | 6 + svg/svg.go | 14 + svg/svg.h | 1 + webengine/webengine.cpp | 88 - webengine/webengine.go | 244 -- webengine/webengine.h | 17 - widgets/widgets.cpp | 1346 +++++++++ widgets/widgets.go | 2520 ++++++++++++++++- widgets/widgets.h | 202 ++ 63 files changed, 7730 insertions(+), 530 deletions(-) create mode 100644 internal/docker/js_base/Dockerfile diff --git a/bluetooth/bluetooth.cpp b/bluetooth/bluetooth.cpp index 21ab9f2a..a73c10ca 100644 --- a/bluetooth/bluetooth.cpp +++ b/bluetooth/bluetooth.cpp @@ -64,22 +64,6 @@ #include #include -void* OSXBluetooth___extract_services_uuids_atList(void* ptr, int i) -{ - return new QBluetoothUuid(({QBluetoothUuid tmp = static_cast*>(ptr)->at(i); if (i == static_cast*>(ptr)->size()-1) { static_cast*>(ptr)->~QList(); free(ptr); }; tmp; })); -} - -void OSXBluetooth___extract_services_uuids_setList(void* ptr, void* i) -{ - static_cast*>(ptr)->append(*static_cast(i)); -} - -void* OSXBluetooth___extract_services_uuids_newList(void* ptr) -{ - Q_UNUSED(ptr); - return new QList(); -} - void* QBluetoothAddress_NewQBluetoothAddress() { return new QBluetoothAddress(); diff --git a/bluetooth/bluetooth.go b/bluetooth/bluetooth.go index be597ff6..f0f769a3 100644 --- a/bluetooth/bluetooth.go +++ b/bluetooth/bluetooth.go @@ -95,25 +95,6 @@ const ( OSXBluetooth__OBEXAbort OSXBluetooth__OBEXRequest = OSXBluetooth__OBEXRequest(6) ) -func (ptr *OSXBluetooth) __extract_services_uuids_atList(i int) *QBluetoothUuid { - if ptr.Pointer() != nil { - tmpValue := NewQBluetoothUuidFromPointer(C.OSXBluetooth___extract_services_uuids_atList(ptr.Pointer(), C.int(int32(i)))) - runtime.SetFinalizer(tmpValue, (*QBluetoothUuid).DestroyQBluetoothUuid) - return tmpValue - } - return nil -} - -func (ptr *OSXBluetooth) __extract_services_uuids_setList(i QBluetoothUuid_ITF) { - if ptr.Pointer() != nil { - C.OSXBluetooth___extract_services_uuids_setList(ptr.Pointer(), PointerFromQBluetoothUuid(i)) - } -} - -func (ptr *OSXBluetooth) __extract_services_uuids_newList() unsafe.Pointer { - return C.OSXBluetooth___extract_services_uuids_newList(ptr.Pointer()) -} - type QBluetooth struct { ptr unsafe.Pointer } diff --git a/bluetooth/bluetooth.h b/bluetooth/bluetooth.h index 96ff67c8..9e563f3d 100644 --- a/bluetooth/bluetooth.h +++ b/bluetooth/bluetooth.h @@ -22,9 +22,6 @@ extern "C" { struct QtBluetooth_PackedString { char* data; long long len; }; struct QtBluetooth_PackedList { void* data; long long len; }; -void* OSXBluetooth___extract_services_uuids_atList(void* ptr, int i); -void OSXBluetooth___extract_services_uuids_setList(void* ptr, void* i); -void* OSXBluetooth___extract_services_uuids_newList(void* ptr); void* QBluetoothAddress_NewQBluetoothAddress(); void* QBluetoothAddress_NewQBluetoothAddress4(void* other); void* QBluetoothAddress_NewQBluetoothAddress3(struct QtBluetooth_PackedString address); diff --git a/core/core.cpp b/core/core.cpp index 8f6b32c5..b5ab57f0 100644 --- a/core/core.cpp +++ b/core/core.cpp @@ -148,6 +148,7 @@ #include #include #include +#include #include #include #include @@ -13359,6 +13360,8 @@ char QObject_EventDefault(void* ptr, void* e) return static_cast(ptr)->QTimer::event(static_cast(e)); } else if (dynamic_cast(static_cast(ptr))) { return static_cast(ptr)->QSocketNotifier::event(static_cast(e)); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QSignalMapper::event(static_cast(e)); } else if (dynamic_cast(static_cast(ptr))) { return static_cast(ptr)->QSharedMemory::event(static_cast(e)); } else if (dynamic_cast(static_cast(ptr))) { @@ -13463,6 +13466,8 @@ char QObject_EventFilterDefault(void* ptr, void* watched, void* event) return static_cast(ptr)->QTimer::eventFilter(static_cast(watched), static_cast(event)); } else if (dynamic_cast(static_cast(ptr))) { return static_cast(ptr)->QSocketNotifier::eventFilter(static_cast(watched), static_cast(event)); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QSignalMapper::eventFilter(static_cast(watched), static_cast(event)); } else if (dynamic_cast(static_cast(ptr))) { return static_cast(ptr)->QSharedMemory::eventFilter(static_cast(watched), static_cast(event)); } else if (dynamic_cast(static_cast(ptr))) { @@ -13577,6 +13582,8 @@ void QObject_ChildEventDefault(void* ptr, void* event) static_cast(ptr)->QTimer::childEvent(static_cast(event)); } else if (dynamic_cast(static_cast(ptr))) { static_cast(ptr)->QSocketNotifier::childEvent(static_cast(event)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QSignalMapper::childEvent(static_cast(event)); } else if (dynamic_cast(static_cast(ptr))) { static_cast(ptr)->QSharedMemory::childEvent(static_cast(event)); } else if (dynamic_cast(static_cast(ptr))) { @@ -13681,6 +13688,8 @@ void QObject_ConnectNotifyDefault(void* ptr, void* sign) static_cast(ptr)->QTimer::connectNotify(*static_cast(sign)); } else if (dynamic_cast(static_cast(ptr))) { static_cast(ptr)->QSocketNotifier::connectNotify(*static_cast(sign)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QSignalMapper::connectNotify(*static_cast(sign)); } else if (dynamic_cast(static_cast(ptr))) { static_cast(ptr)->QSharedMemory::connectNotify(*static_cast(sign)); } else if (dynamic_cast(static_cast(ptr))) { @@ -13785,6 +13794,8 @@ void QObject_CustomEventDefault(void* ptr, void* event) static_cast(ptr)->QTimer::customEvent(static_cast(event)); } else if (dynamic_cast(static_cast(ptr))) { static_cast(ptr)->QSocketNotifier::customEvent(static_cast(event)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QSignalMapper::customEvent(static_cast(event)); } else if (dynamic_cast(static_cast(ptr))) { static_cast(ptr)->QSharedMemory::customEvent(static_cast(event)); } else if (dynamic_cast(static_cast(ptr))) { @@ -13889,6 +13900,8 @@ void QObject_DeleteLaterDefault(void* ptr) static_cast(ptr)->QTimer::deleteLater(); } else if (dynamic_cast(static_cast(ptr))) { static_cast(ptr)->QSocketNotifier::deleteLater(); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QSignalMapper::deleteLater(); } else if (dynamic_cast(static_cast(ptr))) { static_cast(ptr)->QSharedMemory::deleteLater(); } else if (dynamic_cast(static_cast(ptr))) { @@ -14008,6 +14021,8 @@ void QObject_DisconnectNotifyDefault(void* ptr, void* sign) static_cast(ptr)->QTimer::disconnectNotify(*static_cast(sign)); } else if (dynamic_cast(static_cast(ptr))) { static_cast(ptr)->QSocketNotifier::disconnectNotify(*static_cast(sign)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QSignalMapper::disconnectNotify(*static_cast(sign)); } else if (dynamic_cast(static_cast(ptr))) { static_cast(ptr)->QSharedMemory::disconnectNotify(*static_cast(sign)); } else if (dynamic_cast(static_cast(ptr))) { @@ -14152,6 +14167,8 @@ void QObject_TimerEventDefault(void* ptr, void* event) static_cast(ptr)->QTimer::timerEvent(static_cast(event)); } else if (dynamic_cast(static_cast(ptr))) { static_cast(ptr)->QSocketNotifier::timerEvent(static_cast(event)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QSignalMapper::timerEvent(static_cast(event)); } else if (dynamic_cast(static_cast(ptr))) { static_cast(ptr)->QSharedMemory::timerEvent(static_cast(event)); } else if (dynamic_cast(static_cast(ptr))) { @@ -14352,6 +14369,8 @@ void* QObject_MetaObjectDefault(void* ptr) return const_cast(static_cast(ptr)->QTimer::metaObject()); } else if (dynamic_cast(static_cast(ptr))) { return const_cast(static_cast(ptr)->QSocketNotifier::metaObject()); + } else if (dynamic_cast(static_cast(ptr))) { + return const_cast(static_cast(ptr)->QSignalMapper::metaObject()); } else if (dynamic_cast(static_cast(ptr))) { return const_cast(static_cast(ptr)->QSharedMemory::metaObject()); } else if (dynamic_cast(static_cast(ptr))) { @@ -17897,6 +17916,162 @@ void QSignalBlocker_DestroyQSignalBlocker(void* ptr) static_cast(ptr)->~QSignalBlocker(); } +class MyQSignalMapper: public QSignalMapper +{ +public: + void map() { callbackQSignalMapper_Map(this); }; + void map(QObject * sender) { callbackQSignalMapper_Map2(this, sender); }; + void Signal_Mapped4(QObject * object) { callbackQSignalMapper_Mapped4(this, object); }; + void Signal_Mapped3(QWidget * widget) { callbackQSignalMapper_Mapped3(this, widget); }; + void Signal_Mapped2(const QString & text) { QByteArray t372ea0 = text.toUtf8(); QtCore_PackedString textPacked = { const_cast(t372ea0.prepend("WHITESPACE").constData()+10), t372ea0.size()-10 };callbackQSignalMapper_Mapped2(this, textPacked); }; + void Signal_Mapped(int i) { callbackQSignalMapper_Mapped(this, i); }; + bool event(QEvent * e) { return callbackQObject_Event(this, e) != 0; }; + bool eventFilter(QObject * watched, QEvent * event) { return callbackQObject_EventFilter(this, watched, event) != 0; }; + void childEvent(QChildEvent * event) { callbackQObject_ChildEvent(this, event); }; + void connectNotify(const QMetaMethod & sign) { callbackQObject_ConnectNotify(this, const_cast(&sign)); }; + void customEvent(QEvent * event) { callbackQObject_CustomEvent(this, event); }; + void deleteLater() { callbackQObject_DeleteLater(this); }; + void Signal_Destroyed(QObject * obj) { callbackQObject_Destroyed(this, obj); }; + void disconnectNotify(const QMetaMethod & sign) { callbackQObject_DisconnectNotify(this, const_cast(&sign)); }; + void Signal_ObjectNameChanged(const QString & objectName) { QByteArray taa2c4f = objectName.toUtf8(); QtCore_PackedString objectNamePacked = { const_cast(taa2c4f.prepend("WHITESPACE").constData()+10), taa2c4f.size()-10 };callbackQObject_ObjectNameChanged(this, objectNamePacked); }; + void timerEvent(QTimerEvent * event) { callbackQObject_TimerEvent(this, event); }; + const QMetaObject * metaObject() const { return static_cast(callbackQObject_MetaObject(const_cast(static_cast(this)))); }; +}; + +Q_DECLARE_METATYPE(MyQSignalMapper*) + +int QSignalMapper_QSignalMapper_QRegisterMetaType(){qRegisterMetaType(); return qRegisterMetaType();} + +void QSignalMapper_Map(void* ptr) +{ + QMetaObject::invokeMethod(static_cast(ptr), "map"); +} + +void QSignalMapper_MapDefault(void* ptr) +{ + static_cast(ptr)->QSignalMapper::map(); +} + +void QSignalMapper_Map2(void* ptr, void* sender) +{ + QMetaObject::invokeMethod(static_cast(ptr), "map", Q_ARG(QObject*, static_cast(sender))); +} + +void QSignalMapper_Map2Default(void* ptr, void* sender) +{ + static_cast(ptr)->QSignalMapper::map(static_cast(sender)); +} + +void QSignalMapper_ConnectMapped4(void* ptr) +{ + QObject::connect(static_cast(ptr), static_cast(&QSignalMapper::mapped), static_cast(ptr), static_cast(&MyQSignalMapper::Signal_Mapped4)); +} + +void QSignalMapper_DisconnectMapped4(void* ptr) +{ + QObject::disconnect(static_cast(ptr), static_cast(&QSignalMapper::mapped), static_cast(ptr), static_cast(&MyQSignalMapper::Signal_Mapped4)); +} + +void QSignalMapper_Mapped4(void* ptr, void* object) +{ + static_cast(ptr)->mapped(static_cast(object)); +} + +void QSignalMapper_ConnectMapped3(void* ptr) +{ + QObject::connect(static_cast(ptr), static_cast(&QSignalMapper::mapped), static_cast(ptr), static_cast(&MyQSignalMapper::Signal_Mapped3)); +} + +void QSignalMapper_DisconnectMapped3(void* ptr) +{ + QObject::disconnect(static_cast(ptr), static_cast(&QSignalMapper::mapped), static_cast(ptr), static_cast(&MyQSignalMapper::Signal_Mapped3)); +} + +void QSignalMapper_Mapped3(void* ptr, void* widget) +{ + static_cast(ptr)->mapped(static_cast(widget)); +} + +void QSignalMapper_ConnectMapped2(void* ptr) +{ + QObject::connect(static_cast(ptr), static_cast(&QSignalMapper::mapped), static_cast(ptr), static_cast(&MyQSignalMapper::Signal_Mapped2)); +} + +void QSignalMapper_DisconnectMapped2(void* ptr) +{ + QObject::disconnect(static_cast(ptr), static_cast(&QSignalMapper::mapped), static_cast(ptr), static_cast(&MyQSignalMapper::Signal_Mapped2)); +} + +void QSignalMapper_Mapped2(void* ptr, struct QtCore_PackedString text) +{ + static_cast(ptr)->mapped(QString::fromUtf8(text.data, text.len)); +} + +void QSignalMapper_ConnectMapped(void* ptr) +{ + QObject::connect(static_cast(ptr), static_cast(&QSignalMapper::mapped), static_cast(ptr), static_cast(&MyQSignalMapper::Signal_Mapped)); +} + +void QSignalMapper_DisconnectMapped(void* ptr) +{ + QObject::disconnect(static_cast(ptr), static_cast(&QSignalMapper::mapped), static_cast(ptr), static_cast(&MyQSignalMapper::Signal_Mapped)); +} + +void QSignalMapper_Mapped(void* ptr, int i) +{ + static_cast(ptr)->mapped(i); +} + +void QSignalMapper_RemoveMappings(void* ptr, void* sender) +{ + static_cast(ptr)->removeMappings(static_cast(sender)); +} + +void QSignalMapper_SetMapping4(void* ptr, void* sender, void* object) +{ + static_cast(ptr)->setMapping(static_cast(sender), static_cast(object)); +} + +void QSignalMapper_SetMapping3(void* ptr, void* sender, void* widget) +{ + static_cast(ptr)->setMapping(static_cast(sender), static_cast(widget)); +} + +void QSignalMapper_SetMapping2(void* ptr, void* sender, struct QtCore_PackedString text) +{ + static_cast(ptr)->setMapping(static_cast(sender), QString::fromUtf8(text.data, text.len)); +} + +void QSignalMapper_SetMapping(void* ptr, void* sender, int id) +{ + static_cast(ptr)->setMapping(static_cast(sender), id); +} + +void QSignalMapper_DestroyQSignalMapper(void* ptr) +{ + static_cast(ptr)->~QSignalMapper(); +} + +void* QSignalMapper_Mapping4(void* ptr, void* object) +{ + return static_cast(ptr)->mapping(static_cast(object)); +} + +void* QSignalMapper_Mapping3(void* ptr, void* widget) +{ + return static_cast(ptr)->mapping(static_cast(widget)); +} + +void* QSignalMapper_Mapping2(void* ptr, struct QtCore_PackedString id) +{ + return static_cast(ptr)->mapping(QString::fromUtf8(id.data, id.len)); +} + +void* QSignalMapper_Mapping(void* ptr, int id) +{ + return static_cast(ptr)->mapping(id); +} + class MyQSignalTransition: public QSignalTransition { public: diff --git a/core/core.go b/core/core.go index 1511dccc..65051e5b 100644 --- a/core/core.go +++ b/core/core.go @@ -36092,6 +36092,382 @@ func (ptr *QSignalBlocker) DestroyQSignalBlocker() { } } +type QSignalMapper struct { + QObject +} + +type QSignalMapper_ITF interface { + QObject_ITF + QSignalMapper_PTR() *QSignalMapper +} + +func (ptr *QSignalMapper) QSignalMapper_PTR() *QSignalMapper { + return ptr +} + +func (ptr *QSignalMapper) Pointer() unsafe.Pointer { + if ptr != nil { + return ptr.QObject_PTR().Pointer() + } + return nil +} + +func (ptr *QSignalMapper) SetPointer(p unsafe.Pointer) { + if ptr != nil { + ptr.QObject_PTR().SetPointer(p) + } +} + +func PointerFromQSignalMapper(ptr QSignalMapper_ITF) unsafe.Pointer { + if ptr != nil { + return ptr.QSignalMapper_PTR().Pointer() + } + return nil +} + +func NewQSignalMapperFromPointer(ptr unsafe.Pointer) (n *QSignalMapper) { + n = new(QSignalMapper) + n.SetPointer(ptr) + return +} + +//export callbackQSignalMapper_Map +func callbackQSignalMapper_Map(ptr unsafe.Pointer) { + if signal := qt.GetSignal(ptr, "map"); signal != nil { + signal.(func())() + } else { + NewQSignalMapperFromPointer(ptr).MapDefault() + } +} + +func (ptr *QSignalMapper) ConnectMap(f func()) { + if ptr.Pointer() != nil { + + if signal := qt.LendSignal(ptr.Pointer(), "map"); signal != nil { + qt.ConnectSignal(ptr.Pointer(), "map", func() { + signal.(func())() + f() + }) + } else { + qt.ConnectSignal(ptr.Pointer(), "map", f) + } + } +} + +func (ptr *QSignalMapper) DisconnectMap() { + if ptr.Pointer() != nil { + + qt.DisconnectSignal(ptr.Pointer(), "map") + } +} + +func (ptr *QSignalMapper) Map() { + if ptr.Pointer() != nil { + C.QSignalMapper_Map(ptr.Pointer()) + } +} + +func (ptr *QSignalMapper) MapDefault() { + if ptr.Pointer() != nil { + C.QSignalMapper_MapDefault(ptr.Pointer()) + } +} + +//export callbackQSignalMapper_Map2 +func callbackQSignalMapper_Map2(ptr unsafe.Pointer, sender unsafe.Pointer) { + if signal := qt.GetSignal(ptr, "map2"); signal != nil { + signal.(func(*QObject))(NewQObjectFromPointer(sender)) + } else { + NewQSignalMapperFromPointer(ptr).Map2Default(NewQObjectFromPointer(sender)) + } +} + +func (ptr *QSignalMapper) ConnectMap2(f func(sender *QObject)) { + if ptr.Pointer() != nil { + + if signal := qt.LendSignal(ptr.Pointer(), "map2"); signal != nil { + qt.ConnectSignal(ptr.Pointer(), "map2", func(sender *QObject) { + signal.(func(*QObject))(sender) + f(sender) + }) + } else { + qt.ConnectSignal(ptr.Pointer(), "map2", f) + } + } +} + +func (ptr *QSignalMapper) DisconnectMap2() { + if ptr.Pointer() != nil { + + qt.DisconnectSignal(ptr.Pointer(), "map2") + } +} + +func (ptr *QSignalMapper) Map2(sender QObject_ITF) { + if ptr.Pointer() != nil { + C.QSignalMapper_Map2(ptr.Pointer(), PointerFromQObject(sender)) + } +} + +func (ptr *QSignalMapper) Map2Default(sender QObject_ITF) { + if ptr.Pointer() != nil { + C.QSignalMapper_Map2Default(ptr.Pointer(), PointerFromQObject(sender)) + } +} + +//export callbackQSignalMapper_Mapped4 +func callbackQSignalMapper_Mapped4(ptr unsafe.Pointer, object unsafe.Pointer) { + if signal := qt.GetSignal(ptr, "mapped4"); signal != nil { + signal.(func(*QObject))(NewQObjectFromPointer(object)) + } + +} + +func (ptr *QSignalMapper) ConnectMapped4(f func(object *QObject)) { + if ptr.Pointer() != nil { + + if !qt.ExistsSignal(ptr.Pointer(), "mapped4") { + C.QSignalMapper_ConnectMapped4(ptr.Pointer()) + } + + if signal := qt.LendSignal(ptr.Pointer(), "mapped4"); signal != nil { + qt.ConnectSignal(ptr.Pointer(), "mapped4", func(object *QObject) { + signal.(func(*QObject))(object) + f(object) + }) + } else { + qt.ConnectSignal(ptr.Pointer(), "mapped4", f) + } + } +} + +func (ptr *QSignalMapper) DisconnectMapped4() { + if ptr.Pointer() != nil { + C.QSignalMapper_DisconnectMapped4(ptr.Pointer()) + qt.DisconnectSignal(ptr.Pointer(), "mapped4") + } +} + +func (ptr *QSignalMapper) Mapped4(object QObject_ITF) { + if ptr.Pointer() != nil { + C.QSignalMapper_Mapped4(ptr.Pointer(), PointerFromQObject(object)) + } +} + +//export callbackQSignalMapper_Mapped3 +func callbackQSignalMapper_Mapped3(ptr unsafe.Pointer, widget unsafe.Pointer) { + if signal := qt.GetSignal(ptr, "mapped3"); signal != nil { + signal.(func(unsafe.Pointer))(unsafe.Pointer(widget)) + } + +} + +func (ptr *QSignalMapper) ConnectMapped3(f func(widget unsafe.Pointer)) { + if ptr.Pointer() != nil { + + if !qt.ExistsSignal(ptr.Pointer(), "mapped3") { + C.QSignalMapper_ConnectMapped3(ptr.Pointer()) + } + + if signal := qt.LendSignal(ptr.Pointer(), "mapped3"); signal != nil { + qt.ConnectSignal(ptr.Pointer(), "mapped3", func(widget unsafe.Pointer) { + signal.(func(unsafe.Pointer))(widget) + f(widget) + }) + } else { + qt.ConnectSignal(ptr.Pointer(), "mapped3", f) + } + } +} + +func (ptr *QSignalMapper) DisconnectMapped3() { + if ptr.Pointer() != nil { + C.QSignalMapper_DisconnectMapped3(ptr.Pointer()) + qt.DisconnectSignal(ptr.Pointer(), "mapped3") + } +} + +func (ptr *QSignalMapper) Mapped3(widget unsafe.Pointer) { + if ptr.Pointer() != nil { + C.QSignalMapper_Mapped3(ptr.Pointer(), widget) + } +} + +//export callbackQSignalMapper_Mapped2 +func callbackQSignalMapper_Mapped2(ptr unsafe.Pointer, text C.struct_QtCore_PackedString) { + if signal := qt.GetSignal(ptr, "mapped2"); signal != nil { + signal.(func(string))(cGoUnpackString(text)) + } + +} + +func (ptr *QSignalMapper) ConnectMapped2(f func(text string)) { + if ptr.Pointer() != nil { + + if !qt.ExistsSignal(ptr.Pointer(), "mapped2") { + C.QSignalMapper_ConnectMapped2(ptr.Pointer()) + } + + if signal := qt.LendSignal(ptr.Pointer(), "mapped2"); signal != nil { + qt.ConnectSignal(ptr.Pointer(), "mapped2", func(text string) { + signal.(func(string))(text) + f(text) + }) + } else { + qt.ConnectSignal(ptr.Pointer(), "mapped2", f) + } + } +} + +func (ptr *QSignalMapper) DisconnectMapped2() { + if ptr.Pointer() != nil { + C.QSignalMapper_DisconnectMapped2(ptr.Pointer()) + qt.DisconnectSignal(ptr.Pointer(), "mapped2") + } +} + +func (ptr *QSignalMapper) Mapped2(text string) { + if ptr.Pointer() != nil { + var textC *C.char + if text != "" { + textC = C.CString(text) + defer C.free(unsafe.Pointer(textC)) + } + C.QSignalMapper_Mapped2(ptr.Pointer(), C.struct_QtCore_PackedString{data: textC, len: C.longlong(len(text))}) + } +} + +//export callbackQSignalMapper_Mapped +func callbackQSignalMapper_Mapped(ptr unsafe.Pointer, i C.int) { + if signal := qt.GetSignal(ptr, "mapped"); signal != nil { + signal.(func(int))(int(int32(i))) + } + +} + +func (ptr *QSignalMapper) ConnectMapped(f func(i int)) { + if ptr.Pointer() != nil { + + if !qt.ExistsSignal(ptr.Pointer(), "mapped") { + C.QSignalMapper_ConnectMapped(ptr.Pointer()) + } + + if signal := qt.LendSignal(ptr.Pointer(), "mapped"); signal != nil { + qt.ConnectSignal(ptr.Pointer(), "mapped", func(i int) { + signal.(func(int))(i) + f(i) + }) + } else { + qt.ConnectSignal(ptr.Pointer(), "mapped", f) + } + } +} + +func (ptr *QSignalMapper) DisconnectMapped() { + if ptr.Pointer() != nil { + C.QSignalMapper_DisconnectMapped(ptr.Pointer()) + qt.DisconnectSignal(ptr.Pointer(), "mapped") + } +} + +func (ptr *QSignalMapper) Mapped(i int) { + if ptr.Pointer() != nil { + C.QSignalMapper_Mapped(ptr.Pointer(), C.int(int32(i))) + } +} + +func (ptr *QSignalMapper) RemoveMappings(sender QObject_ITF) { + if ptr.Pointer() != nil { + C.QSignalMapper_RemoveMappings(ptr.Pointer(), PointerFromQObject(sender)) + } +} + +func (ptr *QSignalMapper) SetMapping4(sender QObject_ITF, object QObject_ITF) { + if ptr.Pointer() != nil { + C.QSignalMapper_SetMapping4(ptr.Pointer(), PointerFromQObject(sender), PointerFromQObject(object)) + } +} + +func (ptr *QSignalMapper) SetMapping3(sender QObject_ITF, widget unsafe.Pointer) { + if ptr.Pointer() != nil { + C.QSignalMapper_SetMapping3(ptr.Pointer(), PointerFromQObject(sender), widget) + } +} + +func (ptr *QSignalMapper) SetMapping2(sender QObject_ITF, text string) { + if ptr.Pointer() != nil { + var textC *C.char + if text != "" { + textC = C.CString(text) + defer C.free(unsafe.Pointer(textC)) + } + C.QSignalMapper_SetMapping2(ptr.Pointer(), PointerFromQObject(sender), C.struct_QtCore_PackedString{data: textC, len: C.longlong(len(text))}) + } +} + +func (ptr *QSignalMapper) SetMapping(sender QObject_ITF, id int) { + if ptr.Pointer() != nil { + C.QSignalMapper_SetMapping(ptr.Pointer(), PointerFromQObject(sender), C.int(int32(id))) + } +} + +func (ptr *QSignalMapper) DestroyQSignalMapper() { + if ptr.Pointer() != nil { + C.QSignalMapper_DestroyQSignalMapper(ptr.Pointer()) + ptr.SetPointer(nil) + runtime.SetFinalizer(ptr, nil) + } +} + +func (ptr *QSignalMapper) Mapping4(object QObject_ITF) *QObject { + if ptr.Pointer() != nil { + tmpValue := NewQObjectFromPointer(C.QSignalMapper_Mapping4(ptr.Pointer(), PointerFromQObject(object))) + if !qt.ExistsSignal(tmpValue.Pointer(), "destroyed") { + tmpValue.ConnectDestroyed(func(*QObject) { tmpValue.SetPointer(nil) }) + } + return tmpValue + } + return nil +} + +func (ptr *QSignalMapper) Mapping3(widget unsafe.Pointer) *QObject { + if ptr.Pointer() != nil { + tmpValue := NewQObjectFromPointer(C.QSignalMapper_Mapping3(ptr.Pointer(), widget)) + if !qt.ExistsSignal(tmpValue.Pointer(), "destroyed") { + tmpValue.ConnectDestroyed(func(*QObject) { tmpValue.SetPointer(nil) }) + } + return tmpValue + } + return nil +} + +func (ptr *QSignalMapper) Mapping2(id string) *QObject { + if ptr.Pointer() != nil { + var idC *C.char + if id != "" { + idC = C.CString(id) + defer C.free(unsafe.Pointer(idC)) + } + tmpValue := NewQObjectFromPointer(C.QSignalMapper_Mapping2(ptr.Pointer(), C.struct_QtCore_PackedString{data: idC, len: C.longlong(len(id))})) + if !qt.ExistsSignal(tmpValue.Pointer(), "destroyed") { + tmpValue.ConnectDestroyed(func(*QObject) { tmpValue.SetPointer(nil) }) + } + return tmpValue + } + return nil +} + +func (ptr *QSignalMapper) Mapping(id int) *QObject { + if ptr.Pointer() != nil { + tmpValue := NewQObjectFromPointer(C.QSignalMapper_Mapping(ptr.Pointer(), C.int(int32(id)))) + if !qt.ExistsSignal(tmpValue.Pointer(), "destroyed") { + tmpValue.ConnectDestroyed(func(*QObject) { tmpValue.SetPointer(nil) }) + } + return tmpValue + } + return nil +} + type QSignalTransition struct { QAbstractTransition } @@ -51325,7 +51701,6 @@ const ( Qt__ImAnchorRectangle Qt__InputMethodQuery = Qt__InputMethodQuery(0x4000) Qt__ImInputItemClipRectangle Qt__InputMethodQuery = Qt__InputMethodQuery(0x8000) Qt__ImPlatformData Qt__InputMethodQuery = Qt__InputMethodQuery(0x80000000) - Qt__ImQueryInput Qt__InputMethodQuery = Qt__InputMethodQuery(Qt__ImCursorRectangle | Qt__ImCursorPosition | Qt__ImSurroundingText | Qt__ImCurrentSelection | Qt__ImAnchorRectangle | Qt__ImAnchorPosition) Qt__ImQueryAll Qt__InputMethodQuery = Qt__InputMethodQuery(0xffffffff) ) diff --git a/core/core.h b/core/core.h index 3164928d..8443884b 100644 --- a/core/core.h +++ b/core/core.h @@ -44,6 +44,7 @@ int QSaveFile_QSaveFile_QRegisterMetaType(); int QSequentialAnimationGroup_QSequentialAnimationGroup_QRegisterMetaType(); int QSettings_QSettings_QRegisterMetaType(); int QSharedMemory_QSharedMemory_QRegisterMetaType(); +int QSignalMapper_QSignalMapper_QRegisterMetaType(); int QSignalTransition_QSignalTransition_QRegisterMetaType(); int QSocketNotifier_QSocketNotifier_QRegisterMetaType(); int QSortFilterProxyModel_QSortFilterProxyModel_QRegisterMetaType(); @@ -2670,6 +2671,32 @@ void* QSignalBlocker_NewQSignalBlocker(void* object); void QSignalBlocker_Reblock(void* ptr); void QSignalBlocker_Unblock(void* ptr); void QSignalBlocker_DestroyQSignalBlocker(void* ptr); +void QSignalMapper_Map(void* ptr); +void QSignalMapper_MapDefault(void* ptr); +void QSignalMapper_Map2(void* ptr, void* sender); +void QSignalMapper_Map2Default(void* ptr, void* sender); +void QSignalMapper_ConnectMapped4(void* ptr); +void QSignalMapper_DisconnectMapped4(void* ptr); +void QSignalMapper_Mapped4(void* ptr, void* object); +void QSignalMapper_ConnectMapped3(void* ptr); +void QSignalMapper_DisconnectMapped3(void* ptr); +void QSignalMapper_Mapped3(void* ptr, void* widget); +void QSignalMapper_ConnectMapped2(void* ptr); +void QSignalMapper_DisconnectMapped2(void* ptr); +void QSignalMapper_Mapped2(void* ptr, struct QtCore_PackedString text); +void QSignalMapper_ConnectMapped(void* ptr); +void QSignalMapper_DisconnectMapped(void* ptr); +void QSignalMapper_Mapped(void* ptr, int i); +void QSignalMapper_RemoveMappings(void* ptr, void* sender); +void QSignalMapper_SetMapping4(void* ptr, void* sender, void* object); +void QSignalMapper_SetMapping3(void* ptr, void* sender, void* widget); +void QSignalMapper_SetMapping2(void* ptr, void* sender, struct QtCore_PackedString text); +void QSignalMapper_SetMapping(void* ptr, void* sender, int id); +void QSignalMapper_DestroyQSignalMapper(void* ptr); +void* QSignalMapper_Mapping4(void* ptr, void* object); +void* QSignalMapper_Mapping3(void* ptr, void* widget); +void* QSignalMapper_Mapping2(void* ptr, struct QtCore_PackedString id); +void* QSignalMapper_Mapping(void* ptr, int id); void* QSignalTransition_NewQSignalTransition(void* sourceState); void* QSignalTransition_NewQSignalTransition2(void* sender, char* sign, void* sourceState); char QSignalTransition_EventTest(void* ptr, void* event); diff --git a/dbus/dbus.go b/dbus/dbus.go index 77692a39..503cb09d 100644 --- a/dbus/dbus.go +++ b/dbus/dbus.go @@ -1310,11 +1310,6 @@ const ( QDBusConnection__ExportNonScriptableProperties QDBusConnection__RegisterOption = QDBusConnection__RegisterOption(0x400) QDBusConnection__ExportNonScriptableInvokables QDBusConnection__RegisterOption = QDBusConnection__RegisterOption(0x800) QDBusConnection__ExportNonScriptableContents QDBusConnection__RegisterOption = QDBusConnection__RegisterOption(0xf00) - QDBusConnection__ExportAllSlots QDBusConnection__RegisterOption = QDBusConnection__RegisterOption(QDBusConnection__ExportScriptableSlots | QDBusConnection__ExportNonScriptableSlots) - QDBusConnection__ExportAllSignals QDBusConnection__RegisterOption = QDBusConnection__RegisterOption(QDBusConnection__ExportScriptableSignals | QDBusConnection__ExportNonScriptableSignals) - QDBusConnection__ExportAllProperties QDBusConnection__RegisterOption = QDBusConnection__RegisterOption(QDBusConnection__ExportScriptableProperties | QDBusConnection__ExportNonScriptableProperties) - QDBusConnection__ExportAllInvokables QDBusConnection__RegisterOption = QDBusConnection__RegisterOption(QDBusConnection__ExportScriptableInvokables | QDBusConnection__ExportNonScriptableInvokables) - QDBusConnection__ExportAllContents QDBusConnection__RegisterOption = QDBusConnection__RegisterOption(QDBusConnection__ExportScriptableContents | QDBusConnection__ExportNonScriptableContents) QDBusConnection__ExportChildObjects QDBusConnection__RegisterOption = QDBusConnection__RegisterOption(0x1000) ) diff --git a/gui/gui.cpp b/gui/gui.cpp index 0b915f62..b7bb82cd 100644 --- a/gui/gui.cpp +++ b/gui/gui.cpp @@ -105,6 +105,7 @@ #include #include #include +#include #include #include #include @@ -180,6 +181,8 @@ #include #include #include +#include +#include #include #include #include @@ -3025,6 +3028,11 @@ void QBrush_SetColor(void* ptr, void* color) static_cast(ptr)->setColor(*static_cast(color)); } +void QBrush_SetMatrix(void* ptr, void* matrix) +{ + static_cast(ptr)->setMatrix(*static_cast(matrix)); +} + void QBrush_SetStyle(void* ptr, long long style) { static_cast(ptr)->setStyle(static_cast(style)); @@ -3090,6 +3098,11 @@ void* QBrush_Gradient(void* ptr) return const_cast(static_cast(ptr)->gradient()); } +void* QBrush_Matrix(void* ptr) +{ + return const_cast(&static_cast(ptr)->matrix()); +} + void* QBrush_ToVariant(void* ptr) { return new QVariant(*static_cast(ptr)); @@ -7939,6 +7952,11 @@ long long QImage_QImage_ToImageFormat(void* format) return QImage::toImageFormat(*static_cast(format)); } +void* QImage_QImage_TrueMatrix(void* matrix, int width, int height) +{ + return new QMatrix(QImage::trueMatrix(*static_cast(matrix), width, height)); +} + void* QImage_QImage_ToPixelFormat(long long format) { return new QPixelFormat(QImage::toPixelFormat(static_cast(format))); @@ -8139,6 +8157,11 @@ void* QImage_SmoothScaled(void* ptr, int w, int h) return new QImage(static_cast(ptr)->smoothScaled(w, h)); } +void* QImage_Transformed(void* ptr, void* matrix, long long mode) +{ + return new QImage(static_cast(ptr)->transformed(*static_cast(matrix), static_cast(mode))); +} + void* QImage_Transformed2(void* ptr, void* matrix, long long mode) { return new QImage(static_cast(ptr)->transformed(*static_cast(matrix), static_cast(mode))); @@ -10288,11 +10311,182 @@ void* QLinearGradient_Start(void* ptr) return ({ QPointF tmpValue = static_cast(ptr)->start(); new QPointF(tmpValue.x(), tmpValue.y()); }); } +void* QMatrix_Rotate(void* ptr, double degrees) +{ + return new QMatrix(static_cast(ptr)->rotate(degrees)); +} + +void* QMatrix_Scale(void* ptr, double sx, double sy) +{ + return new QMatrix(static_cast(ptr)->scale(sx, sy)); +} + +void* QMatrix_Shear(void* ptr, double sh, double sv) +{ + return new QMatrix(static_cast(ptr)->shear(sh, sv)); +} + +void* QMatrix_Translate(void* ptr, double dx, double dy) +{ + return new QMatrix(static_cast(ptr)->translate(dx, dy)); +} + +void* QMatrix_NewQMatrix() +{ + return new QMatrix(); +} + +void* QMatrix_NewQMatrix4(void* other) +{ + return new QMatrix(*static_cast(other)); +} + +void* QMatrix_NewQMatrix5(void* matrix) +{ + return new QMatrix(*static_cast(matrix)); +} + +void* QMatrix_NewQMatrix3(double m11, double m12, double m21, double m22, double dx, double dy) +{ + return new QMatrix(m11, m12, m21, m22, dx, dy); +} + +void QMatrix_Reset(void* ptr) +{ + static_cast(ptr)->reset(); +} + +void QMatrix_SetMatrix(void* ptr, double m11, double m12, double m21, double m22, double dx, double dy) +{ + static_cast(ptr)->setMatrix(m11, m12, m21, m22, dx, dy); +} + +void* QMatrix_Map5(void* ptr, void* line) +{ + return ({ QLine tmpValue = static_cast(ptr)->map(*static_cast(line)); new QLine(tmpValue.p1(), tmpValue.p2()); }); +} + +void* QMatrix_Map6(void* ptr, void* line) +{ + return ({ QLineF tmpValue = static_cast(ptr)->map(*static_cast(line)); new QLineF(tmpValue.p1(), tmpValue.p2()); }); +} + +void* QMatrix_Inverted(void* ptr, char invertible) +{ + Q_UNUSED(invertible); + return new QMatrix(static_cast(ptr)->inverted(NULL)); +} + +void* QMatrix_Map10(void* ptr, void* path) +{ + return new QPainterPath(static_cast(ptr)->map(*static_cast(path))); +} + +void* QMatrix_Map3(void* ptr, void* point) +{ + return ({ QPoint tmpValue = static_cast(ptr)->map(*static_cast(point)); new QPoint(tmpValue.x(), tmpValue.y()); }); +} + +void* QMatrix_Map4(void* ptr, void* point) +{ + return ({ QPointF tmpValue = static_cast(ptr)->map(*static_cast(point)); new QPointF(tmpValue.x(), tmpValue.y()); }); +} + +void* QMatrix_Map8(void* ptr, void* polygon) +{ + return new QPolygon(static_cast(ptr)->map(*static_cast(polygon))); +} + +void* QMatrix_MapToPolygon(void* ptr, void* rectangle) +{ + return new QPolygon(static_cast(ptr)->mapToPolygon(*static_cast(rectangle))); +} + +void* QMatrix_Map7(void* ptr, void* polygon) +{ + return new QPolygonF(static_cast(ptr)->map(*static_cast(polygon))); +} + +void* QMatrix_MapRect2(void* ptr, void* rectangle) +{ + return ({ QRect tmpValue = static_cast(ptr)->mapRect(*static_cast(rectangle)); new QRect(tmpValue.x(), tmpValue.y(), tmpValue.width(), tmpValue.height()); }); +} + +void* QMatrix_MapRect(void* ptr, void* rectangle) +{ + return ({ QRectF tmpValue = static_cast(ptr)->mapRect(*static_cast(rectangle)); new QRectF(tmpValue.x(), tmpValue.y(), tmpValue.width(), tmpValue.height()); }); +} + +void* QMatrix_Map9(void* ptr, void* region) +{ + return new QRegion(static_cast(ptr)->map(*static_cast(region))); +} + +char QMatrix_IsIdentity(void* ptr) +{ + return static_cast(ptr)->isIdentity(); +} + +char QMatrix_IsInvertible(void* ptr) +{ + return static_cast(ptr)->isInvertible(); +} + +double QMatrix_Determinant(void* ptr) +{ + return static_cast(ptr)->determinant(); +} + +double QMatrix_Dx(void* ptr) +{ + return static_cast(ptr)->dx(); +} + +double QMatrix_Dy(void* ptr) +{ + return static_cast(ptr)->dy(); +} + +double QMatrix_M11(void* ptr) +{ + return static_cast(ptr)->m11(); +} + +double QMatrix_M12(void* ptr) +{ + return static_cast(ptr)->m12(); +} + +double QMatrix_M21(void* ptr) +{ + return static_cast(ptr)->m21(); +} + +double QMatrix_M22(void* ptr) +{ + return static_cast(ptr)->m22(); +} + +void QMatrix_Map2(void* ptr, int x, int y, int tx, int ty) +{ + static_cast(ptr)->map(x, y, &tx, &ty); +} + +void QMatrix_Map(void* ptr, double x, double y, double tx, double ty) +{ + static_cast(ptr)->map(x, y, &tx, &ty); +} + void* QMatrix4x4_NewQMatrix4x4() { return new QMatrix4x4(); } +void* QMatrix4x4_NewQMatrix4x48(void* matrix) +{ + return new QMatrix4x4(*static_cast(matrix)); +} + void* QMatrix4x4_NewQMatrix4x47(void* transform) { return new QMatrix4x4(*static_cast(transform)); @@ -10428,6 +10622,11 @@ void QMatrix4x4_Viewport(void* ptr, float left, float bottom, float width, float static_cast(ptr)->viewport(left, bottom, width, height, nearPlane, farPlane); } +void* QMatrix4x4_ToAffine(void* ptr) +{ + return new QMatrix(static_cast(ptr)->toAffine()); +} + void* QMatrix4x4_Inverted(void* ptr, char invertible) { Q_UNUSED(invertible); @@ -82048,11 +82247,21 @@ void QPainterPath_DestroyQPainterPath(void* ptr) static_cast(ptr)->~QPainterPath(); } +struct QtGui_PackedList QPainterPath_ToFillPolygons2(void* ptr, void* matrix) +{ + return ({ QList* tmpValue = new QList(static_cast(ptr)->toFillPolygons(*static_cast(matrix))); QtGui_PackedList { tmpValue, tmpValue->size() }; }); +} + struct QtGui_PackedList QPainterPath_ToFillPolygons(void* ptr, void* matrix) { return ({ QList* tmpValue = new QList(static_cast(ptr)->toFillPolygons(*static_cast(matrix))); QtGui_PackedList { tmpValue, tmpValue->size() }; }); } +struct QtGui_PackedList QPainterPath_ToSubpathPolygons2(void* ptr, void* matrix) +{ + return ({ QList* tmpValue = new QList(static_cast(ptr)->toSubpathPolygons(*static_cast(matrix))); QtGui_PackedList { tmpValue, tmpValue->size() }; }); +} + struct QtGui_PackedList QPainterPath_ToSubpathPolygons(void* ptr, void* matrix) { return ({ QList* tmpValue = new QList(static_cast(ptr)->toSubpathPolygons(*static_cast(matrix))); QtGui_PackedList { tmpValue, tmpValue->size() }; }); @@ -82103,6 +82312,11 @@ void* QPainterPath_PointAtPercent(void* ptr, double t) return ({ QPointF tmpValue = static_cast(ptr)->pointAtPercent(t); new QPointF(tmpValue.x(), tmpValue.y()); }); } +void* QPainterPath_ToFillPolygon2(void* ptr, void* matrix) +{ + return new QPolygonF(static_cast(ptr)->toFillPolygon(*static_cast(matrix))); +} + void* QPainterPath_ToFillPolygon(void* ptr, void* matrix) { return new QPolygonF(static_cast(ptr)->toFillPolygon(*static_cast(matrix))); @@ -83245,6 +83459,448 @@ void* QPicture_PaintEngineDefault(void* ptr) return static_cast(ptr)->QPicture::paintEngine(); } +class MyQPictureFormatPlugin: public QPictureFormatPlugin +{ +public: + MyQPictureFormatPlugin(QObject *parent = Q_NULLPTR) : QPictureFormatPlugin(parent) {QPictureFormatPlugin_QPictureFormatPlugin_QRegisterMetaType();}; + bool installIOHandler(const QString & format) { QByteArray t785987 = format.toUtf8(); QtGui_PackedString formatPacked = { const_cast(t785987.prepend("WHITESPACE").constData()+10), t785987.size()-10 };return callbackQPictureFormatPlugin_InstallIOHandler(this, formatPacked) != 0; }; + bool loadPicture(const QString & format, const QString & fileName, QPicture * picture) { QByteArray t785987 = format.toUtf8(); QtGui_PackedString formatPacked = { const_cast(t785987.prepend("WHITESPACE").constData()+10), t785987.size()-10 };QByteArray td83e09 = fileName.toUtf8(); QtGui_PackedString fileNamePacked = { const_cast(td83e09.prepend("WHITESPACE").constData()+10), td83e09.size()-10 };return callbackQPictureFormatPlugin_LoadPicture(this, formatPacked, fileNamePacked, picture) != 0; }; + bool savePicture(const QString & format, const QString & fileName, const QPicture & picture) { QByteArray t785987 = format.toUtf8(); QtGui_PackedString formatPacked = { const_cast(t785987.prepend("WHITESPACE").constData()+10), t785987.size()-10 };QByteArray td83e09 = fileName.toUtf8(); QtGui_PackedString fileNamePacked = { const_cast(td83e09.prepend("WHITESPACE").constData()+10), td83e09.size()-10 };return callbackQPictureFormatPlugin_SavePicture(this, formatPacked, fileNamePacked, const_cast(&picture)) != 0; }; + bool event(QEvent * e) { return callbackQPictureFormatPlugin_Event(this, e) != 0; }; + bool eventFilter(QObject * watched, QEvent * event) { return callbackQPictureFormatPlugin_EventFilter(this, watched, event) != 0; }; + void childEvent(QChildEvent * event) { callbackQPictureFormatPlugin_ChildEvent(this, event); }; + void connectNotify(const QMetaMethod & sign) { callbackQPictureFormatPlugin_ConnectNotify(this, const_cast(&sign)); }; + void customEvent(QEvent * event) { callbackQPictureFormatPlugin_CustomEvent(this, event); }; + void deleteLater() { callbackQPictureFormatPlugin_DeleteLater(this); }; + void Signal_Destroyed(QObject * obj) { callbackQPictureFormatPlugin_Destroyed(this, obj); }; + void disconnectNotify(const QMetaMethod & sign) { callbackQPictureFormatPlugin_DisconnectNotify(this, const_cast(&sign)); }; + void Signal_ObjectNameChanged(const QString & objectName) { QByteArray taa2c4f = objectName.toUtf8(); QtGui_PackedString objectNamePacked = { const_cast(taa2c4f.prepend("WHITESPACE").constData()+10), taa2c4f.size()-10 };callbackQPictureFormatPlugin_ObjectNameChanged(this, objectNamePacked); }; + void timerEvent(QTimerEvent * event) { callbackQPictureFormatPlugin_TimerEvent(this, event); }; + const QMetaObject * metaObject() const { return static_cast(callbackQPictureFormatPlugin_MetaObject(const_cast(static_cast(this)))); }; +}; + +Q_DECLARE_METATYPE(MyQPictureFormatPlugin*) + +int QPictureFormatPlugin_QPictureFormatPlugin_QRegisterMetaType(){qRegisterMetaType(); return qRegisterMetaType();} + +void* QPictureFormatPlugin_NewQPictureFormatPlugin(void* parent) +{ + if (dynamic_cast(static_cast(parent))) { + return new MyQPictureFormatPlugin(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQPictureFormatPlugin(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQPictureFormatPlugin(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQPictureFormatPlugin(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQPictureFormatPlugin(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQPictureFormatPlugin(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQPictureFormatPlugin(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQPictureFormatPlugin(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQPictureFormatPlugin(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQPictureFormatPlugin(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQPictureFormatPlugin(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQPictureFormatPlugin(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQPictureFormatPlugin(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQPictureFormatPlugin(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQPictureFormatPlugin(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQPictureFormatPlugin(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQPictureFormatPlugin(static_cast(parent)); + } else { + return new MyQPictureFormatPlugin(static_cast(parent)); + } +} + +char QPictureFormatPlugin_InstallIOHandler(void* ptr, struct QtGui_PackedString format) +{ + return static_cast(ptr)->installIOHandler(QString::fromUtf8(format.data, format.len)); +} + +char QPictureFormatPlugin_LoadPicture(void* ptr, struct QtGui_PackedString format, struct QtGui_PackedString fileName, void* picture) +{ + return static_cast(ptr)->loadPicture(QString::fromUtf8(format.data, format.len), QString::fromUtf8(fileName.data, fileName.len), static_cast(picture)); +} + +char QPictureFormatPlugin_LoadPictureDefault(void* ptr, struct QtGui_PackedString format, struct QtGui_PackedString fileName, void* picture) +{ + return static_cast(ptr)->QPictureFormatPlugin::loadPicture(QString::fromUtf8(format.data, format.len), QString::fromUtf8(fileName.data, fileName.len), static_cast(picture)); +} + +char QPictureFormatPlugin_SavePicture(void* ptr, struct QtGui_PackedString format, struct QtGui_PackedString fileName, void* picture) +{ + return static_cast(ptr)->savePicture(QString::fromUtf8(format.data, format.len), QString::fromUtf8(fileName.data, fileName.len), *static_cast(picture)); +} + +char QPictureFormatPlugin_SavePictureDefault(void* ptr, struct QtGui_PackedString format, struct QtGui_PackedString fileName, void* picture) +{ + return static_cast(ptr)->QPictureFormatPlugin::savePicture(QString::fromUtf8(format.data, format.len), QString::fromUtf8(fileName.data, fileName.len), *static_cast(picture)); +} + +void QPictureFormatPlugin_DestroyQPictureFormatPlugin(void* ptr) +{ + static_cast(ptr)->~QPictureFormatPlugin(); +} + +void* QPictureFormatPlugin___dynamicPropertyNames_atList(void* ptr, int i) +{ + return new QByteArray(({QByteArray tmp = static_cast*>(ptr)->at(i); if (i == static_cast*>(ptr)->size()-1) { static_cast*>(ptr)->~QList(); free(ptr); }; tmp; })); +} + +void QPictureFormatPlugin___dynamicPropertyNames_setList(void* ptr, void* i) +{ + static_cast*>(ptr)->append(*static_cast(i)); +} + +void* QPictureFormatPlugin___dynamicPropertyNames_newList(void* ptr) +{ + Q_UNUSED(ptr); + return new QList(); +} + +void* QPictureFormatPlugin___findChildren_atList2(void* ptr, int i) +{ + return ({QObject* tmp = static_cast*>(ptr)->at(i); if (i == static_cast*>(ptr)->size()-1) { static_cast*>(ptr)->~QList(); free(ptr); }; tmp; }); +} + +void QPictureFormatPlugin___findChildren_setList2(void* ptr, void* i) +{ + if (dynamic_cast(static_cast(i))) { + static_cast*>(ptr)->append(static_cast(i)); + } else if (dynamic_cast(static_cast(i))) { + static_cast*>(ptr)->append(static_cast(i)); + } else if (dynamic_cast(static_cast(i))) { + static_cast*>(ptr)->append(static_cast(i)); + } else if (dynamic_cast(static_cast(i))) { + static_cast*>(ptr)->append(static_cast(i)); + } else { + static_cast*>(ptr)->append(static_cast(i)); + } +} + +void* QPictureFormatPlugin___findChildren_newList2(void* ptr) +{ + Q_UNUSED(ptr); + return new QList(); +} + +void* QPictureFormatPlugin___findChildren_atList3(void* ptr, int i) +{ + return ({QObject* tmp = static_cast*>(ptr)->at(i); if (i == static_cast*>(ptr)->size()-1) { static_cast*>(ptr)->~QList(); free(ptr); }; tmp; }); +} + +void QPictureFormatPlugin___findChildren_setList3(void* ptr, void* i) +{ + if (dynamic_cast(static_cast(i))) { + static_cast*>(ptr)->append(static_cast(i)); + } else if (dynamic_cast(static_cast(i))) { + static_cast*>(ptr)->append(static_cast(i)); + } else if (dynamic_cast(static_cast(i))) { + static_cast*>(ptr)->append(static_cast(i)); + } else if (dynamic_cast(static_cast(i))) { + static_cast*>(ptr)->append(static_cast(i)); + } else { + static_cast*>(ptr)->append(static_cast(i)); + } +} + +void* QPictureFormatPlugin___findChildren_newList3(void* ptr) +{ + Q_UNUSED(ptr); + return new QList(); +} + +void* QPictureFormatPlugin___findChildren_atList(void* ptr, int i) +{ + return ({QObject* tmp = static_cast*>(ptr)->at(i); if (i == static_cast*>(ptr)->size()-1) { static_cast*>(ptr)->~QList(); free(ptr); }; tmp; }); +} + +void QPictureFormatPlugin___findChildren_setList(void* ptr, void* i) +{ + if (dynamic_cast(static_cast(i))) { + static_cast*>(ptr)->append(static_cast(i)); + } else if (dynamic_cast(static_cast(i))) { + static_cast*>(ptr)->append(static_cast(i)); + } else if (dynamic_cast(static_cast(i))) { + static_cast*>(ptr)->append(static_cast(i)); + } else if (dynamic_cast(static_cast(i))) { + static_cast*>(ptr)->append(static_cast(i)); + } else { + static_cast*>(ptr)->append(static_cast(i)); + } +} + +void* QPictureFormatPlugin___findChildren_newList(void* ptr) +{ + Q_UNUSED(ptr); + return new QList(); +} + +void* QPictureFormatPlugin___children_atList(void* ptr, int i) +{ + return ({QObject * tmp = static_cast*>(ptr)->at(i); if (i == static_cast*>(ptr)->size()-1) { static_cast*>(ptr)->~QList(); free(ptr); }; tmp; }); +} + +void QPictureFormatPlugin___children_setList(void* ptr, void* i) +{ + if (dynamic_cast(static_cast(i))) { + static_cast*>(ptr)->append(static_cast(i)); + } else if (dynamic_cast(static_cast(i))) { + static_cast*>(ptr)->append(static_cast(i)); + } else if (dynamic_cast(static_cast(i))) { + static_cast*>(ptr)->append(static_cast(i)); + } else if (dynamic_cast(static_cast(i))) { + static_cast*>(ptr)->append(static_cast(i)); + } else { + static_cast*>(ptr)->append(static_cast(i)); + } +} + +void* QPictureFormatPlugin___children_newList(void* ptr) +{ + Q_UNUSED(ptr); + return new QList(); +} + +char QPictureFormatPlugin_EventDefault(void* ptr, void* e) +{ + return static_cast(ptr)->QPictureFormatPlugin::event(static_cast(e)); +} + +char QPictureFormatPlugin_EventFilterDefault(void* ptr, void* watched, void* event) +{ + if (dynamic_cast(static_cast(watched))) { + return static_cast(ptr)->QPictureFormatPlugin::eventFilter(static_cast(watched), static_cast(event)); + } else if (dynamic_cast(static_cast(watched))) { + return static_cast(ptr)->QPictureFormatPlugin::eventFilter(static_cast(watched), static_cast(event)); + } else if (dynamic_cast(static_cast(watched))) { + return static_cast(ptr)->QPictureFormatPlugin::eventFilter(static_cast(watched), static_cast(event)); + } else if (dynamic_cast(static_cast(watched))) { + return static_cast(ptr)->QPictureFormatPlugin::eventFilter(static_cast(watched), static_cast(event)); + } else { + return static_cast(ptr)->QPictureFormatPlugin::eventFilter(static_cast(watched), static_cast(event)); + } +} + +void QPictureFormatPlugin_ChildEventDefault(void* ptr, void* event) +{ + static_cast(ptr)->QPictureFormatPlugin::childEvent(static_cast(event)); +} + +void QPictureFormatPlugin_ConnectNotifyDefault(void* ptr, void* sign) +{ + static_cast(ptr)->QPictureFormatPlugin::connectNotify(*static_cast(sign)); +} + +void QPictureFormatPlugin_CustomEventDefault(void* ptr, void* event) +{ + static_cast(ptr)->QPictureFormatPlugin::customEvent(static_cast(event)); +} + +void QPictureFormatPlugin_DeleteLaterDefault(void* ptr) +{ + static_cast(ptr)->QPictureFormatPlugin::deleteLater(); +} + +void QPictureFormatPlugin_DisconnectNotifyDefault(void* ptr, void* sign) +{ + static_cast(ptr)->QPictureFormatPlugin::disconnectNotify(*static_cast(sign)); +} + +void QPictureFormatPlugin_TimerEventDefault(void* ptr, void* event) +{ + static_cast(ptr)->QPictureFormatPlugin::timerEvent(static_cast(event)); +} + +void* QPictureFormatPlugin_MetaObjectDefault(void* ptr) +{ + return const_cast(static_cast(ptr)->QPictureFormatPlugin::metaObject()); +} + +void* QPictureIO_QPictureIO_PictureFormat2(void* d) +{ + return new QByteArray(QPictureIO::pictureFormat(static_cast(d))); +} + +void* QPictureIO_QPictureIO_PictureFormat(struct QtGui_PackedString fileName) +{ + return new QByteArray(QPictureIO::pictureFormat(QString::fromUtf8(fileName.data, fileName.len))); +} + +struct QtGui_PackedList QPictureIO_QPictureIO_InputFormats() +{ + return ({ QList* tmpValue = new QList(QPictureIO::inputFormats()); QtGui_PackedList { tmpValue, tmpValue->size() }; }); +} + +struct QtGui_PackedList QPictureIO_QPictureIO_OutputFormats() +{ + return ({ QList* tmpValue = new QList(QPictureIO::outputFormats()); QtGui_PackedList { tmpValue, tmpValue->size() }; }); +} + +void* QPictureIO_NewQPictureIO() +{ + return new QPictureIO(); +} + +void* QPictureIO_NewQPictureIO2(void* ioDevice, char* format) +{ + return new QPictureIO(static_cast(ioDevice), const_cast(format)); +} + +void* QPictureIO_NewQPictureIO3(struct QtGui_PackedString fileName, char* format) +{ + return new QPictureIO(QString::fromUtf8(fileName.data, fileName.len), const_cast(format)); +} + +char QPictureIO_Read(void* ptr) +{ + return static_cast(ptr)->read(); +} + +char QPictureIO_Write(void* ptr) +{ + return static_cast(ptr)->write(); +} + +void QPictureIO_SetDescription(void* ptr, struct QtGui_PackedString description) +{ + static_cast(ptr)->setDescription(QString::fromUtf8(description.data, description.len)); +} + +void QPictureIO_SetFileName(void* ptr, struct QtGui_PackedString fileName) +{ + static_cast(ptr)->setFileName(QString::fromUtf8(fileName.data, fileName.len)); +} + +void QPictureIO_SetFormat(void* ptr, char* format) +{ + static_cast(ptr)->setFormat(const_cast(format)); +} + +void QPictureIO_SetGamma(void* ptr, float gamma) +{ + static_cast(ptr)->setGamma(gamma); +} + +void QPictureIO_SetIODevice(void* ptr, void* ioDevice) +{ + static_cast(ptr)->setIODevice(static_cast(ioDevice)); +} + +void QPictureIO_SetParameters(void* ptr, char* parameters) +{ + static_cast(ptr)->setParameters(const_cast(parameters)); +} + +void QPictureIO_SetPicture(void* ptr, void* picture) +{ + static_cast(ptr)->setPicture(*static_cast(picture)); +} + +void QPictureIO_SetQuality(void* ptr, int q) +{ + static_cast(ptr)->setQuality(q); +} + +void QPictureIO_SetStatus(void* ptr, int status) +{ + static_cast(ptr)->setStatus(status); +} + +void QPictureIO_DestroyQPictureIO(void* ptr) +{ + static_cast(ptr)->~QPictureIO(); +} + +void* QPictureIO_IoDevice(void* ptr) +{ + return static_cast(ptr)->ioDevice(); +} + +struct QtGui_PackedString QPictureIO_Description(void* ptr) +{ + return ({ QByteArray te4ace0 = static_cast(ptr)->description().toUtf8(); QtGui_PackedString { const_cast(te4ace0.prepend("WHITESPACE").constData()+10), te4ace0.size()-10 }; }); +} + +struct QtGui_PackedString QPictureIO_FileName(void* ptr) +{ + return ({ QByteArray t48ef9a = static_cast(ptr)->fileName().toUtf8(); QtGui_PackedString { const_cast(t48ef9a.prepend("WHITESPACE").constData()+10), t48ef9a.size()-10 }; }); +} + +void* QPictureIO_Picture(void* ptr) +{ + return const_cast(&static_cast(ptr)->picture()); +} + +struct QtGui_PackedString QPictureIO_Format(void* ptr) +{ + return QtGui_PackedString { const_cast(static_cast(ptr)->format()), -1 }; +} + +struct QtGui_PackedString QPictureIO_Parameters(void* ptr) +{ + return QtGui_PackedString { const_cast(static_cast(ptr)->parameters()), -1 }; +} + +float QPictureIO_Gamma(void* ptr) +{ + return static_cast(ptr)->gamma(); +} + +int QPictureIO_Quality(void* ptr) +{ + return static_cast(ptr)->quality(); +} + +int QPictureIO_Status(void* ptr) +{ + return static_cast(ptr)->status(); +} + +void* QPictureIO___inputFormats_atList(void* ptr, int i) +{ + return new QByteArray(({QByteArray tmp = static_cast*>(ptr)->at(i); if (i == static_cast*>(ptr)->size()-1) { static_cast*>(ptr)->~QList(); free(ptr); }; tmp; })); +} + +void QPictureIO___inputFormats_setList(void* ptr, void* i) +{ + static_cast*>(ptr)->append(*static_cast(i)); +} + +void* QPictureIO___inputFormats_newList(void* ptr) +{ + Q_UNUSED(ptr); + return new QList(); +} + +void* QPictureIO___outputFormats_atList(void* ptr, int i) +{ + return new QByteArray(({QByteArray tmp = static_cast*>(ptr)->at(i); if (i == static_cast*>(ptr)->size()-1) { static_cast*>(ptr)->~QList(); free(ptr); }; tmp; })); +} + +void QPictureIO___outputFormats_setList(void* ptr, void* i) +{ + static_cast*>(ptr)->append(*static_cast(i)); +} + +void* QPictureIO___outputFormats_newList(void* ptr) +{ + Q_UNUSED(ptr); + return new QList(); +} + void* QPixelFormat_NewQPixelFormat() { return new QPixelFormat(); @@ -83372,6 +84028,11 @@ public: int metric(QPaintDevice::PaintDeviceMetric metric) const { return callbackQPaintDevice_Metric(const_cast(static_cast(this)), metric); }; }; +void* QPixmap_QPixmap_TrueMatrix2(void* m, int w, int h) +{ + return new QMatrix(QPixmap::trueMatrix(*static_cast(m), w, h)); +} + void* QPixmap_QPixmap_FromImage(void* image, long long flags) { return new QPixmap(QPixmap::fromImage(*static_cast(image), static_cast(flags))); @@ -83532,6 +84193,11 @@ void* QPixmap_ScaledToWidth(void* ptr, int width, long long mode) return new QPixmap(static_cast(ptr)->scaledToWidth(width, static_cast(mode))); } +void* QPixmap_Transformed2(void* ptr, void* matrix, long long mode) +{ + return new QPixmap(static_cast(ptr)->transformed(*static_cast(matrix), static_cast(mode))); +} + void* QPixmap_Transformed(void* ptr, void* transform, long long mode) { return new QPixmap(static_cast(ptr)->transformed(*static_cast(transform), static_cast(mode))); @@ -94209,6 +94875,11 @@ void* QTransform_NewQTransform6(void* other) return new QTransform(*static_cast(other)); } +void* QTransform_NewQTransform5(void* matrix) +{ + return new QTransform(*static_cast(matrix)); +} + void* QTransform_NewQTransform7(void* other) { return new QTransform(*static_cast(other)); @@ -94355,6 +95026,11 @@ char QTransform_IsTranslating(void* ptr) return static_cast(ptr)->isTranslating(); } +void* QTransform_ToAffine(void* ptr) +{ + return const_cast(&static_cast(ptr)->toAffine()); +} + double QTransform_Determinant(void* ptr) { return static_cast(ptr)->determinant(); diff --git a/gui/gui.go b/gui/gui.go index 308d47ec..0f0dfa64 100644 --- a/gui/gui.go +++ b/gui/gui.go @@ -7392,6 +7392,12 @@ func (ptr *QBrush) SetColor(color QColor_ITF) { } } +func (ptr *QBrush) SetMatrix(matrix QMatrix_ITF) { + if ptr.Pointer() != nil { + C.QBrush_SetMatrix(ptr.Pointer(), PointerFromQMatrix(matrix)) + } +} + func (ptr *QBrush) SetStyle(style core.Qt__BrushStyle) { if ptr.Pointer() != nil { C.QBrush_SetStyle(ptr.Pointer(), C.longlong(style)) @@ -7485,6 +7491,13 @@ func (ptr *QBrush) Gradient() *QGradient { return nil } +func (ptr *QBrush) Matrix() *QMatrix { + if ptr.Pointer() != nil { + return NewQMatrixFromPointer(C.QBrush_Matrix(ptr.Pointer())) + } + return nil +} + func (ptr *QBrush) ToVariant() *core.QVariant { if ptr.Pointer() != nil { tmpValue := core.NewQVariantFromPointer(C.QBrush_ToVariant(ptr.Pointer())) @@ -17115,6 +17128,18 @@ func (ptr *QImage) ToImageFormat(format QPixelFormat_ITF) QImage__Format { return QImage__Format(C.QImage_QImage_ToImageFormat(PointerFromQPixelFormat(format))) } +func QImage_TrueMatrix(matrix QMatrix_ITF, width int, height int) *QMatrix { + tmpValue := NewQMatrixFromPointer(C.QImage_QImage_TrueMatrix(PointerFromQMatrix(matrix), C.int(int32(width)), C.int(int32(height)))) + runtime.SetFinalizer(tmpValue, (*QMatrix).DestroyQMatrix) + return tmpValue +} + +func (ptr *QImage) TrueMatrix(matrix QMatrix_ITF, width int, height int) *QMatrix { + tmpValue := NewQMatrixFromPointer(C.QImage_QImage_TrueMatrix(PointerFromQMatrix(matrix), C.int(int32(width)), C.int(int32(height)))) + runtime.SetFinalizer(tmpValue, (*QMatrix).DestroyQMatrix) + return tmpValue +} + func QImage_ToPixelFormat(format QImage__Format) *QPixelFormat { tmpValue := NewQPixelFormatFromPointer(C.QImage_QImage_ToPixelFormat(C.longlong(format))) runtime.SetFinalizer(tmpValue, (*QPixelFormat).DestroyQPixelFormat) @@ -17459,6 +17484,15 @@ func (ptr *QImage) SmoothScaled(w int, h int) *QImage { return nil } +func (ptr *QImage) Transformed(matrix QMatrix_ITF, mode core.Qt__TransformationMode) *QImage { + if ptr.Pointer() != nil { + tmpValue := NewQImageFromPointer(C.QImage_Transformed(ptr.Pointer(), PointerFromQMatrix(matrix), C.longlong(mode))) + runtime.SetFinalizer(tmpValue, (*QImage).DestroyQImage) + return tmpValue + } + return nil +} + func (ptr *QImage) Transformed2(matrix QTransform_ITF, mode core.Qt__TransformationMode) *QImage { if ptr.Pointer() != nil { tmpValue := NewQImageFromPointer(C.QImage_Transformed2(ptr.Pointer(), PointerFromQTransform(matrix), C.longlong(mode))) @@ -21971,6 +22005,307 @@ func (ptr *QLinearGradient) Start() *core.QPointF { return nil } +type QMatrix struct { + ptr unsafe.Pointer +} + +type QMatrix_ITF interface { + QMatrix_PTR() *QMatrix +} + +func (ptr *QMatrix) QMatrix_PTR() *QMatrix { + return ptr +} + +func (ptr *QMatrix) Pointer() unsafe.Pointer { + if ptr != nil { + return ptr.ptr + } + return nil +} + +func (ptr *QMatrix) SetPointer(p unsafe.Pointer) { + if ptr != nil { + ptr.ptr = p + } +} + +func PointerFromQMatrix(ptr QMatrix_ITF) unsafe.Pointer { + if ptr != nil { + return ptr.QMatrix_PTR().Pointer() + } + return nil +} + +func NewQMatrixFromPointer(ptr unsafe.Pointer) (n *QMatrix) { + n = new(QMatrix) + n.SetPointer(ptr) + return +} + +func (ptr *QMatrix) DestroyQMatrix() { + if ptr != nil { + C.free(ptr.Pointer()) + ptr.SetPointer(nil) + runtime.SetFinalizer(ptr, nil) + } +} + +func (ptr *QMatrix) Rotate(degrees float64) *QMatrix { + if ptr.Pointer() != nil { + tmpValue := NewQMatrixFromPointer(C.QMatrix_Rotate(ptr.Pointer(), C.double(degrees))) + runtime.SetFinalizer(tmpValue, (*QMatrix).DestroyQMatrix) + return tmpValue + } + return nil +} + +func (ptr *QMatrix) Scale(sx float64, sy float64) *QMatrix { + if ptr.Pointer() != nil { + tmpValue := NewQMatrixFromPointer(C.QMatrix_Scale(ptr.Pointer(), C.double(sx), C.double(sy))) + runtime.SetFinalizer(tmpValue, (*QMatrix).DestroyQMatrix) + return tmpValue + } + return nil +} + +func (ptr *QMatrix) Shear(sh float64, sv float64) *QMatrix { + if ptr.Pointer() != nil { + tmpValue := NewQMatrixFromPointer(C.QMatrix_Shear(ptr.Pointer(), C.double(sh), C.double(sv))) + runtime.SetFinalizer(tmpValue, (*QMatrix).DestroyQMatrix) + return tmpValue + } + return nil +} + +func (ptr *QMatrix) Translate(dx float64, dy float64) *QMatrix { + if ptr.Pointer() != nil { + tmpValue := NewQMatrixFromPointer(C.QMatrix_Translate(ptr.Pointer(), C.double(dx), C.double(dy))) + runtime.SetFinalizer(tmpValue, (*QMatrix).DestroyQMatrix) + return tmpValue + } + return nil +} + +func NewQMatrix() *QMatrix { + tmpValue := NewQMatrixFromPointer(C.QMatrix_NewQMatrix()) + runtime.SetFinalizer(tmpValue, (*QMatrix).DestroyQMatrix) + return tmpValue +} + +func NewQMatrix4(other QMatrix_ITF) *QMatrix { + tmpValue := NewQMatrixFromPointer(C.QMatrix_NewQMatrix4(PointerFromQMatrix(other))) + runtime.SetFinalizer(tmpValue, (*QMatrix).DestroyQMatrix) + return tmpValue +} + +func NewQMatrix5(matrix QMatrix_ITF) *QMatrix { + tmpValue := NewQMatrixFromPointer(C.QMatrix_NewQMatrix5(PointerFromQMatrix(matrix))) + runtime.SetFinalizer(tmpValue, (*QMatrix).DestroyQMatrix) + return tmpValue +} + +func NewQMatrix3(m11 float64, m12 float64, m21 float64, m22 float64, dx float64, dy float64) *QMatrix { + tmpValue := NewQMatrixFromPointer(C.QMatrix_NewQMatrix3(C.double(m11), C.double(m12), C.double(m21), C.double(m22), C.double(dx), C.double(dy))) + runtime.SetFinalizer(tmpValue, (*QMatrix).DestroyQMatrix) + return tmpValue +} + +func (ptr *QMatrix) Reset() { + if ptr.Pointer() != nil { + C.QMatrix_Reset(ptr.Pointer()) + } +} + +func (ptr *QMatrix) SetMatrix(m11 float64, m12 float64, m21 float64, m22 float64, dx float64, dy float64) { + if ptr.Pointer() != nil { + C.QMatrix_SetMatrix(ptr.Pointer(), C.double(m11), C.double(m12), C.double(m21), C.double(m22), C.double(dx), C.double(dy)) + } +} + +func (ptr *QMatrix) Map5(line core.QLine_ITF) *core.QLine { + if ptr.Pointer() != nil { + tmpValue := core.NewQLineFromPointer(C.QMatrix_Map5(ptr.Pointer(), core.PointerFromQLine(line))) + runtime.SetFinalizer(tmpValue, (*core.QLine).DestroyQLine) + return tmpValue + } + return nil +} + +func (ptr *QMatrix) Map6(line core.QLineF_ITF) *core.QLineF { + if ptr.Pointer() != nil { + tmpValue := core.NewQLineFFromPointer(C.QMatrix_Map6(ptr.Pointer(), core.PointerFromQLineF(line))) + runtime.SetFinalizer(tmpValue, (*core.QLineF).DestroyQLineF) + return tmpValue + } + return nil +} + +func (ptr *QMatrix) Inverted(invertible bool) *QMatrix { + if ptr.Pointer() != nil { + tmpValue := NewQMatrixFromPointer(C.QMatrix_Inverted(ptr.Pointer(), C.char(int8(qt.GoBoolToInt(invertible))))) + runtime.SetFinalizer(tmpValue, (*QMatrix).DestroyQMatrix) + return tmpValue + } + return nil +} + +func (ptr *QMatrix) Map10(path QPainterPath_ITF) *QPainterPath { + if ptr.Pointer() != nil { + tmpValue := NewQPainterPathFromPointer(C.QMatrix_Map10(ptr.Pointer(), PointerFromQPainterPath(path))) + runtime.SetFinalizer(tmpValue, (*QPainterPath).DestroyQPainterPath) + return tmpValue + } + return nil +} + +func (ptr *QMatrix) Map3(point core.QPoint_ITF) *core.QPoint { + if ptr.Pointer() != nil { + tmpValue := core.NewQPointFromPointer(C.QMatrix_Map3(ptr.Pointer(), core.PointerFromQPoint(point))) + runtime.SetFinalizer(tmpValue, (*core.QPoint).DestroyQPoint) + return tmpValue + } + return nil +} + +func (ptr *QMatrix) Map4(point core.QPointF_ITF) *core.QPointF { + if ptr.Pointer() != nil { + tmpValue := core.NewQPointFFromPointer(C.QMatrix_Map4(ptr.Pointer(), core.PointerFromQPointF(point))) + runtime.SetFinalizer(tmpValue, (*core.QPointF).DestroyQPointF) + return tmpValue + } + return nil +} + +func (ptr *QMatrix) Map8(polygon QPolygon_ITF) *QPolygon { + if ptr.Pointer() != nil { + tmpValue := NewQPolygonFromPointer(C.QMatrix_Map8(ptr.Pointer(), PointerFromQPolygon(polygon))) + runtime.SetFinalizer(tmpValue, (*QPolygon).DestroyQPolygon) + return tmpValue + } + return nil +} + +func (ptr *QMatrix) MapToPolygon(rectangle core.QRect_ITF) *QPolygon { + if ptr.Pointer() != nil { + tmpValue := NewQPolygonFromPointer(C.QMatrix_MapToPolygon(ptr.Pointer(), core.PointerFromQRect(rectangle))) + runtime.SetFinalizer(tmpValue, (*QPolygon).DestroyQPolygon) + return tmpValue + } + return nil +} + +func (ptr *QMatrix) Map7(polygon QPolygonF_ITF) *QPolygonF { + if ptr.Pointer() != nil { + tmpValue := NewQPolygonFFromPointer(C.QMatrix_Map7(ptr.Pointer(), PointerFromQPolygonF(polygon))) + runtime.SetFinalizer(tmpValue, (*QPolygonF).DestroyQPolygonF) + return tmpValue + } + return nil +} + +func (ptr *QMatrix) MapRect2(rectangle core.QRect_ITF) *core.QRect { + if ptr.Pointer() != nil { + tmpValue := core.NewQRectFromPointer(C.QMatrix_MapRect2(ptr.Pointer(), core.PointerFromQRect(rectangle))) + runtime.SetFinalizer(tmpValue, (*core.QRect).DestroyQRect) + return tmpValue + } + return nil +} + +func (ptr *QMatrix) MapRect(rectangle core.QRectF_ITF) *core.QRectF { + if ptr.Pointer() != nil { + tmpValue := core.NewQRectFFromPointer(C.QMatrix_MapRect(ptr.Pointer(), core.PointerFromQRectF(rectangle))) + runtime.SetFinalizer(tmpValue, (*core.QRectF).DestroyQRectF) + return tmpValue + } + return nil +} + +func (ptr *QMatrix) Map9(region QRegion_ITF) *QRegion { + if ptr.Pointer() != nil { + tmpValue := NewQRegionFromPointer(C.QMatrix_Map9(ptr.Pointer(), PointerFromQRegion(region))) + runtime.SetFinalizer(tmpValue, (*QRegion).DestroyQRegion) + return tmpValue + } + return nil +} + +func (ptr *QMatrix) IsIdentity() bool { + if ptr.Pointer() != nil { + return C.QMatrix_IsIdentity(ptr.Pointer()) != 0 + } + return false +} + +func (ptr *QMatrix) IsInvertible() bool { + if ptr.Pointer() != nil { + return C.QMatrix_IsInvertible(ptr.Pointer()) != 0 + } + return false +} + +func (ptr *QMatrix) Determinant() float64 { + if ptr.Pointer() != nil { + return float64(C.QMatrix_Determinant(ptr.Pointer())) + } + return 0 +} + +func (ptr *QMatrix) Dx() float64 { + if ptr.Pointer() != nil { + return float64(C.QMatrix_Dx(ptr.Pointer())) + } + return 0 +} + +func (ptr *QMatrix) Dy() float64 { + if ptr.Pointer() != nil { + return float64(C.QMatrix_Dy(ptr.Pointer())) + } + return 0 +} + +func (ptr *QMatrix) M11() float64 { + if ptr.Pointer() != nil { + return float64(C.QMatrix_M11(ptr.Pointer())) + } + return 0 +} + +func (ptr *QMatrix) M12() float64 { + if ptr.Pointer() != nil { + return float64(C.QMatrix_M12(ptr.Pointer())) + } + return 0 +} + +func (ptr *QMatrix) M21() float64 { + if ptr.Pointer() != nil { + return float64(C.QMatrix_M21(ptr.Pointer())) + } + return 0 +} + +func (ptr *QMatrix) M22() float64 { + if ptr.Pointer() != nil { + return float64(C.QMatrix_M22(ptr.Pointer())) + } + return 0 +} + +func (ptr *QMatrix) Map2(x int, y int, tx int, ty int) { + if ptr.Pointer() != nil { + C.QMatrix_Map2(ptr.Pointer(), C.int(int32(x)), C.int(int32(y)), C.int(int32(tx)), C.int(int32(ty))) + } +} + +func (ptr *QMatrix) Map(x float64, y float64, tx float64, ty float64) { + if ptr.Pointer() != nil { + C.QMatrix_Map(ptr.Pointer(), C.double(x), C.double(y), C.double(tx), C.double(ty)) + } +} + type QMatrix4x4 struct { ptr unsafe.Pointer } @@ -22023,6 +22358,12 @@ func NewQMatrix4x4() *QMatrix4x4 { return tmpValue } +func NewQMatrix4x48(matrix QMatrix_ITF) *QMatrix4x4 { + tmpValue := NewQMatrix4x4FromPointer(C.QMatrix4x4_NewQMatrix4x48(PointerFromQMatrix(matrix))) + runtime.SetFinalizer(tmpValue, (*QMatrix4x4).DestroyQMatrix4x4) + return tmpValue +} + func NewQMatrix4x47(transform QTransform_ITF) *QMatrix4x4 { tmpValue := NewQMatrix4x4FromPointer(C.QMatrix4x4_NewQMatrix4x47(PointerFromQTransform(transform))) runtime.SetFinalizer(tmpValue, (*QMatrix4x4).DestroyQMatrix4x4) @@ -22186,6 +22527,15 @@ func (ptr *QMatrix4x4) Viewport(left float32, bottom float32, width float32, hei } } +func (ptr *QMatrix4x4) ToAffine() *QMatrix { + if ptr.Pointer() != nil { + tmpValue := NewQMatrixFromPointer(C.QMatrix4x4_ToAffine(ptr.Pointer())) + runtime.SetFinalizer(tmpValue, (*QMatrix).DestroyQMatrix) + return tmpValue + } + return nil +} + func (ptr *QMatrix4x4) Inverted(invertible bool) *QMatrix4x4 { if ptr.Pointer() != nil { tmpValue := NewQMatrix4x4FromPointer(C.QMatrix4x4_Inverted(ptr.Pointer(), C.char(int8(qt.GoBoolToInt(invertible))))) @@ -116871,6 +117221,20 @@ func (ptr *QPainterPath) DestroyQPainterPath() { } } +func (ptr *QPainterPath) ToFillPolygons2(matrix QMatrix_ITF) []*QPolygonF { + if ptr.Pointer() != nil { + return func(l C.struct_QtGui_PackedList) []*QPolygonF { + out := make([]*QPolygonF, int(l.len)) + tmpList := NewQPainterPathFromPointer(l.data) + for i := 0; i < len(out); i++ { + out[i] = tmpList.__toFillPolygons_atList2(i) + } + return out + }(C.QPainterPath_ToFillPolygons2(ptr.Pointer(), PointerFromQMatrix(matrix))) + } + return make([]*QPolygonF, 0) +} + func (ptr *QPainterPath) ToFillPolygons(matrix QTransform_ITF) []*QPolygonF { if ptr.Pointer() != nil { return func(l C.struct_QtGui_PackedList) []*QPolygonF { @@ -116885,6 +117249,20 @@ func (ptr *QPainterPath) ToFillPolygons(matrix QTransform_ITF) []*QPolygonF { return make([]*QPolygonF, 0) } +func (ptr *QPainterPath) ToSubpathPolygons2(matrix QMatrix_ITF) []*QPolygonF { + if ptr.Pointer() != nil { + return func(l C.struct_QtGui_PackedList) []*QPolygonF { + out := make([]*QPolygonF, int(l.len)) + tmpList := NewQPainterPathFromPointer(l.data) + for i := 0; i < len(out); i++ { + out[i] = tmpList.__toSubpathPolygons_atList2(i) + } + return out + }(C.QPainterPath_ToSubpathPolygons2(ptr.Pointer(), PointerFromQMatrix(matrix))) + } + return make([]*QPolygonF, 0) +} + func (ptr *QPainterPath) ToSubpathPolygons(matrix QTransform_ITF) []*QPolygonF { if ptr.Pointer() != nil { return func(l C.struct_QtGui_PackedList) []*QPolygonF { @@ -116980,6 +117358,15 @@ func (ptr *QPainterPath) PointAtPercent(t float64) *core.QPointF { return nil } +func (ptr *QPainterPath) ToFillPolygon2(matrix QMatrix_ITF) *QPolygonF { + if ptr.Pointer() != nil { + tmpValue := NewQPolygonFFromPointer(C.QPainterPath_ToFillPolygon2(ptr.Pointer(), PointerFromQMatrix(matrix))) + runtime.SetFinalizer(tmpValue, (*QPolygonF).DestroyQPolygonF) + return tmpValue + } + return nil +} + func (ptr *QPainterPath) ToFillPolygon(matrix QTransform_ITF) *QPolygonF { if ptr.Pointer() != nil { tmpValue := NewQPolygonFFromPointer(C.QPainterPath_ToFillPolygon(ptr.Pointer(), PointerFromQTransform(matrix))) @@ -118913,6 +119300,838 @@ func (ptr *QPicture) PaintEngineDefault() *QPaintEngine { return nil } +type QPictureFormatPlugin struct { + core.QObject +} + +type QPictureFormatPlugin_ITF interface { + core.QObject_ITF + QPictureFormatPlugin_PTR() *QPictureFormatPlugin +} + +func (ptr *QPictureFormatPlugin) QPictureFormatPlugin_PTR() *QPictureFormatPlugin { + return ptr +} + +func (ptr *QPictureFormatPlugin) Pointer() unsafe.Pointer { + if ptr != nil { + return ptr.QObject_PTR().Pointer() + } + return nil +} + +func (ptr *QPictureFormatPlugin) SetPointer(p unsafe.Pointer) { + if ptr != nil { + ptr.QObject_PTR().SetPointer(p) + } +} + +func PointerFromQPictureFormatPlugin(ptr QPictureFormatPlugin_ITF) unsafe.Pointer { + if ptr != nil { + return ptr.QPictureFormatPlugin_PTR().Pointer() + } + return nil +} + +func NewQPictureFormatPluginFromPointer(ptr unsafe.Pointer) (n *QPictureFormatPlugin) { + n = new(QPictureFormatPlugin) + n.SetPointer(ptr) + return +} +func NewQPictureFormatPlugin(parent core.QObject_ITF) *QPictureFormatPlugin { + tmpValue := NewQPictureFormatPluginFromPointer(C.QPictureFormatPlugin_NewQPictureFormatPlugin(core.PointerFromQObject(parent))) + if !qt.ExistsSignal(tmpValue.Pointer(), "destroyed") { + tmpValue.ConnectDestroyed(func(*core.QObject) { tmpValue.SetPointer(nil) }) + } + return tmpValue +} + +//export callbackQPictureFormatPlugin_InstallIOHandler +func callbackQPictureFormatPlugin_InstallIOHandler(ptr unsafe.Pointer, format C.struct_QtGui_PackedString) C.char { + if signal := qt.GetSignal(ptr, "installIOHandler"); signal != nil { + return C.char(int8(qt.GoBoolToInt(signal.(func(string) bool)(cGoUnpackString(format))))) + } + + return C.char(int8(qt.GoBoolToInt(false))) +} + +func (ptr *QPictureFormatPlugin) ConnectInstallIOHandler(f func(format string) bool) { + if ptr.Pointer() != nil { + + if signal := qt.LendSignal(ptr.Pointer(), "installIOHandler"); signal != nil { + qt.ConnectSignal(ptr.Pointer(), "installIOHandler", func(format string) bool { + signal.(func(string) bool)(format) + return f(format) + }) + } else { + qt.ConnectSignal(ptr.Pointer(), "installIOHandler", f) + } + } +} + +func (ptr *QPictureFormatPlugin) DisconnectInstallIOHandler() { + if ptr.Pointer() != nil { + + qt.DisconnectSignal(ptr.Pointer(), "installIOHandler") + } +} + +func (ptr *QPictureFormatPlugin) InstallIOHandler(format string) bool { + if ptr.Pointer() != nil { + var formatC *C.char + if format != "" { + formatC = C.CString(format) + defer C.free(unsafe.Pointer(formatC)) + } + return C.QPictureFormatPlugin_InstallIOHandler(ptr.Pointer(), C.struct_QtGui_PackedString{data: formatC, len: C.longlong(len(format))}) != 0 + } + return false +} + +//export callbackQPictureFormatPlugin_LoadPicture +func callbackQPictureFormatPlugin_LoadPicture(ptr unsafe.Pointer, format C.struct_QtGui_PackedString, fileName C.struct_QtGui_PackedString, picture unsafe.Pointer) C.char { + if signal := qt.GetSignal(ptr, "loadPicture"); signal != nil { + return C.char(int8(qt.GoBoolToInt(signal.(func(string, string, *QPicture) bool)(cGoUnpackString(format), cGoUnpackString(fileName), NewQPictureFromPointer(picture))))) + } + + return C.char(int8(qt.GoBoolToInt(NewQPictureFormatPluginFromPointer(ptr).LoadPictureDefault(cGoUnpackString(format), cGoUnpackString(fileName), NewQPictureFromPointer(picture))))) +} + +func (ptr *QPictureFormatPlugin) ConnectLoadPicture(f func(format string, fileName string, picture *QPicture) bool) { + if ptr.Pointer() != nil { + + if signal := qt.LendSignal(ptr.Pointer(), "loadPicture"); signal != nil { + qt.ConnectSignal(ptr.Pointer(), "loadPicture", func(format string, fileName string, picture *QPicture) bool { + signal.(func(string, string, *QPicture) bool)(format, fileName, picture) + return f(format, fileName, picture) + }) + } else { + qt.ConnectSignal(ptr.Pointer(), "loadPicture", f) + } + } +} + +func (ptr *QPictureFormatPlugin) DisconnectLoadPicture() { + if ptr.Pointer() != nil { + + qt.DisconnectSignal(ptr.Pointer(), "loadPicture") + } +} + +func (ptr *QPictureFormatPlugin) LoadPicture(format string, fileName string, picture QPicture_ITF) bool { + if ptr.Pointer() != nil { + var formatC *C.char + if format != "" { + formatC = C.CString(format) + defer C.free(unsafe.Pointer(formatC)) + } + var fileNameC *C.char + if fileName != "" { + fileNameC = C.CString(fileName) + defer C.free(unsafe.Pointer(fileNameC)) + } + return C.QPictureFormatPlugin_LoadPicture(ptr.Pointer(), C.struct_QtGui_PackedString{data: formatC, len: C.longlong(len(format))}, C.struct_QtGui_PackedString{data: fileNameC, len: C.longlong(len(fileName))}, PointerFromQPicture(picture)) != 0 + } + return false +} + +func (ptr *QPictureFormatPlugin) LoadPictureDefault(format string, fileName string, picture QPicture_ITF) bool { + if ptr.Pointer() != nil { + var formatC *C.char + if format != "" { + formatC = C.CString(format) + defer C.free(unsafe.Pointer(formatC)) + } + var fileNameC *C.char + if fileName != "" { + fileNameC = C.CString(fileName) + defer C.free(unsafe.Pointer(fileNameC)) + } + return C.QPictureFormatPlugin_LoadPictureDefault(ptr.Pointer(), C.struct_QtGui_PackedString{data: formatC, len: C.longlong(len(format))}, C.struct_QtGui_PackedString{data: fileNameC, len: C.longlong(len(fileName))}, PointerFromQPicture(picture)) != 0 + } + return false +} + +//export callbackQPictureFormatPlugin_SavePicture +func callbackQPictureFormatPlugin_SavePicture(ptr unsafe.Pointer, format C.struct_QtGui_PackedString, fileName C.struct_QtGui_PackedString, picture unsafe.Pointer) C.char { + if signal := qt.GetSignal(ptr, "savePicture"); signal != nil { + return C.char(int8(qt.GoBoolToInt(signal.(func(string, string, *QPicture) bool)(cGoUnpackString(format), cGoUnpackString(fileName), NewQPictureFromPointer(picture))))) + } + + return C.char(int8(qt.GoBoolToInt(NewQPictureFormatPluginFromPointer(ptr).SavePictureDefault(cGoUnpackString(format), cGoUnpackString(fileName), NewQPictureFromPointer(picture))))) +} + +func (ptr *QPictureFormatPlugin) ConnectSavePicture(f func(format string, fileName string, picture *QPicture) bool) { + if ptr.Pointer() != nil { + + if signal := qt.LendSignal(ptr.Pointer(), "savePicture"); signal != nil { + qt.ConnectSignal(ptr.Pointer(), "savePicture", func(format string, fileName string, picture *QPicture) bool { + signal.(func(string, string, *QPicture) bool)(format, fileName, picture) + return f(format, fileName, picture) + }) + } else { + qt.ConnectSignal(ptr.Pointer(), "savePicture", f) + } + } +} + +func (ptr *QPictureFormatPlugin) DisconnectSavePicture() { + if ptr.Pointer() != nil { + + qt.DisconnectSignal(ptr.Pointer(), "savePicture") + } +} + +func (ptr *QPictureFormatPlugin) SavePicture(format string, fileName string, picture QPicture_ITF) bool { + if ptr.Pointer() != nil { + var formatC *C.char + if format != "" { + formatC = C.CString(format) + defer C.free(unsafe.Pointer(formatC)) + } + var fileNameC *C.char + if fileName != "" { + fileNameC = C.CString(fileName) + defer C.free(unsafe.Pointer(fileNameC)) + } + return C.QPictureFormatPlugin_SavePicture(ptr.Pointer(), C.struct_QtGui_PackedString{data: formatC, len: C.longlong(len(format))}, C.struct_QtGui_PackedString{data: fileNameC, len: C.longlong(len(fileName))}, PointerFromQPicture(picture)) != 0 + } + return false +} + +func (ptr *QPictureFormatPlugin) SavePictureDefault(format string, fileName string, picture QPicture_ITF) bool { + if ptr.Pointer() != nil { + var formatC *C.char + if format != "" { + formatC = C.CString(format) + defer C.free(unsafe.Pointer(formatC)) + } + var fileNameC *C.char + if fileName != "" { + fileNameC = C.CString(fileName) + defer C.free(unsafe.Pointer(fileNameC)) + } + return C.QPictureFormatPlugin_SavePictureDefault(ptr.Pointer(), C.struct_QtGui_PackedString{data: formatC, len: C.longlong(len(format))}, C.struct_QtGui_PackedString{data: fileNameC, len: C.longlong(len(fileName))}, PointerFromQPicture(picture)) != 0 + } + return false +} + +func (ptr *QPictureFormatPlugin) DestroyQPictureFormatPlugin() { + if ptr.Pointer() != nil { + C.QPictureFormatPlugin_DestroyQPictureFormatPlugin(ptr.Pointer()) + ptr.SetPointer(nil) + runtime.SetFinalizer(ptr, nil) + } +} + +func (ptr *QPictureFormatPlugin) __dynamicPropertyNames_atList(i int) *core.QByteArray { + if ptr.Pointer() != nil { + tmpValue := core.NewQByteArrayFromPointer(C.QPictureFormatPlugin___dynamicPropertyNames_atList(ptr.Pointer(), C.int(int32(i)))) + runtime.SetFinalizer(tmpValue, (*core.QByteArray).DestroyQByteArray) + return tmpValue + } + return nil +} + +func (ptr *QPictureFormatPlugin) __dynamicPropertyNames_setList(i core.QByteArray_ITF) { + if ptr.Pointer() != nil { + C.QPictureFormatPlugin___dynamicPropertyNames_setList(ptr.Pointer(), core.PointerFromQByteArray(i)) + } +} + +func (ptr *QPictureFormatPlugin) __dynamicPropertyNames_newList() unsafe.Pointer { + return C.QPictureFormatPlugin___dynamicPropertyNames_newList(ptr.Pointer()) +} + +func (ptr *QPictureFormatPlugin) __findChildren_atList2(i int) *core.QObject { + if ptr.Pointer() != nil { + tmpValue := core.NewQObjectFromPointer(C.QPictureFormatPlugin___findChildren_atList2(ptr.Pointer(), C.int(int32(i)))) + if !qt.ExistsSignal(tmpValue.Pointer(), "destroyed") { + tmpValue.ConnectDestroyed(func(*core.QObject) { tmpValue.SetPointer(nil) }) + } + return tmpValue + } + return nil +} + +func (ptr *QPictureFormatPlugin) __findChildren_setList2(i core.QObject_ITF) { + if ptr.Pointer() != nil { + C.QPictureFormatPlugin___findChildren_setList2(ptr.Pointer(), core.PointerFromQObject(i)) + } +} + +func (ptr *QPictureFormatPlugin) __findChildren_newList2() unsafe.Pointer { + return C.QPictureFormatPlugin___findChildren_newList2(ptr.Pointer()) +} + +func (ptr *QPictureFormatPlugin) __findChildren_atList3(i int) *core.QObject { + if ptr.Pointer() != nil { + tmpValue := core.NewQObjectFromPointer(C.QPictureFormatPlugin___findChildren_atList3(ptr.Pointer(), C.int(int32(i)))) + if !qt.ExistsSignal(tmpValue.Pointer(), "destroyed") { + tmpValue.ConnectDestroyed(func(*core.QObject) { tmpValue.SetPointer(nil) }) + } + return tmpValue + } + return nil +} + +func (ptr *QPictureFormatPlugin) __findChildren_setList3(i core.QObject_ITF) { + if ptr.Pointer() != nil { + C.QPictureFormatPlugin___findChildren_setList3(ptr.Pointer(), core.PointerFromQObject(i)) + } +} + +func (ptr *QPictureFormatPlugin) __findChildren_newList3() unsafe.Pointer { + return C.QPictureFormatPlugin___findChildren_newList3(ptr.Pointer()) +} + +func (ptr *QPictureFormatPlugin) __findChildren_atList(i int) *core.QObject { + if ptr.Pointer() != nil { + tmpValue := core.NewQObjectFromPointer(C.QPictureFormatPlugin___findChildren_atList(ptr.Pointer(), C.int(int32(i)))) + if !qt.ExistsSignal(tmpValue.Pointer(), "destroyed") { + tmpValue.ConnectDestroyed(func(*core.QObject) { tmpValue.SetPointer(nil) }) + } + return tmpValue + } + return nil +} + +func (ptr *QPictureFormatPlugin) __findChildren_setList(i core.QObject_ITF) { + if ptr.Pointer() != nil { + C.QPictureFormatPlugin___findChildren_setList(ptr.Pointer(), core.PointerFromQObject(i)) + } +} + +func (ptr *QPictureFormatPlugin) __findChildren_newList() unsafe.Pointer { + return C.QPictureFormatPlugin___findChildren_newList(ptr.Pointer()) +} + +func (ptr *QPictureFormatPlugin) __children_atList(i int) *core.QObject { + if ptr.Pointer() != nil { + tmpValue := core.NewQObjectFromPointer(C.QPictureFormatPlugin___children_atList(ptr.Pointer(), C.int(int32(i)))) + if !qt.ExistsSignal(tmpValue.Pointer(), "destroyed") { + tmpValue.ConnectDestroyed(func(*core.QObject) { tmpValue.SetPointer(nil) }) + } + return tmpValue + } + return nil +} + +func (ptr *QPictureFormatPlugin) __children_setList(i core.QObject_ITF) { + if ptr.Pointer() != nil { + C.QPictureFormatPlugin___children_setList(ptr.Pointer(), core.PointerFromQObject(i)) + } +} + +func (ptr *QPictureFormatPlugin) __children_newList() unsafe.Pointer { + return C.QPictureFormatPlugin___children_newList(ptr.Pointer()) +} + +//export callbackQPictureFormatPlugin_Event +func callbackQPictureFormatPlugin_Event(ptr unsafe.Pointer, e unsafe.Pointer) C.char { + if signal := qt.GetSignal(ptr, "event"); signal != nil { + return C.char(int8(qt.GoBoolToInt(signal.(func(*core.QEvent) bool)(core.NewQEventFromPointer(e))))) + } + + return C.char(int8(qt.GoBoolToInt(NewQPictureFormatPluginFromPointer(ptr).EventDefault(core.NewQEventFromPointer(e))))) +} + +func (ptr *QPictureFormatPlugin) EventDefault(e core.QEvent_ITF) bool { + if ptr.Pointer() != nil { + return C.QPictureFormatPlugin_EventDefault(ptr.Pointer(), core.PointerFromQEvent(e)) != 0 + } + return false +} + +//export callbackQPictureFormatPlugin_EventFilter +func callbackQPictureFormatPlugin_EventFilter(ptr unsafe.Pointer, watched unsafe.Pointer, event unsafe.Pointer) C.char { + if signal := qt.GetSignal(ptr, "eventFilter"); signal != nil { + return C.char(int8(qt.GoBoolToInt(signal.(func(*core.QObject, *core.QEvent) bool)(core.NewQObjectFromPointer(watched), core.NewQEventFromPointer(event))))) + } + + return C.char(int8(qt.GoBoolToInt(NewQPictureFormatPluginFromPointer(ptr).EventFilterDefault(core.NewQObjectFromPointer(watched), core.NewQEventFromPointer(event))))) +} + +func (ptr *QPictureFormatPlugin) EventFilterDefault(watched core.QObject_ITF, event core.QEvent_ITF) bool { + if ptr.Pointer() != nil { + return C.QPictureFormatPlugin_EventFilterDefault(ptr.Pointer(), core.PointerFromQObject(watched), core.PointerFromQEvent(event)) != 0 + } + return false +} + +//export callbackQPictureFormatPlugin_ChildEvent +func callbackQPictureFormatPlugin_ChildEvent(ptr unsafe.Pointer, event unsafe.Pointer) { + if signal := qt.GetSignal(ptr, "childEvent"); signal != nil { + signal.(func(*core.QChildEvent))(core.NewQChildEventFromPointer(event)) + } else { + NewQPictureFormatPluginFromPointer(ptr).ChildEventDefault(core.NewQChildEventFromPointer(event)) + } +} + +func (ptr *QPictureFormatPlugin) ChildEventDefault(event core.QChildEvent_ITF) { + if ptr.Pointer() != nil { + C.QPictureFormatPlugin_ChildEventDefault(ptr.Pointer(), core.PointerFromQChildEvent(event)) + } +} + +//export callbackQPictureFormatPlugin_ConnectNotify +func callbackQPictureFormatPlugin_ConnectNotify(ptr unsafe.Pointer, sign unsafe.Pointer) { + if signal := qt.GetSignal(ptr, "connectNotify"); signal != nil { + signal.(func(*core.QMetaMethod))(core.NewQMetaMethodFromPointer(sign)) + } else { + NewQPictureFormatPluginFromPointer(ptr).ConnectNotifyDefault(core.NewQMetaMethodFromPointer(sign)) + } +} + +func (ptr *QPictureFormatPlugin) ConnectNotifyDefault(sign core.QMetaMethod_ITF) { + if ptr.Pointer() != nil { + C.QPictureFormatPlugin_ConnectNotifyDefault(ptr.Pointer(), core.PointerFromQMetaMethod(sign)) + } +} + +//export callbackQPictureFormatPlugin_CustomEvent +func callbackQPictureFormatPlugin_CustomEvent(ptr unsafe.Pointer, event unsafe.Pointer) { + if signal := qt.GetSignal(ptr, "customEvent"); signal != nil { + signal.(func(*core.QEvent))(core.NewQEventFromPointer(event)) + } else { + NewQPictureFormatPluginFromPointer(ptr).CustomEventDefault(core.NewQEventFromPointer(event)) + } +} + +func (ptr *QPictureFormatPlugin) CustomEventDefault(event core.QEvent_ITF) { + if ptr.Pointer() != nil { + C.QPictureFormatPlugin_CustomEventDefault(ptr.Pointer(), core.PointerFromQEvent(event)) + } +} + +//export callbackQPictureFormatPlugin_DeleteLater +func callbackQPictureFormatPlugin_DeleteLater(ptr unsafe.Pointer) { + if signal := qt.GetSignal(ptr, "deleteLater"); signal != nil { + signal.(func())() + } else { + NewQPictureFormatPluginFromPointer(ptr).DeleteLaterDefault() + } +} + +func (ptr *QPictureFormatPlugin) DeleteLaterDefault() { + if ptr.Pointer() != nil { + C.QPictureFormatPlugin_DeleteLaterDefault(ptr.Pointer()) + ptr.SetPointer(nil) + runtime.SetFinalizer(ptr, nil) + } +} + +//export callbackQPictureFormatPlugin_Destroyed +func callbackQPictureFormatPlugin_Destroyed(ptr unsafe.Pointer, obj unsafe.Pointer) { + if signal := qt.GetSignal(ptr, "destroyed"); signal != nil { + signal.(func(*core.QObject))(core.NewQObjectFromPointer(obj)) + } + +} + +//export callbackQPictureFormatPlugin_DisconnectNotify +func callbackQPictureFormatPlugin_DisconnectNotify(ptr unsafe.Pointer, sign unsafe.Pointer) { + if signal := qt.GetSignal(ptr, "disconnectNotify"); signal != nil { + signal.(func(*core.QMetaMethod))(core.NewQMetaMethodFromPointer(sign)) + } else { + NewQPictureFormatPluginFromPointer(ptr).DisconnectNotifyDefault(core.NewQMetaMethodFromPointer(sign)) + } +} + +func (ptr *QPictureFormatPlugin) DisconnectNotifyDefault(sign core.QMetaMethod_ITF) { + if ptr.Pointer() != nil { + C.QPictureFormatPlugin_DisconnectNotifyDefault(ptr.Pointer(), core.PointerFromQMetaMethod(sign)) + } +} + +//export callbackQPictureFormatPlugin_ObjectNameChanged +func callbackQPictureFormatPlugin_ObjectNameChanged(ptr unsafe.Pointer, objectName C.struct_QtGui_PackedString) { + if signal := qt.GetSignal(ptr, "objectNameChanged"); signal != nil { + signal.(func(string))(cGoUnpackString(objectName)) + } + +} + +//export callbackQPictureFormatPlugin_TimerEvent +func callbackQPictureFormatPlugin_TimerEvent(ptr unsafe.Pointer, event unsafe.Pointer) { + if signal := qt.GetSignal(ptr, "timerEvent"); signal != nil { + signal.(func(*core.QTimerEvent))(core.NewQTimerEventFromPointer(event)) + } else { + NewQPictureFormatPluginFromPointer(ptr).TimerEventDefault(core.NewQTimerEventFromPointer(event)) + } +} + +func (ptr *QPictureFormatPlugin) TimerEventDefault(event core.QTimerEvent_ITF) { + if ptr.Pointer() != nil { + C.QPictureFormatPlugin_TimerEventDefault(ptr.Pointer(), core.PointerFromQTimerEvent(event)) + } +} + +//export callbackQPictureFormatPlugin_MetaObject +func callbackQPictureFormatPlugin_MetaObject(ptr unsafe.Pointer) unsafe.Pointer { + if signal := qt.GetSignal(ptr, "metaObject"); signal != nil { + return core.PointerFromQMetaObject(signal.(func() *core.QMetaObject)()) + } + + return core.PointerFromQMetaObject(NewQPictureFormatPluginFromPointer(ptr).MetaObjectDefault()) +} + +func (ptr *QPictureFormatPlugin) MetaObjectDefault() *core.QMetaObject { + if ptr.Pointer() != nil { + return core.NewQMetaObjectFromPointer(C.QPictureFormatPlugin_MetaObjectDefault(ptr.Pointer())) + } + return nil +} + +type QPictureIO struct { + ptr unsafe.Pointer +} + +type QPictureIO_ITF interface { + QPictureIO_PTR() *QPictureIO +} + +func (ptr *QPictureIO) QPictureIO_PTR() *QPictureIO { + return ptr +} + +func (ptr *QPictureIO) Pointer() unsafe.Pointer { + if ptr != nil { + return ptr.ptr + } + return nil +} + +func (ptr *QPictureIO) SetPointer(p unsafe.Pointer) { + if ptr != nil { + ptr.ptr = p + } +} + +func PointerFromQPictureIO(ptr QPictureIO_ITF) unsafe.Pointer { + if ptr != nil { + return ptr.QPictureIO_PTR().Pointer() + } + return nil +} + +func NewQPictureIOFromPointer(ptr unsafe.Pointer) (n *QPictureIO) { + n = new(QPictureIO) + n.SetPointer(ptr) + return +} +func QPictureIO_PictureFormat2(d core.QIODevice_ITF) *core.QByteArray { + tmpValue := core.NewQByteArrayFromPointer(C.QPictureIO_QPictureIO_PictureFormat2(core.PointerFromQIODevice(d))) + runtime.SetFinalizer(tmpValue, (*core.QByteArray).DestroyQByteArray) + return tmpValue +} + +func (ptr *QPictureIO) PictureFormat2(d core.QIODevice_ITF) *core.QByteArray { + tmpValue := core.NewQByteArrayFromPointer(C.QPictureIO_QPictureIO_PictureFormat2(core.PointerFromQIODevice(d))) + runtime.SetFinalizer(tmpValue, (*core.QByteArray).DestroyQByteArray) + return tmpValue +} + +func QPictureIO_PictureFormat(fileName string) *core.QByteArray { + var fileNameC *C.char + if fileName != "" { + fileNameC = C.CString(fileName) + defer C.free(unsafe.Pointer(fileNameC)) + } + tmpValue := core.NewQByteArrayFromPointer(C.QPictureIO_QPictureIO_PictureFormat(C.struct_QtGui_PackedString{data: fileNameC, len: C.longlong(len(fileName))})) + runtime.SetFinalizer(tmpValue, (*core.QByteArray).DestroyQByteArray) + return tmpValue +} + +func (ptr *QPictureIO) PictureFormat(fileName string) *core.QByteArray { + var fileNameC *C.char + if fileName != "" { + fileNameC = C.CString(fileName) + defer C.free(unsafe.Pointer(fileNameC)) + } + tmpValue := core.NewQByteArrayFromPointer(C.QPictureIO_QPictureIO_PictureFormat(C.struct_QtGui_PackedString{data: fileNameC, len: C.longlong(len(fileName))})) + runtime.SetFinalizer(tmpValue, (*core.QByteArray).DestroyQByteArray) + return tmpValue +} + +func QPictureIO_InputFormats() []*core.QByteArray { + return func(l C.struct_QtGui_PackedList) []*core.QByteArray { + out := make([]*core.QByteArray, int(l.len)) + tmpList := NewQPictureIOFromPointer(l.data) + for i := 0; i < len(out); i++ { + out[i] = tmpList.__inputFormats_atList(i) + } + return out + }(C.QPictureIO_QPictureIO_InputFormats()) +} + +func (ptr *QPictureIO) InputFormats() []*core.QByteArray { + return func(l C.struct_QtGui_PackedList) []*core.QByteArray { + out := make([]*core.QByteArray, int(l.len)) + tmpList := NewQPictureIOFromPointer(l.data) + for i := 0; i < len(out); i++ { + out[i] = tmpList.__inputFormats_atList(i) + } + return out + }(C.QPictureIO_QPictureIO_InputFormats()) +} + +func QPictureIO_OutputFormats() []*core.QByteArray { + return func(l C.struct_QtGui_PackedList) []*core.QByteArray { + out := make([]*core.QByteArray, int(l.len)) + tmpList := NewQPictureIOFromPointer(l.data) + for i := 0; i < len(out); i++ { + out[i] = tmpList.__outputFormats_atList(i) + } + return out + }(C.QPictureIO_QPictureIO_OutputFormats()) +} + +func (ptr *QPictureIO) OutputFormats() []*core.QByteArray { + return func(l C.struct_QtGui_PackedList) []*core.QByteArray { + out := make([]*core.QByteArray, int(l.len)) + tmpList := NewQPictureIOFromPointer(l.data) + for i := 0; i < len(out); i++ { + out[i] = tmpList.__outputFormats_atList(i) + } + return out + }(C.QPictureIO_QPictureIO_OutputFormats()) +} + +func NewQPictureIO() *QPictureIO { + tmpValue := NewQPictureIOFromPointer(C.QPictureIO_NewQPictureIO()) + runtime.SetFinalizer(tmpValue, (*QPictureIO).DestroyQPictureIO) + return tmpValue +} + +func NewQPictureIO2(ioDevice core.QIODevice_ITF, format string) *QPictureIO { + var formatC *C.char + if format != "" { + formatC = C.CString(format) + defer C.free(unsafe.Pointer(formatC)) + } + tmpValue := NewQPictureIOFromPointer(C.QPictureIO_NewQPictureIO2(core.PointerFromQIODevice(ioDevice), formatC)) + runtime.SetFinalizer(tmpValue, (*QPictureIO).DestroyQPictureIO) + return tmpValue +} + +func NewQPictureIO3(fileName string, format string) *QPictureIO { + var fileNameC *C.char + if fileName != "" { + fileNameC = C.CString(fileName) + defer C.free(unsafe.Pointer(fileNameC)) + } + var formatC *C.char + if format != "" { + formatC = C.CString(format) + defer C.free(unsafe.Pointer(formatC)) + } + tmpValue := NewQPictureIOFromPointer(C.QPictureIO_NewQPictureIO3(C.struct_QtGui_PackedString{data: fileNameC, len: C.longlong(len(fileName))}, formatC)) + runtime.SetFinalizer(tmpValue, (*QPictureIO).DestroyQPictureIO) + return tmpValue +} + +func (ptr *QPictureIO) Read() bool { + if ptr.Pointer() != nil { + return C.QPictureIO_Read(ptr.Pointer()) != 0 + } + return false +} + +func (ptr *QPictureIO) Write() bool { + if ptr.Pointer() != nil { + return C.QPictureIO_Write(ptr.Pointer()) != 0 + } + return false +} + +func (ptr *QPictureIO) SetDescription(description string) { + if ptr.Pointer() != nil { + var descriptionC *C.char + if description != "" { + descriptionC = C.CString(description) + defer C.free(unsafe.Pointer(descriptionC)) + } + C.QPictureIO_SetDescription(ptr.Pointer(), C.struct_QtGui_PackedString{data: descriptionC, len: C.longlong(len(description))}) + } +} + +func (ptr *QPictureIO) SetFileName(fileName string) { + if ptr.Pointer() != nil { + var fileNameC *C.char + if fileName != "" { + fileNameC = C.CString(fileName) + defer C.free(unsafe.Pointer(fileNameC)) + } + C.QPictureIO_SetFileName(ptr.Pointer(), C.struct_QtGui_PackedString{data: fileNameC, len: C.longlong(len(fileName))}) + } +} + +func (ptr *QPictureIO) SetFormat(format string) { + if ptr.Pointer() != nil { + var formatC *C.char + if format != "" { + formatC = C.CString(format) + defer C.free(unsafe.Pointer(formatC)) + } + C.QPictureIO_SetFormat(ptr.Pointer(), formatC) + } +} + +func (ptr *QPictureIO) SetGamma(gamma float32) { + if ptr.Pointer() != nil { + C.QPictureIO_SetGamma(ptr.Pointer(), C.float(gamma)) + } +} + +func (ptr *QPictureIO) SetIODevice(ioDevice core.QIODevice_ITF) { + if ptr.Pointer() != nil { + C.QPictureIO_SetIODevice(ptr.Pointer(), core.PointerFromQIODevice(ioDevice)) + } +} + +func (ptr *QPictureIO) SetParameters(parameters string) { + if ptr.Pointer() != nil { + var parametersC *C.char + if parameters != "" { + parametersC = C.CString(parameters) + defer C.free(unsafe.Pointer(parametersC)) + } + C.QPictureIO_SetParameters(ptr.Pointer(), parametersC) + } +} + +func (ptr *QPictureIO) SetPicture(picture QPicture_ITF) { + if ptr.Pointer() != nil { + C.QPictureIO_SetPicture(ptr.Pointer(), PointerFromQPicture(picture)) + } +} + +func (ptr *QPictureIO) SetQuality(q int) { + if ptr.Pointer() != nil { + C.QPictureIO_SetQuality(ptr.Pointer(), C.int(int32(q))) + } +} + +func (ptr *QPictureIO) SetStatus(status int) { + if ptr.Pointer() != nil { + C.QPictureIO_SetStatus(ptr.Pointer(), C.int(int32(status))) + } +} + +func (ptr *QPictureIO) DestroyQPictureIO() { + if ptr.Pointer() != nil { + C.QPictureIO_DestroyQPictureIO(ptr.Pointer()) + ptr.SetPointer(nil) + runtime.SetFinalizer(ptr, nil) + } +} + +func (ptr *QPictureIO) IoDevice() *core.QIODevice { + if ptr.Pointer() != nil { + tmpValue := core.NewQIODeviceFromPointer(C.QPictureIO_IoDevice(ptr.Pointer())) + if !qt.ExistsSignal(tmpValue.Pointer(), "destroyed") { + tmpValue.ConnectDestroyed(func(*core.QObject) { tmpValue.SetPointer(nil) }) + } + return tmpValue + } + return nil +} + +func (ptr *QPictureIO) Description() string { + if ptr.Pointer() != nil { + return cGoUnpackString(C.QPictureIO_Description(ptr.Pointer())) + } + return "" +} + +func (ptr *QPictureIO) FileName() string { + if ptr.Pointer() != nil { + return cGoUnpackString(C.QPictureIO_FileName(ptr.Pointer())) + } + return "" +} + +func (ptr *QPictureIO) Picture() *QPicture { + if ptr.Pointer() != nil { + return NewQPictureFromPointer(C.QPictureIO_Picture(ptr.Pointer())) + } + return nil +} + +func (ptr *QPictureIO) Format() string { + if ptr.Pointer() != nil { + return cGoUnpackString(C.QPictureIO_Format(ptr.Pointer())) + } + return "" +} + +func (ptr *QPictureIO) Parameters() string { + if ptr.Pointer() != nil { + return cGoUnpackString(C.QPictureIO_Parameters(ptr.Pointer())) + } + return "" +} + +func (ptr *QPictureIO) Gamma() float32 { + if ptr.Pointer() != nil { + return float32(C.QPictureIO_Gamma(ptr.Pointer())) + } + return 0 +} + +func (ptr *QPictureIO) Quality() int { + if ptr.Pointer() != nil { + return int(int32(C.QPictureIO_Quality(ptr.Pointer()))) + } + return 0 +} + +func (ptr *QPictureIO) Status() int { + if ptr.Pointer() != nil { + return int(int32(C.QPictureIO_Status(ptr.Pointer()))) + } + return 0 +} + +func (ptr *QPictureIO) __inputFormats_atList(i int) *core.QByteArray { + if ptr.Pointer() != nil { + tmpValue := core.NewQByteArrayFromPointer(C.QPictureIO___inputFormats_atList(ptr.Pointer(), C.int(int32(i)))) + runtime.SetFinalizer(tmpValue, (*core.QByteArray).DestroyQByteArray) + return tmpValue + } + return nil +} + +func (ptr *QPictureIO) __inputFormats_setList(i core.QByteArray_ITF) { + if ptr.Pointer() != nil { + C.QPictureIO___inputFormats_setList(ptr.Pointer(), core.PointerFromQByteArray(i)) + } +} + +func (ptr *QPictureIO) __inputFormats_newList() unsafe.Pointer { + return C.QPictureIO___inputFormats_newList(ptr.Pointer()) +} + +func (ptr *QPictureIO) __outputFormats_atList(i int) *core.QByteArray { + if ptr.Pointer() != nil { + tmpValue := core.NewQByteArrayFromPointer(C.QPictureIO___outputFormats_atList(ptr.Pointer(), C.int(int32(i)))) + runtime.SetFinalizer(tmpValue, (*core.QByteArray).DestroyQByteArray) + return tmpValue + } + return nil +} + +func (ptr *QPictureIO) __outputFormats_setList(i core.QByteArray_ITF) { + if ptr.Pointer() != nil { + C.QPictureIO___outputFormats_setList(ptr.Pointer(), core.PointerFromQByteArray(i)) + } +} + +func (ptr *QPictureIO) __outputFormats_newList() unsafe.Pointer { + return C.QPictureIO___outputFormats_newList(ptr.Pointer()) +} + type QPixelFormat struct { ptr unsafe.Pointer } @@ -119278,6 +120497,18 @@ func NewQPixmapFromPointer(ptr unsafe.Pointer) (n *QPixmap) { n.SetPointer(ptr) return } +func QPixmap_TrueMatrix2(m QMatrix_ITF, w int, h int) *QMatrix { + tmpValue := NewQMatrixFromPointer(C.QPixmap_QPixmap_TrueMatrix2(PointerFromQMatrix(m), C.int(int32(w)), C.int(int32(h)))) + runtime.SetFinalizer(tmpValue, (*QMatrix).DestroyQMatrix) + return tmpValue +} + +func (ptr *QPixmap) TrueMatrix2(m QMatrix_ITF, w int, h int) *QMatrix { + tmpValue := NewQMatrixFromPointer(C.QPixmap_QPixmap_TrueMatrix2(PointerFromQMatrix(m), C.int(int32(w)), C.int(int32(h)))) + runtime.SetFinalizer(tmpValue, (*QMatrix).DestroyQMatrix) + return tmpValue +} + func QPixmap_FromImage(image QImage_ITF, flags core.Qt__ImageConversionFlag) *QPixmap { tmpValue := NewQPixmapFromPointer(C.QPixmap_QPixmap_FromImage(PointerFromQImage(image), C.longlong(flags))) runtime.SetFinalizer(tmpValue, (*QPixmap).DestroyQPixmap) @@ -119557,6 +120788,15 @@ func (ptr *QPixmap) ScaledToWidth(width int, mode core.Qt__TransformationMode) * return nil } +func (ptr *QPixmap) Transformed2(matrix QMatrix_ITF, mode core.Qt__TransformationMode) *QPixmap { + if ptr.Pointer() != nil { + tmpValue := NewQPixmapFromPointer(C.QPixmap_Transformed2(ptr.Pointer(), PointerFromQMatrix(matrix), C.longlong(mode))) + runtime.SetFinalizer(tmpValue, (*QPixmap).DestroyQPixmap) + return tmpValue + } + return nil +} + func (ptr *QPixmap) Transformed(transform QTransform_ITF, mode core.Qt__TransformationMode) *QPixmap { if ptr.Pointer() != nil { tmpValue := NewQPixmapFromPointer(C.QPixmap_Transformed(ptr.Pointer(), PointerFromQTransform(transform), C.longlong(mode))) @@ -138719,6 +139959,12 @@ func NewQTransform6(other QTransform_ITF) *QTransform { return tmpValue } +func NewQTransform5(matrix QMatrix_ITF) *QTransform { + tmpValue := NewQTransformFromPointer(C.QTransform_NewQTransform5(PointerFromQMatrix(matrix))) + runtime.SetFinalizer(tmpValue, (*QTransform).DestroyQTransform) + return tmpValue +} + func NewQTransform7(other QTransform_ITF) *QTransform { tmpValue := NewQTransformFromPointer(C.QTransform_NewQTransform7(PointerFromQTransform(other))) runtime.SetFinalizer(tmpValue, (*QTransform).DestroyQTransform) @@ -138948,6 +140194,13 @@ func (ptr *QTransform) IsTranslating() bool { return false } +func (ptr *QTransform) ToAffine() *QMatrix { + if ptr.Pointer() != nil { + return NewQMatrixFromPointer(C.QTransform_ToAffine(ptr.Pointer())) + } + return nil +} + func (ptr *QTransform) Determinant() float64 { if ptr.Pointer() != nil { return float64(C.QTransform_Determinant(ptr.Pointer())) diff --git a/gui/gui.h b/gui/gui.h index 1ead9a77..e68a770b 100644 --- a/gui/gui.h +++ b/gui/gui.h @@ -32,6 +32,7 @@ int QOpenGLVertexArrayObject_QOpenGLVertexArrayObject_QRegisterMetaType(); int QOpenGLWindow_QOpenGLWindow_QRegisterMetaType(); int QPaintDeviceWindow_QPaintDeviceWindow_QRegisterMetaType(); int QPdfWriter_QPdfWriter_QRegisterMetaType(); +int QPictureFormatPlugin_QPictureFormatPlugin_QRegisterMetaType(); int QRasterWindow_QRasterWindow_QRegisterMetaType(); int QRegExpValidator_QRegExpValidator_QRegisterMetaType(); int QRegularExpressionValidator_QRegularExpressionValidator_QRegisterMetaType(); @@ -429,6 +430,7 @@ void* QBrush_NewQBrush8(void* image); void* QBrush_NewQBrush7(void* pixmap); void QBrush_SetColor2(void* ptr, long long color); void QBrush_SetColor(void* ptr, void* color); +void QBrush_SetMatrix(void* ptr, void* matrix); void QBrush_SetStyle(void* ptr, long long style); void QBrush_SetTexture(void* ptr, void* pixmap); void QBrush_SetTextureImage(void* ptr, void* image); @@ -442,6 +444,7 @@ long long QBrush_Style(void* ptr); char QBrush_IsOpaque(void* ptr); void* QBrush_Color(void* ptr); void* QBrush_Gradient(void* ptr); +void* QBrush_Matrix(void* ptr); void* QBrush_ToVariant(void* ptr); void QClipboard_ConnectChanged(void* ptr); void QClipboard_DisconnectChanged(void* ptr); @@ -1249,6 +1252,7 @@ void* QImage_NewQImage2(void* size, long long format); void* QImage_NewQImage9(struct QtGui_PackedString fileName, char* format); void* QImage_NewQImage3(int width, int height, long long format); long long QImage_QImage_ToImageFormat(void* format); +void* QImage_QImage_TrueMatrix(void* matrix, int width, int height); void* QImage_QImage_ToPixelFormat(long long format); void* QImage_QImage_TrueMatrix2(void* matrix, int width, int height); char QImage_Load2(void* ptr, void* device, char* format); @@ -1289,6 +1293,7 @@ void* QImage_Scaled2(void* ptr, int width, int height, long long aspectRatioMode void* QImage_ScaledToHeight(void* ptr, int height, long long mode); void* QImage_ScaledToWidth(void* ptr, int width, long long mode); void* QImage_SmoothScaled(void* ptr, int w, int h); +void* QImage_Transformed(void* ptr, void* matrix, long long mode); void* QImage_Transformed2(void* ptr, void* matrix, long long mode); void* QImage_PixelFormat(void* ptr); void* QImage_Offset(void* ptr); @@ -1646,7 +1651,41 @@ void QLinearGradient_SetStart(void* ptr, void* start); void QLinearGradient_SetStart2(void* ptr, double x, double y); void* QLinearGradient_FinalStop(void* ptr); void* QLinearGradient_Start(void* ptr); +void* QMatrix_Rotate(void* ptr, double degrees); +void* QMatrix_Scale(void* ptr, double sx, double sy); +void* QMatrix_Shear(void* ptr, double sh, double sv); +void* QMatrix_Translate(void* ptr, double dx, double dy); +void* QMatrix_NewQMatrix(); +void* QMatrix_NewQMatrix4(void* other); +void* QMatrix_NewQMatrix5(void* matrix); +void* QMatrix_NewQMatrix3(double m11, double m12, double m21, double m22, double dx, double dy); +void QMatrix_Reset(void* ptr); +void QMatrix_SetMatrix(void* ptr, double m11, double m12, double m21, double m22, double dx, double dy); +void* QMatrix_Map5(void* ptr, void* line); +void* QMatrix_Map6(void* ptr, void* line); +void* QMatrix_Inverted(void* ptr, char invertible); +void* QMatrix_Map10(void* ptr, void* path); +void* QMatrix_Map3(void* ptr, void* point); +void* QMatrix_Map4(void* ptr, void* point); +void* QMatrix_Map8(void* ptr, void* polygon); +void* QMatrix_MapToPolygon(void* ptr, void* rectangle); +void* QMatrix_Map7(void* ptr, void* polygon); +void* QMatrix_MapRect2(void* ptr, void* rectangle); +void* QMatrix_MapRect(void* ptr, void* rectangle); +void* QMatrix_Map9(void* ptr, void* region); +char QMatrix_IsIdentity(void* ptr); +char QMatrix_IsInvertible(void* ptr); +double QMatrix_Determinant(void* ptr); +double QMatrix_Dx(void* ptr); +double QMatrix_Dy(void* ptr); +double QMatrix_M11(void* ptr); +double QMatrix_M12(void* ptr); +double QMatrix_M21(void* ptr); +double QMatrix_M22(void* ptr); +void QMatrix_Map2(void* ptr, int x, int y, int tx, int ty); +void QMatrix_Map(void* ptr, double x, double y, double tx, double ty); void* QMatrix4x4_NewQMatrix4x4(); +void* QMatrix4x4_NewQMatrix4x48(void* matrix); void* QMatrix4x4_NewQMatrix4x47(void* transform); void* QMatrix4x4_NewQMatrix4x43(float values); void* QMatrix4x4_NewQMatrix4x44(float m11, float m12, float m13, float m14, float m21, float m22, float m23, float m24, float m31, float m32, float m33, float m34, float m41, float m42, float m43, float m44); @@ -1674,6 +1713,7 @@ void QMatrix4x4_Translate2(void* ptr, float x, float y); void QMatrix4x4_Translate3(void* ptr, float x, float y, float z); void QMatrix4x4_Viewport2(void* ptr, void* rect); void QMatrix4x4_Viewport(void* ptr, float left, float bottom, float width, float height, float nearPlane, float farPlane); +void* QMatrix4x4_ToAffine(void* ptr); void* QMatrix4x4_Inverted(void* ptr, char invertible); void* QMatrix4x4_Transposed(void* ptr); void* QMatrix4x4_Map(void* ptr, void* point); @@ -15603,7 +15643,9 @@ void QPainterPath_Swap(void* ptr, void* other); void QPainterPath_Translate2(void* ptr, void* offset); void QPainterPath_Translate(void* ptr, double dx, double dy); void QPainterPath_DestroyQPainterPath(void* ptr); +struct QtGui_PackedList QPainterPath_ToFillPolygons2(void* ptr, void* matrix); struct QtGui_PackedList QPainterPath_ToFillPolygons(void* ptr, void* matrix); +struct QtGui_PackedList QPainterPath_ToSubpathPolygons2(void* ptr, void* matrix); struct QtGui_PackedList QPainterPath_ToSubpathPolygons(void* ptr, void* matrix); void* QPainterPath_Intersected(void* ptr, void* p); void* QPainterPath_Simplified(void* ptr); @@ -15614,6 +15656,7 @@ void* QPainterPath_Translated(void* ptr, double dx, double dy); void* QPainterPath_United(void* ptr, void* p); void* QPainterPath_CurrentPosition(void* ptr); void* QPainterPath_PointAtPercent(void* ptr, double t); +void* QPainterPath_ToFillPolygon2(void* ptr, void* matrix); void* QPainterPath_ToFillPolygon(void* ptr, void* matrix); void* QPainterPath_BoundingRect(void* ptr); void* QPainterPath_ControlPointRect(void* ptr); @@ -15820,6 +15863,71 @@ void QPicture___outputFormats_setList(void* ptr, void* i); void* QPicture___outputFormats_newList(void* ptr); void* QPicture_PaintEngine(void* ptr); void* QPicture_PaintEngineDefault(void* ptr); +void* QPictureFormatPlugin_NewQPictureFormatPlugin(void* parent); +char QPictureFormatPlugin_InstallIOHandler(void* ptr, struct QtGui_PackedString format); +char QPictureFormatPlugin_LoadPicture(void* ptr, struct QtGui_PackedString format, struct QtGui_PackedString fileName, void* picture); +char QPictureFormatPlugin_LoadPictureDefault(void* ptr, struct QtGui_PackedString format, struct QtGui_PackedString fileName, void* picture); +char QPictureFormatPlugin_SavePicture(void* ptr, struct QtGui_PackedString format, struct QtGui_PackedString fileName, void* picture); +char QPictureFormatPlugin_SavePictureDefault(void* ptr, struct QtGui_PackedString format, struct QtGui_PackedString fileName, void* picture); +void QPictureFormatPlugin_DestroyQPictureFormatPlugin(void* ptr); +void* QPictureFormatPlugin___dynamicPropertyNames_atList(void* ptr, int i); +void QPictureFormatPlugin___dynamicPropertyNames_setList(void* ptr, void* i); +void* QPictureFormatPlugin___dynamicPropertyNames_newList(void* ptr); +void* QPictureFormatPlugin___findChildren_atList2(void* ptr, int i); +void QPictureFormatPlugin___findChildren_setList2(void* ptr, void* i); +void* QPictureFormatPlugin___findChildren_newList2(void* ptr); +void* QPictureFormatPlugin___findChildren_atList3(void* ptr, int i); +void QPictureFormatPlugin___findChildren_setList3(void* ptr, void* i); +void* QPictureFormatPlugin___findChildren_newList3(void* ptr); +void* QPictureFormatPlugin___findChildren_atList(void* ptr, int i); +void QPictureFormatPlugin___findChildren_setList(void* ptr, void* i); +void* QPictureFormatPlugin___findChildren_newList(void* ptr); +void* QPictureFormatPlugin___children_atList(void* ptr, int i); +void QPictureFormatPlugin___children_setList(void* ptr, void* i); +void* QPictureFormatPlugin___children_newList(void* ptr); +char QPictureFormatPlugin_EventDefault(void* ptr, void* e); +char QPictureFormatPlugin_EventFilterDefault(void* ptr, void* watched, void* event); +void QPictureFormatPlugin_ChildEventDefault(void* ptr, void* event); +void QPictureFormatPlugin_ConnectNotifyDefault(void* ptr, void* sign); +void QPictureFormatPlugin_CustomEventDefault(void* ptr, void* event); +void QPictureFormatPlugin_DeleteLaterDefault(void* ptr); +void QPictureFormatPlugin_DisconnectNotifyDefault(void* ptr, void* sign); +void QPictureFormatPlugin_TimerEventDefault(void* ptr, void* event); +void* QPictureFormatPlugin_MetaObjectDefault(void* ptr); +void* QPictureIO_QPictureIO_PictureFormat2(void* d); +void* QPictureIO_QPictureIO_PictureFormat(struct QtGui_PackedString fileName); +struct QtGui_PackedList QPictureIO_QPictureIO_InputFormats(); +struct QtGui_PackedList QPictureIO_QPictureIO_OutputFormats(); +void* QPictureIO_NewQPictureIO(); +void* QPictureIO_NewQPictureIO2(void* ioDevice, char* format); +void* QPictureIO_NewQPictureIO3(struct QtGui_PackedString fileName, char* format); +char QPictureIO_Read(void* ptr); +char QPictureIO_Write(void* ptr); +void QPictureIO_SetDescription(void* ptr, struct QtGui_PackedString description); +void QPictureIO_SetFileName(void* ptr, struct QtGui_PackedString fileName); +void QPictureIO_SetFormat(void* ptr, char* format); +void QPictureIO_SetGamma(void* ptr, float gamma); +void QPictureIO_SetIODevice(void* ptr, void* ioDevice); +void QPictureIO_SetParameters(void* ptr, char* parameters); +void QPictureIO_SetPicture(void* ptr, void* picture); +void QPictureIO_SetQuality(void* ptr, int q); +void QPictureIO_SetStatus(void* ptr, int status); +void QPictureIO_DestroyQPictureIO(void* ptr); +void* QPictureIO_IoDevice(void* ptr); +struct QtGui_PackedString QPictureIO_Description(void* ptr); +struct QtGui_PackedString QPictureIO_FileName(void* ptr); +void* QPictureIO_Picture(void* ptr); +struct QtGui_PackedString QPictureIO_Format(void* ptr); +struct QtGui_PackedString QPictureIO_Parameters(void* ptr); +float QPictureIO_Gamma(void* ptr); +int QPictureIO_Quality(void* ptr); +int QPictureIO_Status(void* ptr); +void* QPictureIO___inputFormats_atList(void* ptr, int i); +void QPictureIO___inputFormats_setList(void* ptr, void* i); +void* QPictureIO___inputFormats_newList(void* ptr); +void* QPictureIO___outputFormats_atList(void* ptr, int i); +void QPictureIO___outputFormats_setList(void* ptr, void* i); +void* QPictureIO___outputFormats_newList(void* ptr); void* QPixelFormat_NewQPixelFormat(); void* QPixelFormat_NewQPixelFormat2(long long colorModel, char* firstSize, char* secondSize, char* thirdSize, char* fourthSize, char* fifthSize, char* alphaSize, long long alphaUsage, long long alphaPosition, long long premultiplied, long long typeInterpretation, long long byteOrder, char* subEnum); long long QPixelFormat_AlphaPosition(void* ptr); @@ -15843,6 +15951,7 @@ struct QtGui_PackedString QPixelFormat_MagentaSize(void* ptr); struct QtGui_PackedString QPixelFormat_RedSize(void* ptr); struct QtGui_PackedString QPixelFormat_SaturationSize(void* ptr); struct QtGui_PackedString QPixelFormat_YellowSize(void* ptr); +void* QPixmap_QPixmap_TrueMatrix2(void* m, int w, int h); void* QPixmap_QPixmap_FromImage(void* image, long long flags); void* QPixmap_QPixmap_FromImageReader(void* imageReader, long long flags); void* QPixmap_QPixmap_FromImage2(void* image, long long flags); @@ -15875,6 +15984,7 @@ void* QPixmap_Scaled(void* ptr, void* size, long long aspectRatioMode, long long void* QPixmap_Scaled2(void* ptr, int width, int height, long long aspectRatioMode, long long transformMode); void* QPixmap_ScaledToHeight(void* ptr, int height, long long mode); void* QPixmap_ScaledToWidth(void* ptr, int width, long long mode); +void* QPixmap_Transformed2(void* ptr, void* matrix, long long mode); void* QPixmap_Transformed(void* ptr, void* transform, long long mode); void* QPixmap_Rect(void* ptr); void* QPixmap_Size(void* ptr); @@ -17651,6 +17761,7 @@ void* QTransform_QTransform_FromScale(double sx, double sy); void* QTransform_QTransform_FromTranslate(double dx, double dy); void* QTransform_NewQTransform(); void* QTransform_NewQTransform6(void* other); +void* QTransform_NewQTransform5(void* matrix); void* QTransform_NewQTransform7(void* other); void* QTransform_NewQTransform3(double m11, double m12, double m13, double m21, double m22, double m23, double m31, double m32, double m33); void* QTransform_NewQTransform4(double m11, double m12, double m21, double m22, double dx, double dy); @@ -17680,6 +17791,7 @@ char QTransform_IsInvertible(void* ptr); char QTransform_IsRotating(void* ptr); char QTransform_IsScaling(void* ptr); char QTransform_IsTranslating(void* ptr); +void* QTransform_ToAffine(void* ptr); double QTransform_Determinant(void* ptr); double QTransform_Dx(void* ptr); double QTransform_Dy(void* ptr); diff --git a/help/help.cpp b/help/help.cpp index dc4f29db..9072d73f 100644 --- a/help/help.cpp +++ b/help/help.cpp @@ -39,6 +39,7 @@ #include #include #include +#include #include #include #include @@ -4277,12 +4278,32 @@ int QHelpSearchEngine_SearchResultCount(void* ptr) return static_cast(ptr)->searchResultCount(); } +void* QHelpSearchEngine___search_queryList_atList(void* ptr, int i) +{ + return new QHelpSearchQuery(({QHelpSearchQuery tmp = static_cast*>(ptr)->at(i); if (i == static_cast*>(ptr)->size()-1) { static_cast*>(ptr)->~QList(); free(ptr); }; tmp; })); +} + +void QHelpSearchEngine___search_queryList_setList(void* ptr, void* i) +{ + static_cast*>(ptr)->append(*static_cast(i)); +} + void* QHelpSearchEngine___search_queryList_newList(void* ptr) { Q_UNUSED(ptr); return new QList(); } +void* QHelpSearchEngine___query_atList(void* ptr, int i) +{ + return new QHelpSearchQuery(({QHelpSearchQuery tmp = static_cast*>(ptr)->at(i); if (i == static_cast*>(ptr)->size()-1) { static_cast*>(ptr)->~QList(); free(ptr); }; tmp; })); +} + +void QHelpSearchEngine___query_setList(void* ptr, void* i) +{ + static_cast*>(ptr)->append(*static_cast(i)); +} + void* QHelpSearchEngine___query_newList(void* ptr) { Q_UNUSED(ptr); @@ -4430,6 +4451,21 @@ void* QHelpSearchEngine_MetaObjectDefault(void* ptr) return const_cast(static_cast(ptr)->QHelpSearchEngine::metaObject()); } +void* QHelpSearchQuery_NewQHelpSearchQuery() +{ + return new QHelpSearchQuery(); +} + +struct QtHelp_PackedString QHelpSearchQuery_WordList(void* ptr) +{ + return ({ QByteArray t152f34 = static_cast(ptr)->wordList.join("|").toUtf8(); QtHelp_PackedString { const_cast(t152f34.prepend("WHITESPACE").constData()+10), t152f34.size()-10 }; }); +} + +void QHelpSearchQuery_SetWordList(void* ptr, struct QtHelp_PackedString vqs) +{ + static_cast(ptr)->wordList = QString::fromUtf8(vqs.data, vqs.len).split("|", QString::SkipEmptyParts); +} + class MyQHelpSearchQueryWidget: public QHelpSearchQueryWidget { public: @@ -4559,12 +4595,32 @@ char QHelpSearchQueryWidget_IsCompactMode(void* ptr) return static_cast(ptr)->isCompactMode(); } +void* QHelpSearchQueryWidget___setQuery_queryList_atList(void* ptr, int i) +{ + return new QHelpSearchQuery(({QHelpSearchQuery tmp = static_cast*>(ptr)->at(i); if (i == static_cast*>(ptr)->size()-1) { static_cast*>(ptr)->~QList(); free(ptr); }; tmp; })); +} + +void QHelpSearchQueryWidget___setQuery_queryList_setList(void* ptr, void* i) +{ + static_cast*>(ptr)->append(*static_cast(i)); +} + void* QHelpSearchQueryWidget___setQuery_queryList_newList(void* ptr) { Q_UNUSED(ptr); return new QList(); } +void* QHelpSearchQueryWidget___query_atList(void* ptr, int i) +{ + return new QHelpSearchQuery(({QHelpSearchQuery tmp = static_cast*>(ptr)->at(i); if (i == static_cast*>(ptr)->size()-1) { static_cast*>(ptr)->~QList(); free(ptr); }; tmp; })); +} + +void QHelpSearchQueryWidget___query_setList(void* ptr, void* i) +{ + static_cast*>(ptr)->append(*static_cast(i)); +} + void* QHelpSearchQueryWidget___query_newList(void* ptr) { Q_UNUSED(ptr); diff --git a/help/help.go b/help/help.go index 049231db..1e4cc8ac 100644 --- a/help/help.go +++ b/help/help.go @@ -9651,10 +9651,40 @@ func (ptr *QHelpSearchEngine) SearchResultCount() int { return 0 } +func (ptr *QHelpSearchEngine) __search_queryList_atList(i int) *QHelpSearchQuery { + if ptr.Pointer() != nil { + tmpValue := NewQHelpSearchQueryFromPointer(C.QHelpSearchEngine___search_queryList_atList(ptr.Pointer(), C.int(int32(i)))) + runtime.SetFinalizer(tmpValue, (*QHelpSearchQuery).DestroyQHelpSearchQuery) + return tmpValue + } + return nil +} + +func (ptr *QHelpSearchEngine) __search_queryList_setList(i QHelpSearchQuery_ITF) { + if ptr.Pointer() != nil { + C.QHelpSearchEngine___search_queryList_setList(ptr.Pointer(), PointerFromQHelpSearchQuery(i)) + } +} + func (ptr *QHelpSearchEngine) __search_queryList_newList() unsafe.Pointer { return C.QHelpSearchEngine___search_queryList_newList(ptr.Pointer()) } +func (ptr *QHelpSearchEngine) __query_atList(i int) *QHelpSearchQuery { + if ptr.Pointer() != nil { + tmpValue := NewQHelpSearchQueryFromPointer(C.QHelpSearchEngine___query_atList(ptr.Pointer(), C.int(int32(i)))) + runtime.SetFinalizer(tmpValue, (*QHelpSearchQuery).DestroyQHelpSearchQuery) + return tmpValue + } + return nil +} + +func (ptr *QHelpSearchEngine) __query_setList(i QHelpSearchQuery_ITF) { + if ptr.Pointer() != nil { + C.QHelpSearchEngine___query_setList(ptr.Pointer(), PointerFromQHelpSearchQuery(i)) + } +} + func (ptr *QHelpSearchEngine) __query_newList() unsafe.Pointer { return C.QHelpSearchEngine___query_newList(ptr.Pointer()) } @@ -9937,6 +9967,73 @@ func (ptr *QHelpSearchEngine) MetaObjectDefault() *core.QMetaObject { return nil } +type QHelpSearchQuery struct { + ptr unsafe.Pointer +} + +type QHelpSearchQuery_ITF interface { + QHelpSearchQuery_PTR() *QHelpSearchQuery +} + +func (ptr *QHelpSearchQuery) QHelpSearchQuery_PTR() *QHelpSearchQuery { + return ptr +} + +func (ptr *QHelpSearchQuery) Pointer() unsafe.Pointer { + if ptr != nil { + return ptr.ptr + } + return nil +} + +func (ptr *QHelpSearchQuery) SetPointer(p unsafe.Pointer) { + if ptr != nil { + ptr.ptr = p + } +} + +func PointerFromQHelpSearchQuery(ptr QHelpSearchQuery_ITF) unsafe.Pointer { + if ptr != nil { + return ptr.QHelpSearchQuery_PTR().Pointer() + } + return nil +} + +func NewQHelpSearchQueryFromPointer(ptr unsafe.Pointer) (n *QHelpSearchQuery) { + n = new(QHelpSearchQuery) + n.SetPointer(ptr) + return +} + +func (ptr *QHelpSearchQuery) DestroyQHelpSearchQuery() { + if ptr != nil { + C.free(ptr.Pointer()) + ptr.SetPointer(nil) + runtime.SetFinalizer(ptr, nil) + } +} + +func NewQHelpSearchQuery() *QHelpSearchQuery { + tmpValue := NewQHelpSearchQueryFromPointer(C.QHelpSearchQuery_NewQHelpSearchQuery()) + runtime.SetFinalizer(tmpValue, (*QHelpSearchQuery).DestroyQHelpSearchQuery) + return tmpValue +} + +func (ptr *QHelpSearchQuery) WordList() []string { + if ptr.Pointer() != nil { + return strings.Split(cGoUnpackString(C.QHelpSearchQuery_WordList(ptr.Pointer())), "|") + } + return make([]string, 0) +} + +func (ptr *QHelpSearchQuery) SetWordList(vqs []string) { + if ptr.Pointer() != nil { + vqsC := C.CString(strings.Join(vqs, "|")) + defer C.free(unsafe.Pointer(vqsC)) + C.QHelpSearchQuery_SetWordList(ptr.Pointer(), C.struct_QtHelp_PackedString{data: vqsC, len: C.longlong(len(strings.Join(vqs, "|")))}) + } +} + type QHelpSearchQueryWidget struct { widgets.QWidget } @@ -10067,10 +10164,40 @@ func (ptr *QHelpSearchQueryWidget) IsCompactMode() bool { return false } +func (ptr *QHelpSearchQueryWidget) __setQuery_queryList_atList(i int) *QHelpSearchQuery { + if ptr.Pointer() != nil { + tmpValue := NewQHelpSearchQueryFromPointer(C.QHelpSearchQueryWidget___setQuery_queryList_atList(ptr.Pointer(), C.int(int32(i)))) + runtime.SetFinalizer(tmpValue, (*QHelpSearchQuery).DestroyQHelpSearchQuery) + return tmpValue + } + return nil +} + +func (ptr *QHelpSearchQueryWidget) __setQuery_queryList_setList(i QHelpSearchQuery_ITF) { + if ptr.Pointer() != nil { + C.QHelpSearchQueryWidget___setQuery_queryList_setList(ptr.Pointer(), PointerFromQHelpSearchQuery(i)) + } +} + func (ptr *QHelpSearchQueryWidget) __setQuery_queryList_newList() unsafe.Pointer { return C.QHelpSearchQueryWidget___setQuery_queryList_newList(ptr.Pointer()) } +func (ptr *QHelpSearchQueryWidget) __query_atList(i int) *QHelpSearchQuery { + if ptr.Pointer() != nil { + tmpValue := NewQHelpSearchQueryFromPointer(C.QHelpSearchQueryWidget___query_atList(ptr.Pointer(), C.int(int32(i)))) + runtime.SetFinalizer(tmpValue, (*QHelpSearchQuery).DestroyQHelpSearchQuery) + return tmpValue + } + return nil +} + +func (ptr *QHelpSearchQueryWidget) __query_setList(i QHelpSearchQuery_ITF) { + if ptr.Pointer() != nil { + C.QHelpSearchQueryWidget___query_setList(ptr.Pointer(), PointerFromQHelpSearchQuery(i)) + } +} + func (ptr *QHelpSearchQueryWidget) __query_newList() unsafe.Pointer { return C.QHelpSearchQueryWidget___query_newList(ptr.Pointer()) } diff --git a/help/help.h b/help/help.h index c22248bf..0f0333ff 100644 --- a/help/help.h +++ b/help/help.h @@ -715,7 +715,11 @@ void QHelpSearchEngine_DestroyQHelpSearchEngine(void* ptr); struct QtHelp_PackedString QHelpSearchEngine_SearchInput(void* ptr); struct QtHelp_PackedList QHelpSearchEngine_SearchResults(void* ptr, int start, int end); int QHelpSearchEngine_SearchResultCount(void* ptr); +void* QHelpSearchEngine___search_queryList_atList(void* ptr, int i); +void QHelpSearchEngine___search_queryList_setList(void* ptr, void* i); void* QHelpSearchEngine___search_queryList_newList(void* ptr); +void* QHelpSearchEngine___query_atList(void* ptr, int i); +void QHelpSearchEngine___query_setList(void* ptr, void* i); void* QHelpSearchEngine___query_newList(void* ptr); void* QHelpSearchEngine___searchResults_atList(void* ptr, int i); void QHelpSearchEngine___searchResults_setList(void* ptr, void* i); @@ -744,6 +748,9 @@ void QHelpSearchEngine_DeleteLaterDefault(void* ptr); void QHelpSearchEngine_DisconnectNotifyDefault(void* ptr, void* sign); void QHelpSearchEngine_TimerEventDefault(void* ptr, void* event); void* QHelpSearchEngine_MetaObjectDefault(void* ptr); +void* QHelpSearchQuery_NewQHelpSearchQuery(); +struct QtHelp_PackedString QHelpSearchQuery_WordList(void* ptr); +void QHelpSearchQuery_SetWordList(void* ptr, struct QtHelp_PackedString vqs); void* QHelpSearchQueryWidget_NewQHelpSearchQueryWidget(void* parent); void QHelpSearchQueryWidget_CollapseExtendedSearch(void* ptr); void QHelpSearchQueryWidget_ExpandExtendedSearch(void* ptr); @@ -754,7 +761,11 @@ void QHelpSearchQueryWidget_SetSearchInput(void* ptr, struct QtHelp_PackedString void QHelpSearchQueryWidget_DestroyQHelpSearchQueryWidget(void* ptr); struct QtHelp_PackedString QHelpSearchQueryWidget_SearchInput(void* ptr); char QHelpSearchQueryWidget_IsCompactMode(void* ptr); +void* QHelpSearchQueryWidget___setQuery_queryList_atList(void* ptr, int i); +void QHelpSearchQueryWidget___setQuery_queryList_setList(void* ptr, void* i); void* QHelpSearchQueryWidget___setQuery_queryList_newList(void* ptr); +void* QHelpSearchQueryWidget___query_atList(void* ptr, int i); +void QHelpSearchQueryWidget___query_setList(void* ptr, void* i); void* QHelpSearchQueryWidget___query_newList(void* ptr); void* QHelpSearchQueryWidget___addActions_actions_atList(void* ptr, int i); void QHelpSearchQueryWidget___addActions_actions_setList(void* ptr, void* i); diff --git a/internal/binding/converter/output.go b/internal/binding/converter/output.go index 93cf8c7e..b9543777 100644 --- a/internal/binding/converter/output.go +++ b/internal/binding/converter/output.go @@ -454,7 +454,7 @@ func CppOutput(name, value string, f *parser.Function) string { if strings.HasSuffix(f.Name, "_atList") { if parser.UseJs() { if f.IsMap { - out := cppOutput(fmt.Sprintf("({%v tmp = %v->value%v; if (i == %v->size()-1) { %v->~%v(); }; tmp; })", value, strings.Split(name, "->")[0], strings.TrimSuffix(strings.Split(name, "_atList")[1], ", i)")+")", strings.Split(name, "->")[0], strings.Split(name, "->")[0], parser.CleanValue(f.Container)), value, f) + out := cppOutput(fmt.Sprintf("({%v tmp = %v->value%v; if (i == %v->size()-1) { %v->~%v(); }; tmp; })", value, strings.Split(name, "->")[0], "("+strings.TrimSuffix(strings.Split(name, "_atList(")[1], ", i)")+")", strings.Split(name, "->")[0], strings.Split(name, "->")[0], parser.CleanValue(f.Container)), value, f) if !strings.Contains(cppOutput(name, value, f), "_Packed") && f.BoundByEmscripten { if !strings.Contains(out, "emscripten::val::global") { out = "reinterpret_cast(" + out + ")" @@ -462,7 +462,7 @@ func CppOutput(name, value string, f *parser.Function) string { } return out } - out := cppOutput(fmt.Sprintf("({%v tmp = %v->at%v; if (i == %v->size()-1) { %v->~%v(); }; tmp; })", value, strings.Split(name, "->")[0], strings.Split(name, "_atList")[1], strings.Split(name, "->")[0], strings.Split(name, "->")[0], parser.CleanValue(f.Container)), value, f) + out := cppOutput(fmt.Sprintf("({%v tmp = %v->at%v; if (i == %v->size()-1) { %v->~%v(); }; tmp; })", value, strings.Split(name, "->")[0], "("+strings.Split(name, "_atList(")[1], strings.Split(name, "->")[0], strings.Split(name, "->")[0], parser.CleanValue(f.Container)), value, f) if !strings.Contains(cppOutput(name, value, f), "_Packed") && f.BoundByEmscripten { if !strings.Contains(out, "emscripten::val::global") { out = "reinterpret_cast(" + out + ")" @@ -471,15 +471,15 @@ func CppOutput(name, value string, f *parser.Function) string { return out } if f.IsMap { - return cppOutput(fmt.Sprintf("({%v tmp = %v->value%v; if (i == %v->size()-1) { %v->~%v(); free(ptr); }; tmp; })", value, strings.Split(name, "->")[0], strings.TrimSuffix(strings.Split(name, "_atList")[1], ", i)")+")", strings.Split(name, "->")[0], strings.Split(name, "->")[0], parser.CleanValue(f.Container)), value, f) + return cppOutput(fmt.Sprintf("({%v tmp = %v->value%v; if (i == %v->size()-1) { %v->~%v(); free(ptr); }; tmp; })", value, strings.Split(name, "->")[0], "("+strings.TrimSuffix(strings.Split(name, "_atList(")[1], ", i)")+")", strings.Split(name, "->")[0], strings.Split(name, "->")[0], parser.CleanValue(f.Container)), value, f) } - return cppOutput(fmt.Sprintf("({%v tmp = %v->at%v; if (i == %v->size()-1) { %v->~%v(); free(ptr); }; tmp; })", value, strings.Split(name, "->")[0], strings.Split(name, "_atList")[1], strings.Split(name, "->")[0], strings.Split(name, "->")[0], parser.CleanValue(f.Container)), value, f) + return cppOutput(fmt.Sprintf("({%v tmp = %v->at%v; if (i == %v->size()-1) { %v->~%v(); free(ptr); }; tmp; })", value, strings.Split(name, "->")[0], "("+strings.Split(name, "_atList(")[1], strings.Split(name, "->")[0], strings.Split(name, "->")[0], parser.CleanValue(f.Container)), value, f) } if strings.HasSuffix(f.Name, "_setList") { if len(f.Parameters) == 2 { - return cppOutput(fmt.Sprintf("%v->insert%v", strings.Split(name, "->")[0], strings.Split(name, "_setList")[1]), value, f) + return cppOutput(fmt.Sprintf("%v->insert%v", strings.Split(name, "->")[0], "("+strings.Split(name, "_setList(")[1]), value, f) } - return cppOutput(fmt.Sprintf("%v->append%v", strings.Split(name, "->")[0], strings.Split(name, "_setList")[1]), value, f) + return cppOutput(fmt.Sprintf("%v->append%v", strings.Split(name, "->")[0], "("+strings.Split(name, "_setList(")[1]), value, f) } if strings.HasSuffix(f.Name, "_newList") { return fmt.Sprintf("new %v()", parser.CleanValue(f.Container)) diff --git a/internal/binding/parser/class.go b/internal/binding/parser/class.go index 63fd8247..1ad41c7d 100644 --- a/internal/binding/parser/class.go +++ b/internal/binding/parser/class.go @@ -42,6 +42,9 @@ type Class struct { } func (c *Class) register(m *Module) { + if _, ok := State.ClassMap[c.Name]; ok { + return + } c.DocModule = c.Module c.Module = m.Project @@ -67,7 +70,7 @@ func (c *Class) derivation() { } func (c *Class) GetBases() []string { - if c.Bases == "" { + if c == nil || c.Bases == "" { return make([]string, 0) } if strings.Contains(c.Bases, ",") { @@ -234,15 +237,15 @@ func (c *Class) IsSupported() bool { return false } - //if utils.QT_VERSION() == "5.8.0" { - switch c.Name { - case "QSctpServer", "QSctpSocket", "Http2", "QAbstractExtensionFactory": - { - c.Access = "unsupported_isBlockedClass" - return false + if utils.QT_VERSION_NUM() >= 5080 { + switch c.Name { + case "QSctpServer", "QSctpSocket", "Http2", "QAbstractExtensionFactory": + { + c.Access = "unsupported_isBlockedClass" + return false + } } } - //} if UseJs() { if strings.HasPrefix(c.Name, "QSG") { @@ -277,8 +280,16 @@ func (c *Class) IsSupported() bool { "QProcess", "QProcessEnvironment", //TODO: iOS - "QRemoteObjectPackets": + "QRemoteObjectPackets", + "QStaticByteArrayMatcher", "QtDummyFutex", "QtLinuxFutex", + "QShaderLanguage", + + "AndroidNfc", "OSXBluetooth", + + "QtROClientFactory", "QtROServerFactory", + + "QWebViewFactory", "QGeoServiceProviderFactoryV2": { c.Access = "unsupported_isBlockedClass" return false diff --git a/internal/binding/parser/class_fix.go b/internal/binding/parser/class_fix.go index 876ed6e8..6e071bd4 100644 --- a/internal/binding/parser/class_fix.go +++ b/internal/binding/parser/class_fix.go @@ -35,6 +35,7 @@ func (c *Class) fixFunctions(fix func(*Function)) { } //TODO: (*Enum) IsSupported +//TODO: merge into (*Class).removeEnums_Version func (c *Class) fixEnums() { for _, e := range c.Enums { if e.Fullname == "QVariant::Type" { @@ -149,6 +150,12 @@ func (c *Class) fixGeneral_Version() { }) } } + case "QDesktopWidget": + { + for _, f := range c.Functions { + f.Status = "active" + } + } } } diff --git a/internal/binding/parser/class_remove.go b/internal/binding/parser/class_remove.go index 65f431e4..ca9d8e57 100644 --- a/internal/binding/parser/class_remove.go +++ b/internal/binding/parser/class_remove.go @@ -69,6 +69,80 @@ func (c *Class) removeEnums_Version() { case "QCss", "QScript", "Http2": { c.Enums = append(c.Enums[:i], c.Enums[i+1:]...) + continue + } + } + switch e := c.Enums[i]; e.Fullname { + case "QTimeZone::anonymous": + { + c.Enums = append(c.Enums[:i], c.Enums[i+1:]...) + continue + } + case "Qt::InputMethodQuery": + { + for iv := len(e.Values) - 1; iv >= 0; iv-- { + if e.Values[iv].Name == "ImQueryInput" { + c.Enums[i].Values = append(c.Enums[i].Values[:iv], c.Enums[i].Values[iv+1:]...) + break + } + } + continue + } + case "QV4::PropertyFlag": + { + for iv := len(e.Values) - 1; iv >= 0; iv-- { + if e.Values[iv].Name == "Attr_ReadOnly" || + e.Values[iv].Name == "Attr_ReadOnly_ButConfigurable" { + c.Enums[i].Values = append(c.Enums[i].Values[:iv], c.Enums[i].Values[iv+1:]...) + } + } + continue + } + case "QDBusConnection::RegisterOption": + { + for iv := len(e.Values) - 1; iv >= 0; iv-- { + if strings.HasPrefix(e.Values[iv].Name, "ExportAll") { + c.Enums[i].Values = append(c.Enums[i].Values[:iv], c.Enums[i].Values[iv+1:]...) + } + } + continue + } + case "QDateTimeEdit::Section": + { + for iv := len(e.Values) - 1; iv >= 0; iv-- { + if e.Values[iv].Name == "TimeSections_Mask" || + e.Values[iv].Name == "DateSections_Mask" { + c.Enums[i].Values = append(c.Enums[i].Values[:iv], c.Enums[i].Values[iv+1:]...) + } + } + continue + } + case "QDockWidget::DockWidgetFeature": + { + for iv := len(e.Values) - 1; iv >= 0; iv-- { + if e.Values[iv].Name == "AllDockWidgetFeatures" { + c.Enums[i].Values = append(c.Enums[i].Values[:iv], c.Enums[i].Values[iv+1:]...) + } + } + continue + } + case "QSGNode::DirtyStateBit": + { + for iv := len(e.Values) - 1; iv >= 0; iv-- { + if e.Values[iv].Name == "DirtyPropagationMask" { + c.Enums[i].Values = append(c.Enums[i].Values[:iv], c.Enums[i].Values[iv+1:]...) + } + } + continue + } + case "QWebEnginePage::WebAction": + { + for iv := len(e.Values) - 1; iv >= 0; iv-- { + if e.Values[iv].Name == "NoWebAction" { + c.Enums[i].Values = append(c.Enums[i].Values[:iv], c.Enums[i].Values[iv+1:]...) + } + } + continue } } } diff --git a/internal/binding/parser/function.go b/internal/binding/parser/function.go index b54cda1c..3875fd85 100644 --- a/internal/binding/parser/function.go +++ b/internal/binding/parser/function.go @@ -53,6 +53,7 @@ type Function struct { type Parameter struct { Name string `xml:"name,attr"` Value string `xml:"left,attr"` + ValueNew string `xml:"type,attr"` Right string `xml:"right,attr"` Default string `xml:"default,attr"` PureGoType string @@ -262,17 +263,17 @@ func (f *Function) IsJNIGeneric() bool { //TODO: func (f *Function) IsSupported() bool { - //if utils.QT_VERSION() == "5.8.0" { - if f.Fullname == "QJSEngine::newQMetaObject" && f.OverloadNumber == "2" || - f.Fullname == "QScxmlTableData::instructions" || f.Fullname == "QScxmlTableData::dataNames" || - f.Fullname == "QScxmlTableData::stateMachineTable" || - f.Fullname == "QTextToSpeech::voiceChanged" { - if !strings.Contains(f.Access, "unsupported") { - f.Access = "unsupported_isBlockedFunction" + if utils.QT_VERSION_NUM() >= 5080 { + if f.Fullname == "QJSEngine::newQMetaObject" && f.OverloadNumber == "2" || + f.Fullname == "QScxmlTableData::instructions" || f.Fullname == "QScxmlTableData::dataNames" || + f.Fullname == "QScxmlTableData::stateMachineTable" || + f.Fullname == "QTextToSpeech::voiceChanged" { + if !strings.Contains(f.Access, "unsupported") { + f.Access = "unsupported_isBlockedFunction" + } + return false } - return false } - //} switch { case @@ -345,6 +346,36 @@ func (f *Function) IsSupported() bool { UseJs() && (strings.Contains(f.Name, "ibraryPath") || f.Fullname == "QLockFile::getLockInfo" || f.Name == "metric" || f.Name == "moveCursor" || f.Name == "inputMethodEvent" || f.Name == "updateInputMethod" || f.Name == "inputMethodQuery"), + f.Name == "qt_metacast", f.Fullname == "QVariant::fromStdVariant", + f.Name == "qt_check_for_QGADGET_macro", + + strings.HasSuffix(f.Name, "_ptr"), + f.ClassName() == "QPixmap" && (f.Name == "setAlphaChannel" || f.Name == "alphaChannel"), + f.Fullname == "QTabletEvent::hiResGlobalPos", + + f.Name == "QOpenGLPaintDevice" && f.OverloadNumber == "5", + + f.Name == "d", f.Name == "setD", + + f.Fullname == "QAbstractItemModelTester::failureReportingMode", + + f.Fullname == "QtRemoteObjects::qt_getEnumMetaObject", + + f.ClassName() == "QWebEnginePage" && (f.Name == "certificateError" || + f.Name == "quotaRequested" || f.Name == "registerProtocolHandlerRequested"), + + f.Fullname == "QWebEngineScriptCollection::insert", + f.Fullname == "QWebEngineScriptCollection::findScript", + f.Fullname == "QWebEngineView::pageAction", + f.Fullname == "QWebEnginePage::save", + f.Fullname == "QWebEngineScriptCollection::remove", + f.Fullname == "QWebEngineScriptCollection::contains", + f.Fullname == "QWebEngineScriptCollection::findScripts", + f.Fullname == "QWebEngineScriptCollection::toList", + f.Fullname == "QWebEngineView::createWindow", + f.Fullname == "QWebEngineView::renderProcessTerminated", + f.Fullname == "QWebEngineView::triggerPageAction", + strings.Contains(f.Access, "unsupported"): { if !strings.Contains(f.Access, "unsupported") { diff --git a/internal/binding/parser/function_fix.go b/internal/binding/parser/function_fix.go index 226d2784..36f413c6 100644 --- a/internal/binding/parser/function_fix.go +++ b/internal/binding/parser/function_fix.go @@ -4,6 +4,8 @@ import ( "fmt" "strconv" "strings" + + "github.com/therecipe/qt/internal/utils" ) func (f *Function) fix() { @@ -13,11 +15,22 @@ func (f *Function) fix() { f.fixOverload() f.fixOverload_Version() - f.fixGeneric() + //f.fixGeneric() } func (f *Function) fixGeneral() { + if utils.QT_VERSION_NUM() >= 5110 { + for _, p := range f.Parameters { + if p.Value == "" { + p.Value = p.ValueNew + } + if p.Default == "nullptr" { + p.Default = "Q_NULLPTR" + } + } + } + //linux fixes if f.Fullname == "QThread::start" { @@ -96,20 +109,40 @@ func (f *Function) fixGeneral_Version() { f.Overload = true } } + case "QAndroidJniEnvironment::javaVM": + { + f.Output = strings.Replace(f.Output, "int *", "JavaVM *", -1) + f.Signature = strings.Replace(f.Signature, "int *", "JavaVM *", -1) + } + case "QAndroidJniObject::fromLocalRef": + { + f.Parameters[0].Value = strings.Replace(f.Parameters[0].Value, "int", "jobject", -1) + f.Signature = strings.Replace(f.Signature, "int", "jobject", -1) + } + case "QAndroidJniObject::QAndroidJniObject": + { + if strings.HasSuffix(f.Href, "5") { + f.Parameters[0].Value = strings.Replace(f.Parameters[0].Value, "int", "jobject", -1) + f.Signature = strings.Replace(f.Signature, "int", "jobject", -1) + } + } } } func (f *Function) fixOverload() { if strings.Contains(f.Href, "-") { - var tmp, err = strconv.Atoi(strings.Split(f.Href, "-")[1]) + tmp, err := strconv.Atoi(strings.Split(f.Href, "-")[1]) if err == nil && tmp > 0 { f.Overload = true - tmp++ - f.OverloadNumber = strconv.Itoa(tmp) + f.OverloadNumber = strconv.Itoa(tmp + 1) } } + if f.OverloadNumber == "1" { + f.OverloadNumber = "2" + } + if f.OverloadNumber != "0" { return } @@ -246,6 +279,27 @@ func (f *Function) fixGenericInput() { if len(f.OgParameters) == 0 && !skipOG { for _, p := range f.Parameters { + if p.Default == "..." { + switch f.Name { + case "QPaintEngine": + p.Default = "PaintEngineFeatures()" + case "QLayoutItem": + p.Default = "Qt::Alignment()" + case "QBluetoothLocalDevice", "QWebEngineUrlRequestInterceptor": + p.Default = "Q_NULLPTR" + case "QMediaPlayer", "QQuickImageProvider": + p.Default = "Flags()" + case "QModbusRequest", "QModbusResponse": + p.Default = "QByteArray()" + case "QGeoServiceProvider": + p.Default = "QVariantMap()" + default: + p.Default = "Qt::WindowFlags()" + } + } + if strings.HasPrefix(p.Default, "DECLARE_READING") { + p.Default = "" + } f.OgParameters = append(f.OgParameters, *p) } } @@ -335,6 +389,7 @@ func (c *Class) FixGenericHelper() { } for _, f := range class.Functions { //TODO: needed because there could be unfixed subclasses; delay this to later (also check for GetAllBases or GetBases in parser) + f.fixGeneral() f.fixGeneric() if IsPackedList(CleanValue(f.Output)) || IsPackedMap(CleanValue(f.Output)) { diff --git a/internal/binding/parser/module_remove.go b/internal/binding/parser/module_remove.go index 4cfa53bc..41119880 100644 --- a/internal/binding/parser/module_remove.go +++ b/internal/binding/parser/module_remove.go @@ -6,12 +6,10 @@ func (m *Module) remove() { func (m *Module) removeClasses() { for _, c := range SortedClassesForModule(m.Project, false) { - switch { - case c.Status == "obsolete", c.Status == "compat", + case !(c.Access == "public" || c.Access == "protected"), c.Name == "qoutputrange": - delete(State.ClassMap, c.Name) } } diff --git a/internal/binding/templater/template_cpp.go b/internal/binding/templater/template_cpp.go index c78246b1..08b1f62d 100644 --- a/internal/binding/templater/template_cpp.go +++ b/internal/binding/templater/template_cpp.go @@ -588,7 +588,8 @@ func preambleCpp(module string, input []byte, mode int, target, tags string) []b "QRemoteObjectPackets", "QRemoteObjectStringLiterals", "ui", - "QStringList": + "QStringList", + "QtDwmApiDll": { continue } diff --git a/internal/ci/darwin.sh b/internal/ci/darwin.sh index e85ecbbb..4599a34a 100755 --- a/internal/ci/darwin.sh +++ b/internal/ci/darwin.sh @@ -14,7 +14,7 @@ then brew update brew install qt5 brew outdated qt5 || brew upgrade qt5 - ln -s /usr/local/Cellar/qt/5.10.0 $HOME/Desktop/Qt5.10.0 + ln -s /usr/local/Cellar/qt/5.11.1 $HOME/Desktop/Qt5.11.1 else #download and install qt QT=qt-unified-mac-x64-online diff --git a/internal/ci/iscript.qs b/internal/ci/iscript.qs index ac146f20..2d2a562f 100644 --- a/internal/ci/iscript.qs +++ b/internal/ci/iscript.qs @@ -36,36 +36,36 @@ Controller.prototype.ComponentSelectionPageCallback = function() { if (installer.value("DARWIN") == "true") { - gui.currentPageWidget().selectComponent("qt.qt5.5100.clang_64"); + gui.currentPageWidget().selectComponent("qt.qt5.5111.clang_64"); } if (installer.value("IOS") == "true") { - gui.currentPageWidget().selectComponent("qt.qt5.5100.ios"); + gui.currentPageWidget().selectComponent("qt.qt5.5111.ios"); } if (installer.value("WINDOWS") == "true") { - gui.currentPageWidget().selectComponent("qt.qt5.5100.win32_mingw53"); + gui.currentPageWidget().selectComponent("qt.qt5.5111.win32_mingw53"); } if (installer.value("LINUX") == "true") { - gui.currentPageWidget().selectComponent("qt.qt5.5100.gcc_64"); + gui.currentPageWidget().selectComponent("qt.qt5.5111.gcc_64"); } - gui.currentPageWidget().selectComponent("qt.qt5.5100.qtvirtualkeyboard"); - gui.currentPageWidget().selectComponent("qt.qt5.5100.qtscript"); - gui.currentPageWidget().selectComponent("qt.qt5.5100.qtremoteobjects"); - gui.currentPageWidget().selectComponent("qt.qt5.5100.qtpurchasing"); - gui.currentPageWidget().selectComponent("qt.qt5.5100.qtnetworkauth"); - gui.currentPageWidget().selectComponent("qt.qt5.5100.qtdatavis3d"); - gui.currentPageWidget().selectComponent("qt.qt5.5100.qtcharts"); - gui.currentPageWidget().selectComponent("qt.qt5.5100.qtwebengine"); - gui.currentPageWidget().selectComponent("qt.qt5.5100.qtwebglplugin"); + gui.currentPageWidget().selectComponent("qt.qt5.5111.qtvirtualkeyboard"); + gui.currentPageWidget().selectComponent("qt.qt5.5111.qtscript"); + gui.currentPageWidget().selectComponent("qt.qt5.5111.qtremoteobjects"); + gui.currentPageWidget().selectComponent("qt.qt5.5111.qtpurchasing"); + gui.currentPageWidget().selectComponent("qt.qt5.5111.qtnetworkauth"); + gui.currentPageWidget().selectComponent("qt.qt5.5111.qtdatavis3d"); + gui.currentPageWidget().selectComponent("qt.qt5.5111.qtcharts"); + gui.currentPageWidget().selectComponent("qt.qt5.5111.qtwebengine"); + gui.currentPageWidget().selectComponent("qt.qt5.5111.qtwebglplugin"); - gui.currentPageWidget().selectComponent("qt.qt5.5100.android_armv7"); - gui.currentPageWidget().selectComponent("qt.qt5.5100.android_x86"); + gui.currentPageWidget().selectComponent("qt.qt5.5111.android_armv7"); + gui.currentPageWidget().selectComponent("qt.qt5.5111.android_x86"); gui.clickButton(buttons.NextButton); } diff --git a/internal/ci/linux.sh b/internal/ci/linux.sh index 2e1b6d36..822de64f 100755 --- a/internal/ci/linux.sh +++ b/internal/ci/linux.sh @@ -13,14 +13,6 @@ export QT_QPA_PLATFORM=minimal #additional deps for multimedia sudo apt-get -y -qq install libpulse-dev && sudo apt-get -qq clean -#replace gcc4 with gcc5 -sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test -sudo apt-get -qq update -sudo apt-get -y -qq install gcc-5 g++-5 && sudo apt-get -qq clean -sudo rm -f /usr/bin/gcc; sudo ln -s /usr/bin/gcc-5 /usr/bin/gcc -sudo rm -f /usr/bin/g++; sudo ln -s /usr/bin/g++-5 /usr/bin/g++ - - if [ "$QT_PKG_CONFIG" == "true" ] then #download and install qt diff --git a/internal/docker/js/Dockerfile b/internal/docker/js/Dockerfile index e12c01a7..18cf9e75 100644 --- a/internal/docker/js/Dockerfile +++ b/internal/docker/js/Dockerfile @@ -1,37 +1,35 @@ -FROM therecipe/qt:linux +FROM therecipe/qt:js_base LABEL maintainer therecipe RUN df -h -RUN apt-get -qq update && apt-get -y -qq install python2.7 nodejs cmake default-jre && apt-get -qq clean - - -RUN git clone https://github.com/juj/emsdk.git $HOME/emsdk && cd $HOME/emsdk && ./emsdk install latest && ./emsdk activate latest - - -RUN git clone -b wip/webassembly https://code.qt.io/qt/qtbase.git /opt/qtbase #8a63cd94fbba0afafc00b467277a2648143d2890 -RUN git clone -b wip/webassembly https://code.qt.io/qt/qtdeclarative.git /opt/qtdeclarative #5f4698c4e7952d64e78e3a06de5ac28d68415b19 -RUN git clone -b wip/webassembly https://code.qt.io/qt/qtwebsockets.git /opt/qtwebsockets #5c64a39482cba6ad4bc4337bd7475f96cfad9109 -RUN git clone https://code.qt.io/qt/qtgraphicaleffects.git /opt/qtgraphicaleffects -RUN git clone https://code.qt.io/qt/qtquickcontrols.git /opt/qtquickcontrols -RUN git clone https://code.qt.io/qt/qtquickcontrols2.git /opt/qtquickcontrols2 -RUN git clone https://code.qt.io/qt/qtsvg.git /opt/qtsvg -RUN git clone https://code.qt.io/qt/qtcharts.git /opt/qtcharts -RUN git clone https://code.qt.io/qt/qtxmlpatterns.git /opt/qtxmlpatterns +RUN git clone -b wip/webassembly https://code.qt.io/qt/qtdeclarative.git /opt/qtdeclarative +RUN git clone -b wip/webassembly https://code.qt.io/qt/qtwebsockets.git /opt/qtwebsockets +RUN git clone -b 5.11.0 https://code.qt.io/qt/qtgraphicaleffects.git /opt/qtgraphicaleffects +RUN git clone -b 5.11.0 https://code.qt.io/qt/qtquickcontrols.git /opt/qtquickcontrols +RUN git clone -b 5.11.0 https://code.qt.io/qt/qtquickcontrols2.git /opt/qtquickcontrols2 +RUN git clone -b 5.11.0 https://code.qt.io/qt/qtsvg.git /opt/qtsvg +RUN git clone -b 5.11.0 https://code.qt.io/qt/qtcharts.git /opt/qtcharts +RUN git clone -b 5.11.0 https://code.qt.io/qt/qtxmlpatterns.git /opt/qtxmlpatterns +RUN git clone -b 5.11.0 https://code.qt.io/qt/qtcanvas3d.git /opt/qtcanvas3d +RUN git clone -b 5.11.0 https://code.qt.io/qt/qtdatavis3d.git /opt/qtdatavis3d +RUN git clone -b 5.11.0 https://code.qt.io/qt/qtmultimedia.git /opt/qtmultimedia RUN echo "#!/bin/bash\ncd $HOME/emsdk && source ./emsdk_env.sh \ - && cd /opt/qtbase && ./configure -xplatform emscripten -developer-build -release -static -no-thread -nomake tests -nomake examples -no-dbus -no-headersclean -system-libpng -no-ssl -no-warnings-are-errors -confirm-license -opensource && make \ && cd /opt/qtdeclarative && /opt/qtbase/bin/qmake *.pro && make \ && cd /opt/qtwebsockets && /opt/qtbase/bin/qmake *.pro && make \ - && cd /opt/qtgraphicaleffects && git checkout 80b9da7ac42468453b7d130bd0a322a1312ad0e3 && /opt/qtbase/bin/qmake *.pro && make \ - && cd /opt/qtquickcontrols && git checkout 88ff352d5145b5761179ee42164a0bfcd4f1d54a && /opt/qtbase/bin/qmake *.pro && make \ - && cd /opt/qtquickcontrols2 && git checkout 60f3106b3fe537f1f26230bf0b59525cf98d6789 && /opt/qtbase/bin/qmake *.pro && make \ - && cd /opt/qtsvg && git checkout b1ca1bb725fd8768782d8105b782932f95b70908 && /opt/qtbase/bin/qmake *.pro && make \ - && cd /opt/qtcharts && git checkout 4f66d1ffeecd95b4bf6666b71536c42dea7450ed && /opt/qtbase/bin/qmake *.pro && make \ - && cd /opt/qtxmlpatterns && git checkout 17c45f3235f0bcb224379b0d1059c7669eb91487 && /opt/qtbase/bin/qmake *.pro && make" > $HOME/build.sh \ + && cd /opt/qtgraphicaleffects && /opt/qtbase/bin/qmake *.pro && make \ + && cd /opt/qtquickcontrols && /opt/qtbase/bin/qmake *.pro && make \ + && cd /opt/qtquickcontrols2 && /opt/qtbase/bin/qmake *.pro && make \ + && cd /opt/qtsvg && /opt/qtbase/bin/qmake *.pro && make \ + && cd /opt/qtcharts && /opt/qtbase/bin/qmake *.pro && make \ + && cd /opt/qtxmlpatterns && /opt/qtbase/bin/qmake *.pro && make \ + && cd /opt/qtcanvas3d && /opt/qtbase/bin/qmake *.pro && make \ + && cd /opt/qtdatavis3d && /opt/qtbase/bin/qmake *.pro && make \ + && cd /opt/qtmultimedia && /opt/qtbase/bin/qmake *.pro && make" > $HOME/build.sh \ && chmod +x $HOME/build.sh && $HOME/build.sh diff --git a/internal/docker/js_base/Dockerfile b/internal/docker/js_base/Dockerfile new file mode 100644 index 00000000..a75f989e --- /dev/null +++ b/internal/docker/js_base/Dockerfile @@ -0,0 +1,19 @@ +FROM therecipe/qt:linux +LABEL maintainer therecipe + + +RUN df -h + + +RUN apt-get -qq update && apt-get -y -qq install python2.7 nodejs cmake default-jre && apt-get -qq clean + + +RUN git clone https://github.com/juj/emsdk.git $HOME/emsdk && cd $HOME/emsdk && ./emsdk install latest && ./emsdk activate latest + + +RUN git clone -b wip/webassembly https://code.qt.io/qt/qtbase.git /opt/qtbase + + +RUN echo "#!/bin/bash\ncd $HOME/emsdk && source ./emsdk_env.sh \ + && cd /opt/qtbase && ./configure -xplatform emscripten -developer-build -release -static -no-thread -nomake tests -nomake examples -no-dbus -no-headersclean -system-libpng -no-ssl -no-warnings-are-errors -confirm-license -opensource && make" > $HOME/build.sh \ + && chmod +x $HOME/build.sh && $HOME/build.sh \ No newline at end of file diff --git a/internal/docker/linux/Dockerfile b/internal/docker/linux/Dockerfile index e23bb859..cfbb3a53 100644 --- a/internal/docker/linux/Dockerfile +++ b/internal/docker/linux/Dockerfile @@ -15,7 +15,7 @@ RUN apt-get -qq update && apt-get -y -qq install bison build-essential gperf fle RUN apt-get -qq update && apt-get -y -qq install libssl-dev libxcursor-dev libxcomposite-dev libxdamage-dev libxrandr-dev libfontconfig1-dev libxss-dev libsrtp0-dev libwebp-dev libjsoncpp-dev libopus-dev libavutil-dev libavformat-dev libavcodec-dev libevent-dev libxslt1-dev && apt-get -qq clean -ENV GO go1.10.linux-amd64.tar.gz +ENV GO go1.10.3.linux-amd64.tar.gz RUN curl -sL --retry 10 --retry-delay 10 -o /tmp/$GO https://storage.googleapis.com/golang/$GO && tar -xzf /tmp/$GO -C /usr/local && rm -f /tmp/$GO ENV PATH /usr/local/go/bin:$PATH ENV GOPATH $HOME/work diff --git a/internal/docker/sailfish/Dockerfile b/internal/docker/sailfish/Dockerfile index fcc2c75f..4d807de2 100644 --- a/internal/docker/sailfish/Dockerfile +++ b/internal/docker/sailfish/Dockerfile @@ -1,4 +1,4 @@ -FROM i386/ubuntu:14.04 +FROM i386/ubuntu:16.04 LABEL maintainer therecipe @@ -15,7 +15,7 @@ RUN apt-get -qq update && apt-get -y -qq install curl git && apt-get -qq clean RUN apt-get -qq update && apt-get -y -qq purge python && apt-get -qq clean -ENV GO go1.10.linux-386.tar.gz +ENV GO go1.10.3.linux-386.tar.gz RUN curl -sL --retry 10 --retry-delay 10 -o /tmp/$GO https://storage.googleapis.com/golang/$GO && tar -xzf /tmp/$GO -C /usr/local && rm -f /tmp/$GO ENV PATH /usr/local/go/bin:$PATH ENV GOPATH $HOME/work diff --git a/internal/docker/trigger/Dockerfile b/internal/docker/trigger/Dockerfile index 571771c0..a3d722ae 100644 --- a/internal/docker/trigger/Dockerfile +++ b/internal/docker/trigger/Dockerfile @@ -1,4 +1,4 @@ -FROM ubuntu:14.04 +FROM ubuntu:16.04 LABEL maintainer therecipe @@ -39,6 +39,8 @@ RUN curl -H "Content-Type: application/json" --data '{"docker_tag": "ubports_arm RUN sleep 65 RUN curl -H "Content-Type: application/json" --data '{"docker_tag": "ubports_64_xenial"}' -X POST https://registry.hub.docker.com/u/therecipe/qt/trigger/$SECRET/ RUN sleep 65 +RUN curl -H "Content-Type: application/json" --data '{"docker_tag": "js_base"}' -X POST https://registry.hub.docker.com/u/therecipe/qt/trigger/$SECRET/ +RUN sleep 65 RUN curl -H "Content-Type: application/json" --data '{"docker_tag": "js"}' -X POST https://registry.hub.docker.com/u/therecipe/qt/trigger/$SECRET/ RUN sleep 65 diff --git a/internal/docker/ubports_64_vivid/Dockerfile b/internal/docker/ubports_64_vivid/Dockerfile index d9b4b4d2..fd107735 100644 --- a/internal/docker/ubports_64_vivid/Dockerfile +++ b/internal/docker/ubports_64_vivid/Dockerfile @@ -15,7 +15,7 @@ RUN apt-get -qq update && apt-get -y -qq install qt*5-doc-html && apt-get -qq cl RUN rm -R /usr/local/go | true -ENV GO go1.10.linux-amd64.tar.gz +ENV GO go1.10.3.linux-amd64.tar.gz RUN curl -sL --retry 10 --retry-delay 10 -o /tmp/$GO https://storage.googleapis.com/golang/$GO && tar -xzf /tmp/$GO -C /usr/local && rm -f /tmp/$GO ENV PATH /usr/local/go/bin:$PATH ENV GOPATH $HOME/work diff --git a/internal/docker/ubports_64_xenial/Dockerfile b/internal/docker/ubports_64_xenial/Dockerfile index f58e3578..01ac2ee2 100644 --- a/internal/docker/ubports_64_xenial/Dockerfile +++ b/internal/docker/ubports_64_xenial/Dockerfile @@ -14,7 +14,7 @@ RUN apt-get -qq update && apt-get -y -qq install curl git && apt-get -qq clean RUN rm -R /usr/local/go | true -ENV GO go1.10.linux-amd64.tar.gz +ENV GO go1.10.3.linux-amd64.tar.gz RUN curl -sL --retry 10 --retry-delay 10 -o /tmp/$GO https://storage.googleapis.com/golang/$GO && tar -xzf /tmp/$GO -C /usr/local && rm -f /tmp/$GO ENV PATH /usr/local/go/bin:$PATH ENV GOPATH $HOME/work diff --git a/internal/docker/ubports_arm_vivid/Dockerfile b/internal/docker/ubports_arm_vivid/Dockerfile index f21404d8..d18bdaa3 100644 --- a/internal/docker/ubports_arm_vivid/Dockerfile +++ b/internal/docker/ubports_arm_vivid/Dockerfile @@ -15,7 +15,7 @@ RUN apt-get -qq update && apt-get -y -qq install qt*5-doc-html && apt-get -qq cl RUN rm -R /usr/local/go | true -ENV GO go1.10.linux-amd64.tar.gz +ENV GO go1.10.3.linux-amd64.tar.gz RUN curl -sL --retry 10 --retry-delay 10 -o /tmp/$GO https://storage.googleapis.com/golang/$GO && tar -xzf /tmp/$GO -C /usr/local && rm -f /tmp/$GO ENV PATH /usr/local/go/bin:$PATH ENV GOPATH $HOME/work diff --git a/internal/docker/ubports_arm_xenial/Dockerfile b/internal/docker/ubports_arm_xenial/Dockerfile index c259f01b..d0cf3bea 100644 --- a/internal/docker/ubports_arm_xenial/Dockerfile +++ b/internal/docker/ubports_arm_xenial/Dockerfile @@ -14,7 +14,7 @@ RUN apt-get -qq update && apt-get -y -qq install curl git && apt-get -qq clean RUN rm -R /usr/local/go | true -ENV GO go1.10.linux-amd64.tar.gz +ENV GO go1.10.3.linux-amd64.tar.gz RUN curl -sL --retry 10 --retry-delay 10 -o /tmp/$GO https://storage.googleapis.com/golang/$GO && tar -xzf /tmp/$GO -C /usr/local && rm -f /tmp/$GO ENV PATH /usr/local/go/bin:$PATH ENV GOPATH $HOME/work diff --git a/internal/examples/3rdparty/fluid/init.go b/internal/examples/3rdparty/fluid/init.go index f09e10f1..19d3f5bd 100644 --- a/internal/examples/3rdparty/fluid/init.go +++ b/internal/examples/3rdparty/fluid/init.go @@ -49,13 +49,13 @@ func main() { var qmake string switch target { case "darwin": - qmake = filepath.Join(os.Getenv("QT_DIR"), "5.10.1", "clang_64", "bin", "qmake") + qmake = filepath.Join(os.Getenv("QT_DIR"), "5.11.1", "clang_64", "bin", "qmake") case "linux": - qmake = filepath.Join(os.Getenv("QT_DIR"), "5.10.1", "gcc_64", "bin", "qmake") + qmake = filepath.Join(os.Getenv("QT_DIR"), "5.11.1", "gcc_64", "bin", "qmake") case "android": - qmake = filepath.Join(os.Getenv("QT_DIR"), "5.10.1", "android_armv7", "bin", "qmake") + qmake = filepath.Join(os.Getenv("QT_DIR"), "5.11.1", "android_armv7", "bin", "qmake") } ndkPATH, ndkOK := os.LookupEnv("ANDROID_NDK_DIR") diff --git a/internal/examples/3rdparty/kirigami/init.go b/internal/examples/3rdparty/kirigami/init.go index 3beeafb6..f17fd6a3 100644 --- a/internal/examples/3rdparty/kirigami/init.go +++ b/internal/examples/3rdparty/kirigami/init.go @@ -40,13 +40,13 @@ func main() { var qmake string switch target { case "darwin": - qmake = filepath.Join(os.Getenv("QT_DIR"), "5.10.1", "clang_64", "bin", "qmake") + qmake = filepath.Join(os.Getenv("QT_DIR"), "5.11.1", "clang_64", "bin", "qmake") case "linux": - qmake = filepath.Join(os.Getenv("QT_DIR"), "5.10.1", "gcc_64", "bin", "qmake") + qmake = filepath.Join(os.Getenv("QT_DIR"), "5.11.1", "gcc_64", "bin", "qmake") case "android": - qmake = filepath.Join(os.Getenv("QT_DIR"), "5.10.1", "android_armv7", "bin", "qmake") + qmake = filepath.Join(os.Getenv("QT_DIR"), "5.11.1", "android_armv7", "bin", "qmake") } ndkPATH, ndkOK := os.LookupEnv("ANDROID_NDK_DIR") diff --git a/internal/examples/3rdparty/printslides/init.go b/internal/examples/3rdparty/printslides/init.go index e7eaa309..e6834683 100644 --- a/internal/examples/3rdparty/printslides/init.go +++ b/internal/examples/3rdparty/printslides/init.go @@ -40,13 +40,13 @@ func main() { var qmake string switch target { case "darwin": - qmake = filepath.Join(os.Getenv("QT_DIR"), "5.10.1", "clang_64", "bin", "qmake") + qmake = filepath.Join(os.Getenv("QT_DIR"), "5.11.1", "clang_64", "bin", "qmake") case "linux": - qmake = filepath.Join(os.Getenv("QT_DIR"), "5.10.1", "gcc_64", "bin", "qmake") + qmake = filepath.Join(os.Getenv("QT_DIR"), "5.11.1", "gcc_64", "bin", "qmake") case "android": - qmake = filepath.Join(os.Getenv("QT_DIR"), "5.10.1", "android_armv7", "bin", "qmake") + qmake = filepath.Join(os.Getenv("QT_DIR"), "5.11.1", "android_armv7", "bin", "qmake") } ndkPATH, ndkOK := os.LookupEnv("ANDROID_NDK_DIR") diff --git a/internal/examples/3rdparty/qml-material/init.go b/internal/examples/3rdparty/qml-material/init.go index 0860e83c..8b74dd58 100644 --- a/internal/examples/3rdparty/qml-material/init.go +++ b/internal/examples/3rdparty/qml-material/init.go @@ -40,13 +40,13 @@ func main() { var qmake string switch target { case "darwin": - qmake = filepath.Join(os.Getenv("QT_DIR"), "5.10.1", "clang_64", "bin", "qmake") + qmake = filepath.Join(os.Getenv("QT_DIR"), "5.11.1", "clang_64", "bin", "qmake") case "linux": - qmake = filepath.Join(os.Getenv("QT_DIR"), "5.10.1", "gcc_64", "bin", "qmake") + qmake = filepath.Join(os.Getenv("QT_DIR"), "5.11.1", "gcc_64", "bin", "qmake") case "android": - qmake = filepath.Join(os.Getenv("QT_DIR"), "5.10.1", "android_armv7", "bin", "qmake") + qmake = filepath.Join(os.Getenv("QT_DIR"), "5.11.1", "android_armv7", "bin", "qmake") } ndkPATH, ndkOK := os.LookupEnv("ANDROID_NDK_DIR") diff --git a/internal/examples/3rdparty/quickflux/init.go b/internal/examples/3rdparty/quickflux/init.go index 047cd2c1..031b0b88 100644 --- a/internal/examples/3rdparty/quickflux/init.go +++ b/internal/examples/3rdparty/quickflux/init.go @@ -47,13 +47,13 @@ func main() { var qmake string switch target { case "darwin": - qmake = filepath.Join(os.Getenv("QT_DIR"), "5.10.1", "clang_64", "bin", "qmake") + qmake = filepath.Join(os.Getenv("QT_DIR"), "5.11.1", "clang_64", "bin", "qmake") case "linux": - qmake = filepath.Join(os.Getenv("QT_DIR"), "5.10.1", "gcc_64", "bin", "qmake") + qmake = filepath.Join(os.Getenv("QT_DIR"), "5.11.1", "gcc_64", "bin", "qmake") case "android": - qmake = filepath.Join(os.Getenv("QT_DIR"), "5.10.1", "android_armv7", "bin", "qmake") + qmake = filepath.Join(os.Getenv("QT_DIR"), "5.11.1", "android_armv7", "bin", "qmake") } qCmd := exec.Command(qmake, filepath.Join(pwd, "quickflux", "quickflux.pri")) diff --git a/internal/examples/androidextras/notification/android-emulator/AndroidManifest.xml b/internal/examples/androidextras/notification/android-emulator/AndroidManifest.xml index d0ae83d9..733c9a71 100644 --- a/internal/examples/androidextras/notification/android-emulator/AndroidManifest.xml +++ b/internal/examples/androidextras/notification/android-emulator/AndroidManifest.xml @@ -25,7 +25,7 @@ - + --> diff --git a/internal/examples/webchannel/shared/websockettransport.go b/internal/examples/webchannel/shared/websockettransport.go index 8004c99f..feb902ef 100644 --- a/internal/examples/webchannel/shared/websockettransport.go +++ b/internal/examples/webchannel/shared/websockettransport.go @@ -29,7 +29,7 @@ func (t *WebSocketTransport) Init(socket *websockets.QWebSocket) { func (t *WebSocketTransport) sendMessage(message *core.QJsonObject) { doc := core.NewQJsonDocument2(message) - t.m_socket.SendTextMessage(doc.ToJson(core.QJsonDocument__Compact).ConstData()) + t.m_socket.SendTextMessage(doc.ToJson2(core.QJsonDocument__Compact).ConstData()) } func (t *WebSocketTransport) textMessageReceived(messageData string) { diff --git a/internal/examples/widgets/textedit/main.go b/internal/examples/widgets/textedit/main.go index a15120ea..2c3f2987 100644 --- a/internal/examples/widgets/textedit/main.go +++ b/internal/examples/widgets/textedit/main.go @@ -26,7 +26,7 @@ func main() { var mw = initTextEdit() - var availableGeometry = widgets.QApplication_Desktop().AvailableGeometry2(mw) + var availableGeometry = widgets.QApplication_Desktop().AvailableGeometry(mw) //mw.Resize2(availableGeometry.Width()/2, (availableGeometry.Height()*2)/3) mw.Resize2(600, 450) mw.Move2((availableGeometry.Width()-mw.Width())/2, diff --git a/internal/utils/env.go b/internal/utils/env.go index 788df29f..2b58cba8 100644 --- a/internal/utils/env.go +++ b/internal/utils/env.go @@ -21,7 +21,7 @@ func QT_VERSION() string { } return qT_VERSION_CACHE } - return "5.10.0" + return "5.11.1" } func QT_VERSION_NUM() int { diff --git a/internal/vagrant/darwin/Vagrantfile b/internal/vagrant/darwin/Vagrantfile index 15d1a7c6..70d15df5 100644 --- a/internal/vagrant/darwin/Vagrantfile +++ b/internal/vagrant/darwin/Vagrantfile @@ -7,7 +7,7 @@ Vagrant.configure("2") do |config| config.vm.provider "virtualbox" do |v| v.linked_clone = true - v.memory = 6144 + v.memory = 8192 v.customize ["modifyvm", :id, "--vram", "256"] v.cpus = 1 v.customize ["modifyvm", :id, "--accelerate2dvideo", "on"] diff --git a/internal/vagrant/linux/Vagrantfile b/internal/vagrant/linux/Vagrantfile index 957c8c30..bac65fd7 100644 --- a/internal/vagrant/linux/Vagrantfile +++ b/internal/vagrant/linux/Vagrantfile @@ -1,11 +1,11 @@ Vagrant.configure("2") do |config| - config.vm.box = "ubuntu/trusty64" + config.vm.box = "ubuntu/xenial64" config.vm.synced_folder ENV['GOPATH'], "/media/sf_GOPATH0", SharedFoldersEnableSymlinksCreate: false config.ssh.keep_alive = true config.vm.provider "virtualbox" do |v| v.linked_clone = true - v.memory = 6144 + v.memory = 8192 v.customize ["modifyvm", :id, "--vram", "256"] v.cpus = 1 v.customize ["modifyvm", :id, "--accelerate3d", "on"] diff --git a/internal/vagrant/pre.bat b/internal/vagrant/pre.bat index 15aaeb1a..90617093 100644 --- a/internal/vagrant/pre.bat +++ b/internal/vagrant/pre.bat @@ -32,7 +32,7 @@ set PATH=%PATH%;C:\Progra~1\Git\bin ::install Go + pull repo -set GO=go1.10.windows-amd64.msi +set GO=go1.10.3.windows-amd64.msi curl -sL --retry 10 --retry-delay 10 -o %TMP%\%GO% http://storage.googleapis.com/golang/%GO% %TMP%\%GO% /passive /norestart del %TMP%\%GO% /Q diff --git a/internal/vagrant/pre.sh b/internal/vagrant/pre.sh index e43f5b65..c3412bb8 100755 --- a/internal/vagrant/pre.sh +++ b/internal/vagrant/pre.sh @@ -3,14 +3,14 @@ set -ev if [[ "$OS" == "darwin" ]]; then export PROF=.bash_profile - export GO=go1.10.darwin-amd64.tar.gz + export GO=go1.10.3.darwin-amd64.tar.gz else if [[ "$OS" == "linux" ]]; then export PROF=.profile - export GO=go1.10.linux-amd64.tar.gz + export GO=go1.10.3.linux-amd64.tar.gz sudo apt-get -qq update && sudo apt-get -y -qq install curl git software-properties-common libgl1-mesa-dev fontconfig unzip && sudo apt-get -qq clean - if [[ "$DOCKER" != "true" ]]; then + if false; then sudo apt-get -qq update && sudo apt-get -y -qq install bison build-essential gperf flex ruby python libasound2-dev libbz2-dev libcap-dev libcups2-dev libdrm-dev libegl1-mesa-dev libgcrypt11-dev libnss3-dev libpci-dev libpulse-dev libudev-dev libxtst-dev gyp ninja-build && sudo apt-get -qq clean sudo apt-get -qq update && sudo apt-get -y -qq install libssl-dev libxcursor-dev libxcomposite-dev libxdamage-dev libxrandr-dev libfontconfig1-dev libxss-dev libsrtp0-dev libwebp-dev libjsoncpp-dev libopus-dev libavutil-dev libavformat-dev libavcodec-dev libevent-dev libxslt1-dev && sudo apt-get -qq clean diff --git a/internal/vagrant/windows/Vagrantfile b/internal/vagrant/windows/Vagrantfile index 186a41bb..d48b7682 100644 --- a/internal/vagrant/windows/Vagrantfile +++ b/internal/vagrant/windows/Vagrantfile @@ -5,7 +5,7 @@ Vagrant.configure("2") do |config| config.vm.provider "virtualbox" do |v| v.linked_clone = true - v.memory = 6144 + v.memory = 8192 v.customize ["modifyvm", :id, "--vram", "256"] v.cpus = 1 v.customize ["modifyvm", :id, "--accelerate3d", "on"] diff --git a/qml/qml.go b/qml/qml.go index ac5b0c29..ea9fe5a6 100644 --- a/qml/qml.go +++ b/qml/qml.go @@ -7108,14 +7108,12 @@ func (ptr *QV4) DestroyQV4() { type QV4__PropertyFlag int64 const ( - QV4__Attr_Data QV4__PropertyFlag = QV4__PropertyFlag(0) - QV4__Attr_Accessor QV4__PropertyFlag = QV4__PropertyFlag(0x1) - QV4__Attr_NotWritable QV4__PropertyFlag = QV4__PropertyFlag(0x2) - QV4__Attr_NotEnumerable QV4__PropertyFlag = QV4__PropertyFlag(0x4) - QV4__Attr_NotConfigurable QV4__PropertyFlag = QV4__PropertyFlag(0x8) - QV4__Attr_ReadOnly QV4__PropertyFlag = QV4__PropertyFlag(QV4__Attr_NotWritable | QV4__Attr_NotEnumerable | QV4__Attr_NotConfigurable) - QV4__Attr_ReadOnly_ButConfigurable QV4__PropertyFlag = QV4__PropertyFlag(QV4__Attr_NotWritable | QV4__Attr_NotEnumerable) - QV4__Attr_Invalid QV4__PropertyFlag = QV4__PropertyFlag(0xff) + QV4__Attr_Data QV4__PropertyFlag = QV4__PropertyFlag(0) + QV4__Attr_Accessor QV4__PropertyFlag = QV4__PropertyFlag(0x1) + QV4__Attr_NotWritable QV4__PropertyFlag = QV4__PropertyFlag(0x2) + QV4__Attr_NotEnumerable QV4__PropertyFlag = QV4__PropertyFlag(0x4) + QV4__Attr_NotConfigurable QV4__PropertyFlag = QV4__PropertyFlag(0x8) + QV4__Attr_Invalid QV4__PropertyFlag = QV4__PropertyFlag(0xff) ) //go:generate stringer -type=QV4__TypeHint diff --git a/quick/quick.cpp b/quick/quick.cpp index a90bae07..6f6aa3f5 100644 --- a/quick/quick.cpp +++ b/quick/quick.cpp @@ -39,6 +39,7 @@ #include #include #include +#include #include #include #include @@ -99,6 +100,8 @@ #include #include #include +#include +#include #include #include #include @@ -6312,6 +6315,10 @@ void QSGNode_PreprocessDefault(void* ptr) static_cast(ptr)->QSGTransformNode::preprocess(); } else if (dynamic_cast(static_cast(ptr))) { static_cast(ptr)->QSGOpacityNode::preprocess(); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QSGSimpleTextureNode::preprocess(); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QSGSimpleRectNode::preprocess(); } else if (dynamic_cast(static_cast(ptr))) { static_cast(ptr)->QSGRectangleNode::preprocess(); } else if (dynamic_cast(static_cast(ptr))) { @@ -6411,6 +6418,10 @@ char QSGNode_IsSubtreeBlockedDefault(void* ptr) return static_cast(ptr)->QSGTransformNode::isSubtreeBlocked(); } else if (dynamic_cast(static_cast(ptr))) { return static_cast(ptr)->QSGOpacityNode::isSubtreeBlocked(); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QSGSimpleTextureNode::isSubtreeBlocked(); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QSGSimpleRectNode::isSubtreeBlocked(); } else if (dynamic_cast(static_cast(ptr))) { return static_cast(ptr)->QSGRectangleNode::isSubtreeBlocked(); } else if (dynamic_cast(static_cast(ptr))) { @@ -6753,6 +6764,138 @@ void* QSGRendererInterface_GetResource2Default(void* ptr, void* window, char* re return static_cast(ptr)->QSGRendererInterface::getResource(static_cast(window), const_cast(resource)); } +class MyQSGSimpleRectNode: public QSGSimpleRectNode +{ +public: + MyQSGSimpleRectNode() : QSGSimpleRectNode() {}; + MyQSGSimpleRectNode(const QRectF &rect, const QColor &color) : QSGSimpleRectNode(rect, color) {}; + void preprocess() { callbackQSGNode_Preprocess(this); }; + bool isSubtreeBlocked() const { return callbackQSGNode_IsSubtreeBlocked(const_cast(static_cast(this))) != 0; }; +}; + +void* QSGSimpleRectNode_NewQSGSimpleRectNode2() +{ + return new MyQSGSimpleRectNode(); +} + +void* QSGSimpleRectNode_NewQSGSimpleRectNode(void* rect, void* color) +{ + return new MyQSGSimpleRectNode(*static_cast(rect), *static_cast(color)); +} + +void QSGSimpleRectNode_SetColor(void* ptr, void* color) +{ + static_cast(ptr)->setColor(*static_cast(color)); +} + +void QSGSimpleRectNode_SetRect(void* ptr, void* rect) +{ + static_cast(ptr)->setRect(*static_cast(rect)); +} + +void QSGSimpleRectNode_SetRect2(void* ptr, double x, double y, double w, double h) +{ + static_cast(ptr)->setRect(x, y, w, h); +} + +void* QSGSimpleRectNode_Color(void* ptr) +{ + return new QColor(static_cast(ptr)->color()); +} + +void* QSGSimpleRectNode_Rect(void* ptr) +{ + return ({ QRectF tmpValue = static_cast(ptr)->rect(); new QRectF(tmpValue.x(), tmpValue.y(), tmpValue.width(), tmpValue.height()); }); +} + +class MyQSGSimpleTextureNode: public QSGSimpleTextureNode +{ +public: + MyQSGSimpleTextureNode() : QSGSimpleTextureNode() {}; + void preprocess() { callbackQSGNode_Preprocess(this); }; + bool isSubtreeBlocked() const { return callbackQSGNode_IsSubtreeBlocked(const_cast(static_cast(this))) != 0; }; +}; + +void* QSGSimpleTextureNode_NewQSGSimpleTextureNode() +{ + return new MyQSGSimpleTextureNode(); +} + +void QSGSimpleTextureNode_SetFiltering(void* ptr, long long filtering) +{ + static_cast(ptr)->setFiltering(static_cast(filtering)); +} + +void QSGSimpleTextureNode_SetOwnsTexture(void* ptr, char owns) +{ + static_cast(ptr)->setOwnsTexture(owns != 0); +} + +void QSGSimpleTextureNode_SetRect(void* ptr, void* r) +{ + static_cast(ptr)->setRect(*static_cast(r)); +} + +void QSGSimpleTextureNode_SetRect2(void* ptr, double x, double y, double w, double h) +{ + static_cast(ptr)->setRect(x, y, w, h); +} + +void QSGSimpleTextureNode_SetSourceRect(void* ptr, void* r) +{ + static_cast(ptr)->setSourceRect(*static_cast(r)); +} + +void QSGSimpleTextureNode_SetSourceRect2(void* ptr, double x, double y, double w, double h) +{ + static_cast(ptr)->setSourceRect(x, y, w, h); +} + +void QSGSimpleTextureNode_SetTexture(void* ptr, void* texture) +{ + static_cast(ptr)->setTexture(static_cast(texture)); +} + +void QSGSimpleTextureNode_SetTextureCoordinatesTransform(void* ptr, long long mode) +{ + static_cast(ptr)->setTextureCoordinatesTransform(static_cast(mode)); +} + +void QSGSimpleTextureNode_DestroyQSGSimpleTextureNode(void* ptr) +{ + static_cast(ptr)->~QSGSimpleTextureNode(); +} + +void* QSGSimpleTextureNode_Rect(void* ptr) +{ + return ({ QRectF tmpValue = static_cast(ptr)->rect(); new QRectF(tmpValue.x(), tmpValue.y(), tmpValue.width(), tmpValue.height()); }); +} + +void* QSGSimpleTextureNode_SourceRect(void* ptr) +{ + return ({ QRectF tmpValue = static_cast(ptr)->sourceRect(); new QRectF(tmpValue.x(), tmpValue.y(), tmpValue.width(), tmpValue.height()); }); +} + +void* QSGSimpleTextureNode_Texture(void* ptr) +{ + return static_cast(ptr)->texture(); +} + +long long QSGSimpleTextureNode_Filtering(void* ptr) +{ + return static_cast(ptr)->filtering(); +} + +long long QSGSimpleTextureNode_TextureCoordinatesTransform(void* ptr) +{ + return static_cast(ptr)->textureCoordinatesTransform(); +} + +char QSGSimpleTextureNode_OwnsTexture(void* ptr) +{ + return static_cast(ptr)->ownsTexture(); +} + class MyQSGTexture: public QSGTexture { public: diff --git a/quick/quick.go b/quick/quick.go index e4878cd3..b0fa7e84 100644 --- a/quick/quick.go +++ b/quick/quick.go @@ -14487,6 +14487,257 @@ func (ptr *QSGSimpleMaterialShader) DestroyQSGSimpleMaterialShader() { } } +type QSGSimpleRectNode struct { + QSGGeometryNode +} + +type QSGSimpleRectNode_ITF interface { + QSGGeometryNode_ITF + QSGSimpleRectNode_PTR() *QSGSimpleRectNode +} + +func (ptr *QSGSimpleRectNode) QSGSimpleRectNode_PTR() *QSGSimpleRectNode { + return ptr +} + +func (ptr *QSGSimpleRectNode) Pointer() unsafe.Pointer { + if ptr != nil { + return ptr.QSGGeometryNode_PTR().Pointer() + } + return nil +} + +func (ptr *QSGSimpleRectNode) SetPointer(p unsafe.Pointer) { + if ptr != nil { + ptr.QSGGeometryNode_PTR().SetPointer(p) + } +} + +func PointerFromQSGSimpleRectNode(ptr QSGSimpleRectNode_ITF) unsafe.Pointer { + if ptr != nil { + return ptr.QSGSimpleRectNode_PTR().Pointer() + } + return nil +} + +func NewQSGSimpleRectNodeFromPointer(ptr unsafe.Pointer) (n *QSGSimpleRectNode) { + n = new(QSGSimpleRectNode) + n.SetPointer(ptr) + return +} + +func (ptr *QSGSimpleRectNode) DestroyQSGSimpleRectNode() { + if ptr != nil { + C.free(ptr.Pointer()) + qt.DisconnectAllSignals(ptr.Pointer(), "") + ptr.SetPointer(nil) + runtime.SetFinalizer(ptr, nil) + } +} + +func NewQSGSimpleRectNode2() *QSGSimpleRectNode { + return NewQSGSimpleRectNodeFromPointer(C.QSGSimpleRectNode_NewQSGSimpleRectNode2()) +} + +func NewQSGSimpleRectNode(rect core.QRectF_ITF, color gui.QColor_ITF) *QSGSimpleRectNode { + return NewQSGSimpleRectNodeFromPointer(C.QSGSimpleRectNode_NewQSGSimpleRectNode(core.PointerFromQRectF(rect), gui.PointerFromQColor(color))) +} + +func (ptr *QSGSimpleRectNode) SetColor(color gui.QColor_ITF) { + if ptr.Pointer() != nil { + C.QSGSimpleRectNode_SetColor(ptr.Pointer(), gui.PointerFromQColor(color)) + } +} + +func (ptr *QSGSimpleRectNode) SetRect(rect core.QRectF_ITF) { + if ptr.Pointer() != nil { + C.QSGSimpleRectNode_SetRect(ptr.Pointer(), core.PointerFromQRectF(rect)) + } +} + +func (ptr *QSGSimpleRectNode) SetRect2(x float64, y float64, w float64, h float64) { + if ptr.Pointer() != nil { + C.QSGSimpleRectNode_SetRect2(ptr.Pointer(), C.double(x), C.double(y), C.double(w), C.double(h)) + } +} + +func (ptr *QSGSimpleRectNode) Color() *gui.QColor { + if ptr.Pointer() != nil { + tmpValue := gui.NewQColorFromPointer(C.QSGSimpleRectNode_Color(ptr.Pointer())) + runtime.SetFinalizer(tmpValue, (*gui.QColor).DestroyQColor) + return tmpValue + } + return nil +} + +func (ptr *QSGSimpleRectNode) Rect() *core.QRectF { + if ptr.Pointer() != nil { + tmpValue := core.NewQRectFFromPointer(C.QSGSimpleRectNode_Rect(ptr.Pointer())) + runtime.SetFinalizer(tmpValue, (*core.QRectF).DestroyQRectF) + return tmpValue + } + return nil +} + +type QSGSimpleTextureNode struct { + QSGGeometryNode +} + +type QSGSimpleTextureNode_ITF interface { + QSGGeometryNode_ITF + QSGSimpleTextureNode_PTR() *QSGSimpleTextureNode +} + +func (ptr *QSGSimpleTextureNode) QSGSimpleTextureNode_PTR() *QSGSimpleTextureNode { + return ptr +} + +func (ptr *QSGSimpleTextureNode) Pointer() unsafe.Pointer { + if ptr != nil { + return ptr.QSGGeometryNode_PTR().Pointer() + } + return nil +} + +func (ptr *QSGSimpleTextureNode) SetPointer(p unsafe.Pointer) { + if ptr != nil { + ptr.QSGGeometryNode_PTR().SetPointer(p) + } +} + +func PointerFromQSGSimpleTextureNode(ptr QSGSimpleTextureNode_ITF) unsafe.Pointer { + if ptr != nil { + return ptr.QSGSimpleTextureNode_PTR().Pointer() + } + return nil +} + +func NewQSGSimpleTextureNodeFromPointer(ptr unsafe.Pointer) (n *QSGSimpleTextureNode) { + n = new(QSGSimpleTextureNode) + n.SetPointer(ptr) + return +} + +//go:generate stringer -type=QSGSimpleTextureNode__TextureCoordinatesTransformFlag +//QSGSimpleTextureNode::TextureCoordinatesTransformFlag +type QSGSimpleTextureNode__TextureCoordinatesTransformFlag int64 + +const ( + QSGSimpleTextureNode__NoTransform QSGSimpleTextureNode__TextureCoordinatesTransformFlag = QSGSimpleTextureNode__TextureCoordinatesTransformFlag(0x00) + QSGSimpleTextureNode__MirrorHorizontally QSGSimpleTextureNode__TextureCoordinatesTransformFlag = QSGSimpleTextureNode__TextureCoordinatesTransformFlag(0x01) + QSGSimpleTextureNode__MirrorVertically QSGSimpleTextureNode__TextureCoordinatesTransformFlag = QSGSimpleTextureNode__TextureCoordinatesTransformFlag(0x02) +) + +func NewQSGSimpleTextureNode() *QSGSimpleTextureNode { + return NewQSGSimpleTextureNodeFromPointer(C.QSGSimpleTextureNode_NewQSGSimpleTextureNode()) +} + +func (ptr *QSGSimpleTextureNode) SetFiltering(filtering QSGTexture__Filtering) { + if ptr.Pointer() != nil { + C.QSGSimpleTextureNode_SetFiltering(ptr.Pointer(), C.longlong(filtering)) + } +} + +func (ptr *QSGSimpleTextureNode) SetOwnsTexture(owns bool) { + if ptr.Pointer() != nil { + C.QSGSimpleTextureNode_SetOwnsTexture(ptr.Pointer(), C.char(int8(qt.GoBoolToInt(owns)))) + } +} + +func (ptr *QSGSimpleTextureNode) SetRect(r core.QRectF_ITF) { + if ptr.Pointer() != nil { + C.QSGSimpleTextureNode_SetRect(ptr.Pointer(), core.PointerFromQRectF(r)) + } +} + +func (ptr *QSGSimpleTextureNode) SetRect2(x float64, y float64, w float64, h float64) { + if ptr.Pointer() != nil { + C.QSGSimpleTextureNode_SetRect2(ptr.Pointer(), C.double(x), C.double(y), C.double(w), C.double(h)) + } +} + +func (ptr *QSGSimpleTextureNode) SetSourceRect(r core.QRectF_ITF) { + if ptr.Pointer() != nil { + C.QSGSimpleTextureNode_SetSourceRect(ptr.Pointer(), core.PointerFromQRectF(r)) + } +} + +func (ptr *QSGSimpleTextureNode) SetSourceRect2(x float64, y float64, w float64, h float64) { + if ptr.Pointer() != nil { + C.QSGSimpleTextureNode_SetSourceRect2(ptr.Pointer(), C.double(x), C.double(y), C.double(w), C.double(h)) + } +} + +func (ptr *QSGSimpleTextureNode) SetTexture(texture QSGTexture_ITF) { + if ptr.Pointer() != nil { + C.QSGSimpleTextureNode_SetTexture(ptr.Pointer(), PointerFromQSGTexture(texture)) + } +} + +func (ptr *QSGSimpleTextureNode) SetTextureCoordinatesTransform(mode QSGSimpleTextureNode__TextureCoordinatesTransformFlag) { + if ptr.Pointer() != nil { + C.QSGSimpleTextureNode_SetTextureCoordinatesTransform(ptr.Pointer(), C.longlong(mode)) + } +} + +func (ptr *QSGSimpleTextureNode) DestroyQSGSimpleTextureNode() { + if ptr.Pointer() != nil { + C.QSGSimpleTextureNode_DestroyQSGSimpleTextureNode(ptr.Pointer()) + ptr.SetPointer(nil) + runtime.SetFinalizer(ptr, nil) + } +} + +func (ptr *QSGSimpleTextureNode) Rect() *core.QRectF { + if ptr.Pointer() != nil { + tmpValue := core.NewQRectFFromPointer(C.QSGSimpleTextureNode_Rect(ptr.Pointer())) + runtime.SetFinalizer(tmpValue, (*core.QRectF).DestroyQRectF) + return tmpValue + } + return nil +} + +func (ptr *QSGSimpleTextureNode) SourceRect() *core.QRectF { + if ptr.Pointer() != nil { + tmpValue := core.NewQRectFFromPointer(C.QSGSimpleTextureNode_SourceRect(ptr.Pointer())) + runtime.SetFinalizer(tmpValue, (*core.QRectF).DestroyQRectF) + return tmpValue + } + return nil +} + +func (ptr *QSGSimpleTextureNode) Texture() *QSGTexture { + if ptr.Pointer() != nil { + tmpValue := NewQSGTextureFromPointer(C.QSGSimpleTextureNode_Texture(ptr.Pointer())) + if !qt.ExistsSignal(tmpValue.Pointer(), "destroyed") { + tmpValue.ConnectDestroyed(func(*core.QObject) { tmpValue.SetPointer(nil) }) + } + return tmpValue + } + return nil +} + +func (ptr *QSGSimpleTextureNode) Filtering() QSGTexture__Filtering { + if ptr.Pointer() != nil { + return QSGTexture__Filtering(C.QSGSimpleTextureNode_Filtering(ptr.Pointer())) + } + return 0 +} + +func (ptr *QSGSimpleTextureNode) TextureCoordinatesTransform() QSGSimpleTextureNode__TextureCoordinatesTransformFlag { + if ptr.Pointer() != nil { + return QSGSimpleTextureNode__TextureCoordinatesTransformFlag(C.QSGSimpleTextureNode_TextureCoordinatesTransform(ptr.Pointer())) + } + return 0 +} + +func (ptr *QSGSimpleTextureNode) OwnsTexture() bool { + if ptr.Pointer() != nil { + return C.QSGSimpleTextureNode_OwnsTexture(ptr.Pointer()) != 0 + } + return false +} + type QSGTexture struct { core.QObject } diff --git a/quick/quick.h b/quick/quick.h index ec895b2e..a33bf7dd 100644 --- a/quick/quick.h +++ b/quick/quick.h @@ -1010,6 +1010,29 @@ void* QSGRendererInterface_GetResource(void* ptr, void* window, long long resour void* QSGRendererInterface_GetResourceDefault(void* ptr, void* window, long long resource); void* QSGRendererInterface_GetResource2(void* ptr, void* window, char* resource); void* QSGRendererInterface_GetResource2Default(void* ptr, void* window, char* resource); +void* QSGSimpleRectNode_NewQSGSimpleRectNode2(); +void* QSGSimpleRectNode_NewQSGSimpleRectNode(void* rect, void* color); +void QSGSimpleRectNode_SetColor(void* ptr, void* color); +void QSGSimpleRectNode_SetRect(void* ptr, void* rect); +void QSGSimpleRectNode_SetRect2(void* ptr, double x, double y, double w, double h); +void* QSGSimpleRectNode_Color(void* ptr); +void* QSGSimpleRectNode_Rect(void* ptr); +void* QSGSimpleTextureNode_NewQSGSimpleTextureNode(); +void QSGSimpleTextureNode_SetFiltering(void* ptr, long long filtering); +void QSGSimpleTextureNode_SetOwnsTexture(void* ptr, char owns); +void QSGSimpleTextureNode_SetRect(void* ptr, void* r); +void QSGSimpleTextureNode_SetRect2(void* ptr, double x, double y, double w, double h); +void QSGSimpleTextureNode_SetSourceRect(void* ptr, void* r); +void QSGSimpleTextureNode_SetSourceRect2(void* ptr, double x, double y, double w, double h); +void QSGSimpleTextureNode_SetTexture(void* ptr, void* texture); +void QSGSimpleTextureNode_SetTextureCoordinatesTransform(void* ptr, long long mode); +void QSGSimpleTextureNode_DestroyQSGSimpleTextureNode(void* ptr); +void* QSGSimpleTextureNode_Rect(void* ptr); +void* QSGSimpleTextureNode_SourceRect(void* ptr); +void* QSGSimpleTextureNode_Texture(void* ptr); +long long QSGSimpleTextureNode_Filtering(void* ptr); +long long QSGSimpleTextureNode_TextureCoordinatesTransform(void* ptr); +char QSGSimpleTextureNode_OwnsTexture(void* ptr); void* QSGTexture_NewQSGTexture(); void QSGTexture_Bind(void* ptr); void QSGTexture_SetAnisotropyLevel(void* ptr, long long level); diff --git a/serialbus/serialbus.cpp b/serialbus/serialbus.cpp index 3cad56f2..29f7f252 100644 --- a/serialbus/serialbus.cpp +++ b/serialbus/serialbus.cpp @@ -12,6 +12,7 @@ #include #include #include +#include #include #include #include @@ -672,6 +673,17 @@ char QCanBusDeviceInfo_IsVirtual(void* ptr) return static_cast(ptr)->isVirtual(); } +class MyQCanBusFactory: public QCanBusFactory +{ +public: + QCanBusDevice * createDevice(const QString & interfaceName, QString * errorMessage) const { QByteArray tf83f00 = interfaceName.toUtf8(); QtSerialBus_PackedString interfaceNamePacked = { const_cast(tf83f00.prepend("WHITESPACE").constData()+10), tf83f00.size()-10 };QByteArray t3f2abc = errorMessage->toUtf8(); QtSerialBus_PackedString errorMessagePacked = { const_cast(t3f2abc.prepend("WHITESPACE").constData()+10), t3f2abc.size()-10 };return static_cast(callbackQCanBusFactory_CreateDevice(const_cast(static_cast(this)), interfaceNamePacked, errorMessagePacked)); }; +}; + +void* QCanBusFactory_CreateDevice(void* ptr, struct QtSerialBus_PackedString interfaceName, struct QtSerialBus_PackedString errorMessage) +{ + return static_cast(ptr)->createDevice(QString::fromUtf8(interfaceName.data, interfaceName.len), new QString(QString::fromUtf8(errorMessage.data, errorMessage.len))); +} + class MyQCanBusFactoryV2: public QCanBusFactoryV2 { public: diff --git a/serialbus/serialbus.go b/serialbus/serialbus.go index c7cdc335..1b5fb976 100644 --- a/serialbus/serialbus.go +++ b/serialbus/serialbus.go @@ -1523,11 +1523,110 @@ func (ptr *QCanBusDeviceInfo) IsVirtual() bool { return false } -type QCanBusFactoryV2 struct { +type QCanBusFactory struct { ptr unsafe.Pointer } +type QCanBusFactory_ITF interface { + QCanBusFactory_PTR() *QCanBusFactory +} + +func (ptr *QCanBusFactory) QCanBusFactory_PTR() *QCanBusFactory { + return ptr +} + +func (ptr *QCanBusFactory) Pointer() unsafe.Pointer { + if ptr != nil { + return ptr.ptr + } + return nil +} + +func (ptr *QCanBusFactory) SetPointer(p unsafe.Pointer) { + if ptr != nil { + ptr.ptr = p + } +} + +func PointerFromQCanBusFactory(ptr QCanBusFactory_ITF) unsafe.Pointer { + if ptr != nil { + return ptr.QCanBusFactory_PTR().Pointer() + } + return nil +} + +func NewQCanBusFactoryFromPointer(ptr unsafe.Pointer) (n *QCanBusFactory) { + n = new(QCanBusFactory) + n.SetPointer(ptr) + return +} + +func (ptr *QCanBusFactory) DestroyQCanBusFactory() { + if ptr != nil { + C.free(ptr.Pointer()) + qt.DisconnectAllSignals(ptr.Pointer(), "") + ptr.SetPointer(nil) + runtime.SetFinalizer(ptr, nil) + } +} + +//export callbackQCanBusFactory_CreateDevice +func callbackQCanBusFactory_CreateDevice(ptr unsafe.Pointer, interfaceName C.struct_QtSerialBus_PackedString, errorMessage C.struct_QtSerialBus_PackedString) unsafe.Pointer { + if signal := qt.GetSignal(ptr, "createDevice"); signal != nil { + return PointerFromQCanBusDevice(signal.(func(string, string) *QCanBusDevice)(cGoUnpackString(interfaceName), cGoUnpackString(errorMessage))) + } + + return PointerFromQCanBusDevice(NewQCanBusDevice(nil)) +} + +func (ptr *QCanBusFactory) ConnectCreateDevice(f func(interfaceName string, errorMessage string) *QCanBusDevice) { + if ptr.Pointer() != nil { + + if signal := qt.LendSignal(ptr.Pointer(), "createDevice"); signal != nil { + qt.ConnectSignal(ptr.Pointer(), "createDevice", func(interfaceName string, errorMessage string) *QCanBusDevice { + signal.(func(string, string) *QCanBusDevice)(interfaceName, errorMessage) + return f(interfaceName, errorMessage) + }) + } else { + qt.ConnectSignal(ptr.Pointer(), "createDevice", f) + } + } +} + +func (ptr *QCanBusFactory) DisconnectCreateDevice() { + if ptr.Pointer() != nil { + + qt.DisconnectSignal(ptr.Pointer(), "createDevice") + } +} + +func (ptr *QCanBusFactory) CreateDevice(interfaceName string, errorMessage string) *QCanBusDevice { + if ptr.Pointer() != nil { + var interfaceNameC *C.char + if interfaceName != "" { + interfaceNameC = C.CString(interfaceName) + defer C.free(unsafe.Pointer(interfaceNameC)) + } + var errorMessageC *C.char + if errorMessage != "" { + errorMessageC = C.CString(errorMessage) + defer C.free(unsafe.Pointer(errorMessageC)) + } + tmpValue := NewQCanBusDeviceFromPointer(C.QCanBusFactory_CreateDevice(ptr.Pointer(), C.struct_QtSerialBus_PackedString{data: interfaceNameC, len: C.longlong(len(interfaceName))}, C.struct_QtSerialBus_PackedString{data: errorMessageC, len: C.longlong(len(errorMessage))})) + if !qt.ExistsSignal(tmpValue.Pointer(), "destroyed") { + tmpValue.ConnectDestroyed(func(*core.QObject) { tmpValue.SetPointer(nil) }) + } + return tmpValue + } + return nil +} + +type QCanBusFactoryV2 struct { + QCanBusFactory +} + type QCanBusFactoryV2_ITF interface { + QCanBusFactory_ITF QCanBusFactoryV2_PTR() *QCanBusFactoryV2 } @@ -1537,14 +1636,14 @@ func (ptr *QCanBusFactoryV2) QCanBusFactoryV2_PTR() *QCanBusFactoryV2 { func (ptr *QCanBusFactoryV2) Pointer() unsafe.Pointer { if ptr != nil { - return ptr.ptr + return ptr.QCanBusFactory_PTR().Pointer() } return nil } func (ptr *QCanBusFactoryV2) SetPointer(p unsafe.Pointer) { if ptr != nil { - ptr.ptr = p + ptr.QCanBusFactory_PTR().SetPointer(p) } } diff --git a/serialbus/serialbus.h b/serialbus/serialbus.h index dc8c414b..1b2e56e2 100644 --- a/serialbus/serialbus.h +++ b/serialbus/serialbus.h @@ -125,6 +125,7 @@ void QCanBusDeviceInfo_DestroyQCanBusDeviceInfo(void* ptr); struct QtSerialBus_PackedString QCanBusDeviceInfo_Name(void* ptr); char QCanBusDeviceInfo_HasFlexibleDataRate(void* ptr); char QCanBusDeviceInfo_IsVirtual(void* ptr); +void* QCanBusFactory_CreateDevice(void* ptr, struct QtSerialBus_PackedString interfaceName, struct QtSerialBus_PackedString errorMessage); void* QCanBusFactoryV2_CreateDevice(void* ptr, struct QtSerialBus_PackedString interfaceName, struct QtSerialBus_PackedString errorMessage); struct QtSerialBus_PackedList QCanBusFactoryV2_AvailableDevices(void* ptr, struct QtSerialBus_PackedString errorMessage); void* QCanBusFactoryV2___availableDevices_atList(void* ptr, int i); diff --git a/svg/svg.cpp b/svg/svg.cpp index 8e475144..c04cffbe 100644 --- a/svg/svg.cpp +++ b/svg/svg.cpp @@ -44,6 +44,7 @@ #include #include #include +#include #include #include #include @@ -972,6 +973,11 @@ void QSvgRenderer_DestroyQSvgRenderer(void* ptr) static_cast(ptr)->~QSvgRenderer(); } +void* QSvgRenderer_MatrixForElement(void* ptr, struct QtSvg_PackedString id) +{ + return new QMatrix(static_cast(ptr)->matrixForElement(QString::fromUtf8(id.data, id.len))); +} + void* QSvgRenderer_ViewBox(void* ptr) { return ({ QRect tmpValue = static_cast(ptr)->viewBox(); new QRect(tmpValue.x(), tmpValue.y(), tmpValue.width(), tmpValue.height()); }); diff --git a/svg/svg.go b/svg/svg.go index 0a8a4e36..f59c1256 100644 --- a/svg/svg.go +++ b/svg/svg.go @@ -1754,6 +1754,20 @@ func (ptr *QSvgRenderer) DestroyQSvgRenderer() { } } +func (ptr *QSvgRenderer) MatrixForElement(id string) *gui.QMatrix { + if ptr.Pointer() != nil { + var idC *C.char + if id != "" { + idC = C.CString(id) + defer C.free(unsafe.Pointer(idC)) + } + tmpValue := gui.NewQMatrixFromPointer(C.QSvgRenderer_MatrixForElement(ptr.Pointer(), C.struct_QtSvg_PackedString{data: idC, len: C.longlong(len(id))})) + runtime.SetFinalizer(tmpValue, (*gui.QMatrix).DestroyQMatrix) + return tmpValue + } + return nil +} + func (ptr *QSvgRenderer) ViewBox() *core.QRect { if ptr.Pointer() != nil { tmpValue := core.NewQRectFromPointer(C.QSvgRenderer_ViewBox(ptr.Pointer())) diff --git a/svg/svg.h b/svg/svg.h index eb51f306..abf7b3f7 100644 --- a/svg/svg.h +++ b/svg/svg.h @@ -139,6 +139,7 @@ void QSvgRenderer_SetFramesPerSecond(void* ptr, int num); void QSvgRenderer_SetViewBox(void* ptr, void* viewbox); void QSvgRenderer_SetViewBox2(void* ptr, void* viewbox); void QSvgRenderer_DestroyQSvgRenderer(void* ptr); +void* QSvgRenderer_MatrixForElement(void* ptr, struct QtSvg_PackedString id); void* QSvgRenderer_ViewBox(void* ptr); void* QSvgRenderer_BoundsOnElement(void* ptr, struct QtSvg_PackedString id); void* QSvgRenderer_ViewBoxF(void* ptr); diff --git a/webengine/webengine.cpp b/webengine/webengine.cpp index d9a1037a..5f19b4af 100644 --- a/webengine/webengine.cpp +++ b/webengine/webengine.cpp @@ -1924,7 +1924,6 @@ public: QStringList chooseFiles(QWebEnginePage::FileSelectionMode mode, const QStringList & oldFiles, const QStringList & acceptedMimeTypes) { QByteArray t76015f = oldFiles.join("|").toUtf8(); QtWebEngine_PackedString oldFilesPacked = { const_cast(t76015f.prepend("WHITESPACE").constData()+10), t76015f.size()-10 };QByteArray t541092 = acceptedMimeTypes.join("|").toUtf8(); QtWebEngine_PackedString acceptedMimeTypesPacked = { const_cast(t541092.prepend("WHITESPACE").constData()+10), t541092.size()-10 };return ({ QtWebEngine_PackedString tempVal = callbackQWebEnginePage_ChooseFiles(this, mode, oldFilesPacked, acceptedMimeTypesPacked); QStringList ret = QString::fromUtf8(tempVal.data, tempVal.len).split("|", QString::SkipEmptyParts); free(tempVal.data); ret; }); }; QWebEnginePage * createWindow(QWebEnginePage::WebWindowType ty) { return static_cast(callbackQWebEnginePage_CreateWindow(this, ty)); }; bool acceptNavigationRequest(const QUrl & url, QWebEnginePage::NavigationType ty, bool isMainFrame) { return callbackQWebEnginePage_AcceptNavigationRequest(this, const_cast(&url), ty, isMainFrame) != 0; }; - bool certificateError(const QWebEngineCertificateError & certificateError) { return callbackQWebEnginePage_CertificateError(this, const_cast(&certificateError)) != 0; }; bool event(QEvent * e) { return callbackQWebEnginePage_Event(this, e) != 0; }; bool javaScriptConfirm(const QUrl & securityOrigin, const QString & msg) { QByteArray t19f34e = msg.toUtf8(); QtWebEngine_PackedString msgPacked = { const_cast(t19f34e.prepend("WHITESPACE").constData()+10), t19f34e.size()-10 };return callbackQWebEnginePage_JavaScriptConfirm(this, const_cast(&securityOrigin), msgPacked) != 0; }; bool javaScriptPrompt(const QUrl & securityOrigin, const QString & msg, const QString & defaultValue, QString * result) { QByteArray t19f34e = msg.toUtf8(); QtWebEngine_PackedString msgPacked = { const_cast(t19f34e.prepend("WHITESPACE").constData()+10), t19f34e.size()-10 };QByteArray te940d2 = defaultValue.toUtf8(); QtWebEngine_PackedString defaultValuePacked = { const_cast(te940d2.prepend("WHITESPACE").constData()+10), te940d2.size()-10 };QByteArray t37a530 = result->toUtf8(); QtWebEngine_PackedString resultPacked = { const_cast(t37a530.prepend("WHITESPACE").constData()+10), t37a530.size()-10 };return callbackQWebEnginePage_JavaScriptPrompt(this, const_cast(&securityOrigin), msgPacked, defaultValuePacked, resultPacked) != 0; }; @@ -2085,16 +2084,6 @@ char QWebEnginePage_AcceptNavigationRequestDefault(void* ptr, void* url, long lo return static_cast(ptr)->QWebEnginePage::acceptNavigationRequest(*static_cast(url), static_cast(ty), isMainFrame != 0); } -char QWebEnginePage_CertificateError(void* ptr, void* certificateError) -{ - return static_cast(ptr)->certificateError(*static_cast(certificateError)); -} - -char QWebEnginePage_CertificateErrorDefault(void* ptr, void* certificateError) -{ - return static_cast(ptr)->QWebEnginePage::certificateError(*static_cast(certificateError)); -} - char QWebEnginePage_EventDefault(void* ptr, void* e) { return static_cast(ptr)->QWebEnginePage::event(static_cast(e)); @@ -2660,11 +2649,6 @@ double QWebEnginePage_ZoomFactor(void* ptr) return static_cast(ptr)->zoomFactor(); } -void QWebEnginePage_Save(void* ptr, struct QtWebEngine_PackedString filePath, long long format) -{ - static_cast(ptr)->save(QString::fromUtf8(filePath.data, filePath.len), static_cast(format)); -} - void* QWebEnginePage___dynamicPropertyNames_atList(void* ptr, int i) { return new QByteArray(({QByteArray tmp = static_cast*>(ptr)->at(i); if (i == static_cast*>(ptr)->size()-1) { static_cast*>(ptr)->~QList(); free(ptr); }; tmp; })); @@ -3291,51 +3275,16 @@ unsigned int QWebEngineScript_WorldId(void* ptr) return static_cast(ptr)->worldId(); } -char QWebEngineScriptCollection_Remove(void* ptr, void* script) -{ - return static_cast(ptr)->remove(*static_cast(script)); -} - void QWebEngineScriptCollection_Clear(void* ptr) { static_cast(ptr)->clear(); } -void QWebEngineScriptCollection_Insert2(void* ptr, void* list) -{ - static_cast(ptr)->insert(*static_cast*>(list)); -} - -void QWebEngineScriptCollection_Insert(void* ptr, void* s) -{ - static_cast(ptr)->insert(*static_cast(s)); -} - void QWebEngineScriptCollection_DestroyQWebEngineScriptCollection(void* ptr) { static_cast(ptr)->~QWebEngineScriptCollection(); } -struct QtWebEngine_PackedList QWebEngineScriptCollection_FindScripts(void* ptr, struct QtWebEngine_PackedString name) -{ - return ({ QList* tmpValue = new QList(static_cast(ptr)->findScripts(QString::fromUtf8(name.data, name.len))); QtWebEngine_PackedList { tmpValue, tmpValue->size() }; }); -} - -struct QtWebEngine_PackedList QWebEngineScriptCollection_ToList(void* ptr) -{ - return ({ QList* tmpValue = new QList(static_cast(ptr)->toList()); QtWebEngine_PackedList { tmpValue, tmpValue->size() }; }); -} - -void* QWebEngineScriptCollection_FindScript(void* ptr, struct QtWebEngine_PackedString name) -{ - return new QWebEngineScript(static_cast(ptr)->findScript(QString::fromUtf8(name.data, name.len))); -} - -char QWebEngineScriptCollection_Contains(void* ptr, void* value) -{ - return static_cast(ptr)->contains(*static_cast(value)); -} - char QWebEngineScriptCollection_IsEmpty(void* ptr) { return static_cast(ptr)->isEmpty(); @@ -4064,7 +4013,6 @@ class MyQWebEngineView: public QWebEngineView { public: MyQWebEngineView(QWidget *parent = Q_NULLPTR) : QWebEngineView(parent) {QWebEngineView_QWebEngineView_QRegisterMetaType();}; - QWebEngineView * createWindow(QWebEnginePage::WebWindowType ty) { return static_cast(callbackQWebEngineView_CreateWindow(this, ty)); }; bool event(QEvent * ev) { return callbackQWebEngineView_Event(this, ev) != 0; }; void back() { callbackQWebEngineView_Back(this); }; void contextMenuEvent(QContextMenuEvent * event) { callbackQWebEngineView_ContextMenuEvent(this, event); }; @@ -4080,7 +4028,6 @@ public: void Signal_LoadProgress(int progress) { callbackQWebEngineView_LoadProgress(this, progress); }; void Signal_LoadStarted() { callbackQWebEngineView_LoadStarted(this); }; void reload() { callbackQWebEngineView_Reload(this); }; - void Signal_RenderProcessTerminated(QWebEnginePage::RenderProcessTerminationStatus terminationStatus, int exitCode) { callbackQWebEngineView_RenderProcessTerminated(this, terminationStatus, exitCode); }; void Signal_SelectionChanged() { callbackQWebEngineView_SelectionChanged(this); }; void showEvent(QShowEvent * event) { callbackQWebEngineView_ShowEvent(this, event); }; void stop() { callbackQWebEngineView_Stop(this); }; @@ -4153,16 +4100,6 @@ Q_DECLARE_METATYPE(MyQWebEngineView*) int QWebEngineView_QWebEngineView_QRegisterMetaType(){qRegisterMetaType(); return qRegisterMetaType();} -void* QWebEngineView_CreateWindow(void* ptr, long long ty) -{ - return static_cast(ptr)->createWindow(static_cast(ty)); -} - -void* QWebEngineView_CreateWindowDefault(void* ptr, long long ty) -{ - return static_cast(ptr)->QWebEngineView::createWindow(static_cast(ty)); -} - void* QWebEngineView_NewQWebEngineView(void* parent) { return new MyQWebEngineView(static_cast(parent)); @@ -4323,21 +4260,6 @@ void QWebEngineView_ReloadDefault(void* ptr) static_cast(ptr)->QWebEngineView::reload(); } -void QWebEngineView_ConnectRenderProcessTerminated(void* ptr) -{ - QObject::connect(static_cast(ptr), static_cast(&QWebEngineView::renderProcessTerminated), static_cast(ptr), static_cast(&MyQWebEngineView::Signal_RenderProcessTerminated)); -} - -void QWebEngineView_DisconnectRenderProcessTerminated(void* ptr) -{ - QObject::disconnect(static_cast(ptr), static_cast(&QWebEngineView::renderProcessTerminated), static_cast(ptr), static_cast(&MyQWebEngineView::Signal_RenderProcessTerminated)); -} - -void QWebEngineView_RenderProcessTerminated(void* ptr, long long terminationStatus, int exitCode) -{ - static_cast(ptr)->renderProcessTerminated(static_cast(terminationStatus), exitCode); -} - void QWebEngineView_ConnectSelectionChanged(void* ptr) { QObject::connect(static_cast(ptr), static_cast(&QWebEngineView::selectionChanged), static_cast(ptr), static_cast(&MyQWebEngineView::Signal_SelectionChanged)); @@ -4408,11 +4330,6 @@ void QWebEngineView_TitleChanged(void* ptr, struct QtWebEngine_PackedString titl static_cast(ptr)->titleChanged(QString::fromUtf8(title.data, title.len)); } -void QWebEngineView_TriggerPageAction(void* ptr, long long action, char checked) -{ - static_cast(ptr)->triggerPageAction(static_cast(action), checked != 0); -} - void QWebEngineView_ConnectUrlChanged(void* ptr) { QObject::connect(static_cast(ptr), static_cast(&QWebEngineView::urlChanged), static_cast(ptr), static_cast(&MyQWebEngineView::Signal_UrlChanged)); @@ -4439,11 +4356,6 @@ void QWebEngineView_DestroyQWebEngineViewDefault(void* ptr) } -void* QWebEngineView_PageAction(void* ptr, long long action) -{ - return static_cast(ptr)->pageAction(static_cast(action)); -} - void* QWebEngineView_Icon(void* ptr) { return new QIcon(static_cast(ptr)->icon()); diff --git a/webengine/webengine.go b/webengine/webengine.go index f96addf3..ada287f3 100644 --- a/webengine/webengine.go +++ b/webengine/webengine.go @@ -3988,7 +3988,6 @@ const ( type QWebEnginePage__WebAction int64 const ( - QWebEnginePage__NoWebAction QWebEnginePage__WebAction = QWebEnginePage__WebAction(-1) QWebEnginePage__Back QWebEnginePage__WebAction = QWebEnginePage__WebAction(0) QWebEnginePage__Forward QWebEnginePage__WebAction = QWebEnginePage__WebAction(1) QWebEnginePage__Stop QWebEnginePage__WebAction = QWebEnginePage__WebAction(2) @@ -4224,50 +4223,6 @@ func (ptr *QWebEnginePage) AcceptNavigationRequestDefault(url core.QUrl_ITF, ty return false } -//export callbackQWebEnginePage_CertificateError -func callbackQWebEnginePage_CertificateError(ptr unsafe.Pointer, certificateError unsafe.Pointer) C.char { - if signal := qt.GetSignal(ptr, "certificateError"); signal != nil { - return C.char(int8(qt.GoBoolToInt(signal.(func(*QWebEngineCertificateError) bool)(NewQWebEngineCertificateErrorFromPointer(certificateError))))) - } - - return C.char(int8(qt.GoBoolToInt(NewQWebEnginePageFromPointer(ptr).CertificateErrorDefault(NewQWebEngineCertificateErrorFromPointer(certificateError))))) -} - -func (ptr *QWebEnginePage) ConnectCertificateError(f func(certificateError *QWebEngineCertificateError) bool) { - if ptr.Pointer() != nil { - - if signal := qt.LendSignal(ptr.Pointer(), "certificateError"); signal != nil { - qt.ConnectSignal(ptr.Pointer(), "certificateError", func(certificateError *QWebEngineCertificateError) bool { - signal.(func(*QWebEngineCertificateError) bool)(certificateError) - return f(certificateError) - }) - } else { - qt.ConnectSignal(ptr.Pointer(), "certificateError", f) - } - } -} - -func (ptr *QWebEnginePage) DisconnectCertificateError() { - if ptr.Pointer() != nil { - - qt.DisconnectSignal(ptr.Pointer(), "certificateError") - } -} - -func (ptr *QWebEnginePage) CertificateError(certificateError QWebEngineCertificateError_ITF) bool { - if ptr.Pointer() != nil { - return C.QWebEnginePage_CertificateError(ptr.Pointer(), PointerFromQWebEngineCertificateError(certificateError)) != 0 - } - return false -} - -func (ptr *QWebEnginePage) CertificateErrorDefault(certificateError QWebEngineCertificateError_ITF) bool { - if ptr.Pointer() != nil { - return C.QWebEnginePage_CertificateErrorDefault(ptr.Pointer(), PointerFromQWebEngineCertificateError(certificateError)) != 0 - } - return false -} - //export callbackQWebEnginePage_Event func callbackQWebEnginePage_Event(ptr unsafe.Pointer, e unsafe.Pointer) C.char { if signal := qt.GetSignal(ptr, "event"); signal != nil { @@ -5733,17 +5688,6 @@ func (ptr *QWebEnginePage) ZoomFactor() float64 { return 0 } -func (ptr *QWebEnginePage) Save(filePath string, format QWebEngineDownloadItem__SavePageFormat) { - if ptr.Pointer() != nil { - var filePathC *C.char - if filePath != "" { - filePathC = C.CString(filePath) - defer C.free(unsafe.Pointer(filePathC)) - } - C.QWebEnginePage_Save(ptr.Pointer(), C.struct_QtWebEngine_PackedString{data: filePathC, len: C.longlong(len(filePath))}, C.longlong(format)) - } -} - func (ptr *QWebEnginePage) __dynamicPropertyNames_atList(i int) *core.QByteArray { if ptr.Pointer() != nil { tmpValue := core.NewQByteArrayFromPointer(C.QWebEnginePage___dynamicPropertyNames_atList(ptr.Pointer(), C.int(int32(i)))) @@ -6853,37 +6797,12 @@ func NewQWebEngineScriptCollectionFromPointer(ptr unsafe.Pointer) (n *QWebEngine n.SetPointer(ptr) return } -func (ptr *QWebEngineScriptCollection) Remove(script QWebEngineScript_ITF) bool { - if ptr.Pointer() != nil { - return C.QWebEngineScriptCollection_Remove(ptr.Pointer(), PointerFromQWebEngineScript(script)) != 0 - } - return false -} - func (ptr *QWebEngineScriptCollection) Clear() { if ptr.Pointer() != nil { C.QWebEngineScriptCollection_Clear(ptr.Pointer()) } } -func (ptr *QWebEngineScriptCollection) Insert2(list []*QWebEngineScript) { - if ptr.Pointer() != nil { - C.QWebEngineScriptCollection_Insert2(ptr.Pointer(), func() unsafe.Pointer { - tmpList := NewQWebEngineScriptCollectionFromPointer(NewQWebEngineScriptCollectionFromPointer(nil).__insert_list_newList2()) - for _, v := range list { - tmpList.__insert_list_setList2(v) - } - return tmpList.Pointer() - }()) - } -} - -func (ptr *QWebEngineScriptCollection) Insert(s QWebEngineScript_ITF) { - if ptr.Pointer() != nil { - C.QWebEngineScriptCollection_Insert(ptr.Pointer(), PointerFromQWebEngineScript(s)) - } -} - func (ptr *QWebEngineScriptCollection) DestroyQWebEngineScriptCollection() { if ptr.Pointer() != nil { C.QWebEngineScriptCollection_DestroyQWebEngineScriptCollection(ptr.Pointer()) @@ -6892,60 +6811,6 @@ func (ptr *QWebEngineScriptCollection) DestroyQWebEngineScriptCollection() { } } -func (ptr *QWebEngineScriptCollection) FindScripts(name string) []*QWebEngineScript { - if ptr.Pointer() != nil { - var nameC *C.char - if name != "" { - nameC = C.CString(name) - defer C.free(unsafe.Pointer(nameC)) - } - return func(l C.struct_QtWebEngine_PackedList) []*QWebEngineScript { - out := make([]*QWebEngineScript, int(l.len)) - tmpList := NewQWebEngineScriptCollectionFromPointer(l.data) - for i := 0; i < len(out); i++ { - out[i] = tmpList.__findScripts_atList(i) - } - return out - }(C.QWebEngineScriptCollection_FindScripts(ptr.Pointer(), C.struct_QtWebEngine_PackedString{data: nameC, len: C.longlong(len(name))})) - } - return make([]*QWebEngineScript, 0) -} - -func (ptr *QWebEngineScriptCollection) ToList() []*QWebEngineScript { - if ptr.Pointer() != nil { - return func(l C.struct_QtWebEngine_PackedList) []*QWebEngineScript { - out := make([]*QWebEngineScript, int(l.len)) - tmpList := NewQWebEngineScriptCollectionFromPointer(l.data) - for i := 0; i < len(out); i++ { - out[i] = tmpList.__toList_atList(i) - } - return out - }(C.QWebEngineScriptCollection_ToList(ptr.Pointer())) - } - return make([]*QWebEngineScript, 0) -} - -func (ptr *QWebEngineScriptCollection) FindScript(name string) *QWebEngineScript { - if ptr.Pointer() != nil { - var nameC *C.char - if name != "" { - nameC = C.CString(name) - defer C.free(unsafe.Pointer(nameC)) - } - tmpValue := NewQWebEngineScriptFromPointer(C.QWebEngineScriptCollection_FindScript(ptr.Pointer(), C.struct_QtWebEngine_PackedString{data: nameC, len: C.longlong(len(name))})) - runtime.SetFinalizer(tmpValue, (*QWebEngineScript).DestroyQWebEngineScript) - return tmpValue - } - return nil -} - -func (ptr *QWebEngineScriptCollection) Contains(value QWebEngineScript_ITF) bool { - if ptr.Pointer() != nil { - return C.QWebEngineScriptCollection_Contains(ptr.Pointer(), PointerFromQWebEngineScript(value)) != 0 - } - return false -} - func (ptr *QWebEngineScriptCollection) IsEmpty() bool { if ptr.Pointer() != nil { return C.QWebEngineScriptCollection_IsEmpty(ptr.Pointer()) != 0 @@ -8433,59 +8298,6 @@ func NewQWebEngineViewFromPointer(ptr unsafe.Pointer) (n *QWebEngineView) { n.SetPointer(ptr) return } - -//export callbackQWebEngineView_CreateWindow -func callbackQWebEngineView_CreateWindow(ptr unsafe.Pointer, ty C.longlong) unsafe.Pointer { - if signal := qt.GetSignal(ptr, "createWindow"); signal != nil { - return PointerFromQWebEngineView(signal.(func(QWebEnginePage__WebWindowType) *QWebEngineView)(QWebEnginePage__WebWindowType(ty))) - } - - return PointerFromQWebEngineView(NewQWebEngineViewFromPointer(ptr).CreateWindowDefault(QWebEnginePage__WebWindowType(ty))) -} - -func (ptr *QWebEngineView) ConnectCreateWindow(f func(ty QWebEnginePage__WebWindowType) *QWebEngineView) { - if ptr.Pointer() != nil { - - if signal := qt.LendSignal(ptr.Pointer(), "createWindow"); signal != nil { - qt.ConnectSignal(ptr.Pointer(), "createWindow", func(ty QWebEnginePage__WebWindowType) *QWebEngineView { - signal.(func(QWebEnginePage__WebWindowType) *QWebEngineView)(ty) - return f(ty) - }) - } else { - qt.ConnectSignal(ptr.Pointer(), "createWindow", f) - } - } -} - -func (ptr *QWebEngineView) DisconnectCreateWindow() { - if ptr.Pointer() != nil { - - qt.DisconnectSignal(ptr.Pointer(), "createWindow") - } -} - -func (ptr *QWebEngineView) CreateWindow(ty QWebEnginePage__WebWindowType) *QWebEngineView { - if ptr.Pointer() != nil { - tmpValue := NewQWebEngineViewFromPointer(C.QWebEngineView_CreateWindow(ptr.Pointer(), C.longlong(ty))) - if !qt.ExistsSignal(tmpValue.Pointer(), "destroyed") { - tmpValue.ConnectDestroyed(func(*core.QObject) { tmpValue.SetPointer(nil) }) - } - return tmpValue - } - return nil -} - -func (ptr *QWebEngineView) CreateWindowDefault(ty QWebEnginePage__WebWindowType) *QWebEngineView { - if ptr.Pointer() != nil { - tmpValue := NewQWebEngineViewFromPointer(C.QWebEngineView_CreateWindowDefault(ptr.Pointer(), C.longlong(ty))) - if !qt.ExistsSignal(tmpValue.Pointer(), "destroyed") { - tmpValue.ConnectDestroyed(func(*core.QObject) { tmpValue.SetPointer(nil) }) - } - return tmpValue - } - return nil -} - func NewQWebEngineView(parent widgets.QWidget_ITF) *QWebEngineView { tmpValue := NewQWebEngineViewFromPointer(C.QWebEngineView_NewQWebEngineView(widgets.PointerFromQWidget(parent))) if !qt.ExistsSignal(tmpValue.Pointer(), "destroyed") { @@ -8944,45 +8756,6 @@ func (ptr *QWebEngineView) ReloadDefault() { } } -//export callbackQWebEngineView_RenderProcessTerminated -func callbackQWebEngineView_RenderProcessTerminated(ptr unsafe.Pointer, terminationStatus C.longlong, exitCode C.int) { - if signal := qt.GetSignal(ptr, "renderProcessTerminated"); signal != nil { - signal.(func(QWebEnginePage__RenderProcessTerminationStatus, int))(QWebEnginePage__RenderProcessTerminationStatus(terminationStatus), int(int32(exitCode))) - } - -} - -func (ptr *QWebEngineView) ConnectRenderProcessTerminated(f func(terminationStatus QWebEnginePage__RenderProcessTerminationStatus, exitCode int)) { - if ptr.Pointer() != nil { - - if !qt.ExistsSignal(ptr.Pointer(), "renderProcessTerminated") { - C.QWebEngineView_ConnectRenderProcessTerminated(ptr.Pointer()) - } - - if signal := qt.LendSignal(ptr.Pointer(), "renderProcessTerminated"); signal != nil { - qt.ConnectSignal(ptr.Pointer(), "renderProcessTerminated", func(terminationStatus QWebEnginePage__RenderProcessTerminationStatus, exitCode int) { - signal.(func(QWebEnginePage__RenderProcessTerminationStatus, int))(terminationStatus, exitCode) - f(terminationStatus, exitCode) - }) - } else { - qt.ConnectSignal(ptr.Pointer(), "renderProcessTerminated", f) - } - } -} - -func (ptr *QWebEngineView) DisconnectRenderProcessTerminated() { - if ptr.Pointer() != nil { - C.QWebEngineView_DisconnectRenderProcessTerminated(ptr.Pointer()) - qt.DisconnectSignal(ptr.Pointer(), "renderProcessTerminated") - } -} - -func (ptr *QWebEngineView) RenderProcessTerminated(terminationStatus QWebEnginePage__RenderProcessTerminationStatus, exitCode int) { - if ptr.Pointer() != nil { - C.QWebEngineView_RenderProcessTerminated(ptr.Pointer(), C.longlong(terminationStatus), C.int(int32(exitCode))) - } -} - //export callbackQWebEngineView_SelectionChanged func callbackQWebEngineView_SelectionChanged(ptr unsafe.Pointer) { if signal := qt.GetSignal(ptr, "selectionChanged"); signal != nil { @@ -9163,12 +8936,6 @@ func (ptr *QWebEngineView) TitleChanged(title string) { } } -func (ptr *QWebEngineView) TriggerPageAction(action QWebEnginePage__WebAction, checked bool) { - if ptr.Pointer() != nil { - C.QWebEngineView_TriggerPageAction(ptr.Pointer(), C.longlong(action), C.char(int8(qt.GoBoolToInt(checked)))) - } -} - //export callbackQWebEngineView_UrlChanged func callbackQWebEngineView_UrlChanged(ptr unsafe.Pointer, url unsafe.Pointer) { if signal := qt.GetSignal(ptr, "urlChanged"); signal != nil { @@ -9254,17 +9021,6 @@ func (ptr *QWebEngineView) DestroyQWebEngineViewDefault() { } } -func (ptr *QWebEngineView) PageAction(action QWebEnginePage__WebAction) *widgets.QAction { - if ptr.Pointer() != nil { - tmpValue := widgets.NewQActionFromPointer(C.QWebEngineView_PageAction(ptr.Pointer(), C.longlong(action))) - if !qt.ExistsSignal(tmpValue.Pointer(), "destroyed") { - tmpValue.ConnectDestroyed(func(*core.QObject) { tmpValue.SetPointer(nil) }) - } - return tmpValue - } - return nil -} - func (ptr *QWebEngineView) Icon() *gui.QIcon { if ptr.Pointer() != nil { tmpValue := gui.NewQIconFromPointer(C.QWebEngineView_Icon(ptr.Pointer())) diff --git a/webengine/webengine.h b/webengine/webengine.h index ead31a9d..9d9ed2fd 100644 --- a/webengine/webengine.h +++ b/webengine/webengine.h @@ -353,8 +353,6 @@ void* QWebEnginePage_NewQWebEnginePage(void* parent); void* QWebEnginePage_NewQWebEnginePage2(void* profile, void* parent); char QWebEnginePage_AcceptNavigationRequest(void* ptr, void* url, long long ty, char isMainFrame); char QWebEnginePage_AcceptNavigationRequestDefault(void* ptr, void* url, long long ty, char isMainFrame); -char QWebEnginePage_CertificateError(void* ptr, void* certificateError); -char QWebEnginePage_CertificateErrorDefault(void* ptr, void* certificateError); char QWebEnginePage_EventDefault(void* ptr, void* e); char QWebEnginePage_JavaScriptConfirm(void* ptr, void* securityOrigin, struct QtWebEngine_PackedString msg); char QWebEnginePage_JavaScriptConfirmDefault(void* ptr, void* securityOrigin, struct QtWebEngine_PackedString msg); @@ -468,7 +466,6 @@ char QWebEnginePage_IsAudioMuted(void* ptr); char QWebEnginePage_RecentlyAudible(void* ptr); void* QWebEnginePage_ContextMenuData(void* ptr); double QWebEnginePage_ZoomFactor(void* ptr); -void QWebEnginePage_Save(void* ptr, struct QtWebEngine_PackedString filePath, long long format); void* QWebEnginePage___dynamicPropertyNames_atList(void* ptr, int i); void QWebEnginePage___dynamicPropertyNames_setList(void* ptr, void* i); void* QWebEnginePage___dynamicPropertyNames_newList(void* ptr); @@ -573,15 +570,8 @@ struct QtWebEngine_PackedString QWebEngineScript_SourceCode(void* ptr); char QWebEngineScript_IsNull(void* ptr); char QWebEngineScript_RunsOnSubFrames(void* ptr); unsigned int QWebEngineScript_WorldId(void* ptr); -char QWebEngineScriptCollection_Remove(void* ptr, void* script); void QWebEngineScriptCollection_Clear(void* ptr); -void QWebEngineScriptCollection_Insert2(void* ptr, void* list); -void QWebEngineScriptCollection_Insert(void* ptr, void* s); void QWebEngineScriptCollection_DestroyQWebEngineScriptCollection(void* ptr); -struct QtWebEngine_PackedList QWebEngineScriptCollection_FindScripts(void* ptr, struct QtWebEngine_PackedString name); -struct QtWebEngine_PackedList QWebEngineScriptCollection_ToList(void* ptr); -void* QWebEngineScriptCollection_FindScript(void* ptr, struct QtWebEngine_PackedString name); -char QWebEngineScriptCollection_Contains(void* ptr, void* value); char QWebEngineScriptCollection_IsEmpty(void* ptr); int QWebEngineScriptCollection_Count(void* ptr); int QWebEngineScriptCollection_Size(void* ptr); @@ -696,8 +686,6 @@ void QWebEngineUrlSchemeHandler_DeleteLaterDefault(void* ptr); void QWebEngineUrlSchemeHandler_DisconnectNotifyDefault(void* ptr, void* sign); void QWebEngineUrlSchemeHandler_TimerEventDefault(void* ptr, void* event); void* QWebEngineUrlSchemeHandler_MetaObjectDefault(void* ptr); -void* QWebEngineView_CreateWindow(void* ptr, long long ty); -void* QWebEngineView_CreateWindowDefault(void* ptr, long long ty); void* QWebEngineView_NewQWebEngineView(void* parent); char QWebEngineView_EventDefault(void* ptr, void* ev); void QWebEngineView_Back(void* ptr); @@ -730,9 +718,6 @@ void QWebEngineView_DisconnectLoadStarted(void* ptr); void QWebEngineView_LoadStarted(void* ptr); void QWebEngineView_Reload(void* ptr); void QWebEngineView_ReloadDefault(void* ptr); -void QWebEngineView_ConnectRenderProcessTerminated(void* ptr); -void QWebEngineView_DisconnectRenderProcessTerminated(void* ptr); -void QWebEngineView_RenderProcessTerminated(void* ptr, long long terminationStatus, int exitCode); void QWebEngineView_ConnectSelectionChanged(void* ptr); void QWebEngineView_DisconnectSelectionChanged(void* ptr); void QWebEngineView_SelectionChanged(void* ptr); @@ -747,13 +732,11 @@ void QWebEngineView_StopDefault(void* ptr); void QWebEngineView_ConnectTitleChanged(void* ptr); void QWebEngineView_DisconnectTitleChanged(void* ptr); void QWebEngineView_TitleChanged(void* ptr, struct QtWebEngine_PackedString title); -void QWebEngineView_TriggerPageAction(void* ptr, long long action, char checked); void QWebEngineView_ConnectUrlChanged(void* ptr); void QWebEngineView_DisconnectUrlChanged(void* ptr); void QWebEngineView_UrlChanged(void* ptr, void* url); void QWebEngineView_DestroyQWebEngineView(void* ptr); void QWebEngineView_DestroyQWebEngineViewDefault(void* ptr); -void* QWebEngineView_PageAction(void* ptr, long long action); void* QWebEngineView_Icon(void* ptr); void* QWebEngineView_SizeHintDefault(void* ptr); struct QtWebEngine_PackedString QWebEngineView_SelectedText(void* ptr); diff --git a/widgets/widgets.cpp b/widgets/widgets.cpp index 3af9990c..7e7258c9 100644 --- a/widgets/widgets.cpp +++ b/widgets/widgets.cpp @@ -59,6 +59,7 @@ #include #include #include +#include #include #include #include @@ -97,6 +98,7 @@ #include #include #include +#include #include #include #include @@ -165,6 +167,7 @@ #include #include #include +#include #include #include #include @@ -301,6 +304,7 @@ #include #include #include +#include #include #include #include @@ -10901,6 +10905,11 @@ void* QDesktopWidget_ScreenGeometry(void* ptr, int screen) return ({ QRect tmpValue = static_cast(ptr)->screenGeometry(screen); new QRect(tmpValue.x(), tmpValue.y(), tmpValue.width(), tmpValue.height()); }); } +int QDesktopWidget_NumScreens(void* ptr) +{ + return static_cast(ptr)->numScreens(); +} + int QDesktopWidget_PrimaryScreen(void* ptr) { return static_cast(ptr)->primaryScreen(); @@ -11669,6 +11678,950 @@ void* QDialogButtonBox___buttons_newList(void* ptr) return new QList(); } +class MyQDirModel: public QDirModel +{ +public: + MyQDirModel(QObject *parent = Q_NULLPTR) : QDirModel(parent) {QDirModel_QDirModel_QRegisterMetaType();}; + MyQDirModel(const QStringList &nameFilters, QDir::Filters filters, QDir::SortFlags sort, QObject *parent = Q_NULLPTR) : QDirModel(nameFilters, filters, sort, parent) {QDirModel_QDirModel_QRegisterMetaType();}; + bool dropMimeData(const QMimeData * data, Qt::DropAction action, int row, int column, const QModelIndex & parent) { return callbackQDirModel_DropMimeData(this, const_cast(data), action, row, column, const_cast(&parent)) != 0; }; + bool setData(const QModelIndex & index, const QVariant & value, int role) { return callbackQDirModel_SetData(this, const_cast(&index), const_cast(&value), role) != 0; }; + void refresh(const QModelIndex & parent) { callbackQDirModel_Refresh(this, const_cast(&parent)); }; + void sort(int column, Qt::SortOrder order) { callbackQDirModel_Sort(this, column, order); }; + QMimeData * mimeData(const QModelIndexList & indexes) const { return static_cast(callbackQDirModel_MimeData(const_cast(static_cast(this)), ({ QList* tmpValue = new QList(indexes); QtWidgets_PackedList { tmpValue, tmpValue->size() }; }))); }; + QModelIndex index(int row, int column, const QModelIndex & parent) const { return *static_cast(callbackQDirModel_Index(const_cast(static_cast(this)), row, column, const_cast(&parent))); }; + QModelIndex parent(const QModelIndex & child) const { return *static_cast(callbackQDirModel_Parent(const_cast(static_cast(this)), const_cast(&child))); }; + QStringList mimeTypes() const { return ({ QtWidgets_PackedString tempVal = callbackQDirModel_MimeTypes(const_cast(static_cast(this))); QStringList ret = QString::fromUtf8(tempVal.data, tempVal.len).split("|", QString::SkipEmptyParts); free(tempVal.data); ret; }); }; + QVariant data(const QModelIndex & index, int role) const { return *static_cast(callbackQDirModel_Data(const_cast(static_cast(this)), const_cast(&index), role)); }; + QVariant headerData(int section, Qt::Orientation orientation, int role) const { return *static_cast(callbackQDirModel_HeaderData(const_cast(static_cast(this)), section, orientation, role)); }; + Qt::DropActions supportedDropActions() const { return static_cast(callbackQDirModel_SupportedDropActions(const_cast(static_cast(this)))); }; + Qt::ItemFlags flags(const QModelIndex & index) const { return static_cast(callbackQDirModel_Flags(const_cast(static_cast(this)), const_cast(&index))); }; + bool hasChildren(const QModelIndex & parent) const { return callbackQDirModel_HasChildren(const_cast(static_cast(this)), const_cast(&parent)) != 0; }; + int columnCount(const QModelIndex & parent) const { return callbackQDirModel_ColumnCount(const_cast(static_cast(this)), const_cast(&parent)); }; + int rowCount(const QModelIndex & parent) const { return callbackQDirModel_RowCount(const_cast(static_cast(this)), const_cast(&parent)); }; + bool insertColumns(int column, int count, const QModelIndex & parent) { return callbackQDirModel_InsertColumns(this, column, count, const_cast(&parent)) != 0; }; + bool insertRows(int row, int count, const QModelIndex & parent) { return callbackQDirModel_InsertRows(this, row, count, const_cast(&parent)) != 0; }; + bool moveColumns(const QModelIndex & sourceParent, int sourceColumn, int count, const QModelIndex & destinationParent, int destinationChild) { return callbackQDirModel_MoveColumns(this, const_cast(&sourceParent), sourceColumn, count, const_cast(&destinationParent), destinationChild) != 0; }; + bool moveRows(const QModelIndex & sourceParent, int sourceRow, int count, const QModelIndex & destinationParent, int destinationChild) { return callbackQDirModel_MoveRows(this, const_cast(&sourceParent), sourceRow, count, const_cast(&destinationParent), destinationChild) != 0; }; + bool removeColumns(int column, int count, const QModelIndex & parent) { return callbackQDirModel_RemoveColumns(this, column, count, const_cast(&parent)) != 0; }; + bool removeRows(int row, int count, const QModelIndex & parent) { return callbackQDirModel_RemoveRows(this, row, count, const_cast(&parent)) != 0; }; + bool setHeaderData(int section, Qt::Orientation orientation, const QVariant & value, int role) { return callbackQDirModel_SetHeaderData(this, section, orientation, const_cast(&value), role) != 0; }; + bool setItemData(const QModelIndex & index, const QMap & roles) { return callbackQDirModel_SetItemData(this, const_cast(&index), ({ QMap* tmpValue = const_cast*>(&roles); QtWidgets_PackedList { tmpValue, tmpValue->size() }; })) != 0; }; + bool submit() { return callbackQDirModel_Submit(this) != 0; }; + void Signal_ColumnsAboutToBeInserted(const QModelIndex & parent, int first, int last) { callbackQDirModel_ColumnsAboutToBeInserted(this, const_cast(&parent), first, last); }; + void Signal_ColumnsAboutToBeMoved(const QModelIndex & sourceParent, int sourceStart, int sourceEnd, const QModelIndex & destinationParent, int destinationColumn) { callbackQDirModel_ColumnsAboutToBeMoved(this, const_cast(&sourceParent), sourceStart, sourceEnd, const_cast(&destinationParent), destinationColumn); }; + void Signal_ColumnsAboutToBeRemoved(const QModelIndex & parent, int first, int last) { callbackQDirModel_ColumnsAboutToBeRemoved(this, const_cast(&parent), first, last); }; + void Signal_ColumnsInserted(const QModelIndex & parent, int first, int last) { callbackQDirModel_ColumnsInserted(this, const_cast(&parent), first, last); }; + void Signal_ColumnsMoved(const QModelIndex & parent, int start, int end, const QModelIndex & destination, int column) { callbackQDirModel_ColumnsMoved(this, const_cast(&parent), start, end, const_cast(&destination), column); }; + void Signal_ColumnsRemoved(const QModelIndex & parent, int first, int last) { callbackQDirModel_ColumnsRemoved(this, const_cast(&parent), first, last); }; + void Signal_DataChanged(const QModelIndex & topLeft, const QModelIndex & bottomRight, const QVector & roles) { callbackQDirModel_DataChanged(this, const_cast(&topLeft), const_cast(&bottomRight), ({ QVector* tmpValue = const_cast*>(&roles); QtWidgets_PackedList { tmpValue, tmpValue->size() }; })); }; + void fetchMore(const QModelIndex & parent) { callbackQDirModel_FetchMore(this, const_cast(&parent)); }; + void Signal_HeaderDataChanged(Qt::Orientation orientation, int first, int last) { callbackQDirModel_HeaderDataChanged(this, orientation, first, last); }; + void Signal_LayoutAboutToBeChanged(const QList & parents, QAbstractItemModel::LayoutChangeHint hint) { callbackQDirModel_LayoutAboutToBeChanged(this, ({ QList* tmpValue = const_cast*>(&parents); QtWidgets_PackedList { tmpValue, tmpValue->size() }; }), hint); }; + void Signal_LayoutChanged(const QList & parents, QAbstractItemModel::LayoutChangeHint hint) { callbackQDirModel_LayoutChanged(this, ({ QList* tmpValue = const_cast*>(&parents); QtWidgets_PackedList { tmpValue, tmpValue->size() }; }), hint); }; + void Signal_ModelAboutToBeReset() { callbackQDirModel_ModelAboutToBeReset(this); }; + void Signal_ModelReset() { callbackQDirModel_ModelReset(this); }; + void resetInternalData() { callbackQDirModel_ResetInternalData(this); }; + void revert() { callbackQDirModel_Revert(this); }; + void Signal_RowsAboutToBeInserted(const QModelIndex & parent, int start, int end) { callbackQDirModel_RowsAboutToBeInserted(this, const_cast(&parent), start, end); }; + void Signal_RowsAboutToBeMoved(const QModelIndex & sourceParent, int sourceStart, int sourceEnd, const QModelIndex & destinationParent, int destinationRow) { callbackQDirModel_RowsAboutToBeMoved(this, const_cast(&sourceParent), sourceStart, sourceEnd, const_cast(&destinationParent), destinationRow); }; + void Signal_RowsAboutToBeRemoved(const QModelIndex & parent, int first, int last) { callbackQDirModel_RowsAboutToBeRemoved(this, const_cast(&parent), first, last); }; + void Signal_RowsInserted(const QModelIndex & parent, int first, int last) { callbackQDirModel_RowsInserted(this, const_cast(&parent), first, last); }; + void Signal_RowsMoved(const QModelIndex & parent, int start, int end, const QModelIndex & destination, int row) { callbackQDirModel_RowsMoved(this, const_cast(&parent), start, end, const_cast(&destination), row); }; + void Signal_RowsRemoved(const QModelIndex & parent, int first, int last) { callbackQDirModel_RowsRemoved(this, const_cast(&parent), first, last); }; + QHash roleNames() const { return ({ QHash* tmpP = static_cast*>(callbackQDirModel_RoleNames(const_cast(static_cast(this)))); QHash tmpV = *tmpP; tmpP->~QHash(); free(tmpP); tmpV; }); }; + QMap itemData(const QModelIndex & index) const { return ({ QMap* tmpP = static_cast*>(callbackQDirModel_ItemData(const_cast(static_cast(this)), const_cast(&index))); QMap tmpV = *tmpP; tmpP->~QMap(); free(tmpP); tmpV; }); }; + QModelIndex buddy(const QModelIndex & index) const { return *static_cast(callbackQDirModel_Buddy(const_cast(static_cast(this)), const_cast(&index))); }; + QModelIndex sibling(int row, int column, const QModelIndex & index) const { return *static_cast(callbackQDirModel_Sibling(const_cast(static_cast(this)), row, column, const_cast(&index))); }; + QList match(const QModelIndex & start, int role, const QVariant & value, int hits, Qt::MatchFlags flags) const { return ({ QList* tmpP = static_cast*>(callbackQDirModel_Match(const_cast(static_cast(this)), const_cast(&start), role, const_cast(&value), hits, flags)); QList tmpV = *tmpP; tmpP->~QList(); free(tmpP); tmpV; }); }; + QSize span(const QModelIndex & index) const { return *static_cast(callbackQDirModel_Span(const_cast(static_cast(this)), const_cast(&index))); }; + Qt::DropActions supportedDragActions() const { return static_cast(callbackQDirModel_SupportedDragActions(const_cast(static_cast(this)))); }; + bool canDropMimeData(const QMimeData * data, Qt::DropAction action, int row, int column, const QModelIndex & parent) const { return callbackQDirModel_CanDropMimeData(const_cast(static_cast(this)), const_cast(data), action, row, column, const_cast(&parent)) != 0; }; + bool canFetchMore(const QModelIndex & parent) const { return callbackQDirModel_CanFetchMore(const_cast(static_cast(this)), const_cast(&parent)) != 0; }; + bool event(QEvent * e) { return callbackQDirModel_Event(this, e) != 0; }; + bool eventFilter(QObject * watched, QEvent * event) { return callbackQDirModel_EventFilter(this, watched, event) != 0; }; + void childEvent(QChildEvent * event) { callbackQDirModel_ChildEvent(this, event); }; + void connectNotify(const QMetaMethod & sign) { callbackQDirModel_ConnectNotify(this, const_cast(&sign)); }; + void customEvent(QEvent * event) { callbackQDirModel_CustomEvent(this, event); }; + void deleteLater() { callbackQDirModel_DeleteLater(this); }; + void Signal_Destroyed(QObject * obj) { callbackQDirModel_Destroyed(this, obj); }; + void disconnectNotify(const QMetaMethod & sign) { callbackQDirModel_DisconnectNotify(this, const_cast(&sign)); }; + void Signal_ObjectNameChanged(const QString & objectName) { QByteArray taa2c4f = objectName.toUtf8(); QtWidgets_PackedString objectNamePacked = { const_cast(taa2c4f.prepend("WHITESPACE").constData()+10), taa2c4f.size()-10 };callbackQDirModel_ObjectNameChanged(this, objectNamePacked); }; + void timerEvent(QTimerEvent * event) { callbackQDirModel_TimerEvent(this, event); }; + const QMetaObject * metaObject() const { return static_cast(callbackQDirModel_MetaObject(const_cast(static_cast(this)))); }; +}; + +Q_DECLARE_METATYPE(MyQDirModel*) + +int QDirModel_QDirModel_QRegisterMetaType(){qRegisterMetaType(); return qRegisterMetaType();} + +int QDirModel_FilePathRole_Type() +{ + return QDirModel::FilePathRole; +} + +int QDirModel_FileNameRole_Type() +{ + return QDirModel::FileNameRole; +} + +char QDirModel_DropMimeDataDefault(void* ptr, void* data, long long action, int row, int column, void* parent) +{ + return static_cast(ptr)->QDirModel::dropMimeData(static_cast(data), static_cast(action), row, column, *static_cast(parent)); +} + +char QDirModel_SetDataDefault(void* ptr, void* index, void* value, int role) +{ + return static_cast(ptr)->QDirModel::setData(*static_cast(index), *static_cast(value), role); +} + +void QDirModel_SetFilter(void* ptr, long long filters) +{ + static_cast(ptr)->setFilter(static_cast(filters)); +} + +void QDirModel_SetLazyChildCount(void* ptr, char enable) +{ + static_cast(ptr)->setLazyChildCount(enable != 0); +} + +void* QDirModel_NewQDirModel2(void* parent) +{ + if (dynamic_cast(static_cast(parent))) { + return new MyQDirModel(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQDirModel(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQDirModel(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQDirModel(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQDirModel(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQDirModel(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQDirModel(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQDirModel(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQDirModel(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQDirModel(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQDirModel(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQDirModel(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQDirModel(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQDirModel(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQDirModel(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQDirModel(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQDirModel(static_cast(parent)); + } else { + return new MyQDirModel(static_cast(parent)); + } +} + +void* QDirModel_NewQDirModel(struct QtWidgets_PackedString nameFilters, long long filters, long long sort, void* parent) +{ + if (dynamic_cast(static_cast(parent))) { + return new MyQDirModel(QString::fromUtf8(nameFilters.data, nameFilters.len).split("|", QString::SkipEmptyParts), static_cast(filters), static_cast(sort), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQDirModel(QString::fromUtf8(nameFilters.data, nameFilters.len).split("|", QString::SkipEmptyParts), static_cast(filters), static_cast(sort), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQDirModel(QString::fromUtf8(nameFilters.data, nameFilters.len).split("|", QString::SkipEmptyParts), static_cast(filters), static_cast(sort), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQDirModel(QString::fromUtf8(nameFilters.data, nameFilters.len).split("|", QString::SkipEmptyParts), static_cast(filters), static_cast(sort), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQDirModel(QString::fromUtf8(nameFilters.data, nameFilters.len).split("|", QString::SkipEmptyParts), static_cast(filters), static_cast(sort), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQDirModel(QString::fromUtf8(nameFilters.data, nameFilters.len).split("|", QString::SkipEmptyParts), static_cast(filters), static_cast(sort), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQDirModel(QString::fromUtf8(nameFilters.data, nameFilters.len).split("|", QString::SkipEmptyParts), static_cast(filters), static_cast(sort), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQDirModel(QString::fromUtf8(nameFilters.data, nameFilters.len).split("|", QString::SkipEmptyParts), static_cast(filters), static_cast(sort), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQDirModel(QString::fromUtf8(nameFilters.data, nameFilters.len).split("|", QString::SkipEmptyParts), static_cast(filters), static_cast(sort), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQDirModel(QString::fromUtf8(nameFilters.data, nameFilters.len).split("|", QString::SkipEmptyParts), static_cast(filters), static_cast(sort), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQDirModel(QString::fromUtf8(nameFilters.data, nameFilters.len).split("|", QString::SkipEmptyParts), static_cast(filters), static_cast(sort), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQDirModel(QString::fromUtf8(nameFilters.data, nameFilters.len).split("|", QString::SkipEmptyParts), static_cast(filters), static_cast(sort), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQDirModel(QString::fromUtf8(nameFilters.data, nameFilters.len).split("|", QString::SkipEmptyParts), static_cast(filters), static_cast(sort), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQDirModel(QString::fromUtf8(nameFilters.data, nameFilters.len).split("|", QString::SkipEmptyParts), static_cast(filters), static_cast(sort), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQDirModel(QString::fromUtf8(nameFilters.data, nameFilters.len).split("|", QString::SkipEmptyParts), static_cast(filters), static_cast(sort), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQDirModel(QString::fromUtf8(nameFilters.data, nameFilters.len).split("|", QString::SkipEmptyParts), static_cast(filters), static_cast(sort), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQDirModel(QString::fromUtf8(nameFilters.data, nameFilters.len).split("|", QString::SkipEmptyParts), static_cast(filters), static_cast(sort), static_cast(parent)); + } else { + return new MyQDirModel(QString::fromUtf8(nameFilters.data, nameFilters.len).split("|", QString::SkipEmptyParts), static_cast(filters), static_cast(sort), static_cast(parent)); + } +} + +void* QDirModel_Mkdir(void* ptr, void* parent, struct QtWidgets_PackedString name) +{ + return new QModelIndex(static_cast(ptr)->mkdir(*static_cast(parent), QString::fromUtf8(name.data, name.len))); +} + +char QDirModel_Remove(void* ptr, void* index) +{ + return static_cast(ptr)->remove(*static_cast(index)); +} + +char QDirModel_Rmdir(void* ptr, void* index) +{ + return static_cast(ptr)->rmdir(*static_cast(index)); +} + +void QDirModel_Refresh(void* ptr, void* parent) +{ + QMetaObject::invokeMethod(static_cast(ptr), "refresh", Q_ARG(const QModelIndex, *static_cast(parent))); +} + +void QDirModel_RefreshDefault(void* ptr, void* parent) +{ + static_cast(ptr)->QDirModel::refresh(*static_cast(parent)); +} + +void QDirModel_SetIconProvider(void* ptr, void* provider) +{ + static_cast(ptr)->setIconProvider(static_cast(provider)); +} + +void QDirModel_SetNameFilters(void* ptr, struct QtWidgets_PackedString filters) +{ + static_cast(ptr)->setNameFilters(QString::fromUtf8(filters.data, filters.len).split("|", QString::SkipEmptyParts)); +} + +void QDirModel_SetReadOnly(void* ptr, char enable) +{ + static_cast(ptr)->setReadOnly(enable != 0); +} + +void QDirModel_SetResolveSymlinks(void* ptr, char enable) +{ + static_cast(ptr)->setResolveSymlinks(enable != 0); +} + +void QDirModel_SetSorting(void* ptr, long long sort) +{ + static_cast(ptr)->setSorting(static_cast(sort)); +} + +void QDirModel_SortDefault(void* ptr, int column, long long order) +{ + static_cast(ptr)->QDirModel::sort(column, static_cast(order)); +} + +void QDirModel_DestroyQDirModel(void* ptr) +{ + static_cast(ptr)->~QDirModel(); +} + +long long QDirModel_Filter(void* ptr) +{ + return static_cast(ptr)->filter(); +} + +long long QDirModel_Sorting(void* ptr) +{ + return static_cast(ptr)->sorting(); +} + +void* QDirModel_IconProvider(void* ptr) +{ + return static_cast(ptr)->iconProvider(); +} + +void* QDirModel_FileInfo(void* ptr, void* index) +{ + return new QFileInfo(static_cast(ptr)->fileInfo(*static_cast(index))); +} + +void* QDirModel_FileIcon(void* ptr, void* index) +{ + return new QIcon(static_cast(ptr)->fileIcon(*static_cast(index))); +} + +void* QDirModel_MimeDataDefault(void* ptr, void* indexes) +{ + return static_cast(ptr)->QDirModel::mimeData(({ QList* tmpP = static_cast*>(indexes); QList tmpV = *tmpP; tmpP->~QList(); free(tmpP); tmpV; })); +} + +void* QDirModel_Index2(void* ptr, struct QtWidgets_PackedString path, int column) +{ + return new QModelIndex(static_cast(ptr)->index(QString::fromUtf8(path.data, path.len), column)); +} + +void* QDirModel_Index(void* ptr, int row, int column, void* parent) +{ + return new QModelIndex(static_cast(ptr)->index(row, column, *static_cast(parent))); +} + +void* QDirModel_IndexDefault(void* ptr, int row, int column, void* parent) +{ + return new QModelIndex(static_cast(ptr)->QDirModel::index(row, column, *static_cast(parent))); +} + +void* QDirModel_Parent(void* ptr, void* child) +{ + return new QModelIndex(static_cast(ptr)->parent(*static_cast(child))); +} + +void* QDirModel_ParentDefault(void* ptr, void* child) +{ + return new QModelIndex(static_cast(ptr)->QDirModel::parent(*static_cast(child))); +} + +struct QtWidgets_PackedString QDirModel_FileName(void* ptr, void* index) +{ + return ({ QByteArray tefae33 = static_cast(ptr)->fileName(*static_cast(index)).toUtf8(); QtWidgets_PackedString { const_cast(tefae33.prepend("WHITESPACE").constData()+10), tefae33.size()-10 }; }); +} + +struct QtWidgets_PackedString QDirModel_FilePath(void* ptr, void* index) +{ + return ({ QByteArray t327f53 = static_cast(ptr)->filePath(*static_cast(index)).toUtf8(); QtWidgets_PackedString { const_cast(t327f53.prepend("WHITESPACE").constData()+10), t327f53.size()-10 }; }); +} + +struct QtWidgets_PackedString QDirModel_MimeTypesDefault(void* ptr) +{ + return ({ QByteArray td08e24 = static_cast(ptr)->QDirModel::mimeTypes().join("|").toUtf8(); QtWidgets_PackedString { const_cast(td08e24.prepend("WHITESPACE").constData()+10), td08e24.size()-10 }; }); +} + +struct QtWidgets_PackedString QDirModel_NameFilters(void* ptr) +{ + return ({ QByteArray taf268e = static_cast(ptr)->nameFilters().join("|").toUtf8(); QtWidgets_PackedString { const_cast(taf268e.prepend("WHITESPACE").constData()+10), taf268e.size()-10 }; }); +} + +void* QDirModel_Data(void* ptr, void* index, int role) +{ + return new QVariant(static_cast(ptr)->data(*static_cast(index), role)); +} + +void* QDirModel_DataDefault(void* ptr, void* index, int role) +{ + return new QVariant(static_cast(ptr)->QDirModel::data(*static_cast(index), role)); +} + +void* QDirModel_HeaderDataDefault(void* ptr, int section, long long orientation, int role) +{ + return new QVariant(static_cast(ptr)->QDirModel::headerData(section, static_cast(orientation), role)); +} + +long long QDirModel_SupportedDropActionsDefault(void* ptr) +{ + return static_cast(ptr)->QDirModel::supportedDropActions(); +} + +long long QDirModel_FlagsDefault(void* ptr, void* index) +{ + return static_cast(ptr)->QDirModel::flags(*static_cast(index)); +} + +char QDirModel_HasChildrenDefault(void* ptr, void* parent) +{ + return static_cast(ptr)->QDirModel::hasChildren(*static_cast(parent)); +} + +char QDirModel_IsDir(void* ptr, void* index) +{ + return static_cast(ptr)->isDir(*static_cast(index)); +} + +char QDirModel_IsReadOnly(void* ptr) +{ + return static_cast(ptr)->isReadOnly(); +} + +char QDirModel_LazyChildCount(void* ptr) +{ + return static_cast(ptr)->lazyChildCount(); +} + +char QDirModel_ResolveSymlinks(void* ptr) +{ + return static_cast(ptr)->resolveSymlinks(); +} + +int QDirModel_ColumnCount(void* ptr, void* parent) +{ + return static_cast(ptr)->columnCount(*static_cast(parent)); +} + +int QDirModel_ColumnCountDefault(void* ptr, void* parent) +{ + return static_cast(ptr)->QDirModel::columnCount(*static_cast(parent)); +} + +int QDirModel_RowCount(void* ptr, void* parent) +{ + return static_cast(ptr)->rowCount(*static_cast(parent)); +} + +int QDirModel_RowCountDefault(void* ptr, void* parent) +{ + return static_cast(ptr)->QDirModel::rowCount(*static_cast(parent)); +} + +void* QDirModel___mimeData_indexes_atList(void* ptr, int i) +{ + return new QModelIndex(({QModelIndex tmp = static_cast*>(ptr)->at(i); if (i == static_cast*>(ptr)->size()-1) { static_cast*>(ptr)->~QList(); free(ptr); }; tmp; })); +} + +void QDirModel___mimeData_indexes_setList(void* ptr, void* i) +{ + static_cast*>(ptr)->append(*static_cast(i)); +} + +void* QDirModel___mimeData_indexes_newList(void* ptr) +{ + Q_UNUSED(ptr); + return new QList(); +} + +void* QDirModel___setItemData_roles_atList(void* ptr, int v, int i) +{ + return new QVariant(({ QVariant tmp = static_cast*>(ptr)->value(v); if (i == static_cast*>(ptr)->size()-1) { static_cast*>(ptr)->~QMap(); free(ptr); }; tmp; })); +} + +void QDirModel___setItemData_roles_setList(void* ptr, int key, void* i) +{ + static_cast*>(ptr)->insert(key, *static_cast(i)); +} + +void* QDirModel___setItemData_roles_newList(void* ptr) +{ + Q_UNUSED(ptr); + return new QMap(); +} + +struct QtWidgets_PackedList QDirModel___setItemData_keyList(void* ptr) +{ + return ({ QList* tmpValue = new QList(static_cast*>(ptr)->keys()); QtWidgets_PackedList { tmpValue, tmpValue->size() }; }); +} + +void* QDirModel___changePersistentIndexList_from_atList(void* ptr, int i) +{ + return new QModelIndex(({QModelIndex tmp = static_cast*>(ptr)->at(i); if (i == static_cast*>(ptr)->size()-1) { static_cast*>(ptr)->~QList(); free(ptr); }; tmp; })); +} + +void QDirModel___changePersistentIndexList_from_setList(void* ptr, void* i) +{ + static_cast*>(ptr)->append(*static_cast(i)); +} + +void* QDirModel___changePersistentIndexList_from_newList(void* ptr) +{ + Q_UNUSED(ptr); + return new QList(); +} + +void* QDirModel___changePersistentIndexList_to_atList(void* ptr, int i) +{ + return new QModelIndex(({QModelIndex tmp = static_cast*>(ptr)->at(i); if (i == static_cast*>(ptr)->size()-1) { static_cast*>(ptr)->~QList(); free(ptr); }; tmp; })); +} + +void QDirModel___changePersistentIndexList_to_setList(void* ptr, void* i) +{ + static_cast*>(ptr)->append(*static_cast(i)); +} + +void* QDirModel___changePersistentIndexList_to_newList(void* ptr) +{ + Q_UNUSED(ptr); + return new QList(); +} + +int QDirModel___dataChanged_roles_atList(void* ptr, int i) +{ + return ({int tmp = static_cast*>(ptr)->at(i); if (i == static_cast*>(ptr)->size()-1) { static_cast*>(ptr)->~QVector(); free(ptr); }; tmp; }); +} + +void QDirModel___dataChanged_roles_setList(void* ptr, int i) +{ + static_cast*>(ptr)->append(i); +} + +void* QDirModel___dataChanged_roles_newList(void* ptr) +{ + Q_UNUSED(ptr); + return new QVector(); +} + +void* QDirModel___layoutAboutToBeChanged_parents_atList(void* ptr, int i) +{ + return new QPersistentModelIndex(({QPersistentModelIndex tmp = static_cast*>(ptr)->at(i); if (i == static_cast*>(ptr)->size()-1) { static_cast*>(ptr)->~QList(); free(ptr); }; tmp; })); +} + +void QDirModel___layoutAboutToBeChanged_parents_setList(void* ptr, void* i) +{ + static_cast*>(ptr)->append(*static_cast(i)); +} + +void* QDirModel___layoutAboutToBeChanged_parents_newList(void* ptr) +{ + Q_UNUSED(ptr); + return new QList(); +} + +void* QDirModel___layoutChanged_parents_atList(void* ptr, int i) +{ + return new QPersistentModelIndex(({QPersistentModelIndex tmp = static_cast*>(ptr)->at(i); if (i == static_cast*>(ptr)->size()-1) { static_cast*>(ptr)->~QList(); free(ptr); }; tmp; })); +} + +void QDirModel___layoutChanged_parents_setList(void* ptr, void* i) +{ + static_cast*>(ptr)->append(*static_cast(i)); +} + +void* QDirModel___layoutChanged_parents_newList(void* ptr) +{ + Q_UNUSED(ptr); + return new QList(); +} + +void* QDirModel___roleNames_atList(void* ptr, int v, int i) +{ + return new QByteArray(({ QByteArray tmp = static_cast*>(ptr)->value(v); if (i == static_cast*>(ptr)->size()-1) { static_cast*>(ptr)->~QHash(); free(ptr); }; tmp; })); +} + +void QDirModel___roleNames_setList(void* ptr, int key, void* i) +{ + static_cast*>(ptr)->insert(key, *static_cast(i)); +} + +void* QDirModel___roleNames_newList(void* ptr) +{ + Q_UNUSED(ptr); + return new QHash(); +} + +struct QtWidgets_PackedList QDirModel___roleNames_keyList(void* ptr) +{ + return ({ QList* tmpValue = new QList(static_cast*>(ptr)->keys()); QtWidgets_PackedList { tmpValue, tmpValue->size() }; }); +} + +void* QDirModel___itemData_atList(void* ptr, int v, int i) +{ + return new QVariant(({ QVariant tmp = static_cast*>(ptr)->value(v); if (i == static_cast*>(ptr)->size()-1) { static_cast*>(ptr)->~QMap(); free(ptr); }; tmp; })); +} + +void QDirModel___itemData_setList(void* ptr, int key, void* i) +{ + static_cast*>(ptr)->insert(key, *static_cast(i)); +} + +void* QDirModel___itemData_newList(void* ptr) +{ + Q_UNUSED(ptr); + return new QMap(); +} + +struct QtWidgets_PackedList QDirModel___itemData_keyList(void* ptr) +{ + return ({ QList* tmpValue = new QList(static_cast*>(ptr)->keys()); QtWidgets_PackedList { tmpValue, tmpValue->size() }; }); +} + +void* QDirModel___match_atList(void* ptr, int i) +{ + return new QModelIndex(({QModelIndex tmp = static_cast*>(ptr)->at(i); if (i == static_cast*>(ptr)->size()-1) { static_cast*>(ptr)->~QList(); free(ptr); }; tmp; })); +} + +void QDirModel___match_setList(void* ptr, void* i) +{ + static_cast*>(ptr)->append(*static_cast(i)); +} + +void* QDirModel___match_newList(void* ptr) +{ + Q_UNUSED(ptr); + return new QList(); +} + +void* QDirModel___persistentIndexList_atList(void* ptr, int i) +{ + return new QModelIndex(({QModelIndex tmp = static_cast*>(ptr)->at(i); if (i == static_cast*>(ptr)->size()-1) { static_cast*>(ptr)->~QList(); free(ptr); }; tmp; })); +} + +void QDirModel___persistentIndexList_setList(void* ptr, void* i) +{ + static_cast*>(ptr)->append(*static_cast(i)); +} + +void* QDirModel___persistentIndexList_newList(void* ptr) +{ + Q_UNUSED(ptr); + return new QList(); +} + +int QDirModel_____setItemData_keyList_atList(void* ptr, int i) +{ + return ({int tmp = static_cast*>(ptr)->at(i); if (i == static_cast*>(ptr)->size()-1) { static_cast*>(ptr)->~QList(); free(ptr); }; tmp; }); +} + +void QDirModel_____setItemData_keyList_setList(void* ptr, int i) +{ + static_cast*>(ptr)->append(i); +} + +void* QDirModel_____setItemData_keyList_newList(void* ptr) +{ + Q_UNUSED(ptr); + return new QList(); +} + +int QDirModel_____doSetRoleNames_keyList_atList(void* ptr, int i) +{ + return ({int tmp = static_cast*>(ptr)->at(i); if (i == static_cast*>(ptr)->size()-1) { static_cast*>(ptr)->~QList(); free(ptr); }; tmp; }); +} + +void QDirModel_____doSetRoleNames_keyList_setList(void* ptr, int i) +{ + static_cast*>(ptr)->append(i); +} + +void* QDirModel_____doSetRoleNames_keyList_newList(void* ptr) +{ + Q_UNUSED(ptr); + return new QList(); +} + +int QDirModel_____setRoleNames_keyList_atList(void* ptr, int i) +{ + return ({int tmp = static_cast*>(ptr)->at(i); if (i == static_cast*>(ptr)->size()-1) { static_cast*>(ptr)->~QList(); free(ptr); }; tmp; }); +} + +void QDirModel_____setRoleNames_keyList_setList(void* ptr, int i) +{ + static_cast*>(ptr)->append(i); +} + +void* QDirModel_____setRoleNames_keyList_newList(void* ptr) +{ + Q_UNUSED(ptr); + return new QList(); +} + +int QDirModel_____roleNames_keyList_atList(void* ptr, int i) +{ + return ({int tmp = static_cast*>(ptr)->at(i); if (i == static_cast*>(ptr)->size()-1) { static_cast*>(ptr)->~QList(); free(ptr); }; tmp; }); +} + +void QDirModel_____roleNames_keyList_setList(void* ptr, int i) +{ + static_cast*>(ptr)->append(i); +} + +void* QDirModel_____roleNames_keyList_newList(void* ptr) +{ + Q_UNUSED(ptr); + return new QList(); +} + +int QDirModel_____itemData_keyList_atList(void* ptr, int i) +{ + return ({int tmp = static_cast*>(ptr)->at(i); if (i == static_cast*>(ptr)->size()-1) { static_cast*>(ptr)->~QList(); free(ptr); }; tmp; }); +} + +void QDirModel_____itemData_keyList_setList(void* ptr, int i) +{ + static_cast*>(ptr)->append(i); +} + +void* QDirModel_____itemData_keyList_newList(void* ptr) +{ + Q_UNUSED(ptr); + return new QList(); +} + +void* QDirModel___dynamicPropertyNames_atList(void* ptr, int i) +{ + return new QByteArray(({QByteArray tmp = static_cast*>(ptr)->at(i); if (i == static_cast*>(ptr)->size()-1) { static_cast*>(ptr)->~QList(); free(ptr); }; tmp; })); +} + +void QDirModel___dynamicPropertyNames_setList(void* ptr, void* i) +{ + static_cast*>(ptr)->append(*static_cast(i)); +} + +void* QDirModel___dynamicPropertyNames_newList(void* ptr) +{ + Q_UNUSED(ptr); + return new QList(); +} + +void* QDirModel___findChildren_atList2(void* ptr, int i) +{ + return ({QObject* tmp = static_cast*>(ptr)->at(i); if (i == static_cast*>(ptr)->size()-1) { static_cast*>(ptr)->~QList(); free(ptr); }; tmp; }); +} + +void QDirModel___findChildren_setList2(void* ptr, void* i) +{ + if (dynamic_cast(static_cast(i))) { + static_cast*>(ptr)->append(static_cast(i)); + } else if (dynamic_cast(static_cast(i))) { + static_cast*>(ptr)->append(static_cast(i)); + } else if (dynamic_cast(static_cast(i))) { + static_cast*>(ptr)->append(static_cast(i)); + } else if (dynamic_cast(static_cast(i))) { + static_cast*>(ptr)->append(static_cast(i)); + } else { + static_cast*>(ptr)->append(static_cast(i)); + } +} + +void* QDirModel___findChildren_newList2(void* ptr) +{ + Q_UNUSED(ptr); + return new QList(); +} + +void* QDirModel___findChildren_atList3(void* ptr, int i) +{ + return ({QObject* tmp = static_cast*>(ptr)->at(i); if (i == static_cast*>(ptr)->size()-1) { static_cast*>(ptr)->~QList(); free(ptr); }; tmp; }); +} + +void QDirModel___findChildren_setList3(void* ptr, void* i) +{ + if (dynamic_cast(static_cast(i))) { + static_cast*>(ptr)->append(static_cast(i)); + } else if (dynamic_cast(static_cast(i))) { + static_cast*>(ptr)->append(static_cast(i)); + } else if (dynamic_cast(static_cast(i))) { + static_cast*>(ptr)->append(static_cast(i)); + } else if (dynamic_cast(static_cast(i))) { + static_cast*>(ptr)->append(static_cast(i)); + } else { + static_cast*>(ptr)->append(static_cast(i)); + } +} + +void* QDirModel___findChildren_newList3(void* ptr) +{ + Q_UNUSED(ptr); + return new QList(); +} + +void* QDirModel___findChildren_atList(void* ptr, int i) +{ + return ({QObject* tmp = static_cast*>(ptr)->at(i); if (i == static_cast*>(ptr)->size()-1) { static_cast*>(ptr)->~QList(); free(ptr); }; tmp; }); +} + +void QDirModel___findChildren_setList(void* ptr, void* i) +{ + if (dynamic_cast(static_cast(i))) { + static_cast*>(ptr)->append(static_cast(i)); + } else if (dynamic_cast(static_cast(i))) { + static_cast*>(ptr)->append(static_cast(i)); + } else if (dynamic_cast(static_cast(i))) { + static_cast*>(ptr)->append(static_cast(i)); + } else if (dynamic_cast(static_cast(i))) { + static_cast*>(ptr)->append(static_cast(i)); + } else { + static_cast*>(ptr)->append(static_cast(i)); + } +} + +void* QDirModel___findChildren_newList(void* ptr) +{ + Q_UNUSED(ptr); + return new QList(); +} + +void* QDirModel___children_atList(void* ptr, int i) +{ + return ({QObject * tmp = static_cast*>(ptr)->at(i); if (i == static_cast*>(ptr)->size()-1) { static_cast*>(ptr)->~QList(); free(ptr); }; tmp; }); +} + +void QDirModel___children_setList(void* ptr, void* i) +{ + if (dynamic_cast(static_cast(i))) { + static_cast*>(ptr)->append(static_cast(i)); + } else if (dynamic_cast(static_cast(i))) { + static_cast*>(ptr)->append(static_cast(i)); + } else if (dynamic_cast(static_cast(i))) { + static_cast*>(ptr)->append(static_cast(i)); + } else if (dynamic_cast(static_cast(i))) { + static_cast*>(ptr)->append(static_cast(i)); + } else { + static_cast*>(ptr)->append(static_cast(i)); + } +} + +void* QDirModel___children_newList(void* ptr) +{ + Q_UNUSED(ptr); + return new QList(); +} + +char QDirModel_InsertColumnsDefault(void* ptr, int column, int count, void* parent) +{ + return static_cast(ptr)->QDirModel::insertColumns(column, count, *static_cast(parent)); +} + +char QDirModel_InsertRowsDefault(void* ptr, int row, int count, void* parent) +{ + return static_cast(ptr)->QDirModel::insertRows(row, count, *static_cast(parent)); +} + +char QDirModel_MoveColumnsDefault(void* ptr, void* sourceParent, int sourceColumn, int count, void* destinationParent, int destinationChild) +{ + return static_cast(ptr)->QDirModel::moveColumns(*static_cast(sourceParent), sourceColumn, count, *static_cast(destinationParent), destinationChild); +} + +char QDirModel_MoveRowsDefault(void* ptr, void* sourceParent, int sourceRow, int count, void* destinationParent, int destinationChild) +{ + return static_cast(ptr)->QDirModel::moveRows(*static_cast(sourceParent), sourceRow, count, *static_cast(destinationParent), destinationChild); +} + +char QDirModel_RemoveColumnsDefault(void* ptr, int column, int count, void* parent) +{ + return static_cast(ptr)->QDirModel::removeColumns(column, count, *static_cast(parent)); +} + +char QDirModel_RemoveRowsDefault(void* ptr, int row, int count, void* parent) +{ + return static_cast(ptr)->QDirModel::removeRows(row, count, *static_cast(parent)); +} + +char QDirModel_SetHeaderDataDefault(void* ptr, int section, long long orientation, void* value, int role) +{ + return static_cast(ptr)->QDirModel::setHeaderData(section, static_cast(orientation), *static_cast(value), role); +} + +char QDirModel_SetItemDataDefault(void* ptr, void* index, void* roles) +{ + return static_cast(ptr)->QDirModel::setItemData(*static_cast(index), *static_cast*>(roles)); +} + +char QDirModel_SubmitDefault(void* ptr) +{ + return static_cast(ptr)->QDirModel::submit(); +} + +void QDirModel_FetchMoreDefault(void* ptr, void* parent) +{ + static_cast(ptr)->QDirModel::fetchMore(*static_cast(parent)); +} + +void QDirModel_ResetInternalDataDefault(void* ptr) +{ + static_cast(ptr)->QDirModel::resetInternalData(); +} + +void QDirModel_RevertDefault(void* ptr) +{ + static_cast(ptr)->QDirModel::revert(); +} + +struct QtWidgets_PackedList QDirModel_RoleNamesDefault(void* ptr) +{ + return ({ QHash* tmpValue = new QHash(static_cast(ptr)->QDirModel::roleNames()); QtWidgets_PackedList { tmpValue, tmpValue->size() }; }); +} + +struct QtWidgets_PackedList QDirModel_ItemDataDefault(void* ptr, void* index) +{ + return ({ QMap* tmpValue = new QMap(static_cast(ptr)->QDirModel::itemData(*static_cast(index))); QtWidgets_PackedList { tmpValue, tmpValue->size() }; }); +} + +void* QDirModel_BuddyDefault(void* ptr, void* index) +{ + return new QModelIndex(static_cast(ptr)->QDirModel::buddy(*static_cast(index))); +} + +void* QDirModel_SiblingDefault(void* ptr, int row, int column, void* index) +{ + return new QModelIndex(static_cast(ptr)->QDirModel::sibling(row, column, *static_cast(index))); +} + +struct QtWidgets_PackedList QDirModel_MatchDefault(void* ptr, void* start, int role, void* value, int hits, long long flags) +{ + return ({ QList* tmpValue = new QList(static_cast(ptr)->QDirModel::match(*static_cast(start), role, *static_cast(value), hits, static_cast(flags))); QtWidgets_PackedList { tmpValue, tmpValue->size() }; }); +} + +void* QDirModel_SpanDefault(void* ptr, void* index) +{ + return ({ QSize tmpValue = static_cast(ptr)->QDirModel::span(*static_cast(index)); new QSize(tmpValue.width(), tmpValue.height()); }); +} + +long long QDirModel_SupportedDragActionsDefault(void* ptr) +{ + return static_cast(ptr)->QDirModel::supportedDragActions(); +} + +char QDirModel_CanDropMimeDataDefault(void* ptr, void* data, long long action, int row, int column, void* parent) +{ + return static_cast(ptr)->QDirModel::canDropMimeData(static_cast(data), static_cast(action), row, column, *static_cast(parent)); +} + +char QDirModel_CanFetchMoreDefault(void* ptr, void* parent) +{ + return static_cast(ptr)->QDirModel::canFetchMore(*static_cast(parent)); +} + +char QDirModel_EventDefault(void* ptr, void* e) +{ + return static_cast(ptr)->QDirModel::event(static_cast(e)); +} + +char QDirModel_EventFilterDefault(void* ptr, void* watched, void* event) +{ + if (dynamic_cast(static_cast(watched))) { + return static_cast(ptr)->QDirModel::eventFilter(static_cast(watched), static_cast(event)); + } else if (dynamic_cast(static_cast(watched))) { + return static_cast(ptr)->QDirModel::eventFilter(static_cast(watched), static_cast(event)); + } else if (dynamic_cast(static_cast(watched))) { + return static_cast(ptr)->QDirModel::eventFilter(static_cast(watched), static_cast(event)); + } else if (dynamic_cast(static_cast(watched))) { + return static_cast(ptr)->QDirModel::eventFilter(static_cast(watched), static_cast(event)); + } else { + return static_cast(ptr)->QDirModel::eventFilter(static_cast(watched), static_cast(event)); + } +} + +void QDirModel_ChildEventDefault(void* ptr, void* event) +{ + static_cast(ptr)->QDirModel::childEvent(static_cast(event)); +} + +void QDirModel_ConnectNotifyDefault(void* ptr, void* sign) +{ + static_cast(ptr)->QDirModel::connectNotify(*static_cast(sign)); +} + +void QDirModel_CustomEventDefault(void* ptr, void* event) +{ + static_cast(ptr)->QDirModel::customEvent(static_cast(event)); +} + +void QDirModel_DeleteLaterDefault(void* ptr) +{ + static_cast(ptr)->QDirModel::deleteLater(); +} + +void QDirModel_DisconnectNotifyDefault(void* ptr, void* sign) +{ + static_cast(ptr)->QDirModel::disconnectNotify(*static_cast(sign)); +} + +void QDirModel_TimerEventDefault(void* ptr, void* event) +{ + static_cast(ptr)->QDirModel::timerEvent(static_cast(event)); +} + +void* QDirModel_MetaObjectDefault(void* ptr) +{ + return const_cast(static_cast(ptr)->QDirModel::metaObject()); +} + class MyQDockWidget: public QDockWidget { public: @@ -21575,6 +22528,389 @@ void* QGraphicsItem___transformations_newList(void* ptr) } } +class MyQGraphicsItemAnimation: public QGraphicsItemAnimation +{ +public: + MyQGraphicsItemAnimation(QObject *parent = Q_NULLPTR) : QGraphicsItemAnimation(parent) {QGraphicsItemAnimation_QGraphicsItemAnimation_QRegisterMetaType();}; + void afterAnimationStep(qreal step) { callbackQGraphicsItemAnimation_AfterAnimationStep(this, step); }; + void beforeAnimationStep(qreal step) { callbackQGraphicsItemAnimation_BeforeAnimationStep(this, step); }; + void setStep(qreal step) { callbackQGraphicsItemAnimation_SetStep(this, step); }; + ~MyQGraphicsItemAnimation() { callbackQGraphicsItemAnimation_DestroyQGraphicsItemAnimation(this); }; + bool event(QEvent * e) { return callbackQGraphicsItemAnimation_Event(this, e) != 0; }; + bool eventFilter(QObject * watched, QEvent * event) { return callbackQGraphicsItemAnimation_EventFilter(this, watched, event) != 0; }; + void childEvent(QChildEvent * event) { callbackQGraphicsItemAnimation_ChildEvent(this, event); }; + void connectNotify(const QMetaMethod & sign) { callbackQGraphicsItemAnimation_ConnectNotify(this, const_cast(&sign)); }; + void customEvent(QEvent * event) { callbackQGraphicsItemAnimation_CustomEvent(this, event); }; + void deleteLater() { callbackQGraphicsItemAnimation_DeleteLater(this); }; + void Signal_Destroyed(QObject * obj) { callbackQGraphicsItemAnimation_Destroyed(this, obj); }; + void disconnectNotify(const QMetaMethod & sign) { callbackQGraphicsItemAnimation_DisconnectNotify(this, const_cast(&sign)); }; + void Signal_ObjectNameChanged(const QString & objectName) { QByteArray taa2c4f = objectName.toUtf8(); QtWidgets_PackedString objectNamePacked = { const_cast(taa2c4f.prepend("WHITESPACE").constData()+10), taa2c4f.size()-10 };callbackQGraphicsItemAnimation_ObjectNameChanged(this, objectNamePacked); }; + void timerEvent(QTimerEvent * event) { callbackQGraphicsItemAnimation_TimerEvent(this, event); }; + const QMetaObject * metaObject() const { return static_cast(callbackQGraphicsItemAnimation_MetaObject(const_cast(static_cast(this)))); }; +}; + +Q_DECLARE_METATYPE(MyQGraphicsItemAnimation*) + +int QGraphicsItemAnimation_QGraphicsItemAnimation_QRegisterMetaType(){qRegisterMetaType(); return qRegisterMetaType();} + +void* QGraphicsItemAnimation_NewQGraphicsItemAnimation(void* parent) +{ + if (dynamic_cast(static_cast(parent))) { + return new MyQGraphicsItemAnimation(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQGraphicsItemAnimation(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQGraphicsItemAnimation(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQGraphicsItemAnimation(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQGraphicsItemAnimation(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQGraphicsItemAnimation(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQGraphicsItemAnimation(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQGraphicsItemAnimation(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQGraphicsItemAnimation(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQGraphicsItemAnimation(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQGraphicsItemAnimation(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQGraphicsItemAnimation(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQGraphicsItemAnimation(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQGraphicsItemAnimation(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQGraphicsItemAnimation(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQGraphicsItemAnimation(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQGraphicsItemAnimation(static_cast(parent)); + } else { + return new MyQGraphicsItemAnimation(static_cast(parent)); + } +} + +void QGraphicsItemAnimation_AfterAnimationStep(void* ptr, double step) +{ + static_cast(ptr)->afterAnimationStep(step); +} + +void QGraphicsItemAnimation_AfterAnimationStepDefault(void* ptr, double step) +{ + static_cast(ptr)->QGraphicsItemAnimation::afterAnimationStep(step); +} + +void QGraphicsItemAnimation_BeforeAnimationStep(void* ptr, double step) +{ + static_cast(ptr)->beforeAnimationStep(step); +} + +void QGraphicsItemAnimation_BeforeAnimationStepDefault(void* ptr, double step) +{ + static_cast(ptr)->QGraphicsItemAnimation::beforeAnimationStep(step); +} + +void QGraphicsItemAnimation_Clear(void* ptr) +{ + static_cast(ptr)->clear(); +} + +void QGraphicsItemAnimation_SetItem(void* ptr, void* item) +{ + if (dynamic_cast(static_cast(item))) { + static_cast(ptr)->setItem(static_cast(item)); + } else if (dynamic_cast(static_cast(item))) { + static_cast(ptr)->setItem(static_cast(item)); + } else { + static_cast(ptr)->setItem(static_cast(item)); + } +} + +void QGraphicsItemAnimation_SetPosAt(void* ptr, double step, void* point) +{ + static_cast(ptr)->setPosAt(step, *static_cast(point)); +} + +void QGraphicsItemAnimation_SetRotationAt(void* ptr, double step, double angle) +{ + static_cast(ptr)->setRotationAt(step, angle); +} + +void QGraphicsItemAnimation_SetScaleAt(void* ptr, double step, double sx, double sy) +{ + static_cast(ptr)->setScaleAt(step, sx, sy); +} + +void QGraphicsItemAnimation_SetShearAt(void* ptr, double step, double sh, double sv) +{ + static_cast(ptr)->setShearAt(step, sh, sv); +} + +void QGraphicsItemAnimation_SetStep(void* ptr, double step) +{ + QMetaObject::invokeMethod(static_cast(ptr), "setStep", Q_ARG(qreal, step)); +} + +void QGraphicsItemAnimation_SetStepDefault(void* ptr, double step) +{ + static_cast(ptr)->QGraphicsItemAnimation::setStep(step); +} + +void QGraphicsItemAnimation_SetTimeLine(void* ptr, void* timeLine) +{ + static_cast(ptr)->setTimeLine(static_cast(timeLine)); +} + +void QGraphicsItemAnimation_SetTranslationAt(void* ptr, double step, double dx, double dy) +{ + static_cast(ptr)->setTranslationAt(step, dx, dy); +} + +void QGraphicsItemAnimation_DestroyQGraphicsItemAnimation(void* ptr) +{ + static_cast(ptr)->~QGraphicsItemAnimation(); +} + +void QGraphicsItemAnimation_DestroyQGraphicsItemAnimationDefault(void* ptr) +{ + Q_UNUSED(ptr); + +} + +void* QGraphicsItemAnimation_Item(void* ptr) +{ + return static_cast(ptr)->item(); +} + +void* QGraphicsItemAnimation_MatrixAt(void* ptr, double step) +{ + return new QMatrix(static_cast(ptr)->matrixAt(step)); +} + +void* QGraphicsItemAnimation_PosAt(void* ptr, double step) +{ + return ({ QPointF tmpValue = static_cast(ptr)->posAt(step); new QPointF(tmpValue.x(), tmpValue.y()); }); +} + +void* QGraphicsItemAnimation_TimeLine(void* ptr) +{ + return static_cast(ptr)->timeLine(); +} + +double QGraphicsItemAnimation_HorizontalScaleAt(void* ptr, double step) +{ + return static_cast(ptr)->horizontalScaleAt(step); +} + +double QGraphicsItemAnimation_HorizontalShearAt(void* ptr, double step) +{ + return static_cast(ptr)->horizontalShearAt(step); +} + +double QGraphicsItemAnimation_RotationAt(void* ptr, double step) +{ + return static_cast(ptr)->rotationAt(step); +} + +double QGraphicsItemAnimation_VerticalScaleAt(void* ptr, double step) +{ + return static_cast(ptr)->verticalScaleAt(step); +} + +double QGraphicsItemAnimation_VerticalShearAt(void* ptr, double step) +{ + return static_cast(ptr)->verticalShearAt(step); +} + +double QGraphicsItemAnimation_XTranslationAt(void* ptr, double step) +{ + return static_cast(ptr)->xTranslationAt(step); +} + +double QGraphicsItemAnimation_YTranslationAt(void* ptr, double step) +{ + return static_cast(ptr)->yTranslationAt(step); +} + +void* QGraphicsItemAnimation___dynamicPropertyNames_atList(void* ptr, int i) +{ + return new QByteArray(({QByteArray tmp = static_cast*>(ptr)->at(i); if (i == static_cast*>(ptr)->size()-1) { static_cast*>(ptr)->~QList(); free(ptr); }; tmp; })); +} + +void QGraphicsItemAnimation___dynamicPropertyNames_setList(void* ptr, void* i) +{ + static_cast*>(ptr)->append(*static_cast(i)); +} + +void* QGraphicsItemAnimation___dynamicPropertyNames_newList(void* ptr) +{ + Q_UNUSED(ptr); + return new QList(); +} + +void* QGraphicsItemAnimation___findChildren_atList2(void* ptr, int i) +{ + return ({QObject* tmp = static_cast*>(ptr)->at(i); if (i == static_cast*>(ptr)->size()-1) { static_cast*>(ptr)->~QList(); free(ptr); }; tmp; }); +} + +void QGraphicsItemAnimation___findChildren_setList2(void* ptr, void* i) +{ + if (dynamic_cast(static_cast(i))) { + static_cast*>(ptr)->append(static_cast(i)); + } else if (dynamic_cast(static_cast(i))) { + static_cast*>(ptr)->append(static_cast(i)); + } else if (dynamic_cast(static_cast(i))) { + static_cast*>(ptr)->append(static_cast(i)); + } else if (dynamic_cast(static_cast(i))) { + static_cast*>(ptr)->append(static_cast(i)); + } else { + static_cast*>(ptr)->append(static_cast(i)); + } +} + +void* QGraphicsItemAnimation___findChildren_newList2(void* ptr) +{ + Q_UNUSED(ptr); + return new QList(); +} + +void* QGraphicsItemAnimation___findChildren_atList3(void* ptr, int i) +{ + return ({QObject* tmp = static_cast*>(ptr)->at(i); if (i == static_cast*>(ptr)->size()-1) { static_cast*>(ptr)->~QList(); free(ptr); }; tmp; }); +} + +void QGraphicsItemAnimation___findChildren_setList3(void* ptr, void* i) +{ + if (dynamic_cast(static_cast(i))) { + static_cast*>(ptr)->append(static_cast(i)); + } else if (dynamic_cast(static_cast(i))) { + static_cast*>(ptr)->append(static_cast(i)); + } else if (dynamic_cast(static_cast(i))) { + static_cast*>(ptr)->append(static_cast(i)); + } else if (dynamic_cast(static_cast(i))) { + static_cast*>(ptr)->append(static_cast(i)); + } else { + static_cast*>(ptr)->append(static_cast(i)); + } +} + +void* QGraphicsItemAnimation___findChildren_newList3(void* ptr) +{ + Q_UNUSED(ptr); + return new QList(); +} + +void* QGraphicsItemAnimation___findChildren_atList(void* ptr, int i) +{ + return ({QObject* tmp = static_cast*>(ptr)->at(i); if (i == static_cast*>(ptr)->size()-1) { static_cast*>(ptr)->~QList(); free(ptr); }; tmp; }); +} + +void QGraphicsItemAnimation___findChildren_setList(void* ptr, void* i) +{ + if (dynamic_cast(static_cast(i))) { + static_cast*>(ptr)->append(static_cast(i)); + } else if (dynamic_cast(static_cast(i))) { + static_cast*>(ptr)->append(static_cast(i)); + } else if (dynamic_cast(static_cast(i))) { + static_cast*>(ptr)->append(static_cast(i)); + } else if (dynamic_cast(static_cast(i))) { + static_cast*>(ptr)->append(static_cast(i)); + } else { + static_cast*>(ptr)->append(static_cast(i)); + } +} + +void* QGraphicsItemAnimation___findChildren_newList(void* ptr) +{ + Q_UNUSED(ptr); + return new QList(); +} + +void* QGraphicsItemAnimation___children_atList(void* ptr, int i) +{ + return ({QObject * tmp = static_cast*>(ptr)->at(i); if (i == static_cast*>(ptr)->size()-1) { static_cast*>(ptr)->~QList(); free(ptr); }; tmp; }); +} + +void QGraphicsItemAnimation___children_setList(void* ptr, void* i) +{ + if (dynamic_cast(static_cast(i))) { + static_cast*>(ptr)->append(static_cast(i)); + } else if (dynamic_cast(static_cast(i))) { + static_cast*>(ptr)->append(static_cast(i)); + } else if (dynamic_cast(static_cast(i))) { + static_cast*>(ptr)->append(static_cast(i)); + } else if (dynamic_cast(static_cast(i))) { + static_cast*>(ptr)->append(static_cast(i)); + } else { + static_cast*>(ptr)->append(static_cast(i)); + } +} + +void* QGraphicsItemAnimation___children_newList(void* ptr) +{ + Q_UNUSED(ptr); + return new QList(); +} + +char QGraphicsItemAnimation_EventDefault(void* ptr, void* e) +{ + return static_cast(ptr)->QGraphicsItemAnimation::event(static_cast(e)); +} + +char QGraphicsItemAnimation_EventFilterDefault(void* ptr, void* watched, void* event) +{ + if (dynamic_cast(static_cast(watched))) { + return static_cast(ptr)->QGraphicsItemAnimation::eventFilter(static_cast(watched), static_cast(event)); + } else if (dynamic_cast(static_cast(watched))) { + return static_cast(ptr)->QGraphicsItemAnimation::eventFilter(static_cast(watched), static_cast(event)); + } else if (dynamic_cast(static_cast(watched))) { + return static_cast(ptr)->QGraphicsItemAnimation::eventFilter(static_cast(watched), static_cast(event)); + } else if (dynamic_cast(static_cast(watched))) { + return static_cast(ptr)->QGraphicsItemAnimation::eventFilter(static_cast(watched), static_cast(event)); + } else { + return static_cast(ptr)->QGraphicsItemAnimation::eventFilter(static_cast(watched), static_cast(event)); + } +} + +void QGraphicsItemAnimation_ChildEventDefault(void* ptr, void* event) +{ + static_cast(ptr)->QGraphicsItemAnimation::childEvent(static_cast(event)); +} + +void QGraphicsItemAnimation_ConnectNotifyDefault(void* ptr, void* sign) +{ + static_cast(ptr)->QGraphicsItemAnimation::connectNotify(*static_cast(sign)); +} + +void QGraphicsItemAnimation_CustomEventDefault(void* ptr, void* event) +{ + static_cast(ptr)->QGraphicsItemAnimation::customEvent(static_cast(event)); +} + +void QGraphicsItemAnimation_DeleteLaterDefault(void* ptr) +{ + static_cast(ptr)->QGraphicsItemAnimation::deleteLater(); +} + +void QGraphicsItemAnimation_DisconnectNotifyDefault(void* ptr, void* sign) +{ + static_cast(ptr)->QGraphicsItemAnimation::disconnectNotify(*static_cast(sign)); +} + +void QGraphicsItemAnimation_TimerEventDefault(void* ptr, void* event) +{ + static_cast(ptr)->QGraphicsItemAnimation::timerEvent(static_cast(event)); +} + +void* QGraphicsItemAnimation_MetaObjectDefault(void* ptr) +{ + return const_cast(static_cast(ptr)->QGraphicsItemAnimation::metaObject()); +} + class MyQGraphicsItemGroup: public QGraphicsItemGroup { public: @@ -27292,6 +28628,11 @@ void QGraphicsView_SetInteractive(void* ptr, char allowed) static_cast(ptr)->setInteractive(allowed != 0); } +void QGraphicsView_SetMatrix(void* ptr, void* matrix, char combine) +{ + static_cast(ptr)->setMatrix(*static_cast(matrix), combine != 0); +} + void QGraphicsView_SetOptimizationFlag(void* ptr, long long flag, char enabled) { static_cast(ptr)->setOptimizationFlag(static_cast(flag), enabled != 0); @@ -27472,6 +28813,11 @@ struct QtWidgets_PackedList QGraphicsView_Items5(void* ptr, int x, int y, int w, return ({ QList* tmpValue = new QList(static_cast(ptr)->items(x, y, w, h, static_cast(mode))); QtWidgets_PackedList { tmpValue, tmpValue->size() }; }); } +void* QGraphicsView_Matrix(void* ptr) +{ + return new QMatrix(static_cast(ptr)->matrix()); +} + long long QGraphicsView_RenderHints(void* ptr) { return static_cast(ptr)->renderHints(); diff --git a/widgets/widgets.go b/widgets/widgets.go index 22136401..f574996a 100644 --- a/widgets/widgets.go +++ b/widgets/widgets.go @@ -17679,17 +17679,15 @@ func NewQDateTimeEditFromPointer(ptr unsafe.Pointer) (n *QDateTimeEdit) { type QDateTimeEdit__Section int64 const ( - QDateTimeEdit__NoSection QDateTimeEdit__Section = QDateTimeEdit__Section(0x0000) - QDateTimeEdit__AmPmSection QDateTimeEdit__Section = QDateTimeEdit__Section(0x0001) - QDateTimeEdit__MSecSection QDateTimeEdit__Section = QDateTimeEdit__Section(0x0002) - QDateTimeEdit__SecondSection QDateTimeEdit__Section = QDateTimeEdit__Section(0x0004) - QDateTimeEdit__MinuteSection QDateTimeEdit__Section = QDateTimeEdit__Section(0x0008) - QDateTimeEdit__HourSection QDateTimeEdit__Section = QDateTimeEdit__Section(0x0010) - QDateTimeEdit__DaySection QDateTimeEdit__Section = QDateTimeEdit__Section(0x0100) - QDateTimeEdit__MonthSection QDateTimeEdit__Section = QDateTimeEdit__Section(0x0200) - QDateTimeEdit__YearSection QDateTimeEdit__Section = QDateTimeEdit__Section(0x0400) - QDateTimeEdit__TimeSections_Mask QDateTimeEdit__Section = QDateTimeEdit__Section(QDateTimeEdit__AmPmSection | QDateTimeEdit__MSecSection | QDateTimeEdit__SecondSection | QDateTimeEdit__MinuteSection | QDateTimeEdit__HourSection) - QDateTimeEdit__DateSections_Mask QDateTimeEdit__Section = QDateTimeEdit__Section(QDateTimeEdit__DaySection | QDateTimeEdit__MonthSection | QDateTimeEdit__YearSection) + QDateTimeEdit__NoSection QDateTimeEdit__Section = QDateTimeEdit__Section(0x0000) + QDateTimeEdit__AmPmSection QDateTimeEdit__Section = QDateTimeEdit__Section(0x0001) + QDateTimeEdit__MSecSection QDateTimeEdit__Section = QDateTimeEdit__Section(0x0002) + QDateTimeEdit__SecondSection QDateTimeEdit__Section = QDateTimeEdit__Section(0x0004) + QDateTimeEdit__MinuteSection QDateTimeEdit__Section = QDateTimeEdit__Section(0x0008) + QDateTimeEdit__HourSection QDateTimeEdit__Section = QDateTimeEdit__Section(0x0010) + QDateTimeEdit__DaySection QDateTimeEdit__Section = QDateTimeEdit__Section(0x0100) + QDateTimeEdit__MonthSection QDateTimeEdit__Section = QDateTimeEdit__Section(0x0200) + QDateTimeEdit__YearSection QDateTimeEdit__Section = QDateTimeEdit__Section(0x0400) ) func NewQDateTimeEdit(parent QWidget_ITF) *QDateTimeEdit { @@ -18678,6 +18676,13 @@ func (ptr *QDesktopWidget) ScreenGeometry(screen int) *core.QRect { return nil } +func (ptr *QDesktopWidget) NumScreens() int { + if ptr.Pointer() != nil { + return int(int32(C.QDesktopWidget_NumScreens(ptr.Pointer()))) + } + return 0 +} + func (ptr *QDesktopWidget) PrimaryScreen() int { if ptr.Pointer() != nil { return int(int32(C.QDesktopWidget_PrimaryScreen(ptr.Pointer()))) @@ -19787,6 +19792,1873 @@ func (ptr *QDialogButtonBox) __buttons_newList() unsafe.Pointer { return C.QDialogButtonBox___buttons_newList(ptr.Pointer()) } +type QDirModel struct { + core.QAbstractItemModel +} + +type QDirModel_ITF interface { + core.QAbstractItemModel_ITF + QDirModel_PTR() *QDirModel +} + +func (ptr *QDirModel) QDirModel_PTR() *QDirModel { + return ptr +} + +func (ptr *QDirModel) Pointer() unsafe.Pointer { + if ptr != nil { + return ptr.QAbstractItemModel_PTR().Pointer() + } + return nil +} + +func (ptr *QDirModel) SetPointer(p unsafe.Pointer) { + if ptr != nil { + ptr.QAbstractItemModel_PTR().SetPointer(p) + } +} + +func PointerFromQDirModel(ptr QDirModel_ITF) unsafe.Pointer { + if ptr != nil { + return ptr.QDirModel_PTR().Pointer() + } + return nil +} + +func NewQDirModelFromPointer(ptr unsafe.Pointer) (n *QDirModel) { + n = new(QDirModel) + n.SetPointer(ptr) + return +} + +//go:generate stringer -type=QDirModel__Roles +//QDirModel::Roles +type QDirModel__Roles int64 + +var ( + QDirModel__FileIconRole QDirModel__Roles = QDirModel__Roles(core.Qt__DecorationRole) + QDirModel__FilePathRole QDirModel__Roles = QDirModel__Roles(C.QDirModel_FilePathRole_Type()) + QDirModel__FileNameRole QDirModel__Roles = QDirModel__Roles(C.QDirModel_FileNameRole_Type()) +) + +//export callbackQDirModel_DropMimeData +func callbackQDirModel_DropMimeData(ptr unsafe.Pointer, data unsafe.Pointer, action C.longlong, row C.int, column C.int, parent unsafe.Pointer) C.char { + if signal := qt.GetSignal(ptr, "dropMimeData"); signal != nil { + return C.char(int8(qt.GoBoolToInt(signal.(func(*core.QMimeData, core.Qt__DropAction, int, int, *core.QModelIndex) bool)(core.NewQMimeDataFromPointer(data), core.Qt__DropAction(action), int(int32(row)), int(int32(column)), core.NewQModelIndexFromPointer(parent))))) + } + + return C.char(int8(qt.GoBoolToInt(NewQDirModelFromPointer(ptr).DropMimeDataDefault(core.NewQMimeDataFromPointer(data), core.Qt__DropAction(action), int(int32(row)), int(int32(column)), core.NewQModelIndexFromPointer(parent))))) +} + +func (ptr *QDirModel) DropMimeDataDefault(data core.QMimeData_ITF, action core.Qt__DropAction, row int, column int, parent core.QModelIndex_ITF) bool { + if ptr.Pointer() != nil { + return C.QDirModel_DropMimeDataDefault(ptr.Pointer(), core.PointerFromQMimeData(data), C.longlong(action), C.int(int32(row)), C.int(int32(column)), core.PointerFromQModelIndex(parent)) != 0 + } + return false +} + +//export callbackQDirModel_SetData +func callbackQDirModel_SetData(ptr unsafe.Pointer, index unsafe.Pointer, value unsafe.Pointer, role C.int) C.char { + if signal := qt.GetSignal(ptr, "setData"); signal != nil { + return C.char(int8(qt.GoBoolToInt(signal.(func(*core.QModelIndex, *core.QVariant, int) bool)(core.NewQModelIndexFromPointer(index), core.NewQVariantFromPointer(value), int(int32(role)))))) + } + + return C.char(int8(qt.GoBoolToInt(NewQDirModelFromPointer(ptr).SetDataDefault(core.NewQModelIndexFromPointer(index), core.NewQVariantFromPointer(value), int(int32(role)))))) +} + +func (ptr *QDirModel) SetDataDefault(index core.QModelIndex_ITF, value core.QVariant_ITF, role int) bool { + if ptr.Pointer() != nil { + return C.QDirModel_SetDataDefault(ptr.Pointer(), core.PointerFromQModelIndex(index), core.PointerFromQVariant(value), C.int(int32(role))) != 0 + } + return false +} + +func (ptr *QDirModel) SetFilter(filters core.QDir__Filter) { + if ptr.Pointer() != nil { + C.QDirModel_SetFilter(ptr.Pointer(), C.longlong(filters)) + } +} + +func (ptr *QDirModel) SetLazyChildCount(enable bool) { + if ptr.Pointer() != nil { + C.QDirModel_SetLazyChildCount(ptr.Pointer(), C.char(int8(qt.GoBoolToInt(enable)))) + } +} + +func NewQDirModel2(parent core.QObject_ITF) *QDirModel { + tmpValue := NewQDirModelFromPointer(C.QDirModel_NewQDirModel2(core.PointerFromQObject(parent))) + if !qt.ExistsSignal(tmpValue.Pointer(), "destroyed") { + tmpValue.ConnectDestroyed(func(*core.QObject) { tmpValue.SetPointer(nil) }) + } + return tmpValue +} + +func NewQDirModel(nameFilters []string, filters core.QDir__Filter, sort core.QDir__SortFlag, parent core.QObject_ITF) *QDirModel { + nameFiltersC := C.CString(strings.Join(nameFilters, "|")) + defer C.free(unsafe.Pointer(nameFiltersC)) + tmpValue := NewQDirModelFromPointer(C.QDirModel_NewQDirModel(C.struct_QtWidgets_PackedString{data: nameFiltersC, len: C.longlong(len(strings.Join(nameFilters, "|")))}, C.longlong(filters), C.longlong(sort), core.PointerFromQObject(parent))) + if !qt.ExistsSignal(tmpValue.Pointer(), "destroyed") { + tmpValue.ConnectDestroyed(func(*core.QObject) { tmpValue.SetPointer(nil) }) + } + return tmpValue +} + +func (ptr *QDirModel) Mkdir(parent core.QModelIndex_ITF, name string) *core.QModelIndex { + if ptr.Pointer() != nil { + var nameC *C.char + if name != "" { + nameC = C.CString(name) + defer C.free(unsafe.Pointer(nameC)) + } + tmpValue := core.NewQModelIndexFromPointer(C.QDirModel_Mkdir(ptr.Pointer(), core.PointerFromQModelIndex(parent), C.struct_QtWidgets_PackedString{data: nameC, len: C.longlong(len(name))})) + runtime.SetFinalizer(tmpValue, (*core.QModelIndex).DestroyQModelIndex) + return tmpValue + } + return nil +} + +func (ptr *QDirModel) Remove(index core.QModelIndex_ITF) bool { + if ptr.Pointer() != nil { + return C.QDirModel_Remove(ptr.Pointer(), core.PointerFromQModelIndex(index)) != 0 + } + return false +} + +func (ptr *QDirModel) Rmdir(index core.QModelIndex_ITF) bool { + if ptr.Pointer() != nil { + return C.QDirModel_Rmdir(ptr.Pointer(), core.PointerFromQModelIndex(index)) != 0 + } + return false +} + +//export callbackQDirModel_Refresh +func callbackQDirModel_Refresh(ptr unsafe.Pointer, parent unsafe.Pointer) { + if signal := qt.GetSignal(ptr, "refresh"); signal != nil { + signal.(func(*core.QModelIndex))(core.NewQModelIndexFromPointer(parent)) + } else { + NewQDirModelFromPointer(ptr).RefreshDefault(core.NewQModelIndexFromPointer(parent)) + } +} + +func (ptr *QDirModel) ConnectRefresh(f func(parent *core.QModelIndex)) { + if ptr.Pointer() != nil { + + if signal := qt.LendSignal(ptr.Pointer(), "refresh"); signal != nil { + qt.ConnectSignal(ptr.Pointer(), "refresh", func(parent *core.QModelIndex) { + signal.(func(*core.QModelIndex))(parent) + f(parent) + }) + } else { + qt.ConnectSignal(ptr.Pointer(), "refresh", f) + } + } +} + +func (ptr *QDirModel) DisconnectRefresh() { + if ptr.Pointer() != nil { + + qt.DisconnectSignal(ptr.Pointer(), "refresh") + } +} + +func (ptr *QDirModel) Refresh(parent core.QModelIndex_ITF) { + if ptr.Pointer() != nil { + C.QDirModel_Refresh(ptr.Pointer(), core.PointerFromQModelIndex(parent)) + } +} + +func (ptr *QDirModel) RefreshDefault(parent core.QModelIndex_ITF) { + if ptr.Pointer() != nil { + C.QDirModel_RefreshDefault(ptr.Pointer(), core.PointerFromQModelIndex(parent)) + } +} + +func (ptr *QDirModel) SetIconProvider(provider QFileIconProvider_ITF) { + if ptr.Pointer() != nil { + C.QDirModel_SetIconProvider(ptr.Pointer(), PointerFromQFileIconProvider(provider)) + } +} + +func (ptr *QDirModel) SetNameFilters(filters []string) { + if ptr.Pointer() != nil { + filtersC := C.CString(strings.Join(filters, "|")) + defer C.free(unsafe.Pointer(filtersC)) + C.QDirModel_SetNameFilters(ptr.Pointer(), C.struct_QtWidgets_PackedString{data: filtersC, len: C.longlong(len(strings.Join(filters, "|")))}) + } +} + +func (ptr *QDirModel) SetReadOnly(enable bool) { + if ptr.Pointer() != nil { + C.QDirModel_SetReadOnly(ptr.Pointer(), C.char(int8(qt.GoBoolToInt(enable)))) + } +} + +func (ptr *QDirModel) SetResolveSymlinks(enable bool) { + if ptr.Pointer() != nil { + C.QDirModel_SetResolveSymlinks(ptr.Pointer(), C.char(int8(qt.GoBoolToInt(enable)))) + } +} + +func (ptr *QDirModel) SetSorting(sort core.QDir__SortFlag) { + if ptr.Pointer() != nil { + C.QDirModel_SetSorting(ptr.Pointer(), C.longlong(sort)) + } +} + +//export callbackQDirModel_Sort +func callbackQDirModel_Sort(ptr unsafe.Pointer, column C.int, order C.longlong) { + if signal := qt.GetSignal(ptr, "sort"); signal != nil { + signal.(func(int, core.Qt__SortOrder))(int(int32(column)), core.Qt__SortOrder(order)) + } else { + NewQDirModelFromPointer(ptr).SortDefault(int(int32(column)), core.Qt__SortOrder(order)) + } +} + +func (ptr *QDirModel) SortDefault(column int, order core.Qt__SortOrder) { + if ptr.Pointer() != nil { + C.QDirModel_SortDefault(ptr.Pointer(), C.int(int32(column)), C.longlong(order)) + } +} + +func (ptr *QDirModel) DestroyQDirModel() { + if ptr.Pointer() != nil { + C.QDirModel_DestroyQDirModel(ptr.Pointer()) + ptr.SetPointer(nil) + runtime.SetFinalizer(ptr, nil) + } +} + +func (ptr *QDirModel) Filter() core.QDir__Filter { + if ptr.Pointer() != nil { + return core.QDir__Filter(C.QDirModel_Filter(ptr.Pointer())) + } + return 0 +} + +func (ptr *QDirModel) Sorting() core.QDir__SortFlag { + if ptr.Pointer() != nil { + return core.QDir__SortFlag(C.QDirModel_Sorting(ptr.Pointer())) + } + return 0 +} + +func (ptr *QDirModel) IconProvider() *QFileIconProvider { + if ptr.Pointer() != nil { + return NewQFileIconProviderFromPointer(C.QDirModel_IconProvider(ptr.Pointer())) + } + return nil +} + +func (ptr *QDirModel) FileInfo(index core.QModelIndex_ITF) *core.QFileInfo { + if ptr.Pointer() != nil { + tmpValue := core.NewQFileInfoFromPointer(C.QDirModel_FileInfo(ptr.Pointer(), core.PointerFromQModelIndex(index))) + runtime.SetFinalizer(tmpValue, (*core.QFileInfo).DestroyQFileInfo) + return tmpValue + } + return nil +} + +func (ptr *QDirModel) FileIcon(index core.QModelIndex_ITF) *gui.QIcon { + if ptr.Pointer() != nil { + tmpValue := gui.NewQIconFromPointer(C.QDirModel_FileIcon(ptr.Pointer(), core.PointerFromQModelIndex(index))) + runtime.SetFinalizer(tmpValue, (*gui.QIcon).DestroyQIcon) + return tmpValue + } + return nil +} + +//export callbackQDirModel_MimeData +func callbackQDirModel_MimeData(ptr unsafe.Pointer, indexes C.struct_QtWidgets_PackedList) unsafe.Pointer { + if signal := qt.GetSignal(ptr, "mimeData"); signal != nil { + return core.PointerFromQMimeData(signal.(func([]*core.QModelIndex) *core.QMimeData)(func(l C.struct_QtWidgets_PackedList) []*core.QModelIndex { + out := make([]*core.QModelIndex, int(l.len)) + tmpList := NewQDirModelFromPointer(l.data) + for i := 0; i < len(out); i++ { + out[i] = tmpList.__mimeData_indexes_atList(i) + } + return out + }(indexes))) + } + + return core.PointerFromQMimeData(NewQDirModelFromPointer(ptr).MimeDataDefault(func(l C.struct_QtWidgets_PackedList) []*core.QModelIndex { + out := make([]*core.QModelIndex, int(l.len)) + tmpList := NewQDirModelFromPointer(l.data) + for i := 0; i < len(out); i++ { + out[i] = tmpList.__mimeData_indexes_atList(i) + } + return out + }(indexes))) +} + +func (ptr *QDirModel) MimeDataDefault(indexes []*core.QModelIndex) *core.QMimeData { + if ptr.Pointer() != nil { + tmpValue := core.NewQMimeDataFromPointer(C.QDirModel_MimeDataDefault(ptr.Pointer(), func() unsafe.Pointer { + tmpList := NewQDirModelFromPointer(NewQDirModelFromPointer(nil).__mimeData_indexes_newList()) + for _, v := range indexes { + tmpList.__mimeData_indexes_setList(v) + } + return tmpList.Pointer() + }())) + if !qt.ExistsSignal(tmpValue.Pointer(), "destroyed") { + tmpValue.ConnectDestroyed(func(*core.QObject) { tmpValue.SetPointer(nil) }) + } + return tmpValue + } + return nil +} + +func (ptr *QDirModel) Index2(path string, column int) *core.QModelIndex { + if ptr.Pointer() != nil { + var pathC *C.char + if path != "" { + pathC = C.CString(path) + defer C.free(unsafe.Pointer(pathC)) + } + tmpValue := core.NewQModelIndexFromPointer(C.QDirModel_Index2(ptr.Pointer(), C.struct_QtWidgets_PackedString{data: pathC, len: C.longlong(len(path))}, C.int(int32(column)))) + runtime.SetFinalizer(tmpValue, (*core.QModelIndex).DestroyQModelIndex) + return tmpValue + } + return nil +} + +//export callbackQDirModel_Index +func callbackQDirModel_Index(ptr unsafe.Pointer, row C.int, column C.int, parent unsafe.Pointer) unsafe.Pointer { + if signal := qt.GetSignal(ptr, "index"); signal != nil { + return core.PointerFromQModelIndex(signal.(func(int, int, *core.QModelIndex) *core.QModelIndex)(int(int32(row)), int(int32(column)), core.NewQModelIndexFromPointer(parent))) + } + + return core.PointerFromQModelIndex(NewQDirModelFromPointer(ptr).IndexDefault(int(int32(row)), int(int32(column)), core.NewQModelIndexFromPointer(parent))) +} + +func (ptr *QDirModel) ConnectIndex(f func(row int, column int, parent *core.QModelIndex) *core.QModelIndex) { + if ptr.Pointer() != nil { + + if signal := qt.LendSignal(ptr.Pointer(), "index"); signal != nil { + qt.ConnectSignal(ptr.Pointer(), "index", func(row int, column int, parent *core.QModelIndex) *core.QModelIndex { + signal.(func(int, int, *core.QModelIndex) *core.QModelIndex)(row, column, parent) + return f(row, column, parent) + }) + } else { + qt.ConnectSignal(ptr.Pointer(), "index", f) + } + } +} + +func (ptr *QDirModel) DisconnectIndex() { + if ptr.Pointer() != nil { + + qt.DisconnectSignal(ptr.Pointer(), "index") + } +} + +func (ptr *QDirModel) Index(row int, column int, parent core.QModelIndex_ITF) *core.QModelIndex { + if ptr.Pointer() != nil { + tmpValue := core.NewQModelIndexFromPointer(C.QDirModel_Index(ptr.Pointer(), C.int(int32(row)), C.int(int32(column)), core.PointerFromQModelIndex(parent))) + runtime.SetFinalizer(tmpValue, (*core.QModelIndex).DestroyQModelIndex) + return tmpValue + } + return nil +} + +func (ptr *QDirModel) IndexDefault(row int, column int, parent core.QModelIndex_ITF) *core.QModelIndex { + if ptr.Pointer() != nil { + tmpValue := core.NewQModelIndexFromPointer(C.QDirModel_IndexDefault(ptr.Pointer(), C.int(int32(row)), C.int(int32(column)), core.PointerFromQModelIndex(parent))) + runtime.SetFinalizer(tmpValue, (*core.QModelIndex).DestroyQModelIndex) + return tmpValue + } + return nil +} + +//export callbackQDirModel_Parent +func callbackQDirModel_Parent(ptr unsafe.Pointer, child unsafe.Pointer) unsafe.Pointer { + if signal := qt.GetSignal(ptr, "parent"); signal != nil { + return core.PointerFromQModelIndex(signal.(func(*core.QModelIndex) *core.QModelIndex)(core.NewQModelIndexFromPointer(child))) + } + + return core.PointerFromQModelIndex(NewQDirModelFromPointer(ptr).ParentDefault(core.NewQModelIndexFromPointer(child))) +} + +func (ptr *QDirModel) ConnectParent(f func(child *core.QModelIndex) *core.QModelIndex) { + if ptr.Pointer() != nil { + + if signal := qt.LendSignal(ptr.Pointer(), "parent"); signal != nil { + qt.ConnectSignal(ptr.Pointer(), "parent", func(child *core.QModelIndex) *core.QModelIndex { + signal.(func(*core.QModelIndex) *core.QModelIndex)(child) + return f(child) + }) + } else { + qt.ConnectSignal(ptr.Pointer(), "parent", f) + } + } +} + +func (ptr *QDirModel) DisconnectParent() { + if ptr.Pointer() != nil { + + qt.DisconnectSignal(ptr.Pointer(), "parent") + } +} + +func (ptr *QDirModel) Parent(child core.QModelIndex_ITF) *core.QModelIndex { + if ptr.Pointer() != nil { + tmpValue := core.NewQModelIndexFromPointer(C.QDirModel_Parent(ptr.Pointer(), core.PointerFromQModelIndex(child))) + runtime.SetFinalizer(tmpValue, (*core.QModelIndex).DestroyQModelIndex) + return tmpValue + } + return nil +} + +func (ptr *QDirModel) ParentDefault(child core.QModelIndex_ITF) *core.QModelIndex { + if ptr.Pointer() != nil { + tmpValue := core.NewQModelIndexFromPointer(C.QDirModel_ParentDefault(ptr.Pointer(), core.PointerFromQModelIndex(child))) + runtime.SetFinalizer(tmpValue, (*core.QModelIndex).DestroyQModelIndex) + return tmpValue + } + return nil +} + +func (ptr *QDirModel) FileName(index core.QModelIndex_ITF) string { + if ptr.Pointer() != nil { + return cGoUnpackString(C.QDirModel_FileName(ptr.Pointer(), core.PointerFromQModelIndex(index))) + } + return "" +} + +func (ptr *QDirModel) FilePath(index core.QModelIndex_ITF) string { + if ptr.Pointer() != nil { + return cGoUnpackString(C.QDirModel_FilePath(ptr.Pointer(), core.PointerFromQModelIndex(index))) + } + return "" +} + +//export callbackQDirModel_MimeTypes +func callbackQDirModel_MimeTypes(ptr unsafe.Pointer) C.struct_QtWidgets_PackedString { + if signal := qt.GetSignal(ptr, "mimeTypes"); signal != nil { + tempVal := signal.(func() []string)() + return C.struct_QtWidgets_PackedString{data: C.CString(strings.Join(tempVal, "|")), len: C.longlong(len(strings.Join(tempVal, "|")))} + } + tempVal := NewQDirModelFromPointer(ptr).MimeTypesDefault() + return C.struct_QtWidgets_PackedString{data: C.CString(strings.Join(tempVal, "|")), len: C.longlong(len(strings.Join(tempVal, "|")))} +} + +func (ptr *QDirModel) MimeTypesDefault() []string { + if ptr.Pointer() != nil { + return strings.Split(cGoUnpackString(C.QDirModel_MimeTypesDefault(ptr.Pointer())), "|") + } + return make([]string, 0) +} + +func (ptr *QDirModel) NameFilters() []string { + if ptr.Pointer() != nil { + return strings.Split(cGoUnpackString(C.QDirModel_NameFilters(ptr.Pointer())), "|") + } + return make([]string, 0) +} + +//export callbackQDirModel_Data +func callbackQDirModel_Data(ptr unsafe.Pointer, index unsafe.Pointer, role C.int) unsafe.Pointer { + if signal := qt.GetSignal(ptr, "data"); signal != nil { + return core.PointerFromQVariant(signal.(func(*core.QModelIndex, int) *core.QVariant)(core.NewQModelIndexFromPointer(index), int(int32(role)))) + } + + return core.PointerFromQVariant(NewQDirModelFromPointer(ptr).DataDefault(core.NewQModelIndexFromPointer(index), int(int32(role)))) +} + +func (ptr *QDirModel) ConnectData(f func(index *core.QModelIndex, role int) *core.QVariant) { + if ptr.Pointer() != nil { + + if signal := qt.LendSignal(ptr.Pointer(), "data"); signal != nil { + qt.ConnectSignal(ptr.Pointer(), "data", func(index *core.QModelIndex, role int) *core.QVariant { + signal.(func(*core.QModelIndex, int) *core.QVariant)(index, role) + return f(index, role) + }) + } else { + qt.ConnectSignal(ptr.Pointer(), "data", f) + } + } +} + +func (ptr *QDirModel) DisconnectData() { + if ptr.Pointer() != nil { + + qt.DisconnectSignal(ptr.Pointer(), "data") + } +} + +func (ptr *QDirModel) Data(index core.QModelIndex_ITF, role int) *core.QVariant { + if ptr.Pointer() != nil { + tmpValue := core.NewQVariantFromPointer(C.QDirModel_Data(ptr.Pointer(), core.PointerFromQModelIndex(index), C.int(int32(role)))) + runtime.SetFinalizer(tmpValue, (*core.QVariant).DestroyQVariant) + return tmpValue + } + return nil +} + +func (ptr *QDirModel) DataDefault(index core.QModelIndex_ITF, role int) *core.QVariant { + if ptr.Pointer() != nil { + tmpValue := core.NewQVariantFromPointer(C.QDirModel_DataDefault(ptr.Pointer(), core.PointerFromQModelIndex(index), C.int(int32(role)))) + runtime.SetFinalizer(tmpValue, (*core.QVariant).DestroyQVariant) + return tmpValue + } + return nil +} + +//export callbackQDirModel_HeaderData +func callbackQDirModel_HeaderData(ptr unsafe.Pointer, section C.int, orientation C.longlong, role C.int) unsafe.Pointer { + if signal := qt.GetSignal(ptr, "headerData"); signal != nil { + return core.PointerFromQVariant(signal.(func(int, core.Qt__Orientation, int) *core.QVariant)(int(int32(section)), core.Qt__Orientation(orientation), int(int32(role)))) + } + + return core.PointerFromQVariant(NewQDirModelFromPointer(ptr).HeaderDataDefault(int(int32(section)), core.Qt__Orientation(orientation), int(int32(role)))) +} + +func (ptr *QDirModel) HeaderDataDefault(section int, orientation core.Qt__Orientation, role int) *core.QVariant { + if ptr.Pointer() != nil { + tmpValue := core.NewQVariantFromPointer(C.QDirModel_HeaderDataDefault(ptr.Pointer(), C.int(int32(section)), C.longlong(orientation), C.int(int32(role)))) + runtime.SetFinalizer(tmpValue, (*core.QVariant).DestroyQVariant) + return tmpValue + } + return nil +} + +//export callbackQDirModel_SupportedDropActions +func callbackQDirModel_SupportedDropActions(ptr unsafe.Pointer) C.longlong { + if signal := qt.GetSignal(ptr, "supportedDropActions"); signal != nil { + return C.longlong(signal.(func() core.Qt__DropAction)()) + } + + return C.longlong(NewQDirModelFromPointer(ptr).SupportedDropActionsDefault()) +} + +func (ptr *QDirModel) SupportedDropActionsDefault() core.Qt__DropAction { + if ptr.Pointer() != nil { + return core.Qt__DropAction(C.QDirModel_SupportedDropActionsDefault(ptr.Pointer())) + } + return 0 +} + +//export callbackQDirModel_Flags +func callbackQDirModel_Flags(ptr unsafe.Pointer, index unsafe.Pointer) C.longlong { + if signal := qt.GetSignal(ptr, "flags"); signal != nil { + return C.longlong(signal.(func(*core.QModelIndex) core.Qt__ItemFlag)(core.NewQModelIndexFromPointer(index))) + } + + return C.longlong(NewQDirModelFromPointer(ptr).FlagsDefault(core.NewQModelIndexFromPointer(index))) +} + +func (ptr *QDirModel) FlagsDefault(index core.QModelIndex_ITF) core.Qt__ItemFlag { + if ptr.Pointer() != nil { + return core.Qt__ItemFlag(C.QDirModel_FlagsDefault(ptr.Pointer(), core.PointerFromQModelIndex(index))) + } + return 0 +} + +//export callbackQDirModel_HasChildren +func callbackQDirModel_HasChildren(ptr unsafe.Pointer, parent unsafe.Pointer) C.char { + if signal := qt.GetSignal(ptr, "hasChildren"); signal != nil { + return C.char(int8(qt.GoBoolToInt(signal.(func(*core.QModelIndex) bool)(core.NewQModelIndexFromPointer(parent))))) + } + + return C.char(int8(qt.GoBoolToInt(NewQDirModelFromPointer(ptr).HasChildrenDefault(core.NewQModelIndexFromPointer(parent))))) +} + +func (ptr *QDirModel) HasChildrenDefault(parent core.QModelIndex_ITF) bool { + if ptr.Pointer() != nil { + return C.QDirModel_HasChildrenDefault(ptr.Pointer(), core.PointerFromQModelIndex(parent)) != 0 + } + return false +} + +func (ptr *QDirModel) IsDir(index core.QModelIndex_ITF) bool { + if ptr.Pointer() != nil { + return C.QDirModel_IsDir(ptr.Pointer(), core.PointerFromQModelIndex(index)) != 0 + } + return false +} + +func (ptr *QDirModel) IsReadOnly() bool { + if ptr.Pointer() != nil { + return C.QDirModel_IsReadOnly(ptr.Pointer()) != 0 + } + return false +} + +func (ptr *QDirModel) LazyChildCount() bool { + if ptr.Pointer() != nil { + return C.QDirModel_LazyChildCount(ptr.Pointer()) != 0 + } + return false +} + +func (ptr *QDirModel) ResolveSymlinks() bool { + if ptr.Pointer() != nil { + return C.QDirModel_ResolveSymlinks(ptr.Pointer()) != 0 + } + return false +} + +//export callbackQDirModel_ColumnCount +func callbackQDirModel_ColumnCount(ptr unsafe.Pointer, parent unsafe.Pointer) C.int { + if signal := qt.GetSignal(ptr, "columnCount"); signal != nil { + return C.int(int32(signal.(func(*core.QModelIndex) int)(core.NewQModelIndexFromPointer(parent)))) + } + + return C.int(int32(NewQDirModelFromPointer(ptr).ColumnCountDefault(core.NewQModelIndexFromPointer(parent)))) +} + +func (ptr *QDirModel) ConnectColumnCount(f func(parent *core.QModelIndex) int) { + if ptr.Pointer() != nil { + + if signal := qt.LendSignal(ptr.Pointer(), "columnCount"); signal != nil { + qt.ConnectSignal(ptr.Pointer(), "columnCount", func(parent *core.QModelIndex) int { + signal.(func(*core.QModelIndex) int)(parent) + return f(parent) + }) + } else { + qt.ConnectSignal(ptr.Pointer(), "columnCount", f) + } + } +} + +func (ptr *QDirModel) DisconnectColumnCount() { + if ptr.Pointer() != nil { + + qt.DisconnectSignal(ptr.Pointer(), "columnCount") + } +} + +func (ptr *QDirModel) ColumnCount(parent core.QModelIndex_ITF) int { + if ptr.Pointer() != nil { + return int(int32(C.QDirModel_ColumnCount(ptr.Pointer(), core.PointerFromQModelIndex(parent)))) + } + return 0 +} + +func (ptr *QDirModel) ColumnCountDefault(parent core.QModelIndex_ITF) int { + if ptr.Pointer() != nil { + return int(int32(C.QDirModel_ColumnCountDefault(ptr.Pointer(), core.PointerFromQModelIndex(parent)))) + } + return 0 +} + +//export callbackQDirModel_RowCount +func callbackQDirModel_RowCount(ptr unsafe.Pointer, parent unsafe.Pointer) C.int { + if signal := qt.GetSignal(ptr, "rowCount"); signal != nil { + return C.int(int32(signal.(func(*core.QModelIndex) int)(core.NewQModelIndexFromPointer(parent)))) + } + + return C.int(int32(NewQDirModelFromPointer(ptr).RowCountDefault(core.NewQModelIndexFromPointer(parent)))) +} + +func (ptr *QDirModel) ConnectRowCount(f func(parent *core.QModelIndex) int) { + if ptr.Pointer() != nil { + + if signal := qt.LendSignal(ptr.Pointer(), "rowCount"); signal != nil { + qt.ConnectSignal(ptr.Pointer(), "rowCount", func(parent *core.QModelIndex) int { + signal.(func(*core.QModelIndex) int)(parent) + return f(parent) + }) + } else { + qt.ConnectSignal(ptr.Pointer(), "rowCount", f) + } + } +} + +func (ptr *QDirModel) DisconnectRowCount() { + if ptr.Pointer() != nil { + + qt.DisconnectSignal(ptr.Pointer(), "rowCount") + } +} + +func (ptr *QDirModel) RowCount(parent core.QModelIndex_ITF) int { + if ptr.Pointer() != nil { + return int(int32(C.QDirModel_RowCount(ptr.Pointer(), core.PointerFromQModelIndex(parent)))) + } + return 0 +} + +func (ptr *QDirModel) RowCountDefault(parent core.QModelIndex_ITF) int { + if ptr.Pointer() != nil { + return int(int32(C.QDirModel_RowCountDefault(ptr.Pointer(), core.PointerFromQModelIndex(parent)))) + } + return 0 +} + +func (ptr *QDirModel) __mimeData_indexes_atList(i int) *core.QModelIndex { + if ptr.Pointer() != nil { + tmpValue := core.NewQModelIndexFromPointer(C.QDirModel___mimeData_indexes_atList(ptr.Pointer(), C.int(int32(i)))) + runtime.SetFinalizer(tmpValue, (*core.QModelIndex).DestroyQModelIndex) + return tmpValue + } + return nil +} + +func (ptr *QDirModel) __mimeData_indexes_setList(i core.QModelIndex_ITF) { + if ptr.Pointer() != nil { + C.QDirModel___mimeData_indexes_setList(ptr.Pointer(), core.PointerFromQModelIndex(i)) + } +} + +func (ptr *QDirModel) __mimeData_indexes_newList() unsafe.Pointer { + return C.QDirModel___mimeData_indexes_newList(ptr.Pointer()) +} + +func (ptr *QDirModel) __setItemData_roles_atList(v int, i int) *core.QVariant { + if ptr.Pointer() != nil { + tmpValue := core.NewQVariantFromPointer(C.QDirModel___setItemData_roles_atList(ptr.Pointer(), C.int(int32(v)), C.int(int32(i)))) + runtime.SetFinalizer(tmpValue, (*core.QVariant).DestroyQVariant) + return tmpValue + } + return nil +} + +func (ptr *QDirModel) __setItemData_roles_setList(key int, i core.QVariant_ITF) { + if ptr.Pointer() != nil { + C.QDirModel___setItemData_roles_setList(ptr.Pointer(), C.int(int32(key)), core.PointerFromQVariant(i)) + } +} + +func (ptr *QDirModel) __setItemData_roles_newList() unsafe.Pointer { + return C.QDirModel___setItemData_roles_newList(ptr.Pointer()) +} + +func (ptr *QDirModel) __setItemData_keyList() []int { + if ptr.Pointer() != nil { + return func(l C.struct_QtWidgets_PackedList) []int { + out := make([]int, int(l.len)) + tmpList := NewQDirModelFromPointer(l.data) + for i := 0; i < len(out); i++ { + out[i] = tmpList.____setItemData_keyList_atList(i) + } + return out + }(C.QDirModel___setItemData_keyList(ptr.Pointer())) + } + return make([]int, 0) +} + +func (ptr *QDirModel) __changePersistentIndexList_from_atList(i int) *core.QModelIndex { + if ptr.Pointer() != nil { + tmpValue := core.NewQModelIndexFromPointer(C.QDirModel___changePersistentIndexList_from_atList(ptr.Pointer(), C.int(int32(i)))) + runtime.SetFinalizer(tmpValue, (*core.QModelIndex).DestroyQModelIndex) + return tmpValue + } + return nil +} + +func (ptr *QDirModel) __changePersistentIndexList_from_setList(i core.QModelIndex_ITF) { + if ptr.Pointer() != nil { + C.QDirModel___changePersistentIndexList_from_setList(ptr.Pointer(), core.PointerFromQModelIndex(i)) + } +} + +func (ptr *QDirModel) __changePersistentIndexList_from_newList() unsafe.Pointer { + return C.QDirModel___changePersistentIndexList_from_newList(ptr.Pointer()) +} + +func (ptr *QDirModel) __changePersistentIndexList_to_atList(i int) *core.QModelIndex { + if ptr.Pointer() != nil { + tmpValue := core.NewQModelIndexFromPointer(C.QDirModel___changePersistentIndexList_to_atList(ptr.Pointer(), C.int(int32(i)))) + runtime.SetFinalizer(tmpValue, (*core.QModelIndex).DestroyQModelIndex) + return tmpValue + } + return nil +} + +func (ptr *QDirModel) __changePersistentIndexList_to_setList(i core.QModelIndex_ITF) { + if ptr.Pointer() != nil { + C.QDirModel___changePersistentIndexList_to_setList(ptr.Pointer(), core.PointerFromQModelIndex(i)) + } +} + +func (ptr *QDirModel) __changePersistentIndexList_to_newList() unsafe.Pointer { + return C.QDirModel___changePersistentIndexList_to_newList(ptr.Pointer()) +} + +func (ptr *QDirModel) __dataChanged_roles_atList(i int) int { + if ptr.Pointer() != nil { + return int(int32(C.QDirModel___dataChanged_roles_atList(ptr.Pointer(), C.int(int32(i))))) + } + return 0 +} + +func (ptr *QDirModel) __dataChanged_roles_setList(i int) { + if ptr.Pointer() != nil { + C.QDirModel___dataChanged_roles_setList(ptr.Pointer(), C.int(int32(i))) + } +} + +func (ptr *QDirModel) __dataChanged_roles_newList() unsafe.Pointer { + return C.QDirModel___dataChanged_roles_newList(ptr.Pointer()) +} + +func (ptr *QDirModel) __layoutAboutToBeChanged_parents_atList(i int) *core.QPersistentModelIndex { + if ptr.Pointer() != nil { + tmpValue := core.NewQPersistentModelIndexFromPointer(C.QDirModel___layoutAboutToBeChanged_parents_atList(ptr.Pointer(), C.int(int32(i)))) + runtime.SetFinalizer(tmpValue, (*core.QPersistentModelIndex).DestroyQPersistentModelIndex) + return tmpValue + } + return nil +} + +func (ptr *QDirModel) __layoutAboutToBeChanged_parents_setList(i core.QPersistentModelIndex_ITF) { + if ptr.Pointer() != nil { + C.QDirModel___layoutAboutToBeChanged_parents_setList(ptr.Pointer(), core.PointerFromQPersistentModelIndex(i)) + } +} + +func (ptr *QDirModel) __layoutAboutToBeChanged_parents_newList() unsafe.Pointer { + return C.QDirModel___layoutAboutToBeChanged_parents_newList(ptr.Pointer()) +} + +func (ptr *QDirModel) __layoutChanged_parents_atList(i int) *core.QPersistentModelIndex { + if ptr.Pointer() != nil { + tmpValue := core.NewQPersistentModelIndexFromPointer(C.QDirModel___layoutChanged_parents_atList(ptr.Pointer(), C.int(int32(i)))) + runtime.SetFinalizer(tmpValue, (*core.QPersistentModelIndex).DestroyQPersistentModelIndex) + return tmpValue + } + return nil +} + +func (ptr *QDirModel) __layoutChanged_parents_setList(i core.QPersistentModelIndex_ITF) { + if ptr.Pointer() != nil { + C.QDirModel___layoutChanged_parents_setList(ptr.Pointer(), core.PointerFromQPersistentModelIndex(i)) + } +} + +func (ptr *QDirModel) __layoutChanged_parents_newList() unsafe.Pointer { + return C.QDirModel___layoutChanged_parents_newList(ptr.Pointer()) +} + +func (ptr *QDirModel) __roleNames_atList(v int, i int) *core.QByteArray { + if ptr.Pointer() != nil { + tmpValue := core.NewQByteArrayFromPointer(C.QDirModel___roleNames_atList(ptr.Pointer(), C.int(int32(v)), C.int(int32(i)))) + runtime.SetFinalizer(tmpValue, (*core.QByteArray).DestroyQByteArray) + return tmpValue + } + return nil +} + +func (ptr *QDirModel) __roleNames_setList(key int, i core.QByteArray_ITF) { + if ptr.Pointer() != nil { + C.QDirModel___roleNames_setList(ptr.Pointer(), C.int(int32(key)), core.PointerFromQByteArray(i)) + } +} + +func (ptr *QDirModel) __roleNames_newList() unsafe.Pointer { + return C.QDirModel___roleNames_newList(ptr.Pointer()) +} + +func (ptr *QDirModel) __roleNames_keyList() []int { + if ptr.Pointer() != nil { + return func(l C.struct_QtWidgets_PackedList) []int { + out := make([]int, int(l.len)) + tmpList := NewQDirModelFromPointer(l.data) + for i := 0; i < len(out); i++ { + out[i] = tmpList.____roleNames_keyList_atList(i) + } + return out + }(C.QDirModel___roleNames_keyList(ptr.Pointer())) + } + return make([]int, 0) +} + +func (ptr *QDirModel) __itemData_atList(v int, i int) *core.QVariant { + if ptr.Pointer() != nil { + tmpValue := core.NewQVariantFromPointer(C.QDirModel___itemData_atList(ptr.Pointer(), C.int(int32(v)), C.int(int32(i)))) + runtime.SetFinalizer(tmpValue, (*core.QVariant).DestroyQVariant) + return tmpValue + } + return nil +} + +func (ptr *QDirModel) __itemData_setList(key int, i core.QVariant_ITF) { + if ptr.Pointer() != nil { + C.QDirModel___itemData_setList(ptr.Pointer(), C.int(int32(key)), core.PointerFromQVariant(i)) + } +} + +func (ptr *QDirModel) __itemData_newList() unsafe.Pointer { + return C.QDirModel___itemData_newList(ptr.Pointer()) +} + +func (ptr *QDirModel) __itemData_keyList() []int { + if ptr.Pointer() != nil { + return func(l C.struct_QtWidgets_PackedList) []int { + out := make([]int, int(l.len)) + tmpList := NewQDirModelFromPointer(l.data) + for i := 0; i < len(out); i++ { + out[i] = tmpList.____itemData_keyList_atList(i) + } + return out + }(C.QDirModel___itemData_keyList(ptr.Pointer())) + } + return make([]int, 0) +} + +func (ptr *QDirModel) __match_atList(i int) *core.QModelIndex { + if ptr.Pointer() != nil { + tmpValue := core.NewQModelIndexFromPointer(C.QDirModel___match_atList(ptr.Pointer(), C.int(int32(i)))) + runtime.SetFinalizer(tmpValue, (*core.QModelIndex).DestroyQModelIndex) + return tmpValue + } + return nil +} + +func (ptr *QDirModel) __match_setList(i core.QModelIndex_ITF) { + if ptr.Pointer() != nil { + C.QDirModel___match_setList(ptr.Pointer(), core.PointerFromQModelIndex(i)) + } +} + +func (ptr *QDirModel) __match_newList() unsafe.Pointer { + return C.QDirModel___match_newList(ptr.Pointer()) +} + +func (ptr *QDirModel) __persistentIndexList_atList(i int) *core.QModelIndex { + if ptr.Pointer() != nil { + tmpValue := core.NewQModelIndexFromPointer(C.QDirModel___persistentIndexList_atList(ptr.Pointer(), C.int(int32(i)))) + runtime.SetFinalizer(tmpValue, (*core.QModelIndex).DestroyQModelIndex) + return tmpValue + } + return nil +} + +func (ptr *QDirModel) __persistentIndexList_setList(i core.QModelIndex_ITF) { + if ptr.Pointer() != nil { + C.QDirModel___persistentIndexList_setList(ptr.Pointer(), core.PointerFromQModelIndex(i)) + } +} + +func (ptr *QDirModel) __persistentIndexList_newList() unsafe.Pointer { + return C.QDirModel___persistentIndexList_newList(ptr.Pointer()) +} + +func (ptr *QDirModel) ____setItemData_keyList_atList(i int) int { + if ptr.Pointer() != nil { + return int(int32(C.QDirModel_____setItemData_keyList_atList(ptr.Pointer(), C.int(int32(i))))) + } + return 0 +} + +func (ptr *QDirModel) ____setItemData_keyList_setList(i int) { + if ptr.Pointer() != nil { + C.QDirModel_____setItemData_keyList_setList(ptr.Pointer(), C.int(int32(i))) + } +} + +func (ptr *QDirModel) ____setItemData_keyList_newList() unsafe.Pointer { + return C.QDirModel_____setItemData_keyList_newList(ptr.Pointer()) +} + +func (ptr *QDirModel) ____doSetRoleNames_keyList_atList(i int) int { + if ptr.Pointer() != nil { + return int(int32(C.QDirModel_____doSetRoleNames_keyList_atList(ptr.Pointer(), C.int(int32(i))))) + } + return 0 +} + +func (ptr *QDirModel) ____doSetRoleNames_keyList_setList(i int) { + if ptr.Pointer() != nil { + C.QDirModel_____doSetRoleNames_keyList_setList(ptr.Pointer(), C.int(int32(i))) + } +} + +func (ptr *QDirModel) ____doSetRoleNames_keyList_newList() unsafe.Pointer { + return C.QDirModel_____doSetRoleNames_keyList_newList(ptr.Pointer()) +} + +func (ptr *QDirModel) ____setRoleNames_keyList_atList(i int) int { + if ptr.Pointer() != nil { + return int(int32(C.QDirModel_____setRoleNames_keyList_atList(ptr.Pointer(), C.int(int32(i))))) + } + return 0 +} + +func (ptr *QDirModel) ____setRoleNames_keyList_setList(i int) { + if ptr.Pointer() != nil { + C.QDirModel_____setRoleNames_keyList_setList(ptr.Pointer(), C.int(int32(i))) + } +} + +func (ptr *QDirModel) ____setRoleNames_keyList_newList() unsafe.Pointer { + return C.QDirModel_____setRoleNames_keyList_newList(ptr.Pointer()) +} + +func (ptr *QDirModel) ____roleNames_keyList_atList(i int) int { + if ptr.Pointer() != nil { + return int(int32(C.QDirModel_____roleNames_keyList_atList(ptr.Pointer(), C.int(int32(i))))) + } + return 0 +} + +func (ptr *QDirModel) ____roleNames_keyList_setList(i int) { + if ptr.Pointer() != nil { + C.QDirModel_____roleNames_keyList_setList(ptr.Pointer(), C.int(int32(i))) + } +} + +func (ptr *QDirModel) ____roleNames_keyList_newList() unsafe.Pointer { + return C.QDirModel_____roleNames_keyList_newList(ptr.Pointer()) +} + +func (ptr *QDirModel) ____itemData_keyList_atList(i int) int { + if ptr.Pointer() != nil { + return int(int32(C.QDirModel_____itemData_keyList_atList(ptr.Pointer(), C.int(int32(i))))) + } + return 0 +} + +func (ptr *QDirModel) ____itemData_keyList_setList(i int) { + if ptr.Pointer() != nil { + C.QDirModel_____itemData_keyList_setList(ptr.Pointer(), C.int(int32(i))) + } +} + +func (ptr *QDirModel) ____itemData_keyList_newList() unsafe.Pointer { + return C.QDirModel_____itemData_keyList_newList(ptr.Pointer()) +} + +func (ptr *QDirModel) __dynamicPropertyNames_atList(i int) *core.QByteArray { + if ptr.Pointer() != nil { + tmpValue := core.NewQByteArrayFromPointer(C.QDirModel___dynamicPropertyNames_atList(ptr.Pointer(), C.int(int32(i)))) + runtime.SetFinalizer(tmpValue, (*core.QByteArray).DestroyQByteArray) + return tmpValue + } + return nil +} + +func (ptr *QDirModel) __dynamicPropertyNames_setList(i core.QByteArray_ITF) { + if ptr.Pointer() != nil { + C.QDirModel___dynamicPropertyNames_setList(ptr.Pointer(), core.PointerFromQByteArray(i)) + } +} + +func (ptr *QDirModel) __dynamicPropertyNames_newList() unsafe.Pointer { + return C.QDirModel___dynamicPropertyNames_newList(ptr.Pointer()) +} + +func (ptr *QDirModel) __findChildren_atList2(i int) *core.QObject { + if ptr.Pointer() != nil { + tmpValue := core.NewQObjectFromPointer(C.QDirModel___findChildren_atList2(ptr.Pointer(), C.int(int32(i)))) + if !qt.ExistsSignal(tmpValue.Pointer(), "destroyed") { + tmpValue.ConnectDestroyed(func(*core.QObject) { tmpValue.SetPointer(nil) }) + } + return tmpValue + } + return nil +} + +func (ptr *QDirModel) __findChildren_setList2(i core.QObject_ITF) { + if ptr.Pointer() != nil { + C.QDirModel___findChildren_setList2(ptr.Pointer(), core.PointerFromQObject(i)) + } +} + +func (ptr *QDirModel) __findChildren_newList2() unsafe.Pointer { + return C.QDirModel___findChildren_newList2(ptr.Pointer()) +} + +func (ptr *QDirModel) __findChildren_atList3(i int) *core.QObject { + if ptr.Pointer() != nil { + tmpValue := core.NewQObjectFromPointer(C.QDirModel___findChildren_atList3(ptr.Pointer(), C.int(int32(i)))) + if !qt.ExistsSignal(tmpValue.Pointer(), "destroyed") { + tmpValue.ConnectDestroyed(func(*core.QObject) { tmpValue.SetPointer(nil) }) + } + return tmpValue + } + return nil +} + +func (ptr *QDirModel) __findChildren_setList3(i core.QObject_ITF) { + if ptr.Pointer() != nil { + C.QDirModel___findChildren_setList3(ptr.Pointer(), core.PointerFromQObject(i)) + } +} + +func (ptr *QDirModel) __findChildren_newList3() unsafe.Pointer { + return C.QDirModel___findChildren_newList3(ptr.Pointer()) +} + +func (ptr *QDirModel) __findChildren_atList(i int) *core.QObject { + if ptr.Pointer() != nil { + tmpValue := core.NewQObjectFromPointer(C.QDirModel___findChildren_atList(ptr.Pointer(), C.int(int32(i)))) + if !qt.ExistsSignal(tmpValue.Pointer(), "destroyed") { + tmpValue.ConnectDestroyed(func(*core.QObject) { tmpValue.SetPointer(nil) }) + } + return tmpValue + } + return nil +} + +func (ptr *QDirModel) __findChildren_setList(i core.QObject_ITF) { + if ptr.Pointer() != nil { + C.QDirModel___findChildren_setList(ptr.Pointer(), core.PointerFromQObject(i)) + } +} + +func (ptr *QDirModel) __findChildren_newList() unsafe.Pointer { + return C.QDirModel___findChildren_newList(ptr.Pointer()) +} + +func (ptr *QDirModel) __children_atList(i int) *core.QObject { + if ptr.Pointer() != nil { + tmpValue := core.NewQObjectFromPointer(C.QDirModel___children_atList(ptr.Pointer(), C.int(int32(i)))) + if !qt.ExistsSignal(tmpValue.Pointer(), "destroyed") { + tmpValue.ConnectDestroyed(func(*core.QObject) { tmpValue.SetPointer(nil) }) + } + return tmpValue + } + return nil +} + +func (ptr *QDirModel) __children_setList(i core.QObject_ITF) { + if ptr.Pointer() != nil { + C.QDirModel___children_setList(ptr.Pointer(), core.PointerFromQObject(i)) + } +} + +func (ptr *QDirModel) __children_newList() unsafe.Pointer { + return C.QDirModel___children_newList(ptr.Pointer()) +} + +//export callbackQDirModel_InsertColumns +func callbackQDirModel_InsertColumns(ptr unsafe.Pointer, column C.int, count C.int, parent unsafe.Pointer) C.char { + if signal := qt.GetSignal(ptr, "insertColumns"); signal != nil { + return C.char(int8(qt.GoBoolToInt(signal.(func(int, int, *core.QModelIndex) bool)(int(int32(column)), int(int32(count)), core.NewQModelIndexFromPointer(parent))))) + } + + return C.char(int8(qt.GoBoolToInt(NewQDirModelFromPointer(ptr).InsertColumnsDefault(int(int32(column)), int(int32(count)), core.NewQModelIndexFromPointer(parent))))) +} + +func (ptr *QDirModel) InsertColumnsDefault(column int, count int, parent core.QModelIndex_ITF) bool { + if ptr.Pointer() != nil { + return C.QDirModel_InsertColumnsDefault(ptr.Pointer(), C.int(int32(column)), C.int(int32(count)), core.PointerFromQModelIndex(parent)) != 0 + } + return false +} + +//export callbackQDirModel_InsertRows +func callbackQDirModel_InsertRows(ptr unsafe.Pointer, row C.int, count C.int, parent unsafe.Pointer) C.char { + if signal := qt.GetSignal(ptr, "insertRows"); signal != nil { + return C.char(int8(qt.GoBoolToInt(signal.(func(int, int, *core.QModelIndex) bool)(int(int32(row)), int(int32(count)), core.NewQModelIndexFromPointer(parent))))) + } + + return C.char(int8(qt.GoBoolToInt(NewQDirModelFromPointer(ptr).InsertRowsDefault(int(int32(row)), int(int32(count)), core.NewQModelIndexFromPointer(parent))))) +} + +func (ptr *QDirModel) InsertRowsDefault(row int, count int, parent core.QModelIndex_ITF) bool { + if ptr.Pointer() != nil { + return C.QDirModel_InsertRowsDefault(ptr.Pointer(), C.int(int32(row)), C.int(int32(count)), core.PointerFromQModelIndex(parent)) != 0 + } + return false +} + +//export callbackQDirModel_MoveColumns +func callbackQDirModel_MoveColumns(ptr unsafe.Pointer, sourceParent unsafe.Pointer, sourceColumn C.int, count C.int, destinationParent unsafe.Pointer, destinationChild C.int) C.char { + if signal := qt.GetSignal(ptr, "moveColumns"); signal != nil { + return C.char(int8(qt.GoBoolToInt(signal.(func(*core.QModelIndex, int, int, *core.QModelIndex, int) bool)(core.NewQModelIndexFromPointer(sourceParent), int(int32(sourceColumn)), int(int32(count)), core.NewQModelIndexFromPointer(destinationParent), int(int32(destinationChild)))))) + } + + return C.char(int8(qt.GoBoolToInt(NewQDirModelFromPointer(ptr).MoveColumnsDefault(core.NewQModelIndexFromPointer(sourceParent), int(int32(sourceColumn)), int(int32(count)), core.NewQModelIndexFromPointer(destinationParent), int(int32(destinationChild)))))) +} + +func (ptr *QDirModel) MoveColumnsDefault(sourceParent core.QModelIndex_ITF, sourceColumn int, count int, destinationParent core.QModelIndex_ITF, destinationChild int) bool { + if ptr.Pointer() != nil { + return C.QDirModel_MoveColumnsDefault(ptr.Pointer(), core.PointerFromQModelIndex(sourceParent), C.int(int32(sourceColumn)), C.int(int32(count)), core.PointerFromQModelIndex(destinationParent), C.int(int32(destinationChild))) != 0 + } + return false +} + +//export callbackQDirModel_MoveRows +func callbackQDirModel_MoveRows(ptr unsafe.Pointer, sourceParent unsafe.Pointer, sourceRow C.int, count C.int, destinationParent unsafe.Pointer, destinationChild C.int) C.char { + if signal := qt.GetSignal(ptr, "moveRows"); signal != nil { + return C.char(int8(qt.GoBoolToInt(signal.(func(*core.QModelIndex, int, int, *core.QModelIndex, int) bool)(core.NewQModelIndexFromPointer(sourceParent), int(int32(sourceRow)), int(int32(count)), core.NewQModelIndexFromPointer(destinationParent), int(int32(destinationChild)))))) + } + + return C.char(int8(qt.GoBoolToInt(NewQDirModelFromPointer(ptr).MoveRowsDefault(core.NewQModelIndexFromPointer(sourceParent), int(int32(sourceRow)), int(int32(count)), core.NewQModelIndexFromPointer(destinationParent), int(int32(destinationChild)))))) +} + +func (ptr *QDirModel) MoveRowsDefault(sourceParent core.QModelIndex_ITF, sourceRow int, count int, destinationParent core.QModelIndex_ITF, destinationChild int) bool { + if ptr.Pointer() != nil { + return C.QDirModel_MoveRowsDefault(ptr.Pointer(), core.PointerFromQModelIndex(sourceParent), C.int(int32(sourceRow)), C.int(int32(count)), core.PointerFromQModelIndex(destinationParent), C.int(int32(destinationChild))) != 0 + } + return false +} + +//export callbackQDirModel_RemoveColumns +func callbackQDirModel_RemoveColumns(ptr unsafe.Pointer, column C.int, count C.int, parent unsafe.Pointer) C.char { + if signal := qt.GetSignal(ptr, "removeColumns"); signal != nil { + return C.char(int8(qt.GoBoolToInt(signal.(func(int, int, *core.QModelIndex) bool)(int(int32(column)), int(int32(count)), core.NewQModelIndexFromPointer(parent))))) + } + + return C.char(int8(qt.GoBoolToInt(NewQDirModelFromPointer(ptr).RemoveColumnsDefault(int(int32(column)), int(int32(count)), core.NewQModelIndexFromPointer(parent))))) +} + +func (ptr *QDirModel) RemoveColumnsDefault(column int, count int, parent core.QModelIndex_ITF) bool { + if ptr.Pointer() != nil { + return C.QDirModel_RemoveColumnsDefault(ptr.Pointer(), C.int(int32(column)), C.int(int32(count)), core.PointerFromQModelIndex(parent)) != 0 + } + return false +} + +//export callbackQDirModel_RemoveRows +func callbackQDirModel_RemoveRows(ptr unsafe.Pointer, row C.int, count C.int, parent unsafe.Pointer) C.char { + if signal := qt.GetSignal(ptr, "removeRows"); signal != nil { + return C.char(int8(qt.GoBoolToInt(signal.(func(int, int, *core.QModelIndex) bool)(int(int32(row)), int(int32(count)), core.NewQModelIndexFromPointer(parent))))) + } + + return C.char(int8(qt.GoBoolToInt(NewQDirModelFromPointer(ptr).RemoveRowsDefault(int(int32(row)), int(int32(count)), core.NewQModelIndexFromPointer(parent))))) +} + +func (ptr *QDirModel) RemoveRowsDefault(row int, count int, parent core.QModelIndex_ITF) bool { + if ptr.Pointer() != nil { + return C.QDirModel_RemoveRowsDefault(ptr.Pointer(), C.int(int32(row)), C.int(int32(count)), core.PointerFromQModelIndex(parent)) != 0 + } + return false +} + +//export callbackQDirModel_SetHeaderData +func callbackQDirModel_SetHeaderData(ptr unsafe.Pointer, section C.int, orientation C.longlong, value unsafe.Pointer, role C.int) C.char { + if signal := qt.GetSignal(ptr, "setHeaderData"); signal != nil { + return C.char(int8(qt.GoBoolToInt(signal.(func(int, core.Qt__Orientation, *core.QVariant, int) bool)(int(int32(section)), core.Qt__Orientation(orientation), core.NewQVariantFromPointer(value), int(int32(role)))))) + } + + return C.char(int8(qt.GoBoolToInt(NewQDirModelFromPointer(ptr).SetHeaderDataDefault(int(int32(section)), core.Qt__Orientation(orientation), core.NewQVariantFromPointer(value), int(int32(role)))))) +} + +func (ptr *QDirModel) SetHeaderDataDefault(section int, orientation core.Qt__Orientation, value core.QVariant_ITF, role int) bool { + if ptr.Pointer() != nil { + return C.QDirModel_SetHeaderDataDefault(ptr.Pointer(), C.int(int32(section)), C.longlong(orientation), core.PointerFromQVariant(value), C.int(int32(role))) != 0 + } + return false +} + +//export callbackQDirModel_SetItemData +func callbackQDirModel_SetItemData(ptr unsafe.Pointer, index unsafe.Pointer, roles C.struct_QtWidgets_PackedList) C.char { + if signal := qt.GetSignal(ptr, "setItemData"); signal != nil { + return C.char(int8(qt.GoBoolToInt(signal.(func(*core.QModelIndex, map[int]*core.QVariant) bool)(core.NewQModelIndexFromPointer(index), func(l C.struct_QtWidgets_PackedList) map[int]*core.QVariant { + out := make(map[int]*core.QVariant, int(l.len)) + tmpList := NewQDirModelFromPointer(l.data) + for i, v := range tmpList.__setItemData_keyList() { + out[v] = tmpList.__setItemData_roles_atList(v, i) + } + return out + }(roles))))) + } + + return C.char(int8(qt.GoBoolToInt(NewQDirModelFromPointer(ptr).SetItemDataDefault(core.NewQModelIndexFromPointer(index), func(l C.struct_QtWidgets_PackedList) map[int]*core.QVariant { + out := make(map[int]*core.QVariant, int(l.len)) + tmpList := NewQDirModelFromPointer(l.data) + for i, v := range tmpList.__setItemData_keyList() { + out[v] = tmpList.__setItemData_roles_atList(v, i) + } + return out + }(roles))))) +} + +func (ptr *QDirModel) SetItemDataDefault(index core.QModelIndex_ITF, roles map[int]*core.QVariant) bool { + if ptr.Pointer() != nil { + return C.QDirModel_SetItemDataDefault(ptr.Pointer(), core.PointerFromQModelIndex(index), func() unsafe.Pointer { + tmpList := NewQDirModelFromPointer(NewQDirModelFromPointer(nil).__setItemData_roles_newList()) + for k, v := range roles { + tmpList.__setItemData_roles_setList(k, v) + } + return tmpList.Pointer() + }()) != 0 + } + return false +} + +//export callbackQDirModel_Submit +func callbackQDirModel_Submit(ptr unsafe.Pointer) C.char { + if signal := qt.GetSignal(ptr, "submit"); signal != nil { + return C.char(int8(qt.GoBoolToInt(signal.(func() bool)()))) + } + + return C.char(int8(qt.GoBoolToInt(NewQDirModelFromPointer(ptr).SubmitDefault()))) +} + +func (ptr *QDirModel) SubmitDefault() bool { + if ptr.Pointer() != nil { + return C.QDirModel_SubmitDefault(ptr.Pointer()) != 0 + } + return false +} + +//export callbackQDirModel_ColumnsAboutToBeInserted +func callbackQDirModel_ColumnsAboutToBeInserted(ptr unsafe.Pointer, parent unsafe.Pointer, first C.int, last C.int) { + if signal := qt.GetSignal(ptr, "columnsAboutToBeInserted"); signal != nil { + signal.(func(*core.QModelIndex, int, int))(core.NewQModelIndexFromPointer(parent), int(int32(first)), int(int32(last))) + } + +} + +//export callbackQDirModel_ColumnsAboutToBeMoved +func callbackQDirModel_ColumnsAboutToBeMoved(ptr unsafe.Pointer, sourceParent unsafe.Pointer, sourceStart C.int, sourceEnd C.int, destinationParent unsafe.Pointer, destinationColumn C.int) { + if signal := qt.GetSignal(ptr, "columnsAboutToBeMoved"); signal != nil { + signal.(func(*core.QModelIndex, int, int, *core.QModelIndex, int))(core.NewQModelIndexFromPointer(sourceParent), int(int32(sourceStart)), int(int32(sourceEnd)), core.NewQModelIndexFromPointer(destinationParent), int(int32(destinationColumn))) + } + +} + +//export callbackQDirModel_ColumnsAboutToBeRemoved +func callbackQDirModel_ColumnsAboutToBeRemoved(ptr unsafe.Pointer, parent unsafe.Pointer, first C.int, last C.int) { + if signal := qt.GetSignal(ptr, "columnsAboutToBeRemoved"); signal != nil { + signal.(func(*core.QModelIndex, int, int))(core.NewQModelIndexFromPointer(parent), int(int32(first)), int(int32(last))) + } + +} + +//export callbackQDirModel_ColumnsInserted +func callbackQDirModel_ColumnsInserted(ptr unsafe.Pointer, parent unsafe.Pointer, first C.int, last C.int) { + if signal := qt.GetSignal(ptr, "columnsInserted"); signal != nil { + signal.(func(*core.QModelIndex, int, int))(core.NewQModelIndexFromPointer(parent), int(int32(first)), int(int32(last))) + } + +} + +//export callbackQDirModel_ColumnsMoved +func callbackQDirModel_ColumnsMoved(ptr unsafe.Pointer, parent unsafe.Pointer, start C.int, end C.int, destination unsafe.Pointer, column C.int) { + if signal := qt.GetSignal(ptr, "columnsMoved"); signal != nil { + signal.(func(*core.QModelIndex, int, int, *core.QModelIndex, int))(core.NewQModelIndexFromPointer(parent), int(int32(start)), int(int32(end)), core.NewQModelIndexFromPointer(destination), int(int32(column))) + } + +} + +//export callbackQDirModel_ColumnsRemoved +func callbackQDirModel_ColumnsRemoved(ptr unsafe.Pointer, parent unsafe.Pointer, first C.int, last C.int) { + if signal := qt.GetSignal(ptr, "columnsRemoved"); signal != nil { + signal.(func(*core.QModelIndex, int, int))(core.NewQModelIndexFromPointer(parent), int(int32(first)), int(int32(last))) + } + +} + +//export callbackQDirModel_DataChanged +func callbackQDirModel_DataChanged(ptr unsafe.Pointer, topLeft unsafe.Pointer, bottomRight unsafe.Pointer, roles C.struct_QtWidgets_PackedList) { + if signal := qt.GetSignal(ptr, "dataChanged"); signal != nil { + signal.(func(*core.QModelIndex, *core.QModelIndex, []int))(core.NewQModelIndexFromPointer(topLeft), core.NewQModelIndexFromPointer(bottomRight), func(l C.struct_QtWidgets_PackedList) []int { + out := make([]int, int(l.len)) + tmpList := NewQDirModelFromPointer(l.data) + for i := 0; i < len(out); i++ { + out[i] = tmpList.__dataChanged_roles_atList(i) + } + return out + }(roles)) + } + +} + +//export callbackQDirModel_FetchMore +func callbackQDirModel_FetchMore(ptr unsafe.Pointer, parent unsafe.Pointer) { + if signal := qt.GetSignal(ptr, "fetchMore"); signal != nil { + signal.(func(*core.QModelIndex))(core.NewQModelIndexFromPointer(parent)) + } else { + NewQDirModelFromPointer(ptr).FetchMoreDefault(core.NewQModelIndexFromPointer(parent)) + } +} + +func (ptr *QDirModel) FetchMoreDefault(parent core.QModelIndex_ITF) { + if ptr.Pointer() != nil { + C.QDirModel_FetchMoreDefault(ptr.Pointer(), core.PointerFromQModelIndex(parent)) + } +} + +//export callbackQDirModel_HeaderDataChanged +func callbackQDirModel_HeaderDataChanged(ptr unsafe.Pointer, orientation C.longlong, first C.int, last C.int) { + if signal := qt.GetSignal(ptr, "headerDataChanged"); signal != nil { + signal.(func(core.Qt__Orientation, int, int))(core.Qt__Orientation(orientation), int(int32(first)), int(int32(last))) + } + +} + +//export callbackQDirModel_LayoutAboutToBeChanged +func callbackQDirModel_LayoutAboutToBeChanged(ptr unsafe.Pointer, parents C.struct_QtWidgets_PackedList, hint C.longlong) { + if signal := qt.GetSignal(ptr, "layoutAboutToBeChanged"); signal != nil { + signal.(func([]*core.QPersistentModelIndex, core.QAbstractItemModel__LayoutChangeHint))(func(l C.struct_QtWidgets_PackedList) []*core.QPersistentModelIndex { + out := make([]*core.QPersistentModelIndex, int(l.len)) + tmpList := NewQDirModelFromPointer(l.data) + for i := 0; i < len(out); i++ { + out[i] = tmpList.__layoutAboutToBeChanged_parents_atList(i) + } + return out + }(parents), core.QAbstractItemModel__LayoutChangeHint(hint)) + } + +} + +//export callbackQDirModel_LayoutChanged +func callbackQDirModel_LayoutChanged(ptr unsafe.Pointer, parents C.struct_QtWidgets_PackedList, hint C.longlong) { + if signal := qt.GetSignal(ptr, "layoutChanged"); signal != nil { + signal.(func([]*core.QPersistentModelIndex, core.QAbstractItemModel__LayoutChangeHint))(func(l C.struct_QtWidgets_PackedList) []*core.QPersistentModelIndex { + out := make([]*core.QPersistentModelIndex, int(l.len)) + tmpList := NewQDirModelFromPointer(l.data) + for i := 0; i < len(out); i++ { + out[i] = tmpList.__layoutChanged_parents_atList(i) + } + return out + }(parents), core.QAbstractItemModel__LayoutChangeHint(hint)) + } + +} + +//export callbackQDirModel_ModelAboutToBeReset +func callbackQDirModel_ModelAboutToBeReset(ptr unsafe.Pointer) { + if signal := qt.GetSignal(ptr, "modelAboutToBeReset"); signal != nil { + signal.(func())() + } + +} + +//export callbackQDirModel_ModelReset +func callbackQDirModel_ModelReset(ptr unsafe.Pointer) { + if signal := qt.GetSignal(ptr, "modelReset"); signal != nil { + signal.(func())() + } + +} + +//export callbackQDirModel_ResetInternalData +func callbackQDirModel_ResetInternalData(ptr unsafe.Pointer) { + if signal := qt.GetSignal(ptr, "resetInternalData"); signal != nil { + signal.(func())() + } else { + NewQDirModelFromPointer(ptr).ResetInternalDataDefault() + } +} + +func (ptr *QDirModel) ResetInternalDataDefault() { + if ptr.Pointer() != nil { + C.QDirModel_ResetInternalDataDefault(ptr.Pointer()) + } +} + +//export callbackQDirModel_Revert +func callbackQDirModel_Revert(ptr unsafe.Pointer) { + if signal := qt.GetSignal(ptr, "revert"); signal != nil { + signal.(func())() + } else { + NewQDirModelFromPointer(ptr).RevertDefault() + } +} + +func (ptr *QDirModel) RevertDefault() { + if ptr.Pointer() != nil { + C.QDirModel_RevertDefault(ptr.Pointer()) + } +} + +//export callbackQDirModel_RowsAboutToBeInserted +func callbackQDirModel_RowsAboutToBeInserted(ptr unsafe.Pointer, parent unsafe.Pointer, start C.int, end C.int) { + if signal := qt.GetSignal(ptr, "rowsAboutToBeInserted"); signal != nil { + signal.(func(*core.QModelIndex, int, int))(core.NewQModelIndexFromPointer(parent), int(int32(start)), int(int32(end))) + } + +} + +//export callbackQDirModel_RowsAboutToBeMoved +func callbackQDirModel_RowsAboutToBeMoved(ptr unsafe.Pointer, sourceParent unsafe.Pointer, sourceStart C.int, sourceEnd C.int, destinationParent unsafe.Pointer, destinationRow C.int) { + if signal := qt.GetSignal(ptr, "rowsAboutToBeMoved"); signal != nil { + signal.(func(*core.QModelIndex, int, int, *core.QModelIndex, int))(core.NewQModelIndexFromPointer(sourceParent), int(int32(sourceStart)), int(int32(sourceEnd)), core.NewQModelIndexFromPointer(destinationParent), int(int32(destinationRow))) + } + +} + +//export callbackQDirModel_RowsAboutToBeRemoved +func callbackQDirModel_RowsAboutToBeRemoved(ptr unsafe.Pointer, parent unsafe.Pointer, first C.int, last C.int) { + if signal := qt.GetSignal(ptr, "rowsAboutToBeRemoved"); signal != nil { + signal.(func(*core.QModelIndex, int, int))(core.NewQModelIndexFromPointer(parent), int(int32(first)), int(int32(last))) + } + +} + +//export callbackQDirModel_RowsInserted +func callbackQDirModel_RowsInserted(ptr unsafe.Pointer, parent unsafe.Pointer, first C.int, last C.int) { + if signal := qt.GetSignal(ptr, "rowsInserted"); signal != nil { + signal.(func(*core.QModelIndex, int, int))(core.NewQModelIndexFromPointer(parent), int(int32(first)), int(int32(last))) + } + +} + +//export callbackQDirModel_RowsMoved +func callbackQDirModel_RowsMoved(ptr unsafe.Pointer, parent unsafe.Pointer, start C.int, end C.int, destination unsafe.Pointer, row C.int) { + if signal := qt.GetSignal(ptr, "rowsMoved"); signal != nil { + signal.(func(*core.QModelIndex, int, int, *core.QModelIndex, int))(core.NewQModelIndexFromPointer(parent), int(int32(start)), int(int32(end)), core.NewQModelIndexFromPointer(destination), int(int32(row))) + } + +} + +//export callbackQDirModel_RowsRemoved +func callbackQDirModel_RowsRemoved(ptr unsafe.Pointer, parent unsafe.Pointer, first C.int, last C.int) { + if signal := qt.GetSignal(ptr, "rowsRemoved"); signal != nil { + signal.(func(*core.QModelIndex, int, int))(core.NewQModelIndexFromPointer(parent), int(int32(first)), int(int32(last))) + } + +} + +//export callbackQDirModel_RoleNames +func callbackQDirModel_RoleNames(ptr unsafe.Pointer) unsafe.Pointer { + if signal := qt.GetSignal(ptr, "roleNames"); signal != nil { + return func() unsafe.Pointer { + tmpList := NewQDirModelFromPointer(NewQDirModelFromPointer(nil).__roleNames_newList()) + for k, v := range signal.(func() map[int]*core.QByteArray)() { + tmpList.__roleNames_setList(k, v) + } + return tmpList.Pointer() + }() + } + + return func() unsafe.Pointer { + tmpList := NewQDirModelFromPointer(NewQDirModelFromPointer(nil).__roleNames_newList()) + for k, v := range NewQDirModelFromPointer(ptr).RoleNamesDefault() { + tmpList.__roleNames_setList(k, v) + } + return tmpList.Pointer() + }() +} + +func (ptr *QDirModel) RoleNamesDefault() map[int]*core.QByteArray { + if ptr.Pointer() != nil { + return func(l C.struct_QtWidgets_PackedList) map[int]*core.QByteArray { + out := make(map[int]*core.QByteArray, int(l.len)) + tmpList := NewQDirModelFromPointer(l.data) + for i, v := range tmpList.__roleNames_keyList() { + out[v] = tmpList.__roleNames_atList(v, i) + } + return out + }(C.QDirModel_RoleNamesDefault(ptr.Pointer())) + } + return make(map[int]*core.QByteArray, 0) +} + +//export callbackQDirModel_ItemData +func callbackQDirModel_ItemData(ptr unsafe.Pointer, index unsafe.Pointer) unsafe.Pointer { + if signal := qt.GetSignal(ptr, "itemData"); signal != nil { + return func() unsafe.Pointer { + tmpList := NewQDirModelFromPointer(NewQDirModelFromPointer(nil).__itemData_newList()) + for k, v := range signal.(func(*core.QModelIndex) map[int]*core.QVariant)(core.NewQModelIndexFromPointer(index)) { + tmpList.__itemData_setList(k, v) + } + return tmpList.Pointer() + }() + } + + return func() unsafe.Pointer { + tmpList := NewQDirModelFromPointer(NewQDirModelFromPointer(nil).__itemData_newList()) + for k, v := range NewQDirModelFromPointer(ptr).ItemDataDefault(core.NewQModelIndexFromPointer(index)) { + tmpList.__itemData_setList(k, v) + } + return tmpList.Pointer() + }() +} + +func (ptr *QDirModel) ItemDataDefault(index core.QModelIndex_ITF) map[int]*core.QVariant { + if ptr.Pointer() != nil { + return func(l C.struct_QtWidgets_PackedList) map[int]*core.QVariant { + out := make(map[int]*core.QVariant, int(l.len)) + tmpList := NewQDirModelFromPointer(l.data) + for i, v := range tmpList.__itemData_keyList() { + out[v] = tmpList.__itemData_atList(v, i) + } + return out + }(C.QDirModel_ItemDataDefault(ptr.Pointer(), core.PointerFromQModelIndex(index))) + } + return make(map[int]*core.QVariant, 0) +} + +//export callbackQDirModel_Buddy +func callbackQDirModel_Buddy(ptr unsafe.Pointer, index unsafe.Pointer) unsafe.Pointer { + if signal := qt.GetSignal(ptr, "buddy"); signal != nil { + return core.PointerFromQModelIndex(signal.(func(*core.QModelIndex) *core.QModelIndex)(core.NewQModelIndexFromPointer(index))) + } + + return core.PointerFromQModelIndex(NewQDirModelFromPointer(ptr).BuddyDefault(core.NewQModelIndexFromPointer(index))) +} + +func (ptr *QDirModel) BuddyDefault(index core.QModelIndex_ITF) *core.QModelIndex { + if ptr.Pointer() != nil { + tmpValue := core.NewQModelIndexFromPointer(C.QDirModel_BuddyDefault(ptr.Pointer(), core.PointerFromQModelIndex(index))) + runtime.SetFinalizer(tmpValue, (*core.QModelIndex).DestroyQModelIndex) + return tmpValue + } + return nil +} + +//export callbackQDirModel_Sibling +func callbackQDirModel_Sibling(ptr unsafe.Pointer, row C.int, column C.int, index unsafe.Pointer) unsafe.Pointer { + if signal := qt.GetSignal(ptr, "sibling"); signal != nil { + return core.PointerFromQModelIndex(signal.(func(int, int, *core.QModelIndex) *core.QModelIndex)(int(int32(row)), int(int32(column)), core.NewQModelIndexFromPointer(index))) + } + + return core.PointerFromQModelIndex(NewQDirModelFromPointer(ptr).SiblingDefault(int(int32(row)), int(int32(column)), core.NewQModelIndexFromPointer(index))) +} + +func (ptr *QDirModel) SiblingDefault(row int, column int, index core.QModelIndex_ITF) *core.QModelIndex { + if ptr.Pointer() != nil { + tmpValue := core.NewQModelIndexFromPointer(C.QDirModel_SiblingDefault(ptr.Pointer(), C.int(int32(row)), C.int(int32(column)), core.PointerFromQModelIndex(index))) + runtime.SetFinalizer(tmpValue, (*core.QModelIndex).DestroyQModelIndex) + return tmpValue + } + return nil +} + +//export callbackQDirModel_Match +func callbackQDirModel_Match(ptr unsafe.Pointer, start unsafe.Pointer, role C.int, value unsafe.Pointer, hits C.int, flags C.longlong) unsafe.Pointer { + if signal := qt.GetSignal(ptr, "match"); signal != nil { + return func() unsafe.Pointer { + tmpList := NewQDirModelFromPointer(NewQDirModelFromPointer(nil).__match_newList()) + for _, v := range signal.(func(*core.QModelIndex, int, *core.QVariant, int, core.Qt__MatchFlag) []*core.QModelIndex)(core.NewQModelIndexFromPointer(start), int(int32(role)), core.NewQVariantFromPointer(value), int(int32(hits)), core.Qt__MatchFlag(flags)) { + tmpList.__match_setList(v) + } + return tmpList.Pointer() + }() + } + + return func() unsafe.Pointer { + tmpList := NewQDirModelFromPointer(NewQDirModelFromPointer(nil).__match_newList()) + for _, v := range NewQDirModelFromPointer(ptr).MatchDefault(core.NewQModelIndexFromPointer(start), int(int32(role)), core.NewQVariantFromPointer(value), int(int32(hits)), core.Qt__MatchFlag(flags)) { + tmpList.__match_setList(v) + } + return tmpList.Pointer() + }() +} + +func (ptr *QDirModel) MatchDefault(start core.QModelIndex_ITF, role int, value core.QVariant_ITF, hits int, flags core.Qt__MatchFlag) []*core.QModelIndex { + if ptr.Pointer() != nil { + return func(l C.struct_QtWidgets_PackedList) []*core.QModelIndex { + out := make([]*core.QModelIndex, int(l.len)) + tmpList := NewQDirModelFromPointer(l.data) + for i := 0; i < len(out); i++ { + out[i] = tmpList.__match_atList(i) + } + return out + }(C.QDirModel_MatchDefault(ptr.Pointer(), core.PointerFromQModelIndex(start), C.int(int32(role)), core.PointerFromQVariant(value), C.int(int32(hits)), C.longlong(flags))) + } + return make([]*core.QModelIndex, 0) +} + +//export callbackQDirModel_Span +func callbackQDirModel_Span(ptr unsafe.Pointer, index unsafe.Pointer) unsafe.Pointer { + if signal := qt.GetSignal(ptr, "span"); signal != nil { + return core.PointerFromQSize(signal.(func(*core.QModelIndex) *core.QSize)(core.NewQModelIndexFromPointer(index))) + } + + return core.PointerFromQSize(NewQDirModelFromPointer(ptr).SpanDefault(core.NewQModelIndexFromPointer(index))) +} + +func (ptr *QDirModel) SpanDefault(index core.QModelIndex_ITF) *core.QSize { + if ptr.Pointer() != nil { + tmpValue := core.NewQSizeFromPointer(C.QDirModel_SpanDefault(ptr.Pointer(), core.PointerFromQModelIndex(index))) + runtime.SetFinalizer(tmpValue, (*core.QSize).DestroyQSize) + return tmpValue + } + return nil +} + +//export callbackQDirModel_SupportedDragActions +func callbackQDirModel_SupportedDragActions(ptr unsafe.Pointer) C.longlong { + if signal := qt.GetSignal(ptr, "supportedDragActions"); signal != nil { + return C.longlong(signal.(func() core.Qt__DropAction)()) + } + + return C.longlong(NewQDirModelFromPointer(ptr).SupportedDragActionsDefault()) +} + +func (ptr *QDirModel) SupportedDragActionsDefault() core.Qt__DropAction { + if ptr.Pointer() != nil { + return core.Qt__DropAction(C.QDirModel_SupportedDragActionsDefault(ptr.Pointer())) + } + return 0 +} + +//export callbackQDirModel_CanDropMimeData +func callbackQDirModel_CanDropMimeData(ptr unsafe.Pointer, data unsafe.Pointer, action C.longlong, row C.int, column C.int, parent unsafe.Pointer) C.char { + if signal := qt.GetSignal(ptr, "canDropMimeData"); signal != nil { + return C.char(int8(qt.GoBoolToInt(signal.(func(*core.QMimeData, core.Qt__DropAction, int, int, *core.QModelIndex) bool)(core.NewQMimeDataFromPointer(data), core.Qt__DropAction(action), int(int32(row)), int(int32(column)), core.NewQModelIndexFromPointer(parent))))) + } + + return C.char(int8(qt.GoBoolToInt(NewQDirModelFromPointer(ptr).CanDropMimeDataDefault(core.NewQMimeDataFromPointer(data), core.Qt__DropAction(action), int(int32(row)), int(int32(column)), core.NewQModelIndexFromPointer(parent))))) +} + +func (ptr *QDirModel) CanDropMimeDataDefault(data core.QMimeData_ITF, action core.Qt__DropAction, row int, column int, parent core.QModelIndex_ITF) bool { + if ptr.Pointer() != nil { + return C.QDirModel_CanDropMimeDataDefault(ptr.Pointer(), core.PointerFromQMimeData(data), C.longlong(action), C.int(int32(row)), C.int(int32(column)), core.PointerFromQModelIndex(parent)) != 0 + } + return false +} + +//export callbackQDirModel_CanFetchMore +func callbackQDirModel_CanFetchMore(ptr unsafe.Pointer, parent unsafe.Pointer) C.char { + if signal := qt.GetSignal(ptr, "canFetchMore"); signal != nil { + return C.char(int8(qt.GoBoolToInt(signal.(func(*core.QModelIndex) bool)(core.NewQModelIndexFromPointer(parent))))) + } + + return C.char(int8(qt.GoBoolToInt(NewQDirModelFromPointer(ptr).CanFetchMoreDefault(core.NewQModelIndexFromPointer(parent))))) +} + +func (ptr *QDirModel) CanFetchMoreDefault(parent core.QModelIndex_ITF) bool { + if ptr.Pointer() != nil { + return C.QDirModel_CanFetchMoreDefault(ptr.Pointer(), core.PointerFromQModelIndex(parent)) != 0 + } + return false +} + +//export callbackQDirModel_Event +func callbackQDirModel_Event(ptr unsafe.Pointer, e unsafe.Pointer) C.char { + if signal := qt.GetSignal(ptr, "event"); signal != nil { + return C.char(int8(qt.GoBoolToInt(signal.(func(*core.QEvent) bool)(core.NewQEventFromPointer(e))))) + } + + return C.char(int8(qt.GoBoolToInt(NewQDirModelFromPointer(ptr).EventDefault(core.NewQEventFromPointer(e))))) +} + +func (ptr *QDirModel) EventDefault(e core.QEvent_ITF) bool { + if ptr.Pointer() != nil { + return C.QDirModel_EventDefault(ptr.Pointer(), core.PointerFromQEvent(e)) != 0 + } + return false +} + +//export callbackQDirModel_EventFilter +func callbackQDirModel_EventFilter(ptr unsafe.Pointer, watched unsafe.Pointer, event unsafe.Pointer) C.char { + if signal := qt.GetSignal(ptr, "eventFilter"); signal != nil { + return C.char(int8(qt.GoBoolToInt(signal.(func(*core.QObject, *core.QEvent) bool)(core.NewQObjectFromPointer(watched), core.NewQEventFromPointer(event))))) + } + + return C.char(int8(qt.GoBoolToInt(NewQDirModelFromPointer(ptr).EventFilterDefault(core.NewQObjectFromPointer(watched), core.NewQEventFromPointer(event))))) +} + +func (ptr *QDirModel) EventFilterDefault(watched core.QObject_ITF, event core.QEvent_ITF) bool { + if ptr.Pointer() != nil { + return C.QDirModel_EventFilterDefault(ptr.Pointer(), core.PointerFromQObject(watched), core.PointerFromQEvent(event)) != 0 + } + return false +} + +//export callbackQDirModel_ChildEvent +func callbackQDirModel_ChildEvent(ptr unsafe.Pointer, event unsafe.Pointer) { + if signal := qt.GetSignal(ptr, "childEvent"); signal != nil { + signal.(func(*core.QChildEvent))(core.NewQChildEventFromPointer(event)) + } else { + NewQDirModelFromPointer(ptr).ChildEventDefault(core.NewQChildEventFromPointer(event)) + } +} + +func (ptr *QDirModel) ChildEventDefault(event core.QChildEvent_ITF) { + if ptr.Pointer() != nil { + C.QDirModel_ChildEventDefault(ptr.Pointer(), core.PointerFromQChildEvent(event)) + } +} + +//export callbackQDirModel_ConnectNotify +func callbackQDirModel_ConnectNotify(ptr unsafe.Pointer, sign unsafe.Pointer) { + if signal := qt.GetSignal(ptr, "connectNotify"); signal != nil { + signal.(func(*core.QMetaMethod))(core.NewQMetaMethodFromPointer(sign)) + } else { + NewQDirModelFromPointer(ptr).ConnectNotifyDefault(core.NewQMetaMethodFromPointer(sign)) + } +} + +func (ptr *QDirModel) ConnectNotifyDefault(sign core.QMetaMethod_ITF) { + if ptr.Pointer() != nil { + C.QDirModel_ConnectNotifyDefault(ptr.Pointer(), core.PointerFromQMetaMethod(sign)) + } +} + +//export callbackQDirModel_CustomEvent +func callbackQDirModel_CustomEvent(ptr unsafe.Pointer, event unsafe.Pointer) { + if signal := qt.GetSignal(ptr, "customEvent"); signal != nil { + signal.(func(*core.QEvent))(core.NewQEventFromPointer(event)) + } else { + NewQDirModelFromPointer(ptr).CustomEventDefault(core.NewQEventFromPointer(event)) + } +} + +func (ptr *QDirModel) CustomEventDefault(event core.QEvent_ITF) { + if ptr.Pointer() != nil { + C.QDirModel_CustomEventDefault(ptr.Pointer(), core.PointerFromQEvent(event)) + } +} + +//export callbackQDirModel_DeleteLater +func callbackQDirModel_DeleteLater(ptr unsafe.Pointer) { + if signal := qt.GetSignal(ptr, "deleteLater"); signal != nil { + signal.(func())() + } else { + NewQDirModelFromPointer(ptr).DeleteLaterDefault() + } +} + +func (ptr *QDirModel) DeleteLaterDefault() { + if ptr.Pointer() != nil { + C.QDirModel_DeleteLaterDefault(ptr.Pointer()) + ptr.SetPointer(nil) + runtime.SetFinalizer(ptr, nil) + } +} + +//export callbackQDirModel_Destroyed +func callbackQDirModel_Destroyed(ptr unsafe.Pointer, obj unsafe.Pointer) { + if signal := qt.GetSignal(ptr, "destroyed"); signal != nil { + signal.(func(*core.QObject))(core.NewQObjectFromPointer(obj)) + } + +} + +//export callbackQDirModel_DisconnectNotify +func callbackQDirModel_DisconnectNotify(ptr unsafe.Pointer, sign unsafe.Pointer) { + if signal := qt.GetSignal(ptr, "disconnectNotify"); signal != nil { + signal.(func(*core.QMetaMethod))(core.NewQMetaMethodFromPointer(sign)) + } else { + NewQDirModelFromPointer(ptr).DisconnectNotifyDefault(core.NewQMetaMethodFromPointer(sign)) + } +} + +func (ptr *QDirModel) DisconnectNotifyDefault(sign core.QMetaMethod_ITF) { + if ptr.Pointer() != nil { + C.QDirModel_DisconnectNotifyDefault(ptr.Pointer(), core.PointerFromQMetaMethod(sign)) + } +} + +//export callbackQDirModel_ObjectNameChanged +func callbackQDirModel_ObjectNameChanged(ptr unsafe.Pointer, objectName C.struct_QtWidgets_PackedString) { + if signal := qt.GetSignal(ptr, "objectNameChanged"); signal != nil { + signal.(func(string))(cGoUnpackString(objectName)) + } + +} + +//export callbackQDirModel_TimerEvent +func callbackQDirModel_TimerEvent(ptr unsafe.Pointer, event unsafe.Pointer) { + if signal := qt.GetSignal(ptr, "timerEvent"); signal != nil { + signal.(func(*core.QTimerEvent))(core.NewQTimerEventFromPointer(event)) + } else { + NewQDirModelFromPointer(ptr).TimerEventDefault(core.NewQTimerEventFromPointer(event)) + } +} + +func (ptr *QDirModel) TimerEventDefault(event core.QTimerEvent_ITF) { + if ptr.Pointer() != nil { + C.QDirModel_TimerEventDefault(ptr.Pointer(), core.PointerFromQTimerEvent(event)) + } +} + +//export callbackQDirModel_MetaObject +func callbackQDirModel_MetaObject(ptr unsafe.Pointer) unsafe.Pointer { + if signal := qt.GetSignal(ptr, "metaObject"); signal != nil { + return core.PointerFromQMetaObject(signal.(func() *core.QMetaObject)()) + } + + return core.PointerFromQMetaObject(NewQDirModelFromPointer(ptr).MetaObjectDefault()) +} + +func (ptr *QDirModel) MetaObjectDefault() *core.QMetaObject { + if ptr.Pointer() != nil { + return core.NewQMetaObjectFromPointer(C.QDirModel_MetaObjectDefault(ptr.Pointer())) + } + return nil +} + type QDockWidget struct { QWidget } @@ -19836,7 +21708,6 @@ const ( QDockWidget__DockWidgetFloatable QDockWidget__DockWidgetFeature = QDockWidget__DockWidgetFeature(0x04) QDockWidget__DockWidgetVerticalTitleBar QDockWidget__DockWidgetFeature = QDockWidget__DockWidgetFeature(0x08) QDockWidget__DockWidgetFeatureMask QDockWidget__DockWidgetFeature = QDockWidget__DockWidgetFeature(0x0f) - QDockWidget__AllDockWidgetFeatures QDockWidget__DockWidgetFeature = QDockWidget__DockWidgetFeature(QDockWidget__DockWidgetClosable | QDockWidget__DockWidgetMovable | QDockWidget__DockWidgetFloatable) QDockWidget__NoDockWidgetFeatures QDockWidget__DockWidgetFeature = QDockWidget__DockWidgetFeature(0x00) QDockWidget__Reserved QDockWidget__DockWidgetFeature = QDockWidget__DockWidgetFeature(0xff) ) @@ -32694,6 +34565,616 @@ func (ptr *QGraphicsItem) __transformations_newList() unsafe.Pointer { return C.QGraphicsItem___transformations_newList(ptr.Pointer()) } +type QGraphicsItemAnimation struct { + core.QObject +} + +type QGraphicsItemAnimation_ITF interface { + core.QObject_ITF + QGraphicsItemAnimation_PTR() *QGraphicsItemAnimation +} + +func (ptr *QGraphicsItemAnimation) QGraphicsItemAnimation_PTR() *QGraphicsItemAnimation { + return ptr +} + +func (ptr *QGraphicsItemAnimation) Pointer() unsafe.Pointer { + if ptr != nil { + return ptr.QObject_PTR().Pointer() + } + return nil +} + +func (ptr *QGraphicsItemAnimation) SetPointer(p unsafe.Pointer) { + if ptr != nil { + ptr.QObject_PTR().SetPointer(p) + } +} + +func PointerFromQGraphicsItemAnimation(ptr QGraphicsItemAnimation_ITF) unsafe.Pointer { + if ptr != nil { + return ptr.QGraphicsItemAnimation_PTR().Pointer() + } + return nil +} + +func NewQGraphicsItemAnimationFromPointer(ptr unsafe.Pointer) (n *QGraphicsItemAnimation) { + n = new(QGraphicsItemAnimation) + n.SetPointer(ptr) + return +} +func NewQGraphicsItemAnimation(parent core.QObject_ITF) *QGraphicsItemAnimation { + tmpValue := NewQGraphicsItemAnimationFromPointer(C.QGraphicsItemAnimation_NewQGraphicsItemAnimation(core.PointerFromQObject(parent))) + if !qt.ExistsSignal(tmpValue.Pointer(), "destroyed") { + tmpValue.ConnectDestroyed(func(*core.QObject) { tmpValue.SetPointer(nil) }) + } + return tmpValue +} + +//export callbackQGraphicsItemAnimation_AfterAnimationStep +func callbackQGraphicsItemAnimation_AfterAnimationStep(ptr unsafe.Pointer, step C.double) { + if signal := qt.GetSignal(ptr, "afterAnimationStep"); signal != nil { + signal.(func(float64))(float64(step)) + } else { + NewQGraphicsItemAnimationFromPointer(ptr).AfterAnimationStepDefault(float64(step)) + } +} + +func (ptr *QGraphicsItemAnimation) ConnectAfterAnimationStep(f func(step float64)) { + if ptr.Pointer() != nil { + + if signal := qt.LendSignal(ptr.Pointer(), "afterAnimationStep"); signal != nil { + qt.ConnectSignal(ptr.Pointer(), "afterAnimationStep", func(step float64) { + signal.(func(float64))(step) + f(step) + }) + } else { + qt.ConnectSignal(ptr.Pointer(), "afterAnimationStep", f) + } + } +} + +func (ptr *QGraphicsItemAnimation) DisconnectAfterAnimationStep() { + if ptr.Pointer() != nil { + + qt.DisconnectSignal(ptr.Pointer(), "afterAnimationStep") + } +} + +func (ptr *QGraphicsItemAnimation) AfterAnimationStep(step float64) { + if ptr.Pointer() != nil { + C.QGraphicsItemAnimation_AfterAnimationStep(ptr.Pointer(), C.double(step)) + } +} + +func (ptr *QGraphicsItemAnimation) AfterAnimationStepDefault(step float64) { + if ptr.Pointer() != nil { + C.QGraphicsItemAnimation_AfterAnimationStepDefault(ptr.Pointer(), C.double(step)) + } +} + +//export callbackQGraphicsItemAnimation_BeforeAnimationStep +func callbackQGraphicsItemAnimation_BeforeAnimationStep(ptr unsafe.Pointer, step C.double) { + if signal := qt.GetSignal(ptr, "beforeAnimationStep"); signal != nil { + signal.(func(float64))(float64(step)) + } else { + NewQGraphicsItemAnimationFromPointer(ptr).BeforeAnimationStepDefault(float64(step)) + } +} + +func (ptr *QGraphicsItemAnimation) ConnectBeforeAnimationStep(f func(step float64)) { + if ptr.Pointer() != nil { + + if signal := qt.LendSignal(ptr.Pointer(), "beforeAnimationStep"); signal != nil { + qt.ConnectSignal(ptr.Pointer(), "beforeAnimationStep", func(step float64) { + signal.(func(float64))(step) + f(step) + }) + } else { + qt.ConnectSignal(ptr.Pointer(), "beforeAnimationStep", f) + } + } +} + +func (ptr *QGraphicsItemAnimation) DisconnectBeforeAnimationStep() { + if ptr.Pointer() != nil { + + qt.DisconnectSignal(ptr.Pointer(), "beforeAnimationStep") + } +} + +func (ptr *QGraphicsItemAnimation) BeforeAnimationStep(step float64) { + if ptr.Pointer() != nil { + C.QGraphicsItemAnimation_BeforeAnimationStep(ptr.Pointer(), C.double(step)) + } +} + +func (ptr *QGraphicsItemAnimation) BeforeAnimationStepDefault(step float64) { + if ptr.Pointer() != nil { + C.QGraphicsItemAnimation_BeforeAnimationStepDefault(ptr.Pointer(), C.double(step)) + } +} + +func (ptr *QGraphicsItemAnimation) Clear() { + if ptr.Pointer() != nil { + C.QGraphicsItemAnimation_Clear(ptr.Pointer()) + } +} + +func (ptr *QGraphicsItemAnimation) SetItem(item QGraphicsItem_ITF) { + if ptr.Pointer() != nil { + C.QGraphicsItemAnimation_SetItem(ptr.Pointer(), PointerFromQGraphicsItem(item)) + } +} + +func (ptr *QGraphicsItemAnimation) SetPosAt(step float64, point core.QPointF_ITF) { + if ptr.Pointer() != nil { + C.QGraphicsItemAnimation_SetPosAt(ptr.Pointer(), C.double(step), core.PointerFromQPointF(point)) + } +} + +func (ptr *QGraphicsItemAnimation) SetRotationAt(step float64, angle float64) { + if ptr.Pointer() != nil { + C.QGraphicsItemAnimation_SetRotationAt(ptr.Pointer(), C.double(step), C.double(angle)) + } +} + +func (ptr *QGraphicsItemAnimation) SetScaleAt(step float64, sx float64, sy float64) { + if ptr.Pointer() != nil { + C.QGraphicsItemAnimation_SetScaleAt(ptr.Pointer(), C.double(step), C.double(sx), C.double(sy)) + } +} + +func (ptr *QGraphicsItemAnimation) SetShearAt(step float64, sh float64, sv float64) { + if ptr.Pointer() != nil { + C.QGraphicsItemAnimation_SetShearAt(ptr.Pointer(), C.double(step), C.double(sh), C.double(sv)) + } +} + +//export callbackQGraphicsItemAnimation_SetStep +func callbackQGraphicsItemAnimation_SetStep(ptr unsafe.Pointer, step C.double) { + if signal := qt.GetSignal(ptr, "setStep"); signal != nil { + signal.(func(float64))(float64(step)) + } else { + NewQGraphicsItemAnimationFromPointer(ptr).SetStepDefault(float64(step)) + } +} + +func (ptr *QGraphicsItemAnimation) ConnectSetStep(f func(step float64)) { + if ptr.Pointer() != nil { + + if signal := qt.LendSignal(ptr.Pointer(), "setStep"); signal != nil { + qt.ConnectSignal(ptr.Pointer(), "setStep", func(step float64) { + signal.(func(float64))(step) + f(step) + }) + } else { + qt.ConnectSignal(ptr.Pointer(), "setStep", f) + } + } +} + +func (ptr *QGraphicsItemAnimation) DisconnectSetStep() { + if ptr.Pointer() != nil { + + qt.DisconnectSignal(ptr.Pointer(), "setStep") + } +} + +func (ptr *QGraphicsItemAnimation) SetStep(step float64) { + if ptr.Pointer() != nil { + C.QGraphicsItemAnimation_SetStep(ptr.Pointer(), C.double(step)) + } +} + +func (ptr *QGraphicsItemAnimation) SetStepDefault(step float64) { + if ptr.Pointer() != nil { + C.QGraphicsItemAnimation_SetStepDefault(ptr.Pointer(), C.double(step)) + } +} + +func (ptr *QGraphicsItemAnimation) SetTimeLine(timeLine core.QTimeLine_ITF) { + if ptr.Pointer() != nil { + C.QGraphicsItemAnimation_SetTimeLine(ptr.Pointer(), core.PointerFromQTimeLine(timeLine)) + } +} + +func (ptr *QGraphicsItemAnimation) SetTranslationAt(step float64, dx float64, dy float64) { + if ptr.Pointer() != nil { + C.QGraphicsItemAnimation_SetTranslationAt(ptr.Pointer(), C.double(step), C.double(dx), C.double(dy)) + } +} + +//export callbackQGraphicsItemAnimation_DestroyQGraphicsItemAnimation +func callbackQGraphicsItemAnimation_DestroyQGraphicsItemAnimation(ptr unsafe.Pointer) { + if signal := qt.GetSignal(ptr, "~QGraphicsItemAnimation"); signal != nil { + signal.(func())() + } else { + NewQGraphicsItemAnimationFromPointer(ptr).DestroyQGraphicsItemAnimationDefault() + } +} + +func (ptr *QGraphicsItemAnimation) ConnectDestroyQGraphicsItemAnimation(f func()) { + if ptr.Pointer() != nil { + + if signal := qt.LendSignal(ptr.Pointer(), "~QGraphicsItemAnimation"); signal != nil { + qt.ConnectSignal(ptr.Pointer(), "~QGraphicsItemAnimation", func() { + signal.(func())() + f() + }) + } else { + qt.ConnectSignal(ptr.Pointer(), "~QGraphicsItemAnimation", f) + } + } +} + +func (ptr *QGraphicsItemAnimation) DisconnectDestroyQGraphicsItemAnimation() { + if ptr.Pointer() != nil { + + qt.DisconnectSignal(ptr.Pointer(), "~QGraphicsItemAnimation") + } +} + +func (ptr *QGraphicsItemAnimation) DestroyQGraphicsItemAnimation() { + if ptr.Pointer() != nil { + C.QGraphicsItemAnimation_DestroyQGraphicsItemAnimation(ptr.Pointer()) + ptr.SetPointer(nil) + runtime.SetFinalizer(ptr, nil) + } +} + +func (ptr *QGraphicsItemAnimation) DestroyQGraphicsItemAnimationDefault() { + if ptr.Pointer() != nil { + C.QGraphicsItemAnimation_DestroyQGraphicsItemAnimationDefault(ptr.Pointer()) + ptr.SetPointer(nil) + runtime.SetFinalizer(ptr, nil) + } +} + +func (ptr *QGraphicsItemAnimation) Item() *QGraphicsItem { + if ptr.Pointer() != nil { + return NewQGraphicsItemFromPointer(C.QGraphicsItemAnimation_Item(ptr.Pointer())) + } + return nil +} + +func (ptr *QGraphicsItemAnimation) MatrixAt(step float64) *gui.QMatrix { + if ptr.Pointer() != nil { + tmpValue := gui.NewQMatrixFromPointer(C.QGraphicsItemAnimation_MatrixAt(ptr.Pointer(), C.double(step))) + runtime.SetFinalizer(tmpValue, (*gui.QMatrix).DestroyQMatrix) + return tmpValue + } + return nil +} + +func (ptr *QGraphicsItemAnimation) PosAt(step float64) *core.QPointF { + if ptr.Pointer() != nil { + tmpValue := core.NewQPointFFromPointer(C.QGraphicsItemAnimation_PosAt(ptr.Pointer(), C.double(step))) + runtime.SetFinalizer(tmpValue, (*core.QPointF).DestroyQPointF) + return tmpValue + } + return nil +} + +func (ptr *QGraphicsItemAnimation) TimeLine() *core.QTimeLine { + if ptr.Pointer() != nil { + tmpValue := core.NewQTimeLineFromPointer(C.QGraphicsItemAnimation_TimeLine(ptr.Pointer())) + if !qt.ExistsSignal(tmpValue.Pointer(), "destroyed") { + tmpValue.ConnectDestroyed(func(*core.QObject) { tmpValue.SetPointer(nil) }) + } + return tmpValue + } + return nil +} + +func (ptr *QGraphicsItemAnimation) HorizontalScaleAt(step float64) float64 { + if ptr.Pointer() != nil { + return float64(C.QGraphicsItemAnimation_HorizontalScaleAt(ptr.Pointer(), C.double(step))) + } + return 0 +} + +func (ptr *QGraphicsItemAnimation) HorizontalShearAt(step float64) float64 { + if ptr.Pointer() != nil { + return float64(C.QGraphicsItemAnimation_HorizontalShearAt(ptr.Pointer(), C.double(step))) + } + return 0 +} + +func (ptr *QGraphicsItemAnimation) RotationAt(step float64) float64 { + if ptr.Pointer() != nil { + return float64(C.QGraphicsItemAnimation_RotationAt(ptr.Pointer(), C.double(step))) + } + return 0 +} + +func (ptr *QGraphicsItemAnimation) VerticalScaleAt(step float64) float64 { + if ptr.Pointer() != nil { + return float64(C.QGraphicsItemAnimation_VerticalScaleAt(ptr.Pointer(), C.double(step))) + } + return 0 +} + +func (ptr *QGraphicsItemAnimation) VerticalShearAt(step float64) float64 { + if ptr.Pointer() != nil { + return float64(C.QGraphicsItemAnimation_VerticalShearAt(ptr.Pointer(), C.double(step))) + } + return 0 +} + +func (ptr *QGraphicsItemAnimation) XTranslationAt(step float64) float64 { + if ptr.Pointer() != nil { + return float64(C.QGraphicsItemAnimation_XTranslationAt(ptr.Pointer(), C.double(step))) + } + return 0 +} + +func (ptr *QGraphicsItemAnimation) YTranslationAt(step float64) float64 { + if ptr.Pointer() != nil { + return float64(C.QGraphicsItemAnimation_YTranslationAt(ptr.Pointer(), C.double(step))) + } + return 0 +} + +func (ptr *QGraphicsItemAnimation) __dynamicPropertyNames_atList(i int) *core.QByteArray { + if ptr.Pointer() != nil { + tmpValue := core.NewQByteArrayFromPointer(C.QGraphicsItemAnimation___dynamicPropertyNames_atList(ptr.Pointer(), C.int(int32(i)))) + runtime.SetFinalizer(tmpValue, (*core.QByteArray).DestroyQByteArray) + return tmpValue + } + return nil +} + +func (ptr *QGraphicsItemAnimation) __dynamicPropertyNames_setList(i core.QByteArray_ITF) { + if ptr.Pointer() != nil { + C.QGraphicsItemAnimation___dynamicPropertyNames_setList(ptr.Pointer(), core.PointerFromQByteArray(i)) + } +} + +func (ptr *QGraphicsItemAnimation) __dynamicPropertyNames_newList() unsafe.Pointer { + return C.QGraphicsItemAnimation___dynamicPropertyNames_newList(ptr.Pointer()) +} + +func (ptr *QGraphicsItemAnimation) __findChildren_atList2(i int) *core.QObject { + if ptr.Pointer() != nil { + tmpValue := core.NewQObjectFromPointer(C.QGraphicsItemAnimation___findChildren_atList2(ptr.Pointer(), C.int(int32(i)))) + if !qt.ExistsSignal(tmpValue.Pointer(), "destroyed") { + tmpValue.ConnectDestroyed(func(*core.QObject) { tmpValue.SetPointer(nil) }) + } + return tmpValue + } + return nil +} + +func (ptr *QGraphicsItemAnimation) __findChildren_setList2(i core.QObject_ITF) { + if ptr.Pointer() != nil { + C.QGraphicsItemAnimation___findChildren_setList2(ptr.Pointer(), core.PointerFromQObject(i)) + } +} + +func (ptr *QGraphicsItemAnimation) __findChildren_newList2() unsafe.Pointer { + return C.QGraphicsItemAnimation___findChildren_newList2(ptr.Pointer()) +} + +func (ptr *QGraphicsItemAnimation) __findChildren_atList3(i int) *core.QObject { + if ptr.Pointer() != nil { + tmpValue := core.NewQObjectFromPointer(C.QGraphicsItemAnimation___findChildren_atList3(ptr.Pointer(), C.int(int32(i)))) + if !qt.ExistsSignal(tmpValue.Pointer(), "destroyed") { + tmpValue.ConnectDestroyed(func(*core.QObject) { tmpValue.SetPointer(nil) }) + } + return tmpValue + } + return nil +} + +func (ptr *QGraphicsItemAnimation) __findChildren_setList3(i core.QObject_ITF) { + if ptr.Pointer() != nil { + C.QGraphicsItemAnimation___findChildren_setList3(ptr.Pointer(), core.PointerFromQObject(i)) + } +} + +func (ptr *QGraphicsItemAnimation) __findChildren_newList3() unsafe.Pointer { + return C.QGraphicsItemAnimation___findChildren_newList3(ptr.Pointer()) +} + +func (ptr *QGraphicsItemAnimation) __findChildren_atList(i int) *core.QObject { + if ptr.Pointer() != nil { + tmpValue := core.NewQObjectFromPointer(C.QGraphicsItemAnimation___findChildren_atList(ptr.Pointer(), C.int(int32(i)))) + if !qt.ExistsSignal(tmpValue.Pointer(), "destroyed") { + tmpValue.ConnectDestroyed(func(*core.QObject) { tmpValue.SetPointer(nil) }) + } + return tmpValue + } + return nil +} + +func (ptr *QGraphicsItemAnimation) __findChildren_setList(i core.QObject_ITF) { + if ptr.Pointer() != nil { + C.QGraphicsItemAnimation___findChildren_setList(ptr.Pointer(), core.PointerFromQObject(i)) + } +} + +func (ptr *QGraphicsItemAnimation) __findChildren_newList() unsafe.Pointer { + return C.QGraphicsItemAnimation___findChildren_newList(ptr.Pointer()) +} + +func (ptr *QGraphicsItemAnimation) __children_atList(i int) *core.QObject { + if ptr.Pointer() != nil { + tmpValue := core.NewQObjectFromPointer(C.QGraphicsItemAnimation___children_atList(ptr.Pointer(), C.int(int32(i)))) + if !qt.ExistsSignal(tmpValue.Pointer(), "destroyed") { + tmpValue.ConnectDestroyed(func(*core.QObject) { tmpValue.SetPointer(nil) }) + } + return tmpValue + } + return nil +} + +func (ptr *QGraphicsItemAnimation) __children_setList(i core.QObject_ITF) { + if ptr.Pointer() != nil { + C.QGraphicsItemAnimation___children_setList(ptr.Pointer(), core.PointerFromQObject(i)) + } +} + +func (ptr *QGraphicsItemAnimation) __children_newList() unsafe.Pointer { + return C.QGraphicsItemAnimation___children_newList(ptr.Pointer()) +} + +//export callbackQGraphicsItemAnimation_Event +func callbackQGraphicsItemAnimation_Event(ptr unsafe.Pointer, e unsafe.Pointer) C.char { + if signal := qt.GetSignal(ptr, "event"); signal != nil { + return C.char(int8(qt.GoBoolToInt(signal.(func(*core.QEvent) bool)(core.NewQEventFromPointer(e))))) + } + + return C.char(int8(qt.GoBoolToInt(NewQGraphicsItemAnimationFromPointer(ptr).EventDefault(core.NewQEventFromPointer(e))))) +} + +func (ptr *QGraphicsItemAnimation) EventDefault(e core.QEvent_ITF) bool { + if ptr.Pointer() != nil { + return C.QGraphicsItemAnimation_EventDefault(ptr.Pointer(), core.PointerFromQEvent(e)) != 0 + } + return false +} + +//export callbackQGraphicsItemAnimation_EventFilter +func callbackQGraphicsItemAnimation_EventFilter(ptr unsafe.Pointer, watched unsafe.Pointer, event unsafe.Pointer) C.char { + if signal := qt.GetSignal(ptr, "eventFilter"); signal != nil { + return C.char(int8(qt.GoBoolToInt(signal.(func(*core.QObject, *core.QEvent) bool)(core.NewQObjectFromPointer(watched), core.NewQEventFromPointer(event))))) + } + + return C.char(int8(qt.GoBoolToInt(NewQGraphicsItemAnimationFromPointer(ptr).EventFilterDefault(core.NewQObjectFromPointer(watched), core.NewQEventFromPointer(event))))) +} + +func (ptr *QGraphicsItemAnimation) EventFilterDefault(watched core.QObject_ITF, event core.QEvent_ITF) bool { + if ptr.Pointer() != nil { + return C.QGraphicsItemAnimation_EventFilterDefault(ptr.Pointer(), core.PointerFromQObject(watched), core.PointerFromQEvent(event)) != 0 + } + return false +} + +//export callbackQGraphicsItemAnimation_ChildEvent +func callbackQGraphicsItemAnimation_ChildEvent(ptr unsafe.Pointer, event unsafe.Pointer) { + if signal := qt.GetSignal(ptr, "childEvent"); signal != nil { + signal.(func(*core.QChildEvent))(core.NewQChildEventFromPointer(event)) + } else { + NewQGraphicsItemAnimationFromPointer(ptr).ChildEventDefault(core.NewQChildEventFromPointer(event)) + } +} + +func (ptr *QGraphicsItemAnimation) ChildEventDefault(event core.QChildEvent_ITF) { + if ptr.Pointer() != nil { + C.QGraphicsItemAnimation_ChildEventDefault(ptr.Pointer(), core.PointerFromQChildEvent(event)) + } +} + +//export callbackQGraphicsItemAnimation_ConnectNotify +func callbackQGraphicsItemAnimation_ConnectNotify(ptr unsafe.Pointer, sign unsafe.Pointer) { + if signal := qt.GetSignal(ptr, "connectNotify"); signal != nil { + signal.(func(*core.QMetaMethod))(core.NewQMetaMethodFromPointer(sign)) + } else { + NewQGraphicsItemAnimationFromPointer(ptr).ConnectNotifyDefault(core.NewQMetaMethodFromPointer(sign)) + } +} + +func (ptr *QGraphicsItemAnimation) ConnectNotifyDefault(sign core.QMetaMethod_ITF) { + if ptr.Pointer() != nil { + C.QGraphicsItemAnimation_ConnectNotifyDefault(ptr.Pointer(), core.PointerFromQMetaMethod(sign)) + } +} + +//export callbackQGraphicsItemAnimation_CustomEvent +func callbackQGraphicsItemAnimation_CustomEvent(ptr unsafe.Pointer, event unsafe.Pointer) { + if signal := qt.GetSignal(ptr, "customEvent"); signal != nil { + signal.(func(*core.QEvent))(core.NewQEventFromPointer(event)) + } else { + NewQGraphicsItemAnimationFromPointer(ptr).CustomEventDefault(core.NewQEventFromPointer(event)) + } +} + +func (ptr *QGraphicsItemAnimation) CustomEventDefault(event core.QEvent_ITF) { + if ptr.Pointer() != nil { + C.QGraphicsItemAnimation_CustomEventDefault(ptr.Pointer(), core.PointerFromQEvent(event)) + } +} + +//export callbackQGraphicsItemAnimation_DeleteLater +func callbackQGraphicsItemAnimation_DeleteLater(ptr unsafe.Pointer) { + if signal := qt.GetSignal(ptr, "deleteLater"); signal != nil { + signal.(func())() + } else { + NewQGraphicsItemAnimationFromPointer(ptr).DeleteLaterDefault() + } +} + +func (ptr *QGraphicsItemAnimation) DeleteLaterDefault() { + if ptr.Pointer() != nil { + C.QGraphicsItemAnimation_DeleteLaterDefault(ptr.Pointer()) + ptr.SetPointer(nil) + runtime.SetFinalizer(ptr, nil) + } +} + +//export callbackQGraphicsItemAnimation_Destroyed +func callbackQGraphicsItemAnimation_Destroyed(ptr unsafe.Pointer, obj unsafe.Pointer) { + if signal := qt.GetSignal(ptr, "destroyed"); signal != nil { + signal.(func(*core.QObject))(core.NewQObjectFromPointer(obj)) + } + +} + +//export callbackQGraphicsItemAnimation_DisconnectNotify +func callbackQGraphicsItemAnimation_DisconnectNotify(ptr unsafe.Pointer, sign unsafe.Pointer) { + if signal := qt.GetSignal(ptr, "disconnectNotify"); signal != nil { + signal.(func(*core.QMetaMethod))(core.NewQMetaMethodFromPointer(sign)) + } else { + NewQGraphicsItemAnimationFromPointer(ptr).DisconnectNotifyDefault(core.NewQMetaMethodFromPointer(sign)) + } +} + +func (ptr *QGraphicsItemAnimation) DisconnectNotifyDefault(sign core.QMetaMethod_ITF) { + if ptr.Pointer() != nil { + C.QGraphicsItemAnimation_DisconnectNotifyDefault(ptr.Pointer(), core.PointerFromQMetaMethod(sign)) + } +} + +//export callbackQGraphicsItemAnimation_ObjectNameChanged +func callbackQGraphicsItemAnimation_ObjectNameChanged(ptr unsafe.Pointer, objectName C.struct_QtWidgets_PackedString) { + if signal := qt.GetSignal(ptr, "objectNameChanged"); signal != nil { + signal.(func(string))(cGoUnpackString(objectName)) + } + +} + +//export callbackQGraphicsItemAnimation_TimerEvent +func callbackQGraphicsItemAnimation_TimerEvent(ptr unsafe.Pointer, event unsafe.Pointer) { + if signal := qt.GetSignal(ptr, "timerEvent"); signal != nil { + signal.(func(*core.QTimerEvent))(core.NewQTimerEventFromPointer(event)) + } else { + NewQGraphicsItemAnimationFromPointer(ptr).TimerEventDefault(core.NewQTimerEventFromPointer(event)) + } +} + +func (ptr *QGraphicsItemAnimation) TimerEventDefault(event core.QTimerEvent_ITF) { + if ptr.Pointer() != nil { + C.QGraphicsItemAnimation_TimerEventDefault(ptr.Pointer(), core.PointerFromQTimerEvent(event)) + } +} + +//export callbackQGraphicsItemAnimation_MetaObject +func callbackQGraphicsItemAnimation_MetaObject(ptr unsafe.Pointer) unsafe.Pointer { + if signal := qt.GetSignal(ptr, "metaObject"); signal != nil { + return core.PointerFromQMetaObject(signal.(func() *core.QMetaObject)()) + } + + return core.PointerFromQMetaObject(NewQGraphicsItemAnimationFromPointer(ptr).MetaObjectDefault()) +} + +func (ptr *QGraphicsItemAnimation) MetaObjectDefault() *core.QMetaObject { + if ptr.Pointer() != nil { + return core.NewQMetaObjectFromPointer(C.QGraphicsItemAnimation_MetaObjectDefault(ptr.Pointer())) + } + return nil +} + type QGraphicsItemGroup struct { QGraphicsItem } @@ -41566,6 +44047,12 @@ func (ptr *QGraphicsView) SetInteractive(allowed bool) { } } +func (ptr *QGraphicsView) SetMatrix(matrix gui.QMatrix_ITF, combine bool) { + if ptr.Pointer() != nil { + C.QGraphicsView_SetMatrix(ptr.Pointer(), gui.PointerFromQMatrix(matrix), C.char(int8(qt.GoBoolToInt(combine)))) + } +} + func (ptr *QGraphicsView) SetOptimizationFlag(flag QGraphicsView__OptimizationFlag, enabled bool) { if ptr.Pointer() != nil { C.QGraphicsView_SetOptimizationFlag(ptr.Pointer(), C.longlong(flag), C.char(int8(qt.GoBoolToInt(enabled)))) @@ -41972,6 +44459,15 @@ func (ptr *QGraphicsView) Items5(x int, y int, w int, h int, mode core.Qt__ItemS return make([]*QGraphicsItem, 0) } +func (ptr *QGraphicsView) Matrix() *gui.QMatrix { + if ptr.Pointer() != nil { + tmpValue := gui.NewQMatrixFromPointer(C.QGraphicsView_Matrix(ptr.Pointer())) + runtime.SetFinalizer(tmpValue, (*gui.QMatrix).DestroyQMatrix) + return tmpValue + } + return nil +} + func (ptr *QGraphicsView) RenderHints() gui.QPainter__RenderHint { if ptr.Pointer() != nil { return gui.QPainter__RenderHint(C.QGraphicsView_RenderHints(ptr.Pointer())) diff --git a/widgets/widgets.h b/widgets/widgets.h index 950df3c3..3b5b8aa0 100644 --- a/widgets/widgets.h +++ b/widgets/widgets.h @@ -34,6 +34,7 @@ int QDesktopWidget_QDesktopWidget_QRegisterMetaType(); int QDial_QDial_QRegisterMetaType(); int QDialog_QDialog_QRegisterMetaType(); int QDialogButtonBox_QDialogButtonBox_QRegisterMetaType(); +int QDirModel_QDirModel_QRegisterMetaType(); int QDockWidget_QDockWidget_QRegisterMetaType(); int QDoubleSpinBox_QDoubleSpinBox_QRegisterMetaType(); int QErrorMessage_QErrorMessage_QRegisterMetaType(); @@ -50,6 +51,7 @@ int QGraphicsBlurEffect_QGraphicsBlurEffect_QRegisterMetaType(); int QGraphicsColorizeEffect_QGraphicsColorizeEffect_QRegisterMetaType(); int QGraphicsDropShadowEffect_QGraphicsDropShadowEffect_QRegisterMetaType(); int QGraphicsEffect_QGraphicsEffect_QRegisterMetaType(); +int QGraphicsItemAnimation_QGraphicsItemAnimation_QRegisterMetaType(); int QGraphicsObject_QGraphicsObject_QRegisterMetaType(); int QGraphicsOpacityEffect_QGraphicsOpacityEffect_QRegisterMetaType(); int QGraphicsProxyWidget_QGraphicsProxyWidget_QRegisterMetaType(); @@ -1474,6 +1476,7 @@ void* QDesktopWidget_AvailableGeometry(void* ptr, int screen); void* QDesktopWidget_ScreenGeometry3(void* ptr, void* p); void* QDesktopWidget_ScreenGeometry2(void* ptr, void* widget); void* QDesktopWidget_ScreenGeometry(void* ptr, int screen); +int QDesktopWidget_NumScreens(void* ptr); int QDesktopWidget_PrimaryScreen(void* ptr); int QDesktopWidget_ScreenCount(void* ptr); int QDesktopWidget_ScreenNumber2(void* ptr, void* point); @@ -1554,6 +1557,151 @@ char QDialogButtonBox_CenterButtons(void* ptr); void* QDialogButtonBox___buttons_atList(void* ptr, int i); void QDialogButtonBox___buttons_setList(void* ptr, void* i); void* QDialogButtonBox___buttons_newList(void* ptr); +int QDirModel_FilePathRole_Type(); +int QDirModel_FileNameRole_Type(); +char QDirModel_DropMimeDataDefault(void* ptr, void* data, long long action, int row, int column, void* parent); +char QDirModel_SetDataDefault(void* ptr, void* index, void* value, int role); +void QDirModel_SetFilter(void* ptr, long long filters); +void QDirModel_SetLazyChildCount(void* ptr, char enable); +void* QDirModel_NewQDirModel2(void* parent); +void* QDirModel_NewQDirModel(struct QtWidgets_PackedString nameFilters, long long filters, long long sort, void* parent); +void* QDirModel_Mkdir(void* ptr, void* parent, struct QtWidgets_PackedString name); +char QDirModel_Remove(void* ptr, void* index); +char QDirModel_Rmdir(void* ptr, void* index); +void QDirModel_Refresh(void* ptr, void* parent); +void QDirModel_RefreshDefault(void* ptr, void* parent); +void QDirModel_SetIconProvider(void* ptr, void* provider); +void QDirModel_SetNameFilters(void* ptr, struct QtWidgets_PackedString filters); +void QDirModel_SetReadOnly(void* ptr, char enable); +void QDirModel_SetResolveSymlinks(void* ptr, char enable); +void QDirModel_SetSorting(void* ptr, long long sort); +void QDirModel_SortDefault(void* ptr, int column, long long order); +void QDirModel_DestroyQDirModel(void* ptr); +long long QDirModel_Filter(void* ptr); +long long QDirModel_Sorting(void* ptr); +void* QDirModel_IconProvider(void* ptr); +void* QDirModel_FileInfo(void* ptr, void* index); +void* QDirModel_FileIcon(void* ptr, void* index); +void* QDirModel_MimeDataDefault(void* ptr, void* indexes); +void* QDirModel_Index2(void* ptr, struct QtWidgets_PackedString path, int column); +void* QDirModel_Index(void* ptr, int row, int column, void* parent); +void* QDirModel_IndexDefault(void* ptr, int row, int column, void* parent); +void* QDirModel_Parent(void* ptr, void* child); +void* QDirModel_ParentDefault(void* ptr, void* child); +struct QtWidgets_PackedString QDirModel_FileName(void* ptr, void* index); +struct QtWidgets_PackedString QDirModel_FilePath(void* ptr, void* index); +struct QtWidgets_PackedString QDirModel_MimeTypesDefault(void* ptr); +struct QtWidgets_PackedString QDirModel_NameFilters(void* ptr); +void* QDirModel_Data(void* ptr, void* index, int role); +void* QDirModel_DataDefault(void* ptr, void* index, int role); +void* QDirModel_HeaderDataDefault(void* ptr, int section, long long orientation, int role); +long long QDirModel_SupportedDropActionsDefault(void* ptr); +long long QDirModel_FlagsDefault(void* ptr, void* index); +char QDirModel_HasChildrenDefault(void* ptr, void* parent); +char QDirModel_IsDir(void* ptr, void* index); +char QDirModel_IsReadOnly(void* ptr); +char QDirModel_LazyChildCount(void* ptr); +char QDirModel_ResolveSymlinks(void* ptr); +int QDirModel_ColumnCount(void* ptr, void* parent); +int QDirModel_ColumnCountDefault(void* ptr, void* parent); +int QDirModel_RowCount(void* ptr, void* parent); +int QDirModel_RowCountDefault(void* ptr, void* parent); +void* QDirModel___mimeData_indexes_atList(void* ptr, int i); +void QDirModel___mimeData_indexes_setList(void* ptr, void* i); +void* QDirModel___mimeData_indexes_newList(void* ptr); +void* QDirModel___setItemData_roles_atList(void* ptr, int v, int i); +void QDirModel___setItemData_roles_setList(void* ptr, int key, void* i); +void* QDirModel___setItemData_roles_newList(void* ptr); +struct QtWidgets_PackedList QDirModel___setItemData_keyList(void* ptr); +void* QDirModel___changePersistentIndexList_from_atList(void* ptr, int i); +void QDirModel___changePersistentIndexList_from_setList(void* ptr, void* i); +void* QDirModel___changePersistentIndexList_from_newList(void* ptr); +void* QDirModel___changePersistentIndexList_to_atList(void* ptr, int i); +void QDirModel___changePersistentIndexList_to_setList(void* ptr, void* i); +void* QDirModel___changePersistentIndexList_to_newList(void* ptr); +int QDirModel___dataChanged_roles_atList(void* ptr, int i); +void QDirModel___dataChanged_roles_setList(void* ptr, int i); +void* QDirModel___dataChanged_roles_newList(void* ptr); +void* QDirModel___layoutAboutToBeChanged_parents_atList(void* ptr, int i); +void QDirModel___layoutAboutToBeChanged_parents_setList(void* ptr, void* i); +void* QDirModel___layoutAboutToBeChanged_parents_newList(void* ptr); +void* QDirModel___layoutChanged_parents_atList(void* ptr, int i); +void QDirModel___layoutChanged_parents_setList(void* ptr, void* i); +void* QDirModel___layoutChanged_parents_newList(void* ptr); +void* QDirModel___roleNames_atList(void* ptr, int v, int i); +void QDirModel___roleNames_setList(void* ptr, int key, void* i); +void* QDirModel___roleNames_newList(void* ptr); +struct QtWidgets_PackedList QDirModel___roleNames_keyList(void* ptr); +void* QDirModel___itemData_atList(void* ptr, int v, int i); +void QDirModel___itemData_setList(void* ptr, int key, void* i); +void* QDirModel___itemData_newList(void* ptr); +struct QtWidgets_PackedList QDirModel___itemData_keyList(void* ptr); +void* QDirModel___match_atList(void* ptr, int i); +void QDirModel___match_setList(void* ptr, void* i); +void* QDirModel___match_newList(void* ptr); +void* QDirModel___persistentIndexList_atList(void* ptr, int i); +void QDirModel___persistentIndexList_setList(void* ptr, void* i); +void* QDirModel___persistentIndexList_newList(void* ptr); +int QDirModel_____setItemData_keyList_atList(void* ptr, int i); +void QDirModel_____setItemData_keyList_setList(void* ptr, int i); +void* QDirModel_____setItemData_keyList_newList(void* ptr); +int QDirModel_____doSetRoleNames_keyList_atList(void* ptr, int i); +void QDirModel_____doSetRoleNames_keyList_setList(void* ptr, int i); +void* QDirModel_____doSetRoleNames_keyList_newList(void* ptr); +int QDirModel_____setRoleNames_keyList_atList(void* ptr, int i); +void QDirModel_____setRoleNames_keyList_setList(void* ptr, int i); +void* QDirModel_____setRoleNames_keyList_newList(void* ptr); +int QDirModel_____roleNames_keyList_atList(void* ptr, int i); +void QDirModel_____roleNames_keyList_setList(void* ptr, int i); +void* QDirModel_____roleNames_keyList_newList(void* ptr); +int QDirModel_____itemData_keyList_atList(void* ptr, int i); +void QDirModel_____itemData_keyList_setList(void* ptr, int i); +void* QDirModel_____itemData_keyList_newList(void* ptr); +void* QDirModel___dynamicPropertyNames_atList(void* ptr, int i); +void QDirModel___dynamicPropertyNames_setList(void* ptr, void* i); +void* QDirModel___dynamicPropertyNames_newList(void* ptr); +void* QDirModel___findChildren_atList2(void* ptr, int i); +void QDirModel___findChildren_setList2(void* ptr, void* i); +void* QDirModel___findChildren_newList2(void* ptr); +void* QDirModel___findChildren_atList3(void* ptr, int i); +void QDirModel___findChildren_setList3(void* ptr, void* i); +void* QDirModel___findChildren_newList3(void* ptr); +void* QDirModel___findChildren_atList(void* ptr, int i); +void QDirModel___findChildren_setList(void* ptr, void* i); +void* QDirModel___findChildren_newList(void* ptr); +void* QDirModel___children_atList(void* ptr, int i); +void QDirModel___children_setList(void* ptr, void* i); +void* QDirModel___children_newList(void* ptr); +char QDirModel_InsertColumnsDefault(void* ptr, int column, int count, void* parent); +char QDirModel_InsertRowsDefault(void* ptr, int row, int count, void* parent); +char QDirModel_MoveColumnsDefault(void* ptr, void* sourceParent, int sourceColumn, int count, void* destinationParent, int destinationChild); +char QDirModel_MoveRowsDefault(void* ptr, void* sourceParent, int sourceRow, int count, void* destinationParent, int destinationChild); +char QDirModel_RemoveColumnsDefault(void* ptr, int column, int count, void* parent); +char QDirModel_RemoveRowsDefault(void* ptr, int row, int count, void* parent); +char QDirModel_SetHeaderDataDefault(void* ptr, int section, long long orientation, void* value, int role); +char QDirModel_SetItemDataDefault(void* ptr, void* index, void* roles); +char QDirModel_SubmitDefault(void* ptr); +void QDirModel_FetchMoreDefault(void* ptr, void* parent); +void QDirModel_ResetInternalDataDefault(void* ptr); +void QDirModel_RevertDefault(void* ptr); +struct QtWidgets_PackedList QDirModel_RoleNamesDefault(void* ptr); +struct QtWidgets_PackedList QDirModel_ItemDataDefault(void* ptr, void* index); +void* QDirModel_BuddyDefault(void* ptr, void* index); +void* QDirModel_SiblingDefault(void* ptr, int row, int column, void* index); +struct QtWidgets_PackedList QDirModel_MatchDefault(void* ptr, void* start, int role, void* value, int hits, long long flags); +void* QDirModel_SpanDefault(void* ptr, void* index); +long long QDirModel_SupportedDragActionsDefault(void* ptr); +char QDirModel_CanDropMimeDataDefault(void* ptr, void* data, long long action, int row, int column, void* parent); +char QDirModel_CanFetchMoreDefault(void* ptr, void* parent); +char QDirModel_EventDefault(void* ptr, void* e); +char QDirModel_EventFilterDefault(void* ptr, void* watched, void* event); +void QDirModel_ChildEventDefault(void* ptr, void* event); +void QDirModel_ConnectNotifyDefault(void* ptr, void* sign); +void QDirModel_CustomEventDefault(void* ptr, void* event); +void QDirModel_DeleteLaterDefault(void* ptr); +void QDirModel_DisconnectNotifyDefault(void* ptr, void* sign); +void QDirModel_TimerEventDefault(void* ptr, void* event); +void* QDirModel_MetaObjectDefault(void* ptr); void QDockWidget_ConnectFeaturesChanged(void* ptr); void QDockWidget_DisconnectFeaturesChanged(void* ptr); void QDockWidget_FeaturesChanged(void* ptr, long long features); @@ -2545,6 +2693,58 @@ void* QGraphicsItem___collidingItems_newList(void* ptr); void* QGraphicsItem___transformations_atList(void* ptr, int i); void QGraphicsItem___transformations_setList(void* ptr, void* i); void* QGraphicsItem___transformations_newList(void* ptr); +void* QGraphicsItemAnimation_NewQGraphicsItemAnimation(void* parent); +void QGraphicsItemAnimation_AfterAnimationStep(void* ptr, double step); +void QGraphicsItemAnimation_AfterAnimationStepDefault(void* ptr, double step); +void QGraphicsItemAnimation_BeforeAnimationStep(void* ptr, double step); +void QGraphicsItemAnimation_BeforeAnimationStepDefault(void* ptr, double step); +void QGraphicsItemAnimation_Clear(void* ptr); +void QGraphicsItemAnimation_SetItem(void* ptr, void* item); +void QGraphicsItemAnimation_SetPosAt(void* ptr, double step, void* point); +void QGraphicsItemAnimation_SetRotationAt(void* ptr, double step, double angle); +void QGraphicsItemAnimation_SetScaleAt(void* ptr, double step, double sx, double sy); +void QGraphicsItemAnimation_SetShearAt(void* ptr, double step, double sh, double sv); +void QGraphicsItemAnimation_SetStep(void* ptr, double step); +void QGraphicsItemAnimation_SetStepDefault(void* ptr, double step); +void QGraphicsItemAnimation_SetTimeLine(void* ptr, void* timeLine); +void QGraphicsItemAnimation_SetTranslationAt(void* ptr, double step, double dx, double dy); +void QGraphicsItemAnimation_DestroyQGraphicsItemAnimation(void* ptr); +void QGraphicsItemAnimation_DestroyQGraphicsItemAnimationDefault(void* ptr); +void* QGraphicsItemAnimation_Item(void* ptr); +void* QGraphicsItemAnimation_MatrixAt(void* ptr, double step); +void* QGraphicsItemAnimation_PosAt(void* ptr, double step); +void* QGraphicsItemAnimation_TimeLine(void* ptr); +double QGraphicsItemAnimation_HorizontalScaleAt(void* ptr, double step); +double QGraphicsItemAnimation_HorizontalShearAt(void* ptr, double step); +double QGraphicsItemAnimation_RotationAt(void* ptr, double step); +double QGraphicsItemAnimation_VerticalScaleAt(void* ptr, double step); +double QGraphicsItemAnimation_VerticalShearAt(void* ptr, double step); +double QGraphicsItemAnimation_XTranslationAt(void* ptr, double step); +double QGraphicsItemAnimation_YTranslationAt(void* ptr, double step); +void* QGraphicsItemAnimation___dynamicPropertyNames_atList(void* ptr, int i); +void QGraphicsItemAnimation___dynamicPropertyNames_setList(void* ptr, void* i); +void* QGraphicsItemAnimation___dynamicPropertyNames_newList(void* ptr); +void* QGraphicsItemAnimation___findChildren_atList2(void* ptr, int i); +void QGraphicsItemAnimation___findChildren_setList2(void* ptr, void* i); +void* QGraphicsItemAnimation___findChildren_newList2(void* ptr); +void* QGraphicsItemAnimation___findChildren_atList3(void* ptr, int i); +void QGraphicsItemAnimation___findChildren_setList3(void* ptr, void* i); +void* QGraphicsItemAnimation___findChildren_newList3(void* ptr); +void* QGraphicsItemAnimation___findChildren_atList(void* ptr, int i); +void QGraphicsItemAnimation___findChildren_setList(void* ptr, void* i); +void* QGraphicsItemAnimation___findChildren_newList(void* ptr); +void* QGraphicsItemAnimation___children_atList(void* ptr, int i); +void QGraphicsItemAnimation___children_setList(void* ptr, void* i); +void* QGraphicsItemAnimation___children_newList(void* ptr); +char QGraphicsItemAnimation_EventDefault(void* ptr, void* e); +char QGraphicsItemAnimation_EventFilterDefault(void* ptr, void* watched, void* event); +void QGraphicsItemAnimation_ChildEventDefault(void* ptr, void* event); +void QGraphicsItemAnimation_ConnectNotifyDefault(void* ptr, void* sign); +void QGraphicsItemAnimation_CustomEventDefault(void* ptr, void* event); +void QGraphicsItemAnimation_DeleteLaterDefault(void* ptr); +void QGraphicsItemAnimation_DisconnectNotifyDefault(void* ptr, void* sign); +void QGraphicsItemAnimation_TimerEventDefault(void* ptr, void* event); +void* QGraphicsItemAnimation_MetaObjectDefault(void* ptr); void* QGraphicsItemGroup_NewQGraphicsItemGroup(void* parent); void QGraphicsItemGroup_AddToGroup(void* ptr, void* item); void QGraphicsItemGroup_Paint(void* ptr, void* painter, void* option, void* widget); @@ -3229,6 +3429,7 @@ void QGraphicsView_SetCacheMode(void* ptr, long long mode); void QGraphicsView_SetDragMode(void* ptr, long long mode); void QGraphicsView_SetForegroundBrush(void* ptr, void* brush); void QGraphicsView_SetInteractive(void* ptr, char allowed); +void QGraphicsView_SetMatrix(void* ptr, void* matrix, char combine); void QGraphicsView_SetOptimizationFlag(void* ptr, long long flag, char enabled); void QGraphicsView_SetOptimizationFlags(void* ptr, long long flags); void QGraphicsView_SetRenderHint(void* ptr, long long hint, char enabled); @@ -3265,6 +3466,7 @@ struct QtWidgets_PackedList QGraphicsView_Items6(void* ptr, void* polygon, long struct QtWidgets_PackedList QGraphicsView_Items4(void* ptr, void* rect, long long mode); struct QtWidgets_PackedList QGraphicsView_Items3(void* ptr, int x, int y); struct QtWidgets_PackedList QGraphicsView_Items5(void* ptr, int x, int y, int w, int h, long long mode); +void* QGraphicsView_Matrix(void* ptr); long long QGraphicsView_RenderHints(void* ptr); void* QGraphicsView_MapFromScene4(void* ptr, void* path); void* QGraphicsView_MapToScene4(void* ptr, void* path);