#include #define WORKAROUND_INNER_CLASS_DEFINITION_QAccessible__ActivationObserver #define WORKAROUND_INNER_CLASS_DEFINITION_QAccessible__State #include #include #include #include #include #include #include "gen_qaccessible_base.h" #ifndef _Bool #define _Bool bool #endif #include "_cgo_export.h" void QAccessible_InstallActivationObserver(QAccessible__ActivationObserver* param1) { QAccessible::installActivationObserver(param1); } void QAccessible_RemoveActivationObserver(QAccessible__ActivationObserver* param1) { QAccessible::removeActivationObserver(param1); } QAccessibleInterface* QAccessible_QueryAccessibleInterface(QObject* param1) { return QAccessible::queryAccessibleInterface(param1); } unsigned int QAccessible_UniqueId(QAccessibleInterface* iface) { QAccessible::Id _ret = QAccessible::uniqueId(iface); return static_cast(_ret); } QAccessibleInterface* QAccessible_AccessibleInterface(unsigned int uniqueId) { return QAccessible::accessibleInterface(static_cast(uniqueId)); } unsigned int QAccessible_RegisterAccessibleInterface(QAccessibleInterface* iface) { QAccessible::Id _ret = QAccessible::registerAccessibleInterface(iface); return static_cast(_ret); } void QAccessible_DeleteAccessibleInterface(unsigned int uniqueId) { QAccessible::deleteAccessibleInterface(static_cast(uniqueId)); } void QAccessible_UpdateAccessibility(QAccessibleEvent* event) { QAccessible::updateAccessibility(event); } bool QAccessible_IsActive() { return QAccessible::isActive(); } void QAccessible_SetActive(bool active) { QAccessible::setActive(active); } void QAccessible_SetRootObject(QObject* object) { QAccessible::setRootObject(object); } void QAccessible_Cleanup() { QAccessible::cleanup(); } struct miqt_map /* tuple of int and int */ QAccessible_QAccessibleTextBoundaryHelper(QTextCursor* cursor, int boundaryType) { QPair _ret = QAccessible::qAccessibleTextBoundaryHelper(*cursor, static_cast(boundaryType)); // Convert QPair<> from C++ memory to manually-managed C memory int* _first_arr = static_cast(malloc(sizeof(int))); int* _second_arr = static_cast(malloc(sizeof(int))); _first_arr[0] = _ret.first; _second_arr[0] = _ret.second; struct miqt_map _out; _out.len = 1; _out.keys = static_cast(_first_arr); _out.values = static_cast(_second_arr); return _out; } void QAccessible_Delete(QAccessible* self, bool isSubclass) { if (isSubclass) { delete dynamic_cast( self ); } else { delete self; } } QAccessible__State* QAccessible__State_new() { return new QAccessible::State(); } void QAccessible__State_Delete(QAccessible__State* self, bool isSubclass) { if (isSubclass) { delete dynamic_cast( self ); } else { delete self; } } void QAccessible__ActivationObserver_AccessibilityActiveChanged(QAccessible__ActivationObserver* self, bool active) { self->accessibilityActiveChanged(active); } void QAccessible__ActivationObserver_OperatorAssign(QAccessible__ActivationObserver* self, QAccessible__ActivationObserver* param1) { self->operator=(*param1); } void QAccessible__ActivationObserver_Delete(QAccessible__ActivationObserver* self, bool isSubclass) { if (isSubclass) { delete dynamic_cast( self ); } else { delete self; } }